Bugzilla – Attachment 154135 Details for
Bug 34402
Sorting holds on patron account includes articles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34402: Sorting holds on patron account includes articles
Bug-34402-Sorting-holds-on-patron-account-includes.patch (text/plain), 2.37 KB, created by
Katrin Fischer
on 2023-08-01 20:47:57 UTC
(
hide
)
Description:
Bug 34402: Sorting holds on patron account includes articles
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-08-01 20:47:57 UTC
Size:
2.37 KB
patch
obsolete
>From b05954363d06d29242880f092e8809c691b369ed Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 26 Jul 2023 12:25:11 +0000 >Subject: [PATCH] Bug 34402: Sorting holds on patron account includes articles > >This patch adds some configuration to the table of holds shown on the >checkout and patron detail pages so that sorting by title correctly >excludes articles. > >To test, apply the patch and clear your browser cache. > >- Check out to a patron who has multiple holds on titles which include > leading articles like "a" "an" and "the." >- Click the holds tab and click the "title" column to sort by title. > - The titles should be correctly sorted alphabetically while ignoring > articles. > >Signed-off-by: Sam Lau <samalau@gmail.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/includes/patron-detail-tabs.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/holds.js | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >index 0d5c4c740a..fa6ff2f34f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >@@ -143,7 +143,7 @@ > <thead> > <tr> > <th>Hold date</th> >- <th>Title</th> >+ <th class="anti-the">Title</th> > <th>Call number</th> > <th>Item type</th> > <th>Barcode</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index 0b223bf302..01538ebc31 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js >@@ -314,6 +314,9 @@ $(document).ready(function() { > "bPaginate": false, > "bProcessing": true, > "bServerSide": false, >+ "aoColumnDefs": [ >+ { "type": "anti-the", "targets": [ "anti-the" ] } >+ ], > "ajax": { > "url": '/cgi-bin/koha/svc/holds', > "data": function ( d ) { >-- >2.30.2
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 34402
:
153892
|
153923
|
154129
| 154135