Bug 41047 - Current library and home library sort by code instead of description
Summary: Current library and home library sort by code instead of description
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Lucas Gass (lukeg)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-17 16:25 UTC by Lucas Gass (lukeg)
Modified: 2026-01-22 16:28 UTC (History)
5 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This patch fixes a problem where holdings were not sorting correctly by the branchname. With this patch the 'Current library' and 'Home library' columns now sort correctly on the description/library name instead of on the branchcode.
Version(s) released in:
26.05.00
Circulation function:


Attachments
Bug 41047: (follow-up) Fix errors in letter.tt (1.48 KB, patch)
2025-10-20 20:52 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 41047: Sort libraries by description instead of code (1.56 KB, patch)
2026-01-06 09:10 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41047: Sort libraries by description instead of code (1.60 KB, patch)
2026-01-06 12:20 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 41047: Sort libraries by description instead of code (1.66 KB, patch)
2026-01-20 16:14 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-10-17 16:25:00 UTC
To recreate: 

1. Find or create a record with items from multiple home/holding libraries. 
2. Attempt to sort by either Current library and Home library
3. Notice that they sort by code instead of description.
Comment 1 Lucas Gass (lukeg) 2025-10-20 20:52:07 UTC
Created attachment 188175 [details] [review]
Bug 41047: (follow-up) Fix errors in letter.tt
Comment 2 Jonathan Druart 2026-01-06 09:10:33 UTC
Created attachment 190918 [details] [review]
Bug 41047: Sort libraries by description instead of code

On the holdings tables the libraries are sorted by code, we should sort
them by description.
Comment 3 Jonathan Druart 2026-01-06 09:10:40 UTC
This seems to work correctly in my test and I have not found regressions on the other DT's features. Can you have a try please?
Comment 4 Owen Leonard 2026-01-06 12:20:31 UTC
Created attachment 190926 [details] [review]
Bug 41047: Sort libraries by description instead of code

On the holdings tables the libraries are sorted by code, we should sort
them by description.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 5 Lucas Gass (lukeg) 2026-01-20 16:14:42 UTC
Created attachment 191714 [details] [review]
Bug 41047: Sort libraries by description instead of code

On the holdings tables the libraries are sorted by code, we should sort
them by description.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 6 Lucas Gass (lukeg) 2026-01-22 16:28:01 UTC
Nice work everyone!

Pushed to main for 26.05