Fix get quality XPath
authorJason Stephenson <jason@sigio.com>
Mon, 15 Nov 2021 21:26:04 +0000 (16:26 -0500)
committerJason Boyer <JBoyer@equinoxOLI.org>
Fri, 19 Nov 2021 16:10:12 +0000 (11:10 -0500)
Open-ILS/src/sql/Pg/030.schema.metabib.sql

index 7cb4e8c..b4db8c9 100644 (file)
@@ -1250,7 +1250,7 @@ BEGIN
     END IF;
 
     -- First, the count of tags
-    qual := ARRAY_UPPER(oils_xpath('*[local-name()="datafield"]', marc), 1);
+    qual := ARRAY_UPPER(oils_xpath('//*[local-name()="datafield"]', marc), 1);
 
     -- now go through a bunch of pain to get the record type
     IF best_type IS NOT NULL THEN