From: Jason Stephenson Date: Tue, 22 Feb 2022 17:35:13 +0000 (-0500) Subject: LP1937294: Fix XPath invalid XPath expression Error X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bd487d3003cc4bb99ec51ea94db8df38ef299287;p=working%2FEvergreen.git 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 --- 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 )