Bug 41313

Summary: When querying for available pickup locations for a biblio, invalid choices are provided
Product: Koha Reporter: Arthur Suzuki <arthur.suzuki>
Component: Hold requestsAssignee: Arthur Suzuki <arthur.suzuki>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, lisette, tomascohen
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Arthur Suzuki 2025-11-26 14:16:59 UTC
When branch transfer limits are in use, the call to /biblios/[id]/pickup_locations gives available pickup locations for all items, regardless of the holdability of the items.
This can lead to have wrong choices provided by the api.
Since reserve/request.pl also rely on the api to display the available pickup location this can lead to show record-level hold as possible with some available pickup locations although no items are available due to branch transfer limits.