Bug 33801 - Holds API doesn't follow holds policies like the staff/OPAC UIs
Summary: Holds API doesn't follow holds policies like the staff/OPAC UIs
Status: RESOLVED DUPLICATE of bug 30845
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-23 06:56 UTC by David Cook
Modified: 2025-05-14 07:40 UTC (History)
4 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2023-05-23 06:56:53 UTC
The Holds API let you place multiple holds against the same item, while the OPAC and Staff Interface will prevent you from placing a hold on the same item for the same patron twice.
Comment 1 Tomás Cohen Arazi (tcohen) 2025-05-13 12:51:30 UTC
Does this still apply? Look:

https://git.koha-community.org/Koha-community/Koha/src/commit/efc39ed8ef583258a8cf8ea7f6da142995d0bc4b/Koha/REST/V1/Holds.pm#L91

Rules can only be overridden if the syspref is enabled, and the API is sent the `x-koha-override` header with the right value.
Comment 2 Arthur Suzuki 2025-05-14 07:40:16 UTC
Hi Thomas,
I think David is speaking about something else,
Some of the controls are wrongly implemented into the pl files instead of centralized in C4/Reserves.pm.
This creates inconsistencies in how the controls are done depending of how a reservation is made, from the interface or ILS-DI or API.
If I understand David right, I think this ticket is a duplicate of this omnibus bug : 30845.
Best,
Arthur

*** This bug has been marked as a duplicate of bug 30845 ***