Add basic circ rules for NOSM
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 16 Jul 2009 20:27:19 +0000 (20:27 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 16 Jul 2009 20:27:19 +0000 (20:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@584 6d9bc8c9-1ec2-4278-b937-99fde70a366f

circ/circ_duration_NOSME.js [new file with mode: 0644]
circ/circ_duration_NOSMW.js [new file with mode: 0644]
circ/circ_duration_OSM.js [new file with mode: 0644]

diff --git a/circ/circ_duration_NOSME.js b/circ/circ_duration_NOSME.js
new file mode 100644 (file)
index 0000000..08b3272
--- /dev/null
@@ -0,0 +1,16 @@
+/* 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 = 'NOSM_daily';
+result.maxFine = 'NOSM_daily';
+
+if (copy.circ_modifier == 'RESERVE 4 HOUR') {
+        result.durationRule = '4_hours_3_renew';
+}
+
+if (copy.circ_modifier == 'RESERVE 1 DAY') {
+        result.durationRule = '1_day_3_renew';
+}
diff --git a/circ/circ_duration_NOSMW.js b/circ/circ_duration_NOSMW.js
new file mode 100644 (file)
index 0000000..08b3272
--- /dev/null
@@ -0,0 +1,16 @@
+/* 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 = 'NOSM_daily';
+result.maxFine = 'NOSM_daily';
+
+if (copy.circ_modifier == 'RESERVE 4 HOUR') {
+        result.durationRule = '4_hours_3_renew';
+}
+
+if (copy.circ_modifier == 'RESERVE 1 DAY') {
+        result.durationRule = '1_day_3_renew';
+}
diff --git a/circ/circ_duration_OSM.js b/circ/circ_duration_OSM.js
new file mode 100644 (file)
index 0000000..08b3272
--- /dev/null
@@ -0,0 +1,16 @@
+/* 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 = 'NOSM_daily';
+result.maxFine = 'NOSM_daily';
+
+if (copy.circ_modifier == 'RESERVE 4 HOUR') {
+        result.durationRule = '4_hours_3_renew';
+}
+
+if (copy.circ_modifier == 'RESERVE 1 DAY') {
+        result.durationRule = '1_day_3_renew';
+}