[Koha-bugs] [Bug 30860] Add option for CanBookBeReserved to return all item values
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 7 19:29:39 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30860
--- Comment #7 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 144482
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144482&action=edit
Bug 30860: Return all items from CanBookBeReserved on request.pl
This patch requests all item values from CanBookBeReserved on request.pl
Before this we either:
- Looped every item to find out that book could not be reserved
- Looped until we found an item that could be reserved, then looped all items
to get statuses
In the worst case we avoid double processing a single item, in the best case we
avoid double
processing all items (if only last on record is holdable)
To test:
1 - Find a record in staff client with several items
2 - Set AllowHoldsOnDamagedItems to 'Dont allow'
3 - Add a damaged item to record
4 - Set a hold rule to only allow holds form homebranch and ensure record has
items from other branches
5 - Setup things to prevent more items from being held
6 - Attempt hold for patron
7 - Note item statuses
8 - Apply patch
9 - Confirm statuses are as they were before
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list