Ben,

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.

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. 
https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asAutoReplaceContainers.py

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. 
https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asReplaceContainers.py

There should be documentation in the repo, but let me know if you get stuck.

-Patrick Galligan

Sent with BlackBerry Work
(www.blackberry.com)

From: Ben Goldman <bm...@psu.edu<mailto:bm...@psu.edu>>
Date: Thursday, Jun 29, 2017, 3:52 AM
To: Archivesspace Users Group 
<archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] merging/fixing duplicate top containers

Hello,

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.

[cid:0adb6e00e3d922e8cd87529d47fe6d5a6e97f6b0@zimbra]

Thanks much,
Ben

Ben Goldman
Digital Records Archivist &
Sally W. Kalin Early Career Librarian for Technological Innovations
Penn State University Libraries
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

Reply via email to