[Koha-bugs] [Bug 24841] REST API should check if patron is restricted/debarred

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 14 13:02:32 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24841

--- Comment #10 from Arthur Suzuki <arthur.suzuki at biblibre.com> ---
(In reply to mathieu saby from comment #9)
> Hi
> My library is planning to use the holds API to mimic the behavior of the
> OPAC, and the current behavior is problematic.
> 
> What about a new parameter to define the "context" of the action
> (?context=staff vs ?context=opac ) ?

Hi Mathieu,
I totally agree with you.
Moreover, this is what I've implemented in another bug I've been working on :
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25408

This one was for ILS-DI but some circulation rules are dependent of the context
by design
(opacitemholds especially).

So, we need a way to set C4::Context->interface from API calls.

I think this new parameter should be optional so as not to break any existing
software that use this API.
What do you think the default behavior should be if parameter is not set? Opac
or Staff?
I would recommend Opac since it is more restrictive.
Arthur

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list