From: dbs Date: Thu, 11 Jun 2009 21:04:30 +0000 (+0000) Subject: Prevent REFERENCE and DEPOSIT (government document) items from circulating, just... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2ce1d223d834d027227c996ec1b323346a8f5f48;p=contrib%2FConifer.git Prevent REFERENCE and DEPOSIT (government document) items from circulating, just in case copy location doesn't catch 'em git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@526 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/circ/circ_permit_copy.js b/circ/circ_permit_copy.js index 6b95ccc05c..8eac0e639f 100644 --- a/circ/circ_permit_copy.js +++ b/circ/circ_permit_copy.js @@ -38,8 +38,13 @@ if (patron.home_ou.id != copy.circ_lib.id) { } } -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) ) {