3 var patron = environment.patron;
4 var title = environment.title;
5 var copy = environment.copy;
6 var volume = environment.volume;
7 var title = environment.title;
8 var requestor = environment.requestor;
9 var requestLib = environment.requestLib;
10 var titleDescriptor = environment.titleDescriptor;
12 log_debug('circ_permit_hold: permit circ on ' +
14 ', Patron:' + patron.id +
15 ', Patron Username:' + patron.usrname +
16 ', Patron Library: ' + patron.home_ou.name +
17 ', Copy location: ' + copy.location.name +
18 ', Item Type: ' + titleDescriptor.item_type +
19 ', Item Form: ' + titleDescriptor.item_form +
20 ', Item Lang: ' + titleDescriptor.item_lang +
21 ', Item Audience: ' + titleDescriptor.audience +
28 if( titleDescriptor.item_type == 'g' /* projected medium */
29 && copy.circ_lib != patron.home_ou.id )
30 return result.event = 'CIRC_EXCEEDS_COPY_RANGE';
33 return result.event = 'SUCCESS';