rt12774 mlb pl_extended change
[sitka/oilspolicy.git] / circ / config_BSQ.js
CommitLineData
fbdf8e88
MB
1/** Policies for BSQ **/
2
3function getPolicy() {
4
5 load_lib('circ/circ_lib.js');
6 log_info("Loading policy info for BSQ");
7 var circMod = copy.circ_modifier ? copy.circ_modifier.toLowerCase() : '';
8
9 return {
10
4e37b7bf
MB
11
12getHardDueDate: function() {
13 return ;
14},
15
16getLoanDuration: function() {
fbdf8e88
MB
17 if (isPrecat || copy.call_number == -1) {
18 return '21_0';
19 }
747b9070
MB
20 if (patronProfile == 'PL Temporary')
21 {
22 var pltempmap = {
23 '7-day-loan': '7_0',
24 'video': '7_0',
25 'dvd': '7_0',
26 'juvenile-video': '7_0',
27 'video-cassette': '7_0',
28 'juvenile-audio-visual': '7_0',
29 'restricted-video': '7_0',
30 'restricted-dvd': '7_0',
31 'oversize': '90_0',
32 'inter-library-loan': '21_0'
33 };
34 return pltempmap[circMod] || '21_0';
5ca9ec07 35 }
747b9070
MB
36 else
37 {
38 var map = {
39 '7-day-loan': '7_0',
40 'video': '7_2',
41 'dvd': '7_2',
42 'juvenile-video': '7_2',
43 'video-cassette': '7_2',
44 'juvenile-audio-visual': '7_2',
45 'restricted-video': '7_2',
46 'restricted-dvd': '7_2',
47 'oversize': '90_0',
48 'inter-library-loan': '21_0'
49 };
50 return map[circMod] || '21_2';
51 }
52},
fbdf8e88
MB
53
54 getRecurringFine : function() {
55 var circMod = copy.circ_modifier ? copy.circ_modifier.toLowerCase() : '';
56
57 var map = {
58 '7-day-loan' : 'onedollar',
59 'inter-library-loan' : 'onedollar',
60 'video' : 'onedollar',
eb540b15 61 'dvd' : 'onedollar',
fbdf8e88
MB
62 'video-cassette' : 'onedollar',
63 'restricted-video' : 'onedollar',
64 'restricted-dvd' : 'onedollar',
65 'juvenile-collection' : 'zero',
66 'juvenile-audio-cassette' : 'zero',
67 'juvenile-audio-visual' : 'zero',
68 'juvenile-video' : 'zero'
69 };
70
71 return map[circMod] || 'thirtycents';
72 },
73
74 getMaxFine: function() {
75 var map = {
76 'juvenile-collection' : 'zero',
77 'juvenile-audio-cassette' : 'zero',
78 'juvenile-audio-visual' : 'zero',
79 'juvenile-video' : 'zero'
80 };
81
82 return map[circMod] || 'fivedollar';
83 },
84
85
86 exceedsMaxCheckoutsByCircMod: function() {
87 return false;
88 },
89
90 isAllowedCirc: function() {
91 return true;
92 },
93
94 isAllowedHold: function() {
95 return true;
96 },
97
98 getMaxHolds: function() {
99 var maxHoldsValue = 100;
100 return maxHoldsValue;
101 }
102 };
103}
104