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