From: Mike Rylander Date: Wed, 15 Jun 2011 19:45:10 +0000 (-0400) Subject: Put thesaurus-z handling back in X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=382e517182fcbd4c37778bd21dd567f1f0e6df4a;p=evergreen%2Fmasslnc.git Put thesaurus-z handling back in 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 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);