From b0b7e913a6a6ac253e0b938a4e24104d9fabfc06 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 16 Jul 2009 20:27:19 +0000 Subject: [PATCH] Add basic circ rules for NOSM git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@584 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- circ/circ_duration_NOSME.js | 16 ++++++++++++++++ circ/circ_duration_NOSMW.js | 16 ++++++++++++++++ circ/circ_duration_OSM.js | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 circ/circ_duration_NOSME.js create mode 100644 circ/circ_duration_NOSMW.js create mode 100644 circ/circ_duration_OSM.js diff --git a/circ/circ_duration_NOSME.js b/circ/circ_duration_NOSME.js new file mode 100644 index 0000000000..08b3272748 --- /dev/null +++ b/circ/circ_duration_NOSME.js @@ -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 index 0000000000..08b3272748 --- /dev/null +++ b/circ/circ_duration_NOSMW.js @@ -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 index 0000000000..08b3272748 --- /dev/null +++ b/circ/circ_duration_OSM.js @@ -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'; +} -- 2.11.0