From 6ed8bc508f3549fb97f693f2b009887bdf82b550 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 11 May 2011 11:44:02 -0400 Subject: [PATCH] In the event that a bib queue is not using a match_set, bail out of... ... match_set_test_marcxml() early. Needs tested. Also may need special check for non-null but empty match_sets. --- Open-ILS/src/sql/Pg/012.schema.vandelay.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql index d38a99c671..fb308506b9 100644 --- a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql +++ b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql @@ -706,6 +706,10 @@ BEGIN SELECT * INTO my_bib_queue FROM vandelay.bib_queue WHERE id = NEW.queue; + IF my_bib_queue.match_set IS NULL THEN + RETURN NEW; + END IF; + NEW.quality := vandelay.measure_record_quality( NEW.marc, my_bib_queue.match_set ); -- Perfect matches on 901$c exit early with a match with high quality. -- 2.11.0