Add custom rules here.
----------------------------------------------------------------------------- */
+var circMod = (copy.circ_modifier) ? copy.circ_modifier.toLowerCase() : '';
+
/* statelib has some special circ rules */
if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) {
if(isTrue(copy.ref))
}
-/* and so does OCRL */
-
-if( isOrgDescendent('OCRL', copy.circ_lib.id) && copy.circ_modifier == 'VIDEO') {
- result.durationRule = '7_days_0_renew';
+/* Newton county gives their DVD's for $.10 a day */
+if( isOrgDescendent('NCLS', copy.circ_lib.id) && circMod == 'dvd' )
result.recurringFinesRule = '10_cent_per_day';
-}
checkDurationExceptions();
'art' : {
SIPMediaType : '000',
magneticMedia : 'f',
- durationRule : '3_month_0_renew',
+ durationRule : '3_month_0_renew', /* make me 1 renewal when possible */
recurringFinesRule : '10_cent_per_day',
maxFine : 'overdue_mid'
},
maxFine : 'overdue_mid'
},
-
'e-book' : {
SIPMediaType : '001',
magneticMedia : 'f',
'equipment' : {
SIPMediaType : '000',
magneticMedia : 'f',
+ durationRule : '3_days_1_renew', /* make me 1 day, 0 renewal when possible */
+ recurringFinesRule : '50_cent_per_day',
+ maxFine : 'overdue_mid'
+ },
+
+ 'equip-long' : {
+ SIPMediaType : '000',
+ magneticMedia : 'f',
durationRule : '3_days_1_renew',
recurringFinesRule : '50_cent_per_day',
maxFine : 'overdue_mid'
maxFine : 'overdue_mid'
},
+ 'softwrlong' : {
+ SIPMediaType : '006',
+ magneticMedia : 'f',
+ durationRule : '14_days_2_renew',
+ recurringFinesRule : '10_cent_per_day',
+ maxFine : 'overdue_mid'
+ },
+
'talking book' : {
SIPMediaType : '006',
magneticMedia : 'f',