holds for Pender
authorMark Bucholtz <mark@coconut.sitka.bclibraries.ca.sitka.bclibraries.ca>
Fri, 25 Jan 2013 12:15:24 +0000 (04:15 -0800)
committerMark Bucholtz <mark@coconut.sitka.bclibraries.ca.sitka.bclibraries.ca>
Fri, 25 Jan 2013 12:15:24 +0000 (04:15 -0800)
circ/config_BPI.js [new file with mode: 0644]

diff --git a/circ/config_BPI.js b/circ/config_BPI.js
new file mode 100644 (file)
index 0000000..ef6a130
--- /dev/null
@@ -0,0 +1,54 @@
+/** Policies for BPI **/
+
+function getPolicy() {
+
+    load_lib('circ/circ_lib.js');
+    log_info("Loading policy info for BPI");
+    var circMod = copy.circ_modifier ? copy.circ_modifier.toLowerCase() : '';
+
+    return {
+
+        
+getHardDueDate: function() { 
+    return ;
+},
+
+       getLoanDuration: function() {
+
+            return map[circMod] ||  '21_2';
+
+        },
+
+        getRecurringFine: function() {
+
+            return 'zero';
+        },
+
+       getMaxFine: function() {
+           
+            return 'zero';
+        },
+
+        exceedsMaxCheckoutsByCircMod: function() {
+            return false;
+        },
+
+        isAllowedCirc: function() {
+                return true;
+        },
+        
+
+       isAllowedHold: function() {
+            if (copyStatus == 'Checked out'){
+                return true;
+            }
+            return false;
+        },
+
+
+        getMaxHolds: function() {
+           return 3;
+        }
+    };
+}
+