<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div><div>Hi Sue,</div><div>The script is written in Python, so you can run it from your local machine (you’d just have to change a couple variables to point it to your hosted instance). It’s the same approach mentioned by a couple other people in this thread, just written in a different language.</div><div>It would be relatively easy to implement this as a plugin in the ArchivesSpace interface, but for us there’s not really a compelling reason to, since we want mass exports to be triggered by machines based an automated schedule, rather than being done by humans.</div><div><div><div><br></div><div>Hillel Arnold</div></div><div>Lead Digital Archivist</div><div>Rockefeller Archive Center</div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Susan Luftschein <<a href="mailto:luftsche@usc.edu">luftsche@usc.edu</a>><br><span style="font-weight:bold">Reply-To: </span> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br><span style="font-weight:bold">Date: </span> Tuesday, July 28, 2015 at 12:26 PM<br><span style="font-weight:bold">To: </span> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br><span style="font-weight:bold">Subject: </span> Re: [Archivesspace_Users_Group] FW:  Mass export of EAD<br></div><div><br></div><div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hi Patrick,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Is this something you have submitted to LYRASIS?  As an institution that uses the hosting service, we are somewhat limited in our customization of the software,
 and since this is a feature that I’m sure a lot of folks want, it would be great to have it included.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Just a thought.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Sue<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><div><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">Sue Luftschein<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">Archival and Metadata Librarian<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">USC Libraries Special Collections<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">University of Southern California<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">Doheny Memorial Library<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">3550 Trousdale Parkway, Room 207<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">Los Angeles, CA 90089-0189<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);"><a href="tel:213-740-4046"><span style="color:#2F5496">tel:213-740-4046</span></a><o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);">fax:213-740-2343<o:p></o:p></span></i></p><p class="MsoNormal"><i><span style="font-size: 9pt; font-family: Calibri, sans-serif; color: rgb(47, 84, 150);"><a href="mailto:luftsche@usc.edu"><span style="color:#2F5496">luftsche@usc.edu</span></a><o:p></o:p></span></i></p></div><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]
<b>On Behalf Of </b>Galligan, Patrick<br><b>Sent:</b> Tuesday, July 28, 2015 8:29 AM<br><b>To:</b> Archivesspace Users Group<br><b>Subject:</b> [Archivesspace_Users_Group] FW: Mass export of EAD<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Phil,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">My colleague, Hillel Arnold, has written a script to export all published EAD. It’s a little tailored to our installation, and has a bug or two, but with a
 little tweaking it could probably work for you.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><a href="https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asExport-ead.py">https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asExport-ead.py</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Patrick Galligan<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Rockefeller Archive Center<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Assistant Digital Archivist<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">914-366-6386<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;"><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]
<b>On Behalf Of </b>Alexander Duryee<br><b>Sent:</b> Tuesday, July 28, 2015 11:16 AM<br><b>To:</b> Archivesspace Users Group<br><b>Subject:</b> Re: [Archivesspace_Users_Group] Mass export of EAD<o:p></o:p></span></p></div><p class="MsoNormal"><o:p> </o:p></p><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Phil,<o:p></o:p></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">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:<o:p></o:p></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">for x in {first..last}; do curl -H '[session token]' "<a href="https://[address]/repositories/%5bid%5d/resource_descriptions/$%7bx%7d.xml">https://[address]/repositories/[id]/resource_descriptions/${x}.xml</a>"
 > aspace_${x}.xml; done<o:p></o:p></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">A loop like that should generate EAD records for each resource in your repository.<o:p></o:p></p></div><div><p class="MsoNormal">Regards,<o:p></o:p></p></div><p class="MsoNormal">--Alex <o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal">On Tue, Jul 28, 2015 at 10:27 AM, Suda, Phillip J <<a href="mailto:psuda1@tulane.edu" target="_blank">psuda1@tulane.edu</a>> wrote:<o:p></o:p></p><div><div><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Greetings all,
<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">             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.
<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks,
<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Phil
<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Phillip Suda<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Systems Librarian<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Howard-Tilton Memorial Library<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Tulane University<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="mailto:psuda1@tulane.edu" target="_blank">psuda1@tulane.edu</a><o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="tel:504-865-5607" target="_blank">504-865-5607</a><o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><o:p></o:p></p></div><p class="MsoNormal"><br><br clear="all"><br>
-- <o:p></o:p></p><div><div><div><div><p class="MsoNormal">Alexander Duryee<o:p></o:p></p><div><p class="MsoNormal">Metadata Archivist<o:p></o:p></p></div><div><p class="MsoNormal">New York Public Library<o:p></o:p></p></div><div><p class="MsoNormal">(917)-229-9590<o:p></o:p></p></div><div><p class="MsoNormal"><a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a><o:p></o:p></p></div></div></div></div></div></div></div></div></div></span></body></html>