Bug 36633 - Support anti-the at REST API level
Summary: Support anti-the at REST API level
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-18 06:44 UTC by Jonathan Druart
Modified: 2024-04-22 14:20 UTC (History)
3 users (show)

See Also:
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 (3.99 KB, patch)
2024-04-22 14:20 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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