From 4766318eb671569403280ad52098817a368e2b2a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 7 Oct 2014 10:01:12 -0400 Subject: [PATCH] Bug 13037 - Staff client cart should exclude articles when sorting by title This patch modifies the configuration of the staff client cart table sorting to enable title sorting to ignore articles. Other column sorting configuration settings are revised to use table header classes instead of indexes. To test, add multiple titles to the staff client cart, choosing several titles which begin with articles ("a," "an," or "the" in English). View the cart and test sorting of all columns. Sorting by title should sort correctly while ignoring articles. Other columns should sort correctly too. Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Passes tests and QA script, works as described. Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 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 39a2a07dc4..278a191e5c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -82,14 +82,15 @@ function batchDelete(){ return false; }); $(".holdsep").text("| "); - $(".hold").text(_("Place Hold")); + $(".hold").text(_("Place hold")); $("#downloadcartc").empty(); $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { "sDom": 't', "aoColumnDefs": [ - { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, - { "aTargets": [ 3 ], "sType": 'callnumbers' }, + { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, + { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, + { "sType": "callnumbers", "aTargets" : [ "callnumbers"] } ], "aaSorting": [[ 1, "asc" ]], "bPaginate": false @@ -321,8 +322,8 @@ function batchDelete(){

- [% UNLESS ( print_basket ) %][% END %] - + [% UNLESS ( print_basket ) %][% END %] + @@ -350,7 +351,7 @@ function batchDelete(){ -
 Title Title Item type Items
[% BIBLIO_RESULT.description %] + [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %] [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
[% ITEM_RESULT.itemcallnumber %] [% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %]
-- 2.39.2