[Archivesspace_Users_Group] Container Checker

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Mon Apr 18 07:38:41 EDT 2016


I put together some SQL queries that might help some people verify their data post-container conversion.

Have a look at : https://github.com/archivesspace/container_checker

There's a few things here:

A SQL script<https://github.com/archivesspace/container_checker/blob/master/container.sql> to dump out a CSV file of all your containers and their associated resources/accessions/archival objects and locations.

Another SQL scrip<https://github.com/archivesspace/container_checker/blob/master/top_container.sql>t to pull out a CSV file of all you top_containers and their associated resources/accessions/archival objects and locations

A shell script<https://github.com/archivesspace/container_checker/blob/master/cc.sh> to run both the container and top_container SQL queries and diff them using the excellent Daff <https://github.com/paulfitz/daff> library and make a HTML table that shows the changes. ( script is linux only...sorry [&#X02639]  )

In theory, the CSV files should be identical after conversion. In reality, this won't be the case since the data can change for a variety of reasons ( most of them beneficial ). However, you can get an overview of what's going on with this and look at it in the comfort of Excel or your preferred Excel alternative.

Please give a go and let us know what you think. If you don't feel capable, or are too busy, or your IT guy is too busy, you can email me an MySQL dump of your database ( zipped up, please ) and I can send you back csv files and html output.

I'm also working on something to do a pre-flight conversion check that will try and call out some potential issues with conversion, which I should have done in the next 24 hours or so.

Thanks and let us know what you think.

best, Chris.

Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160418/771ff4e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OutlookEmoji-&#X02639.png
Type: image/png
Size: 506 bytes
Desc: OutlookEmoji-&#X02639.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160418/771ff4e2/attachment.png>

More information about the Archivesspace_Users_Group mailing list