From: Thomas Berezansky Date: Wed, 6 Jul 2011 16:54:03 +0000 (-0400) Subject: Allow staff search to find bibs sans copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4d0dae6ee876830cb87ee393a41fcdc478ecc6b0;p=contrib%2FConifer.git Allow staff search to find bibs sans copies AKA, no call number OR no call numbers with copies Signed-off-by: Thomas Berezansky Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql index 79de913642..ebea8cd2d5 100644 --- a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql +++ b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql @@ -283,7 +283,9 @@ BEGIN PERFORM 1 FROM asset.call_number cn + JOIN asset.copy cp ON (cp.call_number = cn.id) WHERE cn.record IN ( SELECT * FROM unnest( core_result.records ) ) + AND NOT cp.deleted LIMIT 1; IF FOUND THEN