MWPL circ policies
authorMark Bucholtz <mark@coconut.sitka.bclibraries.ca.sitka.bclibraries.ca>
Mon, 5 Mar 2012 15:04:38 +0000 (07:04 -0800)
committerMark Bucholtz <mark@coconut.sitka.bclibraries.ca.sitka.bclibraries.ca>
Mon, 5 Mar 2012 15:04:38 +0000 (07:04 -0800)
circ/config_MWPL.js [new file with mode: 0644]

diff --git a/circ/config_MWPL.js b/circ/config_MWPL.js
new file mode 100644 (file)
index 0000000..a4d22ee
--- /dev/null
@@ -0,0 +1,56 @@
+/** Policies for MWPL **/
+function getPolicy() {
+
+    load_lib('circ/circ_lib.js');
+    log_info("Loading policy info for MWPL");
+    var circMod = copy.circ_modifier ? copy.circ_modifier.toLowerCase() : '';
+
+    return {
+
+        
+getHardDueDate: function() { 
+    return ;
+},
+
+       getLoanDuration: function() {
+            var map = {
+              'highdemand' : '30_0'
+            };
+
+            return map[circMod] || '60_2';
+
+        },
+
+        getRecurringFine: function() {
+
+            return 'zero';
+        },
+
+       getMaxFine: function() {
+           
+            return 'zero';
+        },
+
+        exceedsMaxCheckoutsByCircMod: function() {
+            return false;
+        },
+
+        isAllowedCirc: function() {
+                return true;
+        },
+        
+       isAllowedHold: function() {
+       if (patron.profile.name == 'PL Extended Loans' || patron.profile.name == 'PL ILL') {
+                return false;
+       }
+            return true;
+        },
+
+        getMaxHolds: function() {
+            var maxHoldsValue = 12;
+
+            return maxHoldsValue;
+        }
+    };
+}
+