3 /* load the script library */
4 load_lib('circ/circ_lib.js');
5 load_lib('JSON_v1.js');
6 log_vars('circ_permit_patron');
9 if( isTrue(patron.barred) )
10 result.events.push('PATRON_BARRED');
12 var config = findGroupConfig(patronProfile);
16 var limit = config.maxItemsOut;
18 log_info('patron items out = ' + patronItemsOut +' limit = ' + limit);
19 if( !isTrue(isRenewal) && patronItemsOut >= limit ) {
20 result.events.push('PATRON_EXCEEDS_CHECKOUT_COUNT');
26 log_warn("** profile has no configured information: " + patronProfile);