]> git.evergreen-ils.org Git - working/Evergreen.git/commit
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)
committerBen Shum <bshum@biblio.org>
Tue, 18 Dec 2012 05:57:15 +0000 (00:57 -0500)
commit9cf053f05c4996c75760f39fe812b5b851aca4a3
tree48c143bdc0602d6e7b79308b1520982a4a6cece4
parent3b5a7dcf0f763f4665db74e7185813d221554deb
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>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm