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:39:11 +0000 (16:39 -0400)
commiteec4e4cf061b916852ab01837a46485305d6cc0f
tree022b4c2ea48768638866090023ed1fc556fd3412
parent5ce213dcb221fd7e776fdcf28a1afc45c7bf4a88
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