]> git.koha-community.org Git - koha.git/commit
Bug 28171: Restore previous sorting behaviour for Serial enumchron column
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Wed, 21 Apr 2021 16:19:07 +0000 (19:19 +0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 18 Jun 2021 10:49:38 +0000 (06:49 -0400)
commit5056a37b35002f0d08043a29c788c7e89cb19a7c
treefb5eafd653906d1fbb910a5db61f15eff463bbf0
parentdb7596dcdcaf5377fad2bad80f3689097faae185
Bug 28171: Restore previous sorting behaviour for Serial enumchron column

Before Bug 27980 the sorting was done either by item's publisheddate
if it existed in at least one item. If it didn't exist then the
sorting was done using "h - Serial Enumeration / chronology"
field. This restores this sorting functionality in catalogue/detail.pl
page.

To test:
 1. Create a serial subscription for a biblio, make sure to enable the
    option "Create an item record when receiving this serial"
 2. Receive two serials, so that they have different received dates
    and check that the items are now created to the biblio
 3. Add now two additional items with one having "A" and other having
    "B" in the "h - Serial Enumeration / chronology" field.
 4. Try sorting and notice the items with publisheddate are being
    sorted and ones without stay in the order they happened to be
 5. Remove the items with publisheddate and notice that now items with
    "A" and "B" get sorted correctly

Signed-off-by: Christian Nelson <christian.nelson@tritonia.fi>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt