3 /* load the lib script */
4 load_lib('circ/circ_lib.js');
5 log_vars('circ_permit_copy');
8 if( ! isTrue(copy.circulate) )
9 result.events.push('COPY_CIRC_NOT_ALLOWED');
12 if( ! isOrgDescendent( 'STATELIB', copy.circ_lib.id ) ) {
13 if( isTrue(copy.ref) )
14 result.events.push('COPY_IS_REFERENCE');
19 if(copyStatus != 'Available' &&
20 copyStatus != 'On holds shelf' && copyStatus != 'Reshelving' ) {
21 result.events.push('COPY_NOT_AVAILABLE');
25 /* this should happen very rarely ..
26 but it should at least require an override */
29 if( getMARCItemType() == 'g'
30 && copy.circ_lib.id != patron.home_ou.id )
31 result.events.push('CIRC_EXCEEDS_COPY_RANGE');