Put thesaurus-z handling back in
authorMike Rylander <mrylander@gmail.com>
Wed, 15 Jun 2011 19:45:10 +0000 (15:45 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 11 Jul 2011 17:48:29 +0000 (13:48 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/011.schema.authority.sql

index b2b462e..3e6fda0 100644 (file)
@@ -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);