Add calculate_expire_time helper function to Holds.pm.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 14 Nov 2012 16:27:53 +0000 (11:27 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 14 Nov 2012 19:21:52 +0000 (14:21 -0500)
commit3f3114e6016386b94597ebe84cf28b86c9b06007
tree21b57a6d5de98d90dd191da14a6c2d77156e6278
parenta510c5a616598674b747e9b6894870874df58eea
Add calculate_expire_time helper function to Holds.pm.

This new function calculates an expire_time for a hold based on the hold
expiration interval setting for a passed in org_unit. If the setting is found
the interval is added to "now" and returned as an ISO8601 string. undef is
returned if the setting is not found for the org_unit or its ancestors.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm