An ArchivesSpace plugin that adds a background job to aid in identifying and remediating orphaned records.
This is the plugin for ArchivesSpace versions 2.6.0 and above. For a plugin compatible with earlier releases use: https://github.com/archivesspace-plugins/orphan_finder_job/tree/for_as_v2.5.2
- Archival objects
- Corporate Entities
- Families
- Instances
- Persons
- Software
- Subjects
Orphan records are identified by raw SQL queries so it is likely that additional record types could be added if desired with minimal work required.
During a test run, orphan records are identified and reported via the embedded job log. No action is taken on these records. This run type is useful when few orphaned records are identified and minimal manual review is required before deletion.
A review run is a test drive of the orphan finder that generates a downloadable csv
providing select information about the orphaned records. This run type is ideal for longer term or complex clean up projects when it is known that not all orphaned records are destined for deletion.
This job identifies orphan records and immediately deletes them in bulk. This run type should be used when one is certain that all orphaned records should be permanently deleted. This operation is not reversible.
- Stop the application
- Clone the plugin into the
archivesspace/plugins
directory - Add
orphan_finder_job
toconfig.rb
, ensuring to uncomment/remove the # from the front of the relevant AppConfig line. For example:AppConfig[:plugins] = ['local', 'orphan_finder_job']
- Restart the application