now all STATELIB items are holdable regardless of type
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Oct 2006 17:34:27 +0000 (17:34 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Oct 2006 17:34:27 +0000 (17:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6520 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 8aa54bc..8d9cdc3 100644 (file)
@@ -12,9 +12,8 @@ if( isTrue(copy.ref) )
 if( !isTrue(copy.circulate) ) 
        result.events.push('ITEM_NOT_HOLDABLE');
 
-/* projected medium 
-       this needs to be expanded to check circ_modifiers as well
-*/
+/* all STATELIB items are holdable regardless of type */
+if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) return;
 
 var mod = (copy.circ_modifier) ? copy.circ_modifier.toLowerCase() : "";
 
@@ -24,21 +23,8 @@ if( mod == 'bestsellernh' )
        result.events.push('ITEM_NOT_HOLDABLE');
 
 var marcItemType = getMARCItemType();
-
-
-/* some STATELIB items can have holds placed on them from anywhere */
-if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) {
-       if(     mod == 'dvd-long'               || 
-                       mod == 'video-long'     || 
-                       mod == 'audiobook'      || 
-                       mod == 'microform' ) {
-               log_info("STATELIB 'AV' item is holdable");
-               return;
-       }
-}
-
-
 var isAnc;
+
 if( ( marcItemType == 'g' || 
                marcItemType == 'i' || 
                marcItemType == 'j' ||