[Archivesspace_Users_Group] Container Checker

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Wed Apr 20 14:41:52 EDT 2016


Hi Kevin,


Yeah, did you install daff?

https://github.com/paulfitz/daff


The script is using the javascript version of daff ( npm install daff -g ).

( you have to have nodejs installed ).


b,chris



Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/


________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Kevin Clair <Kevin.Clair at du.edu>
Sent: Wednesday, April 20, 2016 8:34 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Container Checker

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 [&#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
http://archivesspace.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160420/95d91a02/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/20160420/95d91a02/attachment.png>


More information about the Archivesspace_Users_Group mailing list