[Archivesspace_Users_Group] Mass export of EAD

Steven Majewski sdm7g at virginia.edu
Tue Jul 28 11:34:11 EDT 2015


There is ead_export.sh in the scripts directory. 
It only exports published collections, but that can be changed in the code if needed. 
That script runs locally on the AS server and it writes into the archivesspace/data/
directory, so you need write access. 

resource ids will not necessarily be sequential after deletions and transfers, but you
can get a JSON list of all of the ids from /repositories/$REPO_ID/resources?all_ids=true
and then loop over those ids. 

— Steve Majewski


> On Jul 28, 2015, at 11:15 AM, Alexander Duryee <alexanderduryee at nypl.org> wrote:
> 
> Phil,
> 
> As far as I'm aware, there's no bulk EAD export functionality in ASpace.  However, since ASpace's resource identifiers are sequential integers, you can loop over each resource id in a repository and make an API call for its EAD record:
> 
> for x in {first..last}; do curl -H '[session token]' "https://[address]/repositories/[id]/resource_descriptions/${x}.xml" > aspace_${x}.xml; done
> 
> A loop like that should generate EAD records for each resource in your repository.
> 
> Regards,
> --Alex 
> 
> On Tue, Jul 28, 2015 at 10:27 AM, Suda, Phillip J <psuda1 at tulane.edu <mailto:psuda1 at tulane.edu>> wrote:
> Greetings all,
> 
>  
> 
>              Is there an API or mass export feature for exporting all EAD records from a repository, etc.? I am only seeing a collection level export feature.
> 
>  
> 
> Thanks,
> 
>  
> 
> Phil
> 
>  
> 
> Phillip Suda
> 
> Systems Librarian
> 
> Howard-Tilton Memorial Library
> 
> Tulane University
> 
> psuda1 at tulane.edu <mailto:psuda1 at tulane.edu>
> 504-865-5607 <tel:504-865-5607>
>  
> 
> 
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
> 
> 
> 
> 
> -- 
> Alexander Duryee
> Metadata Archivist
> New York Public Library
> (917)-229-9590
> alexanderduryee at nypl.org <mailto:alexanderduryee at nypl.org>_______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150728/81c0facb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4943 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150728/81c0facb/attachment.bin>


More information about the Archivesspace_Users_Group mailing list