Use circ lib for finding nearest hold on renew user/tsbere/nearest_permitted_opac_renewal
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 8 Mar 2012 14:25:22 +0000 (09:25 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Thu, 8 Mar 2012 14:25:22 +0000 (09:25 -0500)
commit14c791f89438d123cb8e661c4dcfcde6a47d3a4d
tree35931d7832374ee70095c1ce3953067e24822384
parentc694929e4ba58ecf13e5903624ec6c784c37f439
Use circ lib for finding nearest hold on renew

This solves problems with the following situation:
    Re-use circ library for opac renewals
    Block renew if item is needed for holds
    Item is age protected
    Patron with item has home library outside of the protect range
    Patron's home library has 10+ holds the item matches

The end result is 10 holds are looked at, skipped due to age protection, and
the system decides "nope, not needed for a hold".

This does not help if the patron shows up in person at their home library,
nor does it help when not re-using the original circ library for OPAC
renewals.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm