<div dir="ltr">Kevin is correct, this is the way to do this using the REST APIs.  NYU, is also going to have to tackle this issue since they make extensive use of an AT plugin which does this.  I was thinking of creating a desktop version of the AT plugin that works with ASpace, but time or the budget to do so is not currently there.   </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 7, 2015 at 2:02 PM, Kevin Clair <span dir="ltr"><<a href="mailto:Kevin.Clair@du.edu" target="_blank">Kevin.Clair@du.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Maureen,<br>
<br>
I've been working on a plugin that allows us to create new digital objects based on the metadata in an existing item record, to aid in our digitization workflow, and this is one of the problems it sets out to fix for us. What I ended up having to do was, once the digital object had been created, grab its URI, download the JSON for the original archival object, attach the digital object URI as a linked instance, and re-upload the new JSON through the backend. As far as I know that's the only solution, unless it's possible to write a plug-in with a backend controller that handles all those steps in one go.<br>
<br>
We also can't do this in batches yet, it only allows for linking single digital objects to single items.<br>
<br>
The code is here, with huge caveats that it's written specifically for our workflows and isn't actually in production at Denver yet: <a href="https://github.com/duspeccoll/digitized_object" rel="noreferrer" target="_blank">https://github.com/duspeccoll/digitized_object</a>  -k<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [mailto:<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>] On Behalf Of Callahan, Maureen<br>
Sent: Friday, August 07, 2015 11:45 AM<br>
To: Archivesspace Users Group<br>
Subject: [Archivesspace_Users_Group] attaching digital objects to archival objects<br>
<br>
Hi everyone,<br>
<br>
This may be a dumb question. I’m trying to wade in from the shallow end.<br>
<br>
I have a list of digital objects that I want to create in ArchivesSpace and a list of which archival objects they should become instances of. I’m sitting down to write a script to start doing this work, and I’m wondering if this is possible — if there’s actually an endpoint that will let me do this. I see that I can post children digital objects to already-existing digital objects (POST /repositories/:repo_id/digital_object_components/:id/children), but I don’t see an explicit way to add digital objects as instances of archival objects.<br>
<br>
Thoughts? How would others approach this work?<br>
<br>
Maureen<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" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><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" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Nathan Stevens<br>Programmer/Analyst<br>Digital Library Technology Services<br>New York University<br><br>1212-998-2653<br><a href="mailto:ns96@nyu.edu" target="_blank">ns96@nyu.edu</a></div>
</div>