From c0536f390164ede01dd7c53939d647421bf6518c Mon Sep 17 00:00:00 2001 From: Owen Leonard 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. --- .../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 @@ Hold date - Title + Title Call number Item type Barcode 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