3 /* load the lib script */
4 load_lib('circ_lib.js');
5 log_vars('circ_permit_copy');
9 if( ! isTrue(copy.circulate) )
10 result.events.push('COPY_CIRC_NOT_ALLOWED');
12 if( isTrue(copy.ref) )
13 result.events.push('COPY_IS_REFERENCE');
17 if(copyStatus != 'available' &&
18 copyStatus != 'on holds shelf' && copyStatus != 'reshelving' ) {
19 result.events.push('COPY_NOT_AVAILABLE');
22 /* this should happen very rarely .. but it needs to be protected */
23 if( recDescriptor.item_type == 'g' /* projected medium */
24 && copy.circ_lib != patron.home_ou.id )
25 result.events.push('CIRC_EXCEEDS_COPY_RANGE');