<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} @font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p><br>
</p>
<p>Hi Noah,</p>
<p><br>
</p>
<p>If you add a parameter of numbered_cs = true it will number the components. There's also parameters for
</p>
<p>"include_unpublished" and "include_daos". </p>
<p><br>
</p>
<p>Odd this is not showing up in the API documentation..I will correct this. </p>
<p><br>
</p>
<p>b,chris. <br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Ben Goldman
<bmg17@psu.edu><br>
<b>Sent:</b> Monday, September 08, 2014 10:48 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Batch export EAD with numbered components using API?</font>
<div> </div>
</div>
<div>
<div style="font-family:georgia,serif; font-size:10pt; color:#000000">
<div>Noah,<br>
</div>
<div><br>
</div>
<div>I don't have an answer to your question, but I'd be extremely interested in hearing more about this process once you have it nailed down. As part of our migration to ASpace, we're incorporating some other data silos, so ASpace will ultimately contain much
more data than we expose to our researchers. And since we don't plan, at this point, to use the public interface, we'd like to batch export these hundreds of new records at some point in the near future.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Ben</div>
<div><br>
</div>
<br>
<div><br>
</div>
<div><span name="x"></span><span size="2" style="color:#000000; font-size:small"><span style="font-family:georgia,serif; font-weight:bold">Ben Goldman</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">Digital Records Archivist</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">Penn State University Libraries</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">University Park, PA</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">814-863-8333<br>
<a href="http://www.libraries.psu.edu/psul/speccolls.html">http://www.libraries.psu.edu/psul/speccolls.html</a><br>
</span></span><span name="x"></span><br>
</div>
<br>
<hr id="zwchr">
<div style="color:#000; font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<b>From: </b>"Noah Huffman" <noah.huffman@duke.edu><br>
<b>To: </b>"Archivesspace_Users_Group@lyralists.lyrasis.org" <Archivesspace_Users_Group@lyralists.lyrasis.org><br>
<b>Sent: </b>Monday, September 8, 2014 3:40:36 PM<br>
<b>Subject: </b>[Archivesspace_Users_Group] Batch export EAD with numbered components using API?<br>
<div><br>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
<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" target="_blank"><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/" target="_blank"><span style="color:#404040">http://library.duke.edu/rubenstein/</span></a>
</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
Archivesspace_Users_Group@lyralists.lyrasis.org<br>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>