From: erickson Date: Mon, 27 Nov 2006 16:18:03 +0000 (+0000) Subject: already added to rel-1_0, added some logging and fixed statelib book rule X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=06e084b332a490964c3c732fd208a33fb7e34e2a;p=evergreen%2Fpines.git already added to rel-1_0, added some logging and fixed statelib book rule git-svn-id: svn://svn.open-ils.org/ILS/trunk@6613 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/backend/circ/circ_duration.js b/Open-ILS/src/javascript/backend/circ/circ_duration.js index bfa58d475c..3c3801b7f1 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_duration.js +++ b/Open-ILS/src/javascript/backend/circ/circ_duration.js @@ -46,10 +46,9 @@ if( config ) { var circMod = (copy.circ_modifier) ? copy.circ_modifier.toLowerCase() : ''; -/* statelib has some special circ rules */ - - if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) { + if( circMod == 'book' ) + result.durationRule = '35_days_1_renew'; if(isTrue(copy.ref)) result.durationRule = '14_days_2_renew'; @@ -61,12 +60,15 @@ else if( isOrgDescendent('LEE', copy.circ_lib.id) && circMod == 'video' ) else if( isOrgDescendent('ECGR', copy.circ_lib.id) && circMod == 'video' ) result.recurringFinesRule = '50_cent_per_day'; + +else if( isOrgDescendent('OHOOP', copy.circ_lib.id) && circMod == 'video' ) + result.recurringFinesRule = '50_cent_per_day'; checkDurationExceptions(); -log_debug(result.durationRule + ' : ' + result.recurringFinesRule + ' : ' + result.maxFine ); +log_info('final duration results: ' + result.durationRule + ' : ' + result.recurringFinesRule + ' : ' + result.maxFine ); } go(); @@ -89,4 +91,3 @@ function checkDurationExceptions() { } } -