From: Bill Erickson Date: Fri, 25 Aug 2017 16:40:20 +0000 (-0400) Subject: LP#1251394 Author display field xpath X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c095a3adb3649c575bcfcb846040c16b79757661;p=evergreen%2Ftadl.git LP#1251394 Author display field xpath Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.metabib-display-field.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.metabib-display-field.sql index e63375162b..33fdac4b46 100644 --- a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.metabib-display-field.sql +++ b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.metabib-display-field.sql @@ -14,6 +14,11 @@ INSERT INTO config.metabib_field ( id, field_class, name, label, 'mods32', $$//mods32:mods/mods32:name[mods32:role/mods32:roleTerm[text()='creator']]$$, TRUE, $$//*[local-name()='namePart']$$ ); -- /* to fool vim */; +-- 'author' field +UPDATE config.metabib_field SET display_xpath = + $$//*[local-name()='namePart']$$ -- /* to fool vim */ + WHERE id = 8; + INSERT INTO config.display_field_map (name, field, multi) VALUES ('title', 6, FALSE), ('author', 8, FALSE),