1 load_lib('circ/circ_lib.js');
2 log_debug('loading circ_item_config.js ...');
14 008 Book with diskette
16 010 Book with audio tape
19 /* -----------------------------------------------------------------------------
20 Configure the duration rules for the various item types and circ modifiers
21 MARC Fixed Field info:
22 http://www.oclc.org/bibformats/en/fixedfield/
23 ----------------------------------------------------------------------------- */
25 var MARC_ITEM_TYPE_MAP = {
26 a : { /* Language material [Books] */
29 durationRule : 'default'
30 recurringFinesRule : 'default'
33 /* add more MARC item type configs as needed... */
36 /* make 't' and 'a' share the same config info */
37 MARC_ITEM_TYPE_MAP.t = MARC_ITEM_TYPE_MAP.a;
44 durationRule : 'default'
45 recurringFinesRule : 'default'
51 /* this will set defaults even if no one asked for them */
52 log_debug("Calling getItemConfig() to force defaults..");
56 function getItemConfig() {
59 var marcType = getMARCItemType();
60 var circMod = copy.circ_modifier;
63 config = CIRC_MOD_MAP[circMod];
65 config = CIRC_MOD_MAP[circMod.toLowerCase()]
69 config = MARC_ITEM_TYPE_MAP[marcType];
73 config.SIPMediaType = '001';
74 config.magneticMedia = 'f';
75 config.durationRule = 'default';
76 config.recurringFinesRule = 'default';
77 config.maxFine = 'default';