for PINES, make non-circ items non-holdable
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 16:58:56 +0000 (16:58 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 16:58:56 +0000 (16:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6081 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5dc9b2c..9971b2e 100644 (file)
@@ -9,6 +9,9 @@ if( isTrue(patron.barred) )
 if( isTrue(copy.ref) ) 
        result.events.push('ITEM_NOT_HOLDABLE');
 
+if( !isTrue(copy.circulate) ) 
+       result.events.push('ITEM_NOT_HOLDABLE');
+
 /* projected medium 
        this needs to be expanded to check circ_modifiers as well
 */