[Archivesspace_Users_Group] Container Checker
Kevin Clair
Kevin.Clair at du.edu
Wed Apr 20 14:34:20 EDT 2016
Hello,
Tried to run this; couldn’t figure out how to run ‘daff’ from command line. Has anyone been successful with that? The project readme isn’t very clear on it (to me, anyway). -k
From: <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of "chris.fitzpatrick at lyrasis.org<mailto:chris.fitzpatrick at lyrasis.org>" <Chris.Fitzpatrick at lyrasis.org<mailto:Chris.Fitzpatrick at lyrasis.org>>
Reply-To: Archivesspace Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Monday, April 18, 2016 at 5:38 AM
To: Archivesspace Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Container Checker
Hi,
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 [☹] )
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
http://archivesspace.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160420/0b7b8863/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OutlookEmoji-☹.png
Type: image/png
Size: 506 bytes
Desc: OutlookEmoji-☹.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160420/0b7b8863/attachment.png>
More information about the Archivesspace_Users_Group
mailing list