do not use Located URIs for record inclusion when a copy location filter is requested
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Jun 2009 00:00:57 +0000 (00:00 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Jun 2009 00:00:57 +0000 (00:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13312 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/300.schema.staged_search.sql

index 39e8143..30ef658 100644 (file)
@@ -430,6 +430,7 @@ BEGIN
           WHERE NOT cn.deleted
                 AND cn.label = '##URI##'
                 AND uri.active
+                AND ( param_locations IS NULL OR array_upper(param_locations, 1) IS NULL )
                 AND cn.record IN ( SELECT * FROM search.explode_array( core_result.records ) )
                 AND cn.owning_lib IN ( SELECT * FROM search.explode_array( search_org_list ) )
           LIMIT 1;