[open-ils-commits] r1259 - conifer/branches/rel_1_6_1/circ (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 8 13:30:35 EST 2011
Author: dbs
Date: 2011-03-08 13:30:32 -0500 (Tue, 08 Mar 2011)
New Revision: 1259
Added:
conifer/branches/rel_1_6_1/circ/circ_duration_SJCG.js
Log:
Add basic circ rules for SJCG
Copied: conifer/branches/rel_1_6_1/circ/circ_duration_SJCG.js (from rev 1231, conifer/branches/rel_1_6_1/circ/circ_duration_NOSME.js)
===================================================================
--- conifer/branches/rel_1_6_1/circ/circ_duration_SJCG.js (rev 0)
+++ conifer/branches/rel_1_6_1/circ/circ_duration_SJCG.js 2011-03-08 18:30:32 UTC (rev 1259)
@@ -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';
+}
More information about the open-ils-commits
mailing list