From 499117260638132982e4db546105a2af708cf3c6 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Fri, 21 Sep 2012 10:53:03 +0200 Subject: [PATCH] Bug 7873: fixes sort on Title in OPAC basket Signed-off-by: Marc Veron Reproduced wrong title sort without patch. Sort works as expected with patch. Signed-off-by: Kyle M Hall Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- .../opac-tmpl/prog/en/modules/opac-basket.tt | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt index ac4b094266..fbd30c57f3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt @@ -23,10 +23,28 @@ ///),""); + }, + // set type, either numeric or text + type: 'text' +}); + $(document).ready(function() { $("#itemst").tablesorter({ - headers: { 0: { sorter: false },4:{sorter:false}} + headers: { 0: { sorter: false }, 1: {sorter: 'links'}, 4:{sorter:false}} }); $(".cb").click(function(){ enableCheckboxActions(); @@ -367,9 +385,7 @@ function enableCheckboxActions(){ [% END %] - - [% BIBLIO_RESULT.title |html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %] - + [% BIBLIO_RESULT.title |html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %] [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %][% END %][% END %][% END %] -- 2.39.5