From d116d1299c3e4bf948b06ff3bcdce235995b7012 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 22 Jul 2010 00:58:49 +0000 Subject: [PATCH] retain the indicators on located uri 856 merge during asset merge; update script and backporting to come git-svn-id: svn://svn.open-ils.org/ILS/trunk@17007 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/999.functions.global.sql | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/sql/Pg/999.functions.global.sql b/Open-ILS/src/sql/Pg/999.functions.global.sql index 4850d6c2c..6199d949a 100644 --- a/Open-ILS/src/sql/Pg/999.functions.global.sql +++ b/Open-ILS/src/sql/Pg/999.functions.global.sql @@ -997,7 +997,10 @@ BEGIN ) as t(i int,c text); FOR i IN 1 .. counter LOOP - SELECT '' || + SELECT '' || array_to_string( array_accum( '' || @@ -1014,10 +1017,12 @@ BEGIN 'id', 'marc', 'biblio.record_entry', + '//*[@tag="856"][position()=' || i || ']/@ind1|' || + '//*[@tag="856"][position()=' || i || ']/@ind2|' || '//*[@tag="856"][position()=' || i || ']/*/@code|' || '//*[@tag="856"][position()=' || i || ']/*[@code]', 'id=' || source_record - ) as t(id int,subfield text,data text); + ) as t(id int,ind1 text, ind2 text,subfield text,data text); uri_text := uri_text || uri_datafield; END LOOP; -- 2.11.0