added item configs for equip-long
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 1 Nov 2006 01:17:50 +0000 (01:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 1 Nov 2006 01:17:50 +0000 (01:17 +0000)
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

Open-ILS/src/javascript/backend/circ/circ_duration.js
Open-ILS/src/javascript/backend/circ/circ_item_config.js

index 2d9a8fa..cab77b1 100644 (file)
@@ -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();
index 959af74..e19889b 100644 (file)
@@ -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',