<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">There is ead_export.sh in the scripts directory. </div><div class="">It only exports published collections, but that can be changed in the code if needed. </div><div class="">That script runs locally on the AS server and it writes into the archivesspace/data/</div><div class="">directory, so you need write access. </div><div class=""><br class=""></div><div class="">resource ids will not necessarily be sequential after deletions and transfers, but you</div><div class="">can get a JSON list of all of the ids from /repositories/$REPO_ID/resources?all_ids=true</div><div class="">and then loop over those ids. </div><div class=""><br class=""></div><div class="">— Steve Majewski</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 28, 2015, at 11:15 AM, Alexander Duryee <<a href="mailto:alexanderduryee@nypl.org" class="">alexanderduryee@nypl.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Phil,<br class=""><br class=""></div>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:<br class=""><br class=""></div>for x in {first..last}; do curl -H '[session token]' "<a href="https://[address]/repositories/[id]/resource_descriptions/${x}.xml" class="">https://[address]/repositories/[id]/resource_descriptions/${x}.xml</a>" > aspace_${x}.xml; done<br class=""><br class=""></div>A loop like that should generate EAD records for each resource in your repository.<br class=""><br class=""></div><div class="">Regards,<br class=""></div>--Alex <br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Jul 28, 2015 at 10:27 AM, Suda, Phillip J <span dir="ltr" class=""><<a href="mailto:psuda1@tulane.edu" target="_blank" class="">psuda1@tulane.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US" class="">
<div class=""><p class="MsoNormal">Greetings all, <u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal"> 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.
<u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Thanks, <u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Phil <u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Phillip Suda<u class=""></u><u class=""></u></p><p class="MsoNormal">Systems Librarian<u class=""></u><u class=""></u></p><p class="MsoNormal">Howard-Tilton Memorial Library<u class=""></u><u class=""></u></p><p class="MsoNormal">Tulane University<u class=""></u><u class=""></u></p><p class="MsoNormal"><a href="mailto:psuda1@tulane.edu" target="_blank" class="">psuda1@tulane.edu</a><u class=""></u><u class=""></u></p><p class="MsoNormal"><a href="tel:504-865-5607" value="+15048655607" target="_blank" class="">504-865-5607</a><u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
</div>
<br class="">_______________________________________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Alexander Duryee<div class="">Metadata Archivist</div><div class="">New York Public Library</div><div class="">(917)-229-9590</div><div class=""><a href="mailto:alexanderduryee@nypl.org" target="_blank" class="">alexanderduryee@nypl.org</a></div></div></div></div></div>
</div>
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></body></html>