Extend hold shelf expire date beyond closed dates
authorBill Erickson <berick@esilibrary.com>
Wed, 8 Jun 2011 19:44:37 +0000 (15:44 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 8 Jun 2011 20:38:56 +0000 (16:38 -0400)
commit34906bd225de9752e12d4c85d54ebf3e45012b41
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>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm