From 382e517182fcbd4c37778bd21dd567f1f0e6df4a Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 15 Jun 2011 15:45:10 -0400 Subject: [PATCH] Put thesaurus-z handling back in Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/011.schema.authority.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/sql/Pg/011.schema.authority.sql b/Open-ILS/src/sql/Pg/011.schema.authority.sql index b2b462ec1e..3e6fda07b0 100644 --- a/Open-ILS/src/sql/Pg/011.schema.authority.sql +++ b/Open-ILS/src/sql/Pg/011.schema.authority.sql @@ -176,6 +176,10 @@ BEGIN EXIT WHEN heading_text <> ''; END LOOP; + IF thes_code = 'z' THEN + thes_code := oils_xpath_string('//*[@tag="040"]/*[@code="f"][1]', marcxml); + END IF; + IF heading_text <> '' THEN IF no_thesaurus IS TRUE THEN heading_text := tag_used || ' ' || public.naco_normalize(heading_text); -- 2.11.0