From 9a0120762a77f44f2f117b574f20ed4cd5ae7da1 Mon Sep 17 00:00:00 2001 From: Liam Whalen Date: Thu, 3 Nov 2011 16:53:57 -0400 Subject: [PATCH] Modified authority.indexing_ingest_or_delete to update MARC data The authority.indexing_ingest_or_delete trigger in the update script was missing a call to authority.propagate_changes which is responsible for updating the MARC data of records affected by an auhtority merge. This patch adds the call to authority.propagate_changes as it appears in the authority.indexing_ingest_or_delete trigger from the file 999.functions.global.sql. Signed-off-by: Liam Whalen Signed-off-by: Dan Scott --- Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql b/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql index 1302226764..467b7bbb0a 100644 --- a/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql @@ -11075,6 +11075,8 @@ BEGIN IF NOT FOUND AND OLD.marc = NEW.marc THEN -- don't do anything if the MARC didn't change RETURN NEW; END IF; + -- Propagate these updates to any linked bib records + PERFORM authority.propagate_changes(NEW.id) FROM authority.record_entry WHERE id = NEW.id; END IF; -- Record authority linking -- 2.11.0