[Bug 43925] Search results don't account for canreservefromotherbranches when IndependentBranches is active
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43925 --- Comment #2 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 211183 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211183&action=edit Bug 43925: filter_by_for_hold should respect canreservefromotherbranches Bug 31105 added a check of C4::Context::only_my_library to filter_by_for_hold This made all items from other libraries appear unavailable when calculating holdability for search results This undoes some of the work of 31105 when a library has canreservefromotherbranches set, however, I believe this is the correct behaviour in those instances. While canreservefromotherbranches defaults to true, IndependentBranches defaults to false, a library setting one should make a choice about the other To test: 1 - Enable IndependentBranches and canreservefromotherbranches 2 - Sign in with a librarian with all holds and patrons permissions and catalogue permission 3 - Set 'Default checkout, hold and return policy' to Maximum total holds allowed (count) - 10 Hold policy - from any library Hold and booking pickup library match - any library 4 - Perform a search 5 - Note that a result with items only from a branch that differs from logged in branch say 'No holds allowed' - KO this is wrong 6 - Click on a 'No holds allowed' title 7 - Click the holds tab 8 - Select a patron 9 - You can place holds on the items as expected 10 - Apply these patches 11 - Repeat your search 12 - Confirm you now have a place hold button Assisted-by: Opus 5.5 (Anthropic) -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org