From: erickson Date: Wed, 6 Sep 2006 20:02:44 +0000 (+0000) Subject: added a check for ref on the copy X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8318c9f83b3a2b28f944a03be7fcaf768a36143b;p=Evergreen.git added a check for ref on the copy git-svn-id: svn://svn.open-ils.org/ILS/trunk@6006 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js b/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js index f7ac0f7f73..3310db2c0f 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js +++ b/Open-ILS/src/javascript/backend/circ/circ_permit_hold.js @@ -6,6 +6,9 @@ log_vars('circ_permit_hold'); if( isTrue(patron.barred) ) result.events.push('PATRON_BARRED'); +if( isTrue(copy.ref) ) + result.events.push('ITEM_NOT_HOLDABLE'); + /* projected medium this needs to be expanded to check circ_modifiers as well */