From: erickson Date: Wed, 1 Nov 2006 01:17:50 +0000 (+0000) Subject: added item configs for equip-long X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2ebe231d4ea046b5aa86d3a3d4f5bdfe693c7dfc;p=evergreen%2Fpines.git added item configs for equip-long added exception for NCLS to make all dvd's have 10/day fines added some item config fix me notes git-svn-id: svn://svn.open-ils.org/ILS/trunk@6535 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 2d9a8fad03..cab77b11b3 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_duration.js +++ b/Open-ILS/src/javascript/backend/circ/circ_duration.js @@ -44,6 +44,8 @@ if( config ) { 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)) @@ -51,12 +53,9 @@ if( isOrgDescendent('STATELIB', copy.circ_lib.id) ) { } -/* 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(); diff --git a/Open-ILS/src/javascript/backend/circ/circ_item_config.js b/Open-ILS/src/javascript/backend/circ/circ_item_config.js index 959af74da7..e19889b130 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_item_config.js +++ b/Open-ILS/src/javascript/backend/circ/circ_item_config.js @@ -145,7 +145,7 @@ var CIRC_MOD_MAP = { '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' }, @@ -230,7 +230,6 @@ var CIRC_MOD_MAP = { maxFine : 'overdue_mid' }, - 'e-book' : { SIPMediaType : '001', magneticMedia : 'f', @@ -242,6 +241,14 @@ var CIRC_MOD_MAP = { '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' @@ -311,6 +318,14 @@ var CIRC_MOD_MAP = { 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',