X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig-xml%2Fevergreen_staged_report.xml;h=526e3c5028ef97d26d9cc2eeaabe182faf4739a6;hp=6726a822efbfc9294f07c66d08c7009f12593c30;hb=49c84ca86a91a97007c975eff40d50890cc46fbb;hpb=1b92214d69a55533daaddbbb152d784af894c547
diff --git a/mig-xml/evergreen_staged_report.xml b/mig-xml/evergreen_staged_report.xml
index 6726a82..526e3c5 100644
--- a/mig-xml/evergreen_staged_report.xml
+++ b/mig-xml/evergreen_staged_report.xml
@@ -660,12 +660,12 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3
- bibs
- Extracted Bibliographic Records
+ bibs_loaded
+ Loaded Bibliographic Records
bibs
0
- Count.Sourcee.Migrated
- SELECT COUNT(bre.id), bre.x_source, bre.x_migrate::TEXT FROM biblio_record_entry_legacy bre GROUP BY 2, 3 ORDER BY 2, 3
+ Count.Loaded
+ SELECT COUNT(bre.id), bre.x_migrate::TEXT FROM biblio_record_entry_legacy bre WHERE id IN (SELECT id FROM biblio.record_entry WHERE deleted = FALSE) GROUP BY 2 ORDER BY 2
False means the records are not deleted.
@@ -732,6 +732,38 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3
SELECT COUNT(b.id) FROM biblio_monograph_part b
+
+ bib_merges
+ Bibliographic Merge Count
+ bibs
+ 0
+ Records Merged.Incumbent Records Merged Into
+ SELECT SUM(array_length(records,1)), COUNT(*) FROM groups
+
+
+
+ bib_merges_by_search_format
+ Bibliographic Merges By Search Format
+ bibs
+ 0
+ Count.Item Type
+ WITH g AS (SELECT UNNEST(records) FROM groups) SELECT COUNT(record), search_format_str FROM dedupe_batch WHERE record IN (SELECT * FROM g) GROUP BY 2
+
+
+
+ bibs_not_loaded
+ Bibliographic Records That Failed to Load
+ bibs
+ 0
+ Title.Author.Control Number
+ SELECT LEFT(ARRAY_TO_STRING(oils_xpath( '//*[@tag="245"]/*[@code="a"]/text()', a.marc),''),50) AS "Title",
+ LEFT(ARRAY_TO_STRING(oils_xpath( '//*[@tag="100"]/*[@code="a"]/text()', a.marc),''),50) AS "Author",
+ ARRAY_TO_STRING(oils_xpath( '//*[@tag="001"]/text()', a.marc),'') AS "001"
+ FROM biblio_record_entry aLEFT JOIN biblio.record_entry b ON b.id = a.id WHERE b.id IS NULL AND a.x_migrate;
+
+
+
+