From 994f3d1eddb335fb4e3672d7bdfba2b6ba22ed33 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 25 Jan 2013 09:57:30 -0500 Subject: [PATCH] Bug 9456 - Add callnumber column to the cart This patch adds call-number sorting to the staff client cart. Sortining is enabled on the 'Items' column which uses a custom sorting routine to sort the callnumbers. If the sort is ascending, each column will be sorted by the highest ordered callnumber for that row. Likewise, if the sort is descending the table will be sorted by the lowest valued callnumber for that row. Signed-off-by: Delaye Stephane Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 102 ++++++++++++++++---- 1 files changed, 84 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index cb1f573..5719c68 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -9,9 +9,35 @@ @import url([% themelang %]/css/print.css); [% ELSE %][% INCLUDE 'doc-head-close.inc' %] + - - +[% INCLUDE 'datatables-strings.inc' %] + @@ -287,15 +356,11 @@ function placeHold () { [% UNLESS ( print_basket ) %] [% END %] Title Item type - Location + Items [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %] - [% IF ( BIBLIO_RESULT.even ) %] - - [% ELSE %] - [% END %] [% UNLESS ( print_basket ) %] @@ -317,14 +382,15 @@ function placeHold () { [% BIBLIO_RESULT.description %] - [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] -

- [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %] - [% IF ( ITEM_RESULT.itemcallnumber ) %] - ([% ITEM_RESULT.itemcallnumber %]) - [% END %] -

- [% END %][% ELSE %]This record has no items.[% END %] + + [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %] + [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] + [% ITEM_RESULT.itemcallnumber %] [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %] + [% END %] + [% ELSE %] + This record has no items. + [% END %] + [% END %] -- 1.7.2.5