[open-ils-commits] r846 - conifer/branches/rel_1_6_0/circ (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 25 10:54:53 EDT 2010
Author: dbs
Date: 2010-03-25 10:54:51 -0400 (Thu, 25 Mar 2010)
New Revision: 846
Modified:
conifer/branches/rel_1_6_0/circ/circ_duration.js
Log:
Switch to rules based on the library that owns the copy, rather than the location the transaction takes place
Modified: conifer/branches/rel_1_6_0/circ/circ_duration.js
===================================================================
--- conifer/branches/rel_1_6_0/circ/circ_duration.js 2010-03-25 03:45:03 UTC (rev 845)
+++ conifer/branches/rel_1_6_0/circ/circ_duration.js 2010-03-25 14:54:51 UTC (rev 846)
@@ -12,11 +12,11 @@
*/
-//log_info(debugStamp + "location identified as " + currentLocation.shortname);
+//log_info(debugStamp + "copy location identified as " + copy.circ_lib.shortname);
try {
- /* load circ rules for specific institutions */
- var circ_duration_institution_file = 'circ/circ_duration_' + currentLocation.shortname + '.js';
+ /* load circ rules for specific institutions based on the library that owns the copy */
+ var circ_duration_institution_file = 'circ/circ_duration_' + copy.circ_lib.shortname + '.js';
log_info('loading ' + circ_duration_institution_file);
load_lib(circ_duration_institution_file);
More information about the open-ils-commits
mailing list