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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Jun 2021 10:04:42 +0000 (12:04 +0200)
commit95745fb1dd1eb948b0d81e06728004e3b3381913
treea53fd32988a3d111e2297886a9510a61c0d0b156
parent76960e472e690700ba60bf14208c230e83337871
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>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt