Bug 40335

Summary: Holds queue does not allow multiselect
Product: Koha Reporter: Donna <bwsdonna>
Component: Hold requestsAssignee: Lucas Gass (lukeg) <lucas>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: andrew, flaterdavid, gmcharlt, laura, lisette, lucas, tomascohen
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Small patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40335: Add ability to multi select collections and locations for holds queue
Bug 40335: Add ability to multi select collections and locations for holds queue
Bug 40335: Add ability to multi select collections and locations for holds queue
Bug 40335: Fix mistake in template params
Bug 40335: Fix mistake in template params
Bug 40335: Fix mistake in template params
Bug 40335: Add ability to multi select collections and locations for holds queue
Bug 40335: Fix mistake in template params
Bug 40335: (follow-up) Fix style of Select2 in sidebar

Description Donna 2025-07-09 21:02:12 UTC
It would be incredibly helpful if on the holds queue staff would be able to multi-select entries in the collection and shelving location dropdowns.  Many libraries need to generate a list that contains multiple areas and are unable to do it within Koha.  Their only option is to export and use a spreadsheet which takes extra time to do something that should be able to be done within the ILS.
Comment 1 Lucas Gass (lukeg) 2025-07-09 23:01:34 UTC Comment hidden (obsolete)
Comment 2 Lucas Gass (lukeg) 2025-07-09 23:07:00 UTC Comment hidden (obsolete)
Comment 3 Lucas Gass (lukeg) 2025-07-09 23:09:27 UTC
I only did the collection and shelving location dropdowns because that is what was reported. 

I was not sure about branches or item types. 

Also, if you make no selection for shelf locations or collection codes it is the same as doing a search on 'All'. Should we add a hint about that below the selection box?
Comment 4 Lucas Gass (lukeg) 2025-07-10 02:27:33 UTC Comment hidden (obsolete)
Comment 5 Lucas Gass (lukeg) 2025-07-10 02:32:02 UTC Comment hidden (obsolete)
Comment 6 Lucas Gass (lukeg) 2025-07-10 02:35:46 UTC Comment hidden (obsolete)
Comment 7 Andrew Fuerste-Henry 2025-07-21 13:55:34 UTC
Once I've used the multi-select to limit by ccode and/or shelving location, if I clear those filters and click Submit again without first reloading the page I get an erroneous NULL search result.
Comment 8 Andrew Fuerste-Henry 2025-07-21 14:56:31 UTC
On second look, I cannot recreate this issue. Setting back to NSO.
Comment 9 David Flater 2025-07-21 22:22:30 UTC Comment hidden (obsolete)
Comment 10 Owen Leonard 2025-07-22 13:20:45 UTC
Created attachment 184480 [details] [review]
Bug 40335: Add ability to multi select collections and locations for holds queue

To test:
0. APPLY PATCH and restart_all
1. Place some holds with different shelving locations and collection
   codes.
2. Build the holds queue
3. Go to Circulation > Holds queue
4. Notice that shelfing location and collection code are now multi
   select2 dropdowns
5. Try searching for various combos of shelfing locations and collection
   codes.
6. Make sure the results are correct.
7. After making selections and running the search make sure your
   selections are retained in the search form in the left nav bar

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 11 Owen Leonard 2025-07-22 13:20:48 UTC
Created attachment 184481 [details] [review]
Bug 40335: Fix mistake in template params

Signed-off-by: David Flater <flaterdavid@gmail.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 12 Owen Leonard 2025-07-22 13:20:51 UTC
Created attachment 184482 [details] [review]
Bug 40335: (follow-up) Fix style of Select2 in sidebar

This patch adjusts the style of the Select2 field in the sidebar. It
should have 100% width and the selections should word-wrap.