From bbe731bbcf56e13cdb82f2cbcd0471d8a1aab57f 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 --- .../prog/en/modules/virtualshelves/shelves.tt | 44 ++++++++----------- 1 files 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 c02e454..84fb29e 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 %] -- 1.7.2.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 %]