<report_title>Loaded Bibliographic Records</report_title>
<tag>bibs</tag>
<iteration>0</iteration>
- <heading>Count.Loaded</heading>
- <query>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</query>
- <note>False means the records are not deleted.</note>
+ <heading>Count</heading>
+ <query>SELECT COUNT(bre.id) FROM biblio_record_entry_legacy bre WHERE id IN (SELECT id FROM biblio.record_entry) ORDER BY 1</query>
+ </report>
+
+ <report>
+ <name>bibs_loaded</name>
+ <report_title>Loaded Bibliographic Records</report_title>
+ <tag>bibs</tag>
+ <iteration>1</iteration>
+ <heading>Count</heading>
+ <query>SELECT COUNT(bre.id) FROM biblio_record_entry bre WHERE id IN (SELECT id FROM biblio.record_entry) ORDER BY 1</query>
</report>
<report>
<iteration>0</iteration>
<heading>Count</heading>
<query>SELECT COUNT(id) FROM biblio_record_entry where id NOT IN (SELECT DISTINCT record FROM asset_call_number)</query>
+ <note>These records would not have been loaded.</note>
+ </report>
+
+ <report>
+ <name>bibswuri</name>
+ <report_title>Bibliographic Records With 856$9s</report_title>
+ <tag>bibs</tag>
+ <iteration>0</iteration>
+ <heading>Count</heading>
+ <query>SELECT COUNT(id) FROM biblio_record_entry where id IN (SELECT record FROM asset.call_number WHERE label ~* '##URI##')</query>
</report>
<report>
</report>
<report>
- <name>bib_merges_by_search_format</name>
+ <name>bib_merges_searchformat</name>
<report_title>Bibliographic Merges By Search Format</report_title>
<tag>bibs</tag>
<iteration>0</iteration>
<heading>Count.Item Type</heading>
- <query>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</query>
+ <query>DROP TABLE IF EXISTS temp_unnest; CREATE TABLE temp_unnest AS (SELECT UNNEST(records) FROM groups); SELECT COUNT(record), search_format_str FROM dedupe_batch WHERE record IN (SELECT * FROM temp_unnest) GROUP BY 2 ORDER BY 2</query>
</report>
<report>
<query>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;
+ FROM biblio_record_entry a LEFT JOIN biblio.record_entry b ON b.id = a.id WHERE b.id IS NULL AND a.x_migrate
</query>
</report>
ORDER BY 2, 1, 3</query>
</report>
+ <report>
+ <name>usr_settings</name>
+ <report_title>Patron Settings</report_title>
+ <tag>actors</tag>
+ <iteration>0</iteration>
+ <heading>Count.Setting.Value</heading>
+ <query>SELECT COUNT(*), name, 'User''s Phone' FROM actor_usr_setting WHERE name IN ('opac.default_phone') GROUP BY 2, 3
+ UNION ALL SELECT COUNT(*), name, value FROM actor_usr_setting WHERE name IN ('opac.hold_notify') GROUP BY 2, 3
+ UNION ALL SELECT COUNT(*), a.name, aou.shortname FROM actor_usr_setting a JOIN actor.org_unit aou ON aou.id = REPLACE(a.value,'"','')::INTEGER
+ WHERE a.name IN ('opac.default_pickup_location','opac.default_search_location') GROUP BY 2, 3 ORDER BY 2, 3;</query>
+ </report>
<!-- ACQUISITIONS 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
+ <report_title>Action Triggers Setup for Notices</report_title>
+ <heading>ID.Active.Owner.Name</heading>
+ <query>SELECT ed.id, ed.active, aou.shortname, ed.name
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)
<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) || '...'
+ <query>SELECT COUNT(ate.id), ate.state, ed.id, aou.shortname, ed.name
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