From 2e6ceb506a2fbe9a25e5086003752a0e7f1c4af4 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. --- .../intranet-tmpl/prog/en/css/staff-global.css | 8 ++ .../intranet-tmpl/prog/en/modules/basket/basket.tt | 105 ++++++++++++++++---- 2 files changed, 93 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 18a4ef2..83b4238 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2548,3 +2548,11 @@ a.disabled { .modal-header .closebtn{margin-top:2px;} .closebtn{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000000;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20);}.closebtn:hover{color:#000000;text-decoration:none;cursor:pointer;opacity:0.4;filter:alpha(opacity=40);} button.closebtn{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;} + +.inline { + display : inline; +} + +.nowrap { + white-space: nowrap; +} 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..90269db 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' %] + @@ -279,23 +347,19 @@ function placeHold () { | Place hold [% END %] - [% END %] +

[% UNLESS ( print_basket ) %][% END %] - + [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %] - [% IF ( BIBLIO_RESULT.even ) %] - - [% ELSE %] - [% END %] [% UNLESS ( print_basket ) %] - + [% END %]
 Title Item typeLocationItems
@@ -317,14 +381,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 %] +
-- 1.7.2.5