1 load_lib('circ/circ_lib.js');
2 load_lib('JSON_v1.js');
3 log_debug('loading circ_item_config.js ...');
15 008 Book with diskette
17 010 Book with audio tape
20 /* -----------------------------------------------------------------------------
21 Configure the duration rules for the various item types and circ modifiers
22 MARC Fixed Field info:
23 http://www.oclc.org/bibformats/en/fixedfield/
24 ----------------------------------------------------------------------------- */
26 var MARC_ITEM_TYPE_MAP = {
27 a : { /* Language material [Books] */
30 durationRule : 'default',
31 recurringFinesRule : 'default',
34 /* add more MARC item type configs as needed... */
37 /* make 't' and 'a' share the same config info */
38 MARC_ITEM_TYPE_MAP.t = MARC_ITEM_TYPE_MAP.a;
45 durationRule : 'default',
46 recurringFinesRule : 'default',
52 /* this will set defaults even if no one asked for them */
53 log_debug("Calling getItemConfig() to force defaults..");
54 result.item_config = getItemConfig();
57 function getItemConfig() {
60 var marcType = getMARCItemType();
61 var circMod = copy.circ_modifier;
64 config = CIRC_MOD_MAP[circMod];
66 config = CIRC_MOD_MAP[circMod.toLowerCase()]
70 config = MARC_ITEM_TYPE_MAP[marcType];
74 config.SIPMediaType = '001';
75 config.magneticMedia = 'f';
76 config.durationRule = 'default';
77 config.recurringFinesRule = 'default';
78 config.maxFine = 'default';