3 load_lib('circ/circ_lib.js');
4 log_vars('circ_permit_hold');
6 if( isTrue(patron.barred) )
7 result.events.push('PATRON_BARRED');
10 result.events.push('ITEM_NOT_HOLDABLE');
13 this needs to be expanded to check circ_modifiers as well
16 var mod = (copy.circ_modifier) ? copy.circ_modifier.toLowerCase() : "";
18 log_info("circ-modifier = "+mod);
21 if( mod == 'bestsellernh' )
22 result.events.push('ITEM_NOT_HOLDABLE');
24 var marcItemType = getMARCItemType();
28 if( ( marcItemType == 'g' ||
29 marcItemType == 'i' ||
30 marcItemType == 'j' ||
31 mod == 'softwrlong' ||
39 isAnc = hasCommonAncestor( copy.circ_lib.id, patron.home_ou.id, 1 );
42 log_info("patron and copy circ_lib share a common ancestor, hold allowed");
46 log_info("patron and copy circ_lib do NOT share a common ancestor, hold on this type of material not allowed");
47 result.events.push('ITEM_NOT_HOLDABLE');