HomeEvergreen: Basic System Admin FunctionsCirculation PoliciesRenews Should Be Blocked For Items With Holds

5.1. Renews Should Be Blocked For Items With Holds

In the /openils/var/circ/circ_permit_renew.js script, add,

 

log_info("permit_renew searching for potential holds for copy " + copy.barcode)
var hold = copy.fetchBestHold();
if( hold ) {
log_info("hold found for renewal item, checking hold->usr..");
log_info("hold = " + hold + "  hold.usr = " + hold.usr + "   patron.id = " + patron.id);
if( hold.usr != patron.id ) {
result.events.push('COPY_NEEDED_FOR_HOLD');
}
}

System also may need to have Circulate.pm patched.

See Evergreen trunk revision r13249 http://svn.open-ils.org/trac/ILS/changeset/13249 for current patch. There was an issue with the way events were called, so without this change the system will ignore the events.push above.

 

--Steve Callender 1/12/10

This page was: Helpful | Not Helpful