Bug 39083

Summary: Fix title sorting on list of tagged titles
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Pushed to main --- QA Contact: Katrin Fischer <katrin.fischer>
Severity: enhancement    
Priority: P5 - low CC: phil
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.05.00
Circulation function:
Bug Depends on: 26553    
Bug Blocks:    
Attachments: Bug 39083: Fix title sorting on list of tagged titles
Bug 39083: Fix title sorting on list of tagged titles
Bug 39083: Fix title sorting on list of tagged titles

Description Owen Leonard 2025-02-10 19:30:51 UTC
In the staff interface under Tools -> Tags, when you click a term you can see a list of the titles with that tag. Titles on that page should ignore articles when sorting.
Comment 1 Owen Leonard 2025-02-10 19:40:07 UTC
Created attachment 177710 [details] [review]
Bug 39083: Fix title sorting on list of tagged titles

This patch adds the "anti-the" class to the title column on the tagged
titles page. This allows DataTables to ignore articles when sorting.

To test you should add the same tag to multiple titles.

In the staff interface, go to Tools -> Tags, and click a term which has
been added to multiple titles.

In the list of titles, test title sorting. Articles like "a", "an", and
"the" should be ignored when sorting.

Sponsored-by: Athens County Public Libraries
Comment 2 Owen Leonard 2025-02-12 17:43:42 UTC
Created attachment 177955 [details] [review]
Bug 39083: Fix title sorting on list of tagged titles

This patch adds the "anti-the" class to the title column on the tagged
titles page. This allows DataTables to ignore articles when sorting.

To test you should add the same tag to multiple titles.

In the staff interface, go to Tools -> Tags, and click a term which has
been added to multiple titles.

In the list of titles, test title sorting. Articles like "a", "an", and
"the" should be ignored when sorting.

Sponsored-by: Athens County Public Libraries
Comment 3 Phil Ringnalda 2025-03-15 19:56:46 UTC
Created attachment 179364 [details] [review]
Bug 39083: Fix title sorting on list of tagged titles

This patch adds the "anti-the" class to the title column on the tagged
titles page. This allows DataTables to ignore articles when sorting.

To test you should add the same tag to multiple titles.

In the staff interface, go to Tools -> Tags, and click a term which has
been added to multiple titles.

In the list of titles, test title sorting. Articles like "a", "an", and
"the" should be ignored when sorting.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Comment 4 Katrin Fischer 2025-05-07 12:31:15 UTC
Pushed for 25.05!

Well done everyone, thank you!