From: dbs Date: Thu, 16 Jul 2009 20:27:19 +0000 (+0000) Subject: Add basic circ rules for NOSM X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b0b7e913a6a6ac253e0b938a4e24104d9fabfc06;p=contrib%2FConifer.git Add basic circ rules for NOSM git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@584 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- 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'; +}