3 /* load the lib script */
4 load_lib('circ/circ_lib.js');
5 log_vars('patron_penalty');
7 var config = findGroupConfig(patronProfile);
11 /* check the fine limit */
12 if( config.fineThreshold >= 0 && patronFines >= config.fineThreshold )
13 result.fatalEvents.push('PATRON_EXCEEDS_FINES');
15 /* check the overdue limit */
16 if( config.overdueThreshold >= 0 && patronOverdueCount >= config.overdueThreshold )
17 result.fatalEvents.push('PATRON_EXCEEDS_OVERDUE_COUNT');
20 log_warn("profile has no configured information: " + patronProfile);