From 767d7ba00d2ccfb972b3f1844f0e36d708cc8e41 Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 8 Mar 2011 18:30:32 +0000 Subject: [PATCH] Add basic circ rules for SJCG 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 circ/circ_duration_SJCG.js diff --git a/circ/circ_duration_SJCG.js b/circ/circ_duration_SJCG.js new file mode 100644 index 0000000000..fb37c07504 --- /dev/null +++ b/circ/circ_duration_SJCG.js @@ -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'; +} -- 2.11.0