Bugzilla – Attachment 32039 Details for
Bug 13037
Staff client cart should exclude articles when sorting by title
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13037 - Staff client cart should exclude articles when sorting by title
Bug-13037---Staff-client-cart-should-exclude-artic.patch (text/plain), 3.13 KB, created by
Owen Leonard
on 2014-10-07 14:10:53 UTC
(
hide
)
Description:
Bug 13037 - Staff client cart should exclude articles when sorting by title
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-10-07 14:10:53 UTC
Size:
3.13 KB
patch
obsolete
>From 6b165b7f81eb453317d851e93b623633aa2f1e29 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 () { > </p> > <table id="itemst"> > <thead><tr> >- [% UNLESS ( print_basket ) %]<th> </th>[% END %] >- <th>Title</th> >+ [% UNLESS ( print_basket ) %]<th class="NoSort"> </th>[% END %] >+ <th class="anti-the">Title</th> > <th>Item type</th> > <th><a id="items-popover" href="#" data-trigger="hover" data-toggle="popover" data-placement="top" title="Item sorting" data-content="Items are sorted by the highest or lowest callnumber in a group of items respectively.">Items</a></th> > </tr></thead> >@@ -322,7 +323,7 @@ function placeHold () { > > </td> > <td>[% BIBLIO_RESULT.description %]</td> >- <td> >+ <td class="callnumbers"> > [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %] > [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] > <div><span class="nowrap"><strong><span class="callnumber">[% ITEM_RESULT.itemcallnumber %]</span></strong> [% ITEM_RESULT.branchname %] <span class="shelvingloc inline">[% ITEM_RESULT.location_description %]</span></span></div> >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13037
:
32039
|
32319
|
32473