misc/release_notes/release_notes_21_05_00.md
View file
955 | - [[24564]](http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24564) The adding of new subfields according to IFLA updates doesn't respect existing tab |
956 | - [[27509]](http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27509) cn_sort value is lost when editing an item without changing cn_source or itemcallnumber |
957 | - [[27886]](http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27886) Authority linking broken in advanced editor |
misc/release_notes/release_notes_24_11_00.md
View file
1110 | **Sponsored by** *Chetco Community Public Library* |
1111 | - [26866](https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26866) Items table on additem should sort by cn_sort (24.11.00,24.05.04) |
1112 | - [37005](https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37005) Holdings table will not load when noItemTypeImages is set to 'Don't show' (24.11.00,24.05.02) |
misc/release_notes/release_notes_3_18_0.txt
View file
opac/opac-shelves.pl
View file
t/ClassSortRoutine_Dewey.t
View file
14 |
|
15 | my $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key(undef, undef ); |
16 | is($cn_sort,"","testing whitespace"); |
17 |
|
18 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("....","....."); |
19 | is($cn_sort,"","testing fullstops"); |
20 |
|
21 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("123","456"); |
22 | is($cn_sort,"123_456000000000000","testing numbers"); |
23 |
|
24 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("abc123","456"); |
25 | is($cn_sort,"ABC_123_456000000000000","testing alphanumeric"); |
26 |
|
27 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("ab c123","45 6"); |
28 | is($cn_sort,"AB_C123_45_600000000000000","testing middle whitespace"); |
29 |
|
30 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("YR DVD 800.1",""); |
31 | my $cn_sort2 = C4::ClassSortRoutine::Dewey::get_class_sort_key("YR DVD 900",""); |
32 | ok( $cn_sort lt $cn_sort2, "testing prefix plus decimal" ); |
33 |
|
34 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("971/P23w/v.1-2/pt.8",""); |
35 | is($cn_sort,"971_000000000000000_P23W_V_12_PT_8", "Test 1 for bug 8836"); |
36 |
|
37 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("971.01 P23w v.1-2 pt.6-7",""); |
38 | is($cn_sort,"971_010000000000000_P23W_V_12_PT_67", "Test 2 for bug 8836"); |
39 |
|
40 | $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("971.01 P23w v.1-2 pt.7",""); |
41 | is($cn_sort,"971_010000000000000_P23W_V_12_PT_7", "Test 3 for bug 8836"); |
t/ClassSortRoutine_Generic.t
View file
t/db_dependent/Items.t
View file
568 | ( $items, $total_results ) = SearchItems( $filter, $params ); |
569 | is( $items->[0]->{barcode}, $item2->barcode, 'Items sorted by cn_sort correctly' ); |
570 | is( $items->[1]->{barcode}, $item1->barcode, 'Items sorted by cn_sort correctly' ); |
571 | }; |
893 |
|
894 | subtest 'cn_sort' => sub { |
895 | plan tests => 3; |
898 | $item->set({ cn_source => 'ddc', itemcallnumber => 'xxx' })->store; |
899 | is( $item->cn_sort, 'XXX', 'init values set are expected' ); |
900 |
|
902 | ModItemFromMarc( $marc, $item->biblionumber, $item->itemnumber ); |
903 | is( $item->get_from_storage->cn_sort, 'XXX', 'cn_sort has not been updated' ); |
904 |
|
906 | ModItemFromMarc( $marc, $item->biblionumber, $item->itemnumber ); |
907 | is( $item->get_from_storage->cn_sort, 'YYY', 'cn_sort has been updated' ); |
908 | }; |
t/db_dependent/Items/GetItemsForInventory.t
View file
147 |
|
148 | subtest 'Use cn_sort rather than callnumber to determine correct location' => sub { |
149 | $schema->storage->txn_begin; |
171 |
|
172 | my $item_1 = $builder->build({ # Cannot call build_sample_item or cn_sort will be replaced by Koha::Item->store |
173 | source => 'Item', |
175 | itemcallnumber => 'GT95', |
176 | cn_sort => GetClassSort($class_source->{cn_source},undef,'GT95'), |
177 | } |
t/db_dependent/Search.t
View file
tools/inventory.pl
View file
328 | my $previous_item = $scanned_items[ $i - 1 ]; |
329 | if ( $previous_item && $item->{cn_sort} lt $previous_item->{cn_sort} ) { |
330 | $item->{problems}->{out_of_order} = 1; |
335 | my $next_item = $scanned_items[ $i + 1 ]; |
336 | if ( $next_item && $item->{cn_sort} gt $next_item->{cn_sort} ) { |
337 | $item->{problems}->{out_of_order} = 1; |