From 2ce1d223d834d027227c996ec1b323346a8f5f48 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 11 Jun 2009 21:04:30 +0000 Subject: [PATCH] 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 --- circ/circ_permit_copy.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) ) { -- 2.11.0