From f0c58df12e7bb7e9a42abf52cc113dcb85c8002f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 7 Mar 2013 13:30:27 -0500 Subject: [PATCH] Bug 9458 - Add sorting to lists - QA Followup 4 Signed-off-by: Jared Camins-Esakov --- .../prog/en/modules/virtualshelves/shelves.tt | 44 ++++++++----------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index c02e454c6f..84fb29e0f3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -204,7 +204,13 @@ function placeHold () {

[% END %] - [% IF direction == 'asc' %][% SET new_direction = 'desc' %][% ELSE %][% SET new_direction = 'asc' %][% END %] + [% IF direction == 'asc' %] + [% SET new_direction = 'desc' %] + [% ELSE %] + [% SET direction = 'desc' %] + [% SET new_direction = 'asc' %] + [% END %] +
[% pagination_bar %]
@@ -212,41 +218,29 @@ function placeHold () { [% UNLESS ( item_level_itypes ) %][% END %] -- 2.39.5
Item type - Title + Title [% IF sort == 'title' %] - [% IF direction == 'asc' %] - - [% ELSIF direction == 'desc' %] - - [% END %] + [% ELSE %] [% END %] - Author + Author [% IF sort == 'author' %] - [% IF direction == 'asc' %] - - [% ELSIF direction == 'desc' %] - - [% END %] - [% ELSE %] - - [% END %] + + [% ELSE %] + + [% END %] Date added - Call number + Call number [% IF sort == 'itemcallnumber' %] - [% IF direction == 'asc' %] - - [% ELSIF direction == 'desc' %] - - [% END %] - [% ELSE %] - - [% END %] + + [% ELSE %] + + [% END %]