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)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 18 Jul 2011 17:40:17 +0000 (13:40 -0400)
commit777679e17299dcdcc135d493a2a9987c9357d9ff
treeae7d9dbc9dfb7f48c0b867a20f327a3440377b35
parent80719637f3bb1e61c24ddc0f2f6001dd9fa4392e
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