From 1c321b9e8fbf28856c09eda0206ee8d9b3d55d83 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 6 Sep 2006 06:23:33 +0000 Subject: [PATCH] fixed uppercase bug git-svn-id: svn://svn.open-ils.org/ILS/trunk@5983 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../javascript/backend/circ/circ_item_config.js | 25 ++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) 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 27e14502c9..71069d4598 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_item_config.js +++ b/Open-ILS/src/javascript/backend/circ/circ_item_config.js @@ -209,11 +209,20 @@ var CIRC_MOD_MAP = { 'dvd' : { SIPMediaType : '006', magneticMedia : 'f', - durationRule : '7_days_0_renew', + durationRule : '7_days_2_renew', + recurringFinesRule : '50_cent_per_day', + maxFine : 'overdue_mid' + }, + + 'dvd-long' : { + SIPMediaType : '006', + magneticMedia : 'f', + durationRule : '14_days_2_renew', recurringFinesRule : '50_cent_per_day', maxFine : 'overdue_mid' }, + 'e-book' : { SIPMediaType : '001', magneticMedia : 'f', @@ -311,7 +320,15 @@ var CIRC_MOD_MAP = { 'video' : { SIPMediaType : '005', magneticMedia : 'f', - durationRule : '7_days_0_renew', + durationRule : '7_days_2_renew', + recurringFinesRule : '50_cent_per_day', + maxFine : 'overdue_mid' + }, + + 'video-long' : { + SIPMediaType : '005', + magneticMedia : 'f', + durationRule : '14_days_2_renew', recurringFinesRule : '50_cent_per_day', maxFine : 'overdue_mid' }, @@ -363,12 +380,12 @@ function getItemConfig() { provided circ_modifier, use that config. Otherwise fall back on the MARC item type ----------------------------------------------------------------------------------- */ var marcType = getMARCItemType(); - var circMod = copy.circ_modifier; + var circMod = (copy.circ_modifier) ? copy.circ_modifier.toLowerCase() : ''; var itemForm = (marcXMLDoc) ? extractFixedField(marcXMLDoc,'Form') : ""; var config; - if( circMod && CIRC_MOD_MAP[circMod.toLowerCase()] ) { + if( circMod && CIRC_MOD_MAP[circMod] ) { /* if we have a config for the given circ_modifier, use it */ log_debug("a circ_mod config exists for the copy: " + circMod); config = CIRC_MOD_MAP[circMod]; -- 2.11.0