LP#1251394 Author display field xpath
authorBill Erickson <berickxx@gmail.com>
Fri, 25 Aug 2017 16:40:20 +0000 (12:40 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 1 Sep 2017 21:17:47 +0000 (17:17 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/upgrade/YYYY.data.metabib-display-field.sql

index e633751..33fdac4 100644 (file)
@@ -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),