<html><body><div id="zimbraEditorContainer" style="font-family: georgia,serif; font-size: 10pt; color: #000000" class="2"><div>Thanks, Patrick. </div><div><br data-mce-bogus="1"></div><div>asReplaceContainers.py looks especially useful in our case. Can you tell me whether it retains Child Type and Child Indicator when it replaces a Top Container?</div><div><br data-mce-bogus="1"></div><div>Thanks,</div><div>Ben</div><div><br></div><div data-marker="__SIG_PRE__"><div><strong>Ben Goldman</strong><br> Digital Records Archivist & <br> Sally W. Kalin Early Career Librarian for Technological Innovations<br> Penn State University Libraries</div></div><br><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Galligan, Patrick" <PGalligan@rockarch.org><br><b>To: </b>"Archivesspace Users Group" <archivesspace_users_group@lyralists.lyrasis.org><br><b>Sent: </b>Wednesday, June 28, 2017 3:03:00 PM<br><b>Subject: </b>Re: [Archivesspace_Users_Group] merging/fixing duplicate top containers<br></div><br><div data-marker="__QUOTED_TEXT__"><div>Ben,</div>
<div><br>
</div>
<div>So, uh, we had some of the same issue. We generally identified that you need at least one barcode to realistically do it in our case. We have two scripts.
</div>
<div><br>
</div>
<div>1. This one is for resources where the Box numbers don't restart at 1 every series. It won't work if you have two separate box 1s. We know the script is a little messy, but we haven't had the chance to test a refactor. It basically matches based on logic
 around our barcodes. You could change this to match around other logic as necessary. Like you might be able to split your indicators and match based off of those. We did barcodes because we had faux codes after migration and it was the easiest way to identify
 the "real" container. <a href="https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asAutoReplaceContainers.py" target="_blank">
https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asAutoReplaceContainers.py</a></div>
<div><br>
</div>
<div>2. This you can use on resources that restart numbers. It's pretty manual, and you have to create a Csv first, but it gets the job done.
<a href="https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asReplaceContainers.py" target="_blank">
https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asReplaceContainers.py</a></div>
<div><br>
</div>
<div>There should be documentation in the repo, but let me know if you get stuck.
</div>
<div><br>
</div>
<div>-Patrick Galligan </div>
<br>
Sent with BlackBerry Work<br>
(www.blackberry.com)<br>
<br>
<div class="gw_quote" style="border-top:#b5c4df 1pt solid; padding-top:6px; font-size:14px">
<div><b>From: </b><span>Ben Goldman <<a href="mailto:bmg17@psu.edu" target="_blank">bmg17@psu.edu</a>></span></div>
<div><b>Date: </b><span>Thursday, Jun 29, 2017, 3:52 AM</span></div>
<div><b>To: </b><span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>></span></div>
<div><b>Subject: </b><span>[Archivesspace_Users_Group] merging/fixing duplicate top containers</span></div>
</div>
<br>
<div>
<div style="font-family:georgia,serif; font-size:10pt; color:#000000">
<div>Hello,</div>
<div><br>
</div>
<div>Without realizing it, we migrated a considerable number of poorly encoded instances into ASpace 1.5 and its new container model. We're trying to figure out how best to deal cases like the one in the screenshot below, where historical practice has found
 us encoding box and folder numbers in a single instance, with values separated by a slash. Until a merge feature is implemented, it looks like we may have to do this through the API, and I'm wondering if anyone has tackled something similar and can possibly
 share a solution.</div>
<div><br>
</div>
<div><img src="cid:0adb6e00e3d922e8cd87529d47fe6d5a6e97f6b0@zimbra"></div>
<div><br>
Thanks much,</div>
<div>Ben</div>
<div><br>
</div>
<div>
<div><strong>Ben Goldman</strong><br>
Digital Records Archivist & <br>
Sally W. Kalin Early Career Librarian for Technological Innovations<br>
Penn State University Libraries</div>
</div>
</div>
</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></body></html>