https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23909 --- Comment #38 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 197942 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197942&action=edit Bug 23909: Add AllowHoldCheckoutOverride for staff circulation Introduce a new AllowHoldCheckoutOverride system preference (default 1 to preserve existing behaviour) that lets libraries prevent staff from overriding held-item blockers at the circulation desk. When AllowHoldCheckoutOverride is set to 0, CanBookBeIssued still returns the hold-related keys (RESERVED, RESERVE_WAITING, TRANSFERRED and PROCESSING) in the confirmation hash, but circ/circulation.pl promotes them to the impossible hash before rendering the template. This means no override button appears, and checkout of the held item is refused outright with a clear message explaining which patron the hold is for. Matching entries have been added to the IMPOSSIBLE block of the circulation template so the blocked-checkout message is meaningful. This sits alongside the existing Allow*Override family (AllowTooManyOverride, AllowNotForLoanOverride, AllowHoldPolicyOverride and AllowRenewalOnHoldOverride) and uses the same staff-only semantics. Test plan: 1. Set AllowHoldCheckoutOverride=1 (default). Place a waiting hold for patron A on an item. At /cgi-bin/koha/circ/circulation.pl attempt to check the item out to patron B: a confirmation dialog appears with "Check out anyway" override buttons. 2. Set AllowHoldCheckoutOverride=0. Repeat: checkout is refused with a message stating the item has been waiting for patron A. No override button is offered. 3. Repeat with pending holds (reserves.found IS NULL), items in transit and items being processed: each is refused when the preference is 0 and offered as an overridable confirmation when the preference is 1. Signed-off-by: Kristi Krueger <kkrueger@cuyahogalibrary.org> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.