[open-ils-commits] r18196 - trunk/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 6 09:45:02 EDT 2010


Author: miker
Date: 2010-10-06 09:45:00 -0400 (Wed, 06 Oct 2010)
New Revision: 18196

Modified:
   trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
Log:
Start out exact-ou-match rules with an "always win" weight

Modified: trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql	2010-10-06 13:43:52 UTC (rev 18195)
+++ trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql	2010-10-06 13:45:00 UTC (rev 18196)
@@ -96,7 +96,11 @@
                     CASE WHEN m.marc_vr_format    IS NOT NULL THEN 2 ELSE 0 END +
                     CASE WHEN m.ref_flag        IS NOT NULL THEN 1 ELSE 0 END DESC LOOP
 
-            current_mp_weight := 5.0;
+            IF NOT current_mp.strict_ou_match THEN
+                current_mp_weight := 5.0;
+            ELSE
+                current_mp_weight := 0.0;
+            END IF;
 
             IF current_mp.circ_modifier IS NOT NULL THEN
                 CONTINUE WHEN current_mp.circ_modifier <> item_object.circ_modifier OR item_object.circ_modifier IS NULL;



More information about the open-ils-commits mailing list