From c9b0570864ae7e1a510f918e931d8de85d8309a3 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 19 Sep 2018 06:05:12 +0000 Subject: [PATCH] Bug 21376: Add ability to date sorting in items table on catalogue detail Changes in this patch (page catalogue/detail): - enable sorting by date in items table Signed-off-by: Michal Denar Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 ce1c8634e2..fa6431a3a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -354,7 +354,7 @@ [% IF ( itemdata_ccode ) %]Collection[% END %] Call number Status - Last seen + Last seen Barcode [% IF ( volinfo ) %]Serial enumeration / chronology[% END %] [% IF ( itemdata_uri ) %]URL[% END %] @@ -475,7 +475,7 @@ [% END %] - [% item.datelastseen | $KohaDates %] + [% item.datelastseen | $KohaDates %] [% item.barcode | html %] [% IF ( volinfo ) %] @@ -1101,7 +1101,8 @@ 'bPaginate': false, 'bAutoWidth': false, "aoColumnDefs": [ - { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] } + { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, + { "sType": "title-string", "aTargets" : [ "title-string" ] } ] }; var table = KohaTable(id, dt_parameters, null, 'with_filters'); -- 2.39.5