Bug 36633

Summary: Support anti-the at REST API level
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: In Discussion --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: lucas, martin.renvoize, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35560
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 36633: Add anti-the support

Description Jonathan Druart 2024-04-18 06:44:08 UTC
Coming from bug 35560.

If we migrate UI tables to DT using the REST API we need support the anti-the sorting type.
Comment 1 Jonathan Druart 2024-04-18 06:44:58 UTC
Martin, Tomas, did you think about that already?
Comment 2 Martin Renvoize (ashimema) 2024-04-19 23:37:19 UTC
Not thought about this at all yet, but it's a really sensible question.  I'll at as RT to ponder it.
Comment 3 Jonathan Druart 2024-04-22 14:20:06 UTC
Created attachment 165306 [details] [review]
Bug 36633: Add anti-the support
Comment 4 Jonathan Druart 2024-04-22 14:20:56 UTC
Patch for discussion (to apply on top of bug 35560)

It is suggesting to add a "modifier" to the order by attribute:
  +biblio.title/anti-the
the remove a, an, the.

Would that work? It's not really nice but I do not find something better for now.

TODO:
* tests
* escape $param (see FIXME)
* translatability of the stopwords