From 6b165b7f81eb453317d851e93b623633aa2f1e29 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
Content-Type: text/plain; charset="utf-8"
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.
---
.../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 5a3d22e..a346184 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
@@ -62,14 +62,15 @@ function placeHold () {
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
@@ -293,8 +294,8 @@ function placeHold () {
- [% UNLESS ( print_basket ) %] | [% END %]
- Title |
+ [% UNLESS ( print_basket ) %] | [% END %]
+ Title |
Item type |
Items |
@@ -322,7 +323,7 @@ function placeHold () {
[% 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 %]
--
1.7.9.5 |