<name>circ_count</name>
<tag>circs</tag>
<iteration>0</iteration>
- <report_title>Open Circulations</report_title>
- <heading>Circulation Status.Migrated.Count of Circs</heading>
- <query>SELECT 'Closed Circulations', x_migrate::TEXT, COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NOT NULL GROUP BY 2 UNION ALL SELECT 'Open Circulations', x_migrate::TEXT, COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL GROUP BY 2</query>
+ <report_title>Migrated Circulations</report_title>
+ <heading>Circulation Status.Count of Circs</heading>
+ <query>SELECT 'Closed Circulations', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NOT NULL AND x_migrate
+ UNION ALL SELECT 'Open Circulations', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL AND x_migrate</query>
+ </report>
+
+ <report>
+ <name>circ_count_unmigrated</name>
+ <tag>circs</tag>
+ <iteration>0</iteration>
+ <report_title>Open Un-migrated Circulations</report_title>
+ <heading>Circulation Status.Count of Circs</heading>
+ <query>SELECT 'No Matching User', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL AND x_migrate = FALSE AND usr IS NULL
+ UNION ALL SELECT 'No Matching Item', COUNT(id) FROM action_circulation_legacy WHERE xact_finish IS NULL AND x_migrate = FALSE AND target_copy IS NULL </query>
</report>
<report>
</report>
<report>
+ <name>asset_precat</name>
+ <report_title>Precats (AKA Copies Without Bibs)</report_title>
+ <tag>assets</tag>
+ <iteration>0</iteration>
+ <heading>Copy Count.Migating</heading>
+ <query>SELECT COUNT(ac.id), ac.x_migrate::TEXT FROM asset_copy_legacy ac WHERE ac.x_bre_id = -1 GROUP BY 2</query>
+ </report>
+
+ <report>
<name>asset_circ_mod_copies_count</name>
<report_title>Copies by Circulation Modifier</report_title>
<tag>assets</tag>
<iteration>0</iteration>
<heading>Collision List</heading>
<query>SELECT ac.barcode FROM asset_copy_legacy ac WHERE ac.barcode ~* 'collision' ORDER BY 1 LIMIT 20</query>
- <note>This is a shortlist of patron barcode collisions that maxes out at 20. If there are more collisions we will need to run a custom report.</note>
+ <note>This is a shortlist of copy barcode collisions that maxes out at 20. If there are more collisions we will need to run a custom report.</note>
</report>
<report>
<report_title>Extracted Bibliographic Records</report_title>
<tag>bibs</tag>
<iteration>0</iteration>
- <heading>Count.Deleted.Migrated</heading>
- <query>SELECT COUNT(bre.id), bre.deleted::TEXT, bre.x_migrate::TEXT FROM biblio_record_entry_legacy bre GROUP BY 2, 3 ORDER BY 2, 3</query>
+ <heading>Count.Sourcee.Migrated</heading>
+ <query>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</query>
<note>False means the records are not deleted.</note>
</report>
<report>
- <name>bibs</name>
- <report_title>Extracted Bibliographic Records</report_title>
- <tag>bibs</tag>
- <iteration>1</iteration>
- <heading>Count</heading>
- <query>SELECT COUNT(eg) FROM bib_id_map</query>
- </report>
-
- <report>
<name>bibswovolumes</name>
<report_title>Bibliographic Records Without Volumes</report_title>
<tag>bibs</tag>
<iteration>0</iteration>
<heading>Count</heading>
- <query>SELECT COUNT(eg) FROM bib_id_map where eg::INTEGER NOT IN (SELECT DISTINCT record FROM asset_call_number)</query>
+ <query>SELECT COUNT(id) FROM biblio_record_entry where id NOT IN (SELECT DISTINCT record FROM asset_call_number)</query>
</report>
<report>
</query>
</report>
+ <!-- NOTICES REPORTS -->
+
+ <report>
+ <name>notices_overview</name>
+ <tag>notices</tag>
+ <iteration>0</iteration>
+ <report_title>Overview of Notices for Migration</report_title>
+ <heading>ID.Active.Owner.Name.Delay.Validator.Reactor</heading>
+ <query>SELECT ed.id, ed.active, aou.shortname, LEFT(ed.name,25) || '...', ed.delay, ed.validator, ed.reactor
+ FROM action_trigger.event_definition ed
+ JOIN actor.org_unit aou ON aou.id = ed.owner
+ WHERE ed.owner IN (SELECT DISTINCT home_ou FROM actor_usr)
+ OR ed.owner IN (SELECT DISTINCT parent_ou FROM actor.org_unit WHERE id in (SELECT DISTINCT home_ou FROM actor_usr));
+ </query>
+ </report>
+
+ <report>
+ <name>notices_count</name>
+ <tag>notices</tag>
+ <iteration>0</iteration>
+ <report_title>Count of Notices Run with State</report_title>
+ <heading>Count of Notices.State.ID.Owner.Name</heading>
+ <query>SELECT COUNT(ate.id), ate.state, ed.id, aou.shortname, LEFT(ed.name,25) || '...'
+ FROM action_trigger.event_definition ed
+ JOIN actor.org_unit aou ON aou.id = ed.owner
+ JOIN action_trigger.event ate ON ate.event_def = ed.id
+ WHERE ed.owner IN (SELECT DISTINCT home_ou FROM actor_usr)
+ OR ed.owner IN (SELECT DISTINCT parent_ou FROM actor.org_unit WHERE id in (SELECT DISTINCT home_ou FROM actor_usr))
+ GROUP BY 2,3,4;
+ </query>
+ </report>
+
+
</reports_file>