From a7f0033d339a35be4339d64e43b24ee34418a437 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 1 Mar 2013 15:59:00 -0500 Subject: [PATCH] Bug 9456 [Alternate] Add callnumber column to the cart Content-Type: text/plain; charset="utf-8" This patch adds call-number sorting to the staff client cart on a title-by-title basis. Item information (library, shelving location, and call number) is moved to a table nested in each row. Location and call number columns in this table are sortable. The patch converts table sorting to DataTables. The patch does not attempt to make the larger table of titles sortable by call number. To test, add multiple titles to the staff client cart which have multiple items each. The table of titles should still be sortable by title and item type. The table of items in each row should be sortable by location and call number. Rebased on current master. --- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 79 +++++++++++++++----- 1 file changed, 61 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..2ef8772 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -4,14 +4,39 @@ - [% ELSE %][% INCLUDE 'doc-head-close.inc' %] + - - +[% INCLUDE 'datatables-strings.inc' %] + @@ -287,15 +321,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 +347,27 @@ 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 ( BIBLIO_RESULT.ITEM_RESULTS ) %] + + + + + + + [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] + + + + + + [% END %] + +
LocationCall number
[% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %] [% IF ( ITEM_RESULT.itemcallnumber ) %] ([% ITEM_RESULT.itemcallnumber %]) [% END %] -

- [% END %][% ELSE %]This record has no items.[% END %]
+ [% ELSE %]This record has no items.[% END %] + [% END %] -- 1.7.9.5