From e9835e1cbe41296030a64b8b5fa2b3eb1056d4dd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 19 Apr 2021 18:29:31 +0000 Subject: [PATCH] Bug 28171: Serial enumeration / chronology sorting is broken in biblio page This patch updates the bibliographic detail page so that the "Serial enumeration/chronology" column is sorted by published date only if a published date is present. To test, apply the patch and locate a bibliograhpic record for a subscription that has multiple items. On the bibliographic detail page, confirm that the "Serial enumeration/chronology" column sorts correctly. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 90000082c5..c3f6f50f97 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -390,7 +390,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 ( item.publisheddate ) %] + + [% ELSE %] + + [% END %] [% IF ( itemdata_enumchron ) %] [% IF item.enumchron && item.serialseq %] [% item.enumchron | html %] @@ -407,7 +411,6 @@ Note that permanent location is a code, and location may be an authval. ([% item.publisheddate | $KohaDates %]) [% END %] [% END %] - [% END %] -- 2.11.0