[Archivesspace_Users_Group] Batch export EAD with numbered components using API?

Noah Huffman noah.huffman at duke.edu
Tue Sep 9 11:24:58 EDT 2014


Thanks Chris and Mark,

This worked:
curl -output "resource_#1.xml" -H "X-ArchivesSpace-Session: $TOKEN" "[backend-url]/repositories/41/resource_descriptions/$IDs.xml?numbered_cs=true&?include_daos=true"

It's really slow, but it works.

-Noah

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Chris Fitzpatrick
Sent: Tuesday, September 09, 2014 9:11 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Batch export EAD with numbered components using API?






Hi Noah,



If you add a parameter of numbered_cs = true it will number the components. There's also parameters for

"include_unpublished"  and "include_daos".



Odd this is not showing up in the API documentation..I will correct this.



b,chris.






Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Ben Goldman <bmg17 at psu.edu<mailto:bmg17 at psu.edu>>
Sent: Monday, September 08, 2014 10:48 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Batch export EAD with numbered components using API?

Noah,

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.

Thanks,
Ben



Ben Goldman
Digital Records Archivist
Penn State University Libraries
University Park, PA
814-863-8333
http://www.libraries.psu.edu/psul/speccolls.html


________________________________
From: "Noah Huffman" <noah.huffman at duke.edu<mailto:noah.huffman at duke.edu>>
To: "Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>" <Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>>
Sent: Monday, September 8, 2014 3:40:36 PM
Subject: [Archivesspace_Users_Group] Batch export EAD with numbered        components using API?

Hello,

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).

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):
curl -O -H "X-ArchivesSpace-Session: $TOKEN" "[backend-url]/repositories/41/resource_descriptions/$IDs.xml

Does anyone know the syntax for using the numbered component option with the API?

Thanks!
-Noah

================
Noah Huffman
Archivist for Metadata and Encoding
David M. Rubenstein Rare Book & Manuscript Library
Duke University
noah.huffman at duke.edu<mailto:noah.huffman at duke.edu>
919-660-5982
http://library.duke.edu/rubenstein/


_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140909/acd5d061/attachment.html>


More information about the Archivesspace_Users_Group mailing list