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