added a check for ref on the copy
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 20:02:44 +0000 (20:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 20:02:44 +0000 (20:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6006 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/javascript/backend/circ/circ_permit_hold.js

index f7ac0f7..3310db2 100644 (file)
@@ -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
 */