Bug 27100

Summary: No way to get the holds count on an item from ILS-DI?
Product: Koha Reporter: Arthur Suzuki <arthur.suzuki>
Component: Web servicesAssignee: Arthur Suzuki <arthur.suzuki>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: blawlor
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Arthur Suzuki 2020-11-26 12:20:30 UTC
ILS-DI GetRecord service shows up the number of issues for an item but it may be nice as well to provide the number of holds waiting.
Needed for portal softwares which allows to place a holds.
(Users may want to know if the hold might be available quick or not)
Comment 1 Brendan Lawlor 2024-06-24 20:39:52 UTC
This might not be exactly the same, but with GetRecords and a bib id you can make a call like:
https://{domain}/cgi-bin/koha/ilsdi.pl?service=GetRecords&id={bib#}

The response includes a <reserves> element with a <reserve> for each hold. Each <reserve> contains <found> with a code 'W' indicate hold waiting for pickup. 'T' indicates in transit.
Comment 2 Arthur Suzuki 2025-01-16 13:05:53 UTC
Hello Brendan,
Thank you for your reply, this fixes my issue :)
Best,
Arthur