From: Rogan Hamby Date: Fri, 9 Mar 2018 17:20:30 +0000 (-0500) Subject: has the skipping of reingest only happen when the marc is unchanged and the old marc... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Frogan%2Flp_1091885_reingest_on_undelete;p=working%2FEvergreen.git has the skipping of reingest only happen when the marc is unchanged and the old marc was not deleted --- 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