Return calculated value for SIP recall_ok test user/berick/sip-recall-ok-flag
authorBill Erickson <berick@esilibrary.com>
Wed, 26 Dec 2012 15:29:30 +0000 (10:29 -0500)
committerBill Erickson <berick@esilibrary.com>
Wed, 13 Mar 2013 17:21:03 +0000 (13:21 -0400)
commita209501f62cb3542ebc81b1784a3c9d90c34e997
tree7777fc8decd77fb275d0622e26a178329f7889ab
parent0483dc441e97873b48f8f72595cc577bc1ac9015
Return calculated value for SIP recall_ok test

Determine the value for the "recall OK" testing for patron information
requests the same we we determine the value for ciruclations and holds.
Previously, the recall-OK test always returned false, presumably since
recalls are not currently supported in Evergreen SIP.

Note that like holds and circs, we determine whether a user has good
standing based on the users penalties and whether the user is active /
non-barred.  Though we could in some cases, we are not checking whether
the user has the required permission to perform specific tasks.

This feature is enabled via a new oils_sip.xml configuration option:

<option name='patron_calculate_recal_ok' value='true' />

This option is disabled by default.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/oils_sip.xml.example
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm