<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } @font-face { font-family: 'Cambria Math'; } @font-face { font-family: Calibri; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; } span.EmailStyle17 { font-family: Calibri, sans-serif; color: windowtext; } .MsoChpDefault { font-family: Calibri, sans-serif; } @page WordSection1 { margin: 1in; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span style="font-size: 12pt;">Hi Noah</span><span style="font-size: 12pt;">,</span></p>
<p><br>
</p>
<p>You need the "numbered_cs" param. See:<br>
</p>
<p><br>
</p>
<p><a href="http://sandbox.archivesspace.org:8089/doc" id="lnk501077">http://sandbox.archivesspace.org:8089/doc</a><br>
</p>
<div><br>
</div>
under: GET /repositories/:repo_id/resource_descriptions/:id.xml
<p><br>
</p>
<p>So this should work: <span style="color:rgb(33,33,33); font-family:Calibri,sans-serif; font-size:15px; background-color:rgb(255,255,255)">curl -O -H "X-ArchivesSpace-Session: $TOKEN" "[backend-url]/repositories/41/resource_descriptions/$IDs.xml</span>?<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">numbered_cs</span>=true"<br>
</p>
<p><br>
</p>
<p>Mark<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span dir="ltr"><font color="black" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt; background-color:white"><font face="Calibri,Arial,Helvetica,sans-serif"><font color="#282828" face="Calibri,Arial,Helvetica,sans-serif"><font color="#2F2F2F" face="Arial,sans-serif">Mark
Cooper</font><font color="black" face="Arial,sans-serif"> </font><font color="black" face="Calibri,sans-serif"><br>
</font><font color="#2F2F2F" face="Arial,sans-serif">LYRASIS -- Application Developer</font><font color="black" face="Calibri,sans-serif"><br>
</font><a href="mailto:mark.cooper@lyrasis.org" target="_blank" id="NoLP"><font face="Times New Roman,serif"><font face="Arial,sans-serif">mark.cooper@lyrasis.org</font></font></a><font color="black" face="Arial,sans-serif">
</font><font color="black" face="Calibri,sans-serif"><br>
</font><font color="#2F2F2F" face="Arial,sans-serif">800.999.8558 x 2920</font><font color="black" face="Arial,sans-serif">
</font><font color="black" face="Calibri,sans-serif"><br>
</font><font color="#2F2F2F" face="Arial,sans-serif">mark_c_cooper [Skype]</font></font></font></span></font></span></div>
</div>
<div style="color:rgb(33,33,33)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Noah Huffman
<noah.huffman@duke.edu><br>
<b>Sent:</b> Monday, September 08, 2014 12:40 PM<br>
<b>To:</b> 'Archivesspace_Users_Group@lyralists.lyrasis.org'<br>
<b>Subject:</b> [Archivesspace_Users_Group] Batch export EAD with numbered components using API?</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m trying to batch export all resource records as EAD in a given repository using the API, but I can’t quite figure out how to get numbered components (instead of unnumbered).</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">With the following command, I can get all resources as EAD with unnumbered components ($IDs is a list of all resource IDs in curly braces):</p>
<p class="MsoNormal"></p>
<p class="MsoNormal">curl -O -H "X-ArchivesSpace-Session: $TOKEN" "[backend-url]/repositories/41/resource_descriptions/$IDs.xml</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Does anyone know the syntax for using the numbered component option with the API?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks!</p>
<p class="MsoNormal">-Noah</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="color:#404040">================</span></p>
<p class="MsoNormal"><span style="color:#404040">Noah Huffman</span></p>
<p class="MsoNormal"><span style="color:#404040">Archivist for Metadata and Encoding</span></p>
<p class="MsoNormal"><span style="color:#404040">David M. Rubenstein Rare Book & Manuscript Library</span></p>
<p class="MsoNormal"><span style="color:#404040">Duke University</span></p>
<p class="MsoNormal"><span style="color:#404040"><a href="mailto:noah.huffman@duke.edu"><span style="color:#404040">noah.huffman@duke.edu</span></a></span></p>
<p class="MsoNormal"><span style="color:#404040">919-660-5982</span></p>
<p class="MsoNormal"><span style="color:#404040"><a href="http://library.duke.edu/rubenstein/"><span style="color:#404040">http://library.duke.edu/rubenstein/</span></a>
</span></p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</body>
</html>