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

--- Comment #9 from Biblibre Sandboxes <[email protected]> ---
Created attachment 203869
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203869&action=edit
Bug 39977: Prevent placing holds on items already checked out to a patron

AllowHoldsOnPatronsPossessions currently only offers Allow or Don't
Allow at the bibliographic level. When set to Allow, it is possible
to place an item-level hold on the specific item a patron already has
checked out, which is nonsensical.

This patch adds a third option: allow holds on the bibliographic
record (so other copies remain holdable), but block placing a hold
on the specific item the patron already has checked out.

Steps to follow:
1. Check out Item A (copy 1 of a bib) to a patron, and ensure a
   second copy (Item B) exists on the same bib.
2. Log in as that patron and open the hold request page for the bib.
3. Set AllowHoldsOnPatronsPossessions = 'allow holds on any item'.
   Note that a hold on Item A can be placed.
4. Apply this patch and restart Plack.
5. Set AllowHoldsOnPatronsPossessions = 'allow holds on other items only'.
6. Verify that Item A is now blocked with 'Item is checked out to
   this patron'.
7. Verify that Item B can still be placed on hold.
8. Verify that AllowHoldsOnPatronsPossessions = 'allow holds on any
   item' still allows holds on Item A (no regression).
9. Verify that AllowHoldsOnPatronsPossessions = 'do not allow holds'
   still blocks all holds on the bib (no regression).

Signed-off-by: Adolfo Rodríguez <[email protected]>
Signed-off-by: Anneli <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to