[open-ils-commits] r639 - conifer/trunk/circ (risard)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 2 14:23:44 EDT 2009
Author: risard
Date: 2009-09-02 14:23:40 -0400 (Wed, 02 Sep 2009)
New Revision: 639
Modified:
conifer/trunk/circ/circ_duration_OSTMA.js
Log:
Fixed OSTMA circ duration.
Modified: conifer/trunk/circ/circ_duration_OSTMA.js
===================================================================
--- conifer/trunk/circ/circ_duration_OSTMA.js 2009-09-02 15:28:58 UTC (rev 638)
+++ conifer/trunk/circ/circ_duration_OSTMA.js 2009-09-02 18:23:40 UTC (rev 639)
@@ -1,3 +1,10 @@
+var currentTime = new Date();
+var debugStamp = "circ_duraction_test" + (currentTime.getMonth() + 1) + "" +
+ "" + currentTime.getDate() + "" + currentTime.getFullYear() +
+ ": ";
+
+log_info(debugStamp + "here for OSTMA");
+
/* grab the config from the config script */
var config = getItemConfig();
var itemForm = (marcXMLDoc) ? extractFixedField(marcXMLDoc,'Form') : "";
@@ -18,7 +25,14 @@
/*Set exceptions for other materials*/
/* AV MATERIALS */
-if (copy.circ_modifier == 'AUDIO' || 'VIDEO' || 'DVD VIDEO' && patronProfile == 'Faculty'){
+if (copy.circ_modifier == 'AUDIO' ||
+ copy.circ_modifier == 'VIDEO' ||
+ copy.circ_modifer == 'DVD VIDEO' ||
+ copy.location.name == 'ALGO-AV' &&
+ patronProfile == 'Faculty'
+
+ ){
+
result.durationRule = '14_days_0_renew';
result.recurringFinesRule = '2_dollars_per_day';
result.maxFine = '25_dollars';
@@ -33,10 +47,10 @@
if (res_day_match) {
result.durationRule = res_day_match[1] + '_days_0_renew';
result.recurringFinesRule = '2_dollars_per_day';
- result.maxFine = '15_dollars;
+ result.maxFine = '15_dollars';
} else if (res_hour_match) {
result.durationRule = res_hour_match[1] + '_hours_0_renew';
- result.recurringFinesRule = '50_cents_per_hour';
+ result.recurringFinesRule = '50_cent_per_hour';
result.maxFine = '15_dollars';
}
More information about the open-ils-commits
mailing list