[open-ils-commits] r526 - conifer/trunk/circ (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 11 17:04:35 EDT 2009
Author: dbs
Date: 2009-06-11 17:04:30 -0400 (Thu, 11 Jun 2009)
New Revision: 526
Modified:
conifer/trunk/circ/circ_permit_copy.js
Log:
Prevent REFERENCE and DEPOSIT (government document) items from circulating, just in case copy location doesn't catch 'em
Modified: conifer/trunk/circ/circ_permit_copy.js
===================================================================
--- conifer/trunk/circ/circ_permit_copy.js 2009-06-10 20:31:41 UTC (rev 525)
+++ conifer/trunk/circ/circ_permit_copy.js 2009-06-11 21:04:30 UTC (rev 526)
@@ -38,8 +38,13 @@
}
}
-if( ! isTrue(copy.circulate) || !isTrue(copy.location.circulate) )
+if( ! isTrue(copy.circulate) ||
+ !isTrue(copy.location.circulate) ||
+ (copy.circ_lib.shortname == 'OSUL' && copy.circ_modifier == 'DEPOSIT') ||
+ (copy.circ_lib.shortname == 'OSUL' && copy.circ_modifier == 'REFERENCE')
+) {
result.events.push('COPY_CIRC_NOT_ALLOWED');
+}
if( ! isTrue(isRenewal) ) {
More information about the open-ils-commits
mailing list