<div dir="ltr">Thanks Noah and Maureen, I was able to update some test repository processing notes using Noah's scripts as a starting point for interacting with the API. I think this will do the trick for us. </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 1, 2016 at 10:52 AM, Noah Huffman <span dir="ltr"><<a href="mailto:noah.huffman@duke.edu" target="_blank">noah.huffman@duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Christie,<br>
<br>
I have a script that sort of does what Maureen suggests. Was going to mention it earlier, but it's a bit undercooked....<br>
<br>
<a href="https://github.com/noahgh221/archivesspace-duke-scripts/blob/master/duke_archival_object_metadata_adder.py" rel="noreferrer" target="_blank">https://github.com/noahgh221/archivesspace-duke-scripts/blob/master/duke_archival_object_metadata_adder.py</a><br>
<br>
It can read a two-column spreadsheet (as TSV) and batch add Repository Processing notes to archival objects via the API based on ref_ID values in the spreadsheet:<br>
<br>
The example above is a modified version of a script that folks at the Bentley wrote:<br>
<a href="https://github.com/djpillen/bentley_scripts/blob/master/update_archival_object.py" rel="noreferrer" target="_blank">https://github.com/djpillen/bentley_scripts/blob/master/update_archival_object.py</a><br>
<br>
The comments in the script should help you figure out what you might need to modify. For full disclosure, I'm a Python noob, so this is probably terribly written, but I can confirm that it works for my use case.<br>
<br>
-Noah<br>
<span class=""><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: Monday, February 01, 2016 10:43 AM<br>
To: Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
Subject: Re: [Archivesspace_Users_Group] AT Migration problem with repository processing note<br>
<br>
</span>Hey Christie,<br>
<br>
Doing it now, we would probably write a script to do an update using the API (better built-in validation, fewer opportunities to do something stupid). During the migration, there's a choice to keep or re-assign refids - you're definitely going to want to keep those to help match up the components.<br>
<div class="HOEnZb"><div class="h5"><br>
It's worth noting that we made those SQL updates because of mistakes in the migrator. I'm interested to know if those ever got fixed.<br>
<br>
MC<br>
<br>
<br>
> On Feb 1, 2016, at 10:36 AM, Peterson, Christie <<a href="mailto:cspeterson@email.gwu.edu">cspeterson@email.gwu.edu</a>> wrote:<br>
><br>
> Hi Noah,<br>
><br>
> Yep, that's the kind of thing we're probably going to end up doing.<br>
><br>
> Many thanks!<br>
><br>
> Christie<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="https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis</a>.<br>
> org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwICAg&c=-dg2m7zW<br>
> uuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=n1N3sMK<br>
> X9kb8hCXfWyWw-9rmsPmqB9BhN_6Kckdfo5g&s=XXk6iOoNajjfK6Ebn6n3Oe4cvYGTMPW<br>
> o6wDb_Hto0q8&e=<br>
<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"><div dir="ltr"><div><font size="2">Ian Hardy</font></div><div>Systems Specialist</div><div>GW Libraries</div><div><a href="mailto:ihardy@email.gwu.edu" target="_blank"><font size="2">ihardy@gwu.edu</font></a></div><div><font size="2">helpdesk: (202) 994</font>-8278</div></div></div>
</div>