From c0fe2887b1c708c7a75ad3342c54749264fa3469 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 25 Mar 2010 14:54:51 +0000 Subject: [PATCH] Switch to rules based on the library that owns the copy, rather than the location the transaction takes place git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_0@846 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- circ/circ_duration.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/circ/circ_duration.js b/circ/circ_duration.js index ec8d02a889..1548e18c4d 100755 --- a/circ/circ_duration.js +++ b/circ/circ_duration.js @@ -12,11 +12,11 @@ var debugStamp = "circ" + (currentTime.getMonth() + 1) + "" + */ -//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); -- 2.11.0