Extend hold shelf expire date beyond closed dates collab/berick/hold_shelf_expire_pad
authorBill Erickson <berick@esilibrary.com>
Wed, 8 Jun 2011 19:44:37 +0000 (15:44 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 8 Jun 2011 19:44:37 +0000 (15:44 -0400)
commit69fce080ecb6b80aaf254ec98ee2666589871830
tree400d9cc26a7b12d2d2ba721e1df1b5f7e4b49b51
parentb8d2f78e65ba682053122143eca24f45799480d9
Extend hold shelf expire date beyond closed dates

If the shelf_expire_time on a hold would land on a closed date for the
pickup library, push the expire time out to just beyond the close date
range, similar to the circulation due date overlap logic.

In the current iteration, the time component of the date is pushed out
to the end of the day (23:59:59).  If this is not generally the desired
behavior, an org setting could be added to bypass this step so that the
time matches "now" (i.e. capture time) instead.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm