As bshum did for e-book records, let's move MR records down to the end of the
script to avoid breaking tests.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
-\set bib_tag '''IMPORT MR'''
+\\set bib_tag '''IMPORT MR'''
INSERT INTO marcxml_import (tag, marc) VALUES
-N;
+BEGIN;
-- stop on error
\set ON_ERROR_STOP on
-- load RDA bibs
\i bibs_rda.sql
--- load EbookAPI bibs
-\i bibs_ebook_api.sql
-
--- load metarecord bibs
-\i bibs_mr.sql
-
-- insert all loaded bibs into the biblio.record_entry in insert order
INSERT INTO biblio.record_entry (marc, last_xact_id)
SELECT marc, tag FROM marcxml_import ORDER BY id;
-- load RDA copies, etc.
\i assets_rda.sql
--- load MR copies, etc.
-\i assets_mr.sql
-
-- load copy-related data
\i assets_extras.sql
-- load EbookAPI bibs
\i bibs_ebook_api.sql
+-- load metarecord bibs
+\i bibs_mr.sql
+
+-- load MR copies, etc.
+\i assets_mr.sql
+
-- insert all loaded bibs into the biblio.record_entry in insert order
INSERT INTO biblio.record_entry (marc, last_xact_id)
SELECT marc, tag FROM marcxml_import ORDER BY id;