LP1937294: Fix XPath invalid XPath expression Error
authorJason Stephenson <jason@sigio.com>
Tue, 22 Feb 2022 17:35:13 +0000 (12:35 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 23 Mar 2022 22:45:18 +0000 (18:45 -0400)
One of the XPath expressions in authority.generate_overly_template()
was missing an * (asterisk).  This commit restores the omitted *.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Open-ILS/src/sql/Pg/011.schema.authority.sql

index 500f070..b9cabd3 100644 (file)
@@ -585,7 +585,7 @@ BEGIN
         SELECT  control_set INTO cset
           FROM  authority.control_set_authority_field
           WHERE tag IN (
-                    SELECT  UNNEST(XPATH('//[local-name()="datafield" and starts-with(@tag,"1")]/@tag',marc::XML)::TEXT[])
+                    SELECT  UNNEST(XPATH('//*[local-name()="datafield" and starts-with(@tag,"1")]/@tag',marc::XML)::TEXT[])
                       FROM  authority.record_entry
                       WHERE id = auth_id
                 )