[open-ils-commits] r8527 - in branches: rel_1_2/Evergreen/src/javascript/backend/circ rel_1_2_1/Evergreen/src/javascript/backend/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 29 13:51:18 EST 2008


Author: erickson
Date: 2008-01-29 13:23:56 -0500 (Tue, 29 Jan 2008)
New Revision: 8527

Modified:
   branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_hold.js
   branches/rel_1_2_1/Evergreen/src/javascript/backend/circ/circ_permit_hold.js
Log:
added some hold permit exemptions for DCPL and LEE.  this is a PINES thing

Modified: branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_hold.js
===================================================================
--- branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_hold.js	2008-01-29 18:21:08 UTC (rev 8526)
+++ branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_hold.js	2008-01-29 18:23:56 UTC (rev 8527)
@@ -70,6 +70,26 @@
 
 	log_info("this is a range-protected item...");
 
+	/* ------------------------------------------------------------------------ */
+	/** This patch allows DCPL and LEE patrons to place 
+		holds on protected items accross their systems.  In short, if the pickup lib,
+		owning lib, and patron home (or request lib) are all within either of the two 
+		systems, allow the hold */
+	if(
+		/* DCPL=33, LEE=115 */
+		(hasCommonAncestor(holdPickupLib, 33, 1) || hasCommonAncestor(holdPickupLib, 115, 1)) &&
+		(hasCommonAncestor(volume.owning_lib, 33, 1) || hasCommonAncestor(volume.owning_lib, 115, 1)) &&
+		(
+			hasCommonAncestor(patron.home_ou.id, 33, 1) || hasCommonAncestor(patron.home_ou.id, 115, 1) || 
+			hasCommonAncestor(holdRequestLib.id, 33, 1) || hasCommonAncestor(holdRequestLib.id, 115, 1)
+		)) {
+
+		log_info("DCPL and LEE are allowed to place holds on protected items accross the two systems");
+		return;
+	}
+	/* ------------------------------------------------------------------------ */
+
+
     if( ! hasCommonAncestor( volume.owning_lib, holdPickupLib, 1 ) ) {
 
         /* we don't want these items to transit to the pickup lib */

Modified: branches/rel_1_2_1/Evergreen/src/javascript/backend/circ/circ_permit_hold.js
===================================================================
--- branches/rel_1_2_1/Evergreen/src/javascript/backend/circ/circ_permit_hold.js	2008-01-29 18:21:08 UTC (rev 8526)
+++ branches/rel_1_2_1/Evergreen/src/javascript/backend/circ/circ_permit_hold.js	2008-01-29 18:23:56 UTC (rev 8527)
@@ -70,6 +70,26 @@
 
 	log_info("this is a range-protected item...");
 
+	/* ------------------------------------------------------------------------ */
+	/** This patch allows DCPL and LEE patrons to place 
+		holds on protected items accross their systems.  In short, if the pickup lib,
+		owning lib, and patron home (or request lib) are all within either of the two 
+		systems, allow the hold */
+	if(
+		/* DCPL=33, LEE=115 */
+		(hasCommonAncestor(holdPickupLib, 33, 1) || hasCommonAncestor(holdPickupLib, 115, 1)) &&
+		(hasCommonAncestor(volume.owning_lib, 33, 1) || hasCommonAncestor(volume.owning_lib, 115, 1)) &&
+		(
+			hasCommonAncestor(patron.home_ou.id, 33, 1) || hasCommonAncestor(patron.home_ou.id, 115, 1) || 
+			hasCommonAncestor(holdRequestLib.id, 33, 1) || hasCommonAncestor(holdRequestLib.id, 115, 1)
+		)) {
+
+		log_info("DCPL and LEE are allowed to place holds on protected items accross the two systems");
+		return;
+	}
+	/* ------------------------------------------------------------------------ */
+
+
     if( ! hasCommonAncestor( volume.owning_lib, holdPickupLib, 1 ) ) {
 
         /* we don't want these items to transit to the pickup lib */



More information about the open-ils-commits mailing list