From 98d8e1609af181fdfc05d748e27ac24f984b22e8 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 --- .../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 489a76a621..1a574a667d 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(); @@ -368,9 +386,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