Alert or block holds on available copy at same pickup lib
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 18 Jul 2011 17:40:17 +0000 (13:40 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 20 Jul 2011 18:39:37 +0000 (14:39 -0400)
commitb5faf24548547b8fb535a0a66531f59d37986d07
treef6248a9c8457e071fcc7dd26b412dcf8290bc206
parent383cca99764955ef777f504342a03628f5acf179
Alert or block holds on available copy at same pickup lib

This improves upon the earlier commit that attempted to deal with what
to do when either of these org_unit settings are true:

     circ.holds.hold_has_copy_at.alert
     circ.holds.hold_has_copy_at.block

The correct use of these settings are that when /any/ type of hold is
attempted at a given pickup lib, if either of those settings are true in
the context of said pickup lib, and there are copies in an available
status at the pickup lib already, inform the user before placing the
hold.  In the alert case, the user can place the hold anyway with
another click.  In the block case, there's an end on't.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/web/templates/default/opac/parts/place_hold.tt2