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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-07-26 12:25:11 +00:00 committed by Tomas Cohen Arazi
parent 4fb49407dd
commit 365121cae2
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 1 deletions

View file

@ -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>

View file

@ -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 ) {