[Archivesspace_Users_Group] attaching digital objects to archival objects

Callahan, Maureen maureen.callahan at yale.edu
Fri Aug 7 14:15:41 EDT 2015


Dallas, this is AWESOME. Funnily enough, I too need to look up the archival object by its refid. This is almost literally everything I need.

Maureen


On Aug 7, 2015, at 2:13 PM, Dallas Pillen <djpillen at umich.edu<mailto:djpillen at umich.edu>> wrote:

Hi Maureen,

Not sure if this is the best/most appropriate way to do this, but I worked up a prototype for doing something similar to this that grabs an archival object's JSON, creates a new digital object and stores its URI, and then uses the update archival object endpoint (POST /repositories/:repo_id/:archival_objects/:id) to repost the archival object with the new instance. The script (that also has some probably irrelevant stuff up top to search for an archival object by its refid) is here: https://github.com/djpillen/bentley_scripts/blob/master/update_archival_object.py<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_djpillen_bentley-5Fscripts_blob_master_update-5Farchival-5Fobject.py&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=dE3x7UoGF1uqohcJg-skOipZKdbJwzJ4TqiLeSIeZUo&e=>



On Fri, Aug 7, 2015 at 1:44 PM, Callahan, Maureen <maureen.callahan at yale.edu<mailto:maureen.callahan at yale.edu>> wrote:
Hi everyone,

This may be a dumb question. I’m trying to wade in from the shallow end.

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.

Thoughts? How would others approach this work?

Maureen
_______________________________________________
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<https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=EIrEqNZEYtei_m-oBWB9oWhuSJCOVGeTiCL-wu8OwE8&e=>



--
Dallas Pillen
Project Archivist

[https://webapps.lsa.umich.edu/dean/lsa_emails/bentley-sig-em.png]
  Bentley Historical Library<https://urldefense.proofpoint.com/v2/url?u=http-3A__bentley.umich.edu_&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=z3DyD703-db39h_NpdvyUMRDYJN7lNb30ar8v6Kb6r4&e=>
  1150 Beal Avenue
  Ann Arbor, Michigan 48109-2113
  734.647.3559
  Twitter<https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_umichBentley&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=sRTAloRI72D0L8OjZXMJ7Z6VSwSxVWUI9mryMRFLyFs&e=> Facebook <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.facebook.com_bentleyhistoricallibrary&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=pjLNswB69vW8_MmpvMNA0Y_7Qt8G_BSj_FpDL04lVts&e=>
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwICAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=EIrEqNZEYtei_m-oBWB9oWhuSJCOVGeTiCL-wu8OwE8&e=

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


More information about the Archivesspace_Users_Group mailing list