From 95745fb1dd1eb948b0d81e06728004e3b3381913 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Wed, 21 Apr 2021 19:19:07 +0300 Subject: [PATCH] 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 Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index bde528c30d..9cc56af50a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -394,7 +394,11 @@ Note that permanent location is a code, and location may be an authval. [% IF ( itemdata_ccode ) %][% item.ccode | html %][% END %] [% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %] [% IF ( volinfo ) %] - + [% IF ( itemdata_publisheddate ) %] + + [% ELSE %] + + [% END %] [% IF ( itemdata_enumchron ) %] [% IF item.enumchron && item.serialseq %] [% item.enumchron | html %] -- 2.39.5