From a26d457f50ee13b039c8af8a9de0ce544baa4c0c Mon Sep 17 00:00:00 2001 From: Rogan Hamby Date: Fri, 9 Mar 2018 12:20:30 -0500 Subject: [PATCH] has the skipping of reingest only happen when the marc is unchanged and the old marc was not deleted --- Open-ILS/src/sql/Pg/030.schema.metabib.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/sql/Pg/030.schema.metabib.sql b/Open-ILS/src/sql/Pg/030.schema.metabib.sql index bc72c89601..dab8316f78 100644 --- a/Open-ILS/src/sql/Pg/030.schema.metabib.sql +++ b/Open-ILS/src/sql/Pg/030.schema.metabib.sql @@ -1870,7 +1870,7 @@ BEGIN RETURN NEW; -- and we're done END IF; - IF TG_OP = 'UPDATE' THEN -- re-ingest? + IF TG_OP = 'UPDATE' AND OLD.deleted IS FALSE THEN -- re-ingest? PERFORM * FROM config.internal_flag WHERE name = 'ingest.reingest.force_on_same_marc' AND enabled; IF NOT FOUND AND OLD.marc = NEW.marc THEN -- don't do anything if the MARC didn't change -- 2.11.0