From bd487d3003cc4bb99ec51ea94db8df38ef299287 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 22 Feb 2022 12:35:13 -0500 Subject: [PATCH] LP1937294: Fix XPath invalid XPath expression Error One of the XPath expressions in authority.generate_overly_template() was missing an * (asterisk). This commit restores the omitted *. Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/011.schema.authority.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/sql/Pg/011.schema.authority.sql b/Open-ILS/src/sql/Pg/011.schema.authority.sql index 500f0705ed..b9cabd3c15 100644 --- a/Open-ILS/src/sql/Pg/011.schema.authority.sql +++ b/Open-ILS/src/sql/Pg/011.schema.authority.sql @@ -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 ) -- 2.11.0