Add basic circ rules for SJCG
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 8 Mar 2011 18:30:32 +0000 (18:30 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 8 Mar 2011 18:30:32 +0000 (18:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_1@1259 6d9bc8c9-1ec2-4278-b937-99fde70a366f

circ/circ_duration_SJCG.js [new file with mode: 0644]

diff --git a/circ/circ_duration_SJCG.js b/circ/circ_duration_SJCG.js
new file mode 100644 (file)
index 0000000..fb37c07
--- /dev/null
@@ -0,0 +1,18 @@
+/* grab the config from the config script */
+var config = getItemConfig();
+var itemForm    = (marcXMLDoc) ? extractFixedField(marcXMLDoc,'Form') : "";
+
+/* Set the defaults for books and equipment for most patron types */
+result.durationRule = '6_weeks_3_renew';
+result.recurringFinesRule = 'free';
+result.maxFine = 'NOSM_daily';
+
+if (copy.circ_modifier == 'RESERVE 4 HOUR') {
+        result.durationRule = '4_hours_3_renew';
+        result.recurringFinesRule = 'free';
+}
+
+if (copy.circ_modifier == 'RESERVE 1 DAY') {
+        result.durationRule = '1_day_3_renew';
+        result.recurringFinesRule = 'free';
+}