From 892034aa8142af0b89d57ca7c8ef3717eae07ea3 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 (cherry picked from commit f0c58df12e7bb7e9a42abf52cc113dcb85c8002f) Solved Conflicts: koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt Signed-off-by: Bernardo Gonzalez Kriegel (cherry picked form commit f0c58df12e7bb7e9a42abf52cc113dcb85c8002f) --- .../prog/en/modules/virtualshelves/shelves.tt | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 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 746441cc59..06d7395387 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,28 +218,20 @@ 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