[Archivesspace_Users_Group] Tools for batch updating locations in ArchivesSpace during a collections move

Custer, Mark mark.custer at yale.edu
Tue Jan 7 16:38:57 EST 2020


Lydia,

No, we definitely did not lose any data like that.  Any data that is already part of the record is posted back to the system as is, same as when you edit a record in the staff interface (i.e. if you change a title of a component, you don’t lose any notes associated with that record once you hit “save”).

The only thing that I recall right now that our approach did *not* account for is the fact that ArchivesSpace allows you to have multiple “current” locations for a single top container (e.g. http://test.archivesspace.org/staff/top_containers/530).  So, I think that our approach linked to below would have to be updated if you wanted, for whatever reason, to retain multiple current locations.  I was hopeful that we could have one “current” and 0 to more “previous” locations, but if I recall correctly, when you have previous locations in ArchivesSpace, those need to be marked as “temporary”.  So, right now, we just store one current location and ignore the fact that the container could have been previously shelved elsewhere.

Mark



From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Tang, Lydia
Sent: Tuesday, 07 January, 2020 3:59 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Tools for batch updating locations in ArchivesSpace during a collections move

Thanks for sending this, Mark!  When you did this, did you lose container profile info?  Just curious!
Lydia

From: <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of "Custer, Mark" <mark.custer at yale.edu<mailto:mark.custer at yale.edu>>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Tuesday, January 7, 2020 at 3:57 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Tools for batch updating locations in ArchivesSpace during a collections move

Bo,

Our approach was pretty similar to the approach that you linked to, in that the whole process is primarily broken down into three main steps:


  *   Extract and merge the data (in our case, primarily from ASpace and our ILS, Voyager)
  *   Compare and prep the data in a spreadsheet format
  *   Update ArchivesSpace with an edited version of that spreadsheet.

So, here’s a snippet of a CSV file that we used, with information merged from ASpace and Voyager:  https://github.com/YaleArchivesSpace/data_cleanup_workgroup/blob/master/top-container-updates/python-update-scripts/ARTS-dev-test.csv<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fgithub.com%2FYaleArchivesSpace%2Fdata_cleanup_workgroup%2Fblob%2Fmaster%2Ftop-container-updates%2Fpython-update-scripts%2FARTS-dev-test.csv__%3B!!HXCxUKc!ju-JUh9AVAy9fh2lHpSgwazI7JCwX68McfdrQ5vdxbUqppNCNXOcRMMVex8S7a983A%24&data=02%7C01%7Cmark.custer%40yale.edu%7Cd7a5a97b20334c10ea8908d793b46c1c%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637140275437273317&sdata=VOdaLptx2eOwU%2BmgyZ6Ie78jN6m%2BZA%2FR%2B4mUmWDLVDU%3D&reserved=0>

Once we verified everything was up-to-date there (we also tested the barcode check digit and other potential errors), we ran a simple API update to update all of those top containers in ArchivesSpace, with a variation of this script: https://github.com/YaleArchivesSpace/data_cleanup_workgroup/blob/master/top-container-updates/python-update-scripts/top-container-update.py<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fgithub.com%2FYaleArchivesSpace%2Fdata_cleanup_workgroup%2Fblob%2Fmaster%2Ftop-container-updates%2Fpython-update-scripts%2Ftop-container-update.py__%3B!!HXCxUKc!ju-JUh9AVAy9fh2lHpSgwazI7JCwX68McfdrQ5vdxbUqppNCNXOcRMMVex__E9D20Q%24&data=02%7C01%7Cmark.custer%40yale.edu%7Cd7a5a97b20334c10ea8908d793b46c1c%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637140275437283309&sdata=UPmdk7RzVNbz0g3wnm6wyqVuHVnLPjZCpUR7T8tonKQ%3D&reserved=0>

In our case, we were only updating three different values in ArchivesSpace:  the barcode, the location, and the start date for when the box was added to that location (if no value, it would just default to the date that the script was run).

Updating the data in ArchivesSpace was the easy part (although it does take time when you have lots and lots of containers!), but you will definitely want to test things out a lot outside of a production system first.  Doing everything else is where it takes a lot more time and planning, I think.

Also, it’s been a while since I’ve looked at resources related to getting up to speed with ArchivesSpace and its API, but here are two that I don’t think will ever go out of style:


  *   Overview by Hudson Molonglo: https://www.youtube.com/playlist?list=PLJFitFaE9AY_DDlhl3Kq_vFeX27F1yt6I<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLJFitFaE9AY_DDlhl3Kq_vFeX27F1yt6I__%3B!!HXCxUKc!ju-JUh9AVAy9fh2lHpSgwazI7JCwX68McfdrQ5vdxbUqppNCNXOcRMMVex82KcywVQ%24&data=02%7C01%7Cmark.custer%40yale.edu%7Cd7a5a97b20334c10ea8908d793b46c1c%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637140275437293303&sdata=BpKt1DDgu7G4lD0nOcjv7rvN3K%2FxpNyR58%2Fxug9Ot9o%3D&reserved=0>
  *   ArchivesSpace API workshop developed by Valerie Addonizio and Lora Woodford:   https://github.com/archivesspace/api-training<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fgithub.com%2Farchivesspace%2Fapi-training__%3B!!HXCxUKc!ju-JUh9AVAy9fh2lHpSgwazI7JCwX68McfdrQ5vdxbUqppNCNXOcRMMVex_EGF8nGg%24&data=02%7C01%7Cmark.custer%40yale.edu%7Cd7a5a97b20334c10ea8908d793b46c1c%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637140275437293303&sdata=tzfchGwacXyL2OGoU1%2FfV5O63wRQjWQF1EqMbqsmAoI%3D&reserved=0>

I hope that helps,

Mark

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Bolton Kelly Doub
Sent: Tuesday, 07 January, 2020 3:20 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Tools for batch updating locations in ArchivesSpace during a collections move

Hi Mark,

Thank you so much for your feedback -- this is very helpful.

And yes, your observations re: where our barcodes exist are correct:

  *   ArchivesSpace has all of our granular location info (room, row, range, shelf data), but no box barcodes
  *   Our ILS has the box barcodes, but much less specific location info (basically, there is one location code that covers the whole offsite storage facility that we are moving collections from)

I think we will probably end up going with some variation of the processes that you describe in your three bulleted suggestions. I like the approach of batch creating new locations rather than trying to update the existing locations. Regarding the use of the ArchivesSpace API to re-associate all of the containers to their new locations, do you have any resources, webinars, tutorials, github repositories, etc. that you could point us to that might help us start on this process? I have seen some of the resources for batch editing barcodes in ArchivesSpace through the API <https://www2.archivists.org/groups/research-libraries-section/batch-editing-barcodes-in-archivesspace-through-the-api<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fnam05.safelinks.protection.outlook.com%2F%3Furl%3Dhttps*3A*2F*2Fwww2.archivists.org*2Fgroups*2Fresearch-libraries-section*2Fbatch-editing-barcodes-in-archivesspace-through-the-api%26data%3D02*7C01*7Cmark.custer*40yale.edu*7C0e82e960359b4b1ee3ea08d793af0f9d*7Cdd8cbebb21394df8b4114e3e87abeb5c*7C0*7C1*7C637140252400902448%26sdata%3DdRN9zZR7is*2F07r*2BaTjmdb2VAed0cXm4SegTVpeih8NM*3D%26reserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSU!!HXCxUKc!ju-JUh9AVAy9fh2lHpSgwazI7JCwX68McfdrQ5vdxbUqppNCNXOcRMMVex9uzmN05A%24&data=02%7C01%7Cmark.custer%40yale.edu%7Cd7a5a97b20334c10ea8908d793b46c1c%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637140275437303305&sdata=1d52IDv9SX64QPzgNAcjIWs8Z4tGfqZEMIKbKzQp6z4%3D&reserved=0>>, but I’m not sure if these address the re-association of containers to new locations.

To your last point, we will need to keep all of the granular locations in ArchivesSpace because of the way we use Aeon in connection with ArchivesSpace to retrieve patron requests for archival material. Though I agree with you that this project should serve as an opportunity to get all of the box barcodes into ArchivesSpace.

Thanks again for your help and please let us know about relevant API tools if you know of any.

Best,
Bo

Bo Doub
Archival Projects Librarian
USC Libraries Special Collections
Doheny Memorial Library, Room B22
tel:213-740-8180

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> On Behalf Of Custer, Mark
Sent: Tuesday, January 7, 2020 11:13 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Tools for batch updating locations in ArchivesSpace during a collections move

Bo,

This sounds like a very tricky / fun project!

Though I have not gone through the exact same scenario, I have gone through a process of matching containers in finding aids with item records in corresponding MARC records in an ILS.  As with most problems of this type, I suspect that you will find that there are a variety of data disagreements between the multiple systems (e.g. a finding aid that references 50 different boxes, whereas you might have 52 different item records for that same collection in your ILS) and sometimes none of them agree with reality.

It sounds like you have location data in ArchivesSpace, but no barcodes…. Is that right?  If so, I’d probably suggest storing both the barcodes and the locations in ArchivesSpace, or barring that, just adding the location data to your ILS and keeping the barcodes there.  Better to have all of that data in one system, I’d think, rather than have it split.  But, in my mind, since ArchivesSpace is what’s going to be describing the entire collection, in the long run it might be easier to have the barcodes in ArchivesSpace, since you can’t just create a new top container record and *not* have it linked to description in your finding aid, whereas you certainly can add an item record to your ILS and not have that linked to any description in a finding aid.

Anyhow, if your ultimate goal is to add all of this data to ArchivesSpace, I’d suggest:


  *   Creating new locations for the new offsite facility rather than trying to batch update the existing locations (since there won’t be a one-to-one correspondence with the container associated with those locations);
  *   Using the API to re-associate all of those containers with their new location;
  *   Bonus:  try to see if you can get those barcodes into ArchivesSpace, since at the very least trying that out will alert you to those cases where there’s a disagreement between what’s in both systems (that said, you can’t rely on simple counts alone when making that comparison, since I’ve definitely stumbled across cases where the finding aid might have, say, boxes 1-3, and the ILS for that same collection has boxes 1-2 and something else, like, oversized folder A… so both agree that there are 3 containers… and yet, in reality, there might be 4 containers: three boxes and an oversized folder labelled A😊).

Last, is there another system aside from ArchivesSpace that keeps track of your offsite locations?  I ask because you might not need to be so granular when creating locations in ArchivesSpace in that case.  For instance, at Yale we have a single location for an off-site location – in ASpace we just know that they are off site, and another systems keeps track exactly where that barcode is stored in that offsite facility.  So, perhaps it’s just wishful thinking on my part, but I wonder if you couldn’t just create a single location code in ArchivesSpace for the new offsite facility, and then update all of the top containers currently associated with the multiple locations from the current facility to the new one?

Mark





From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Bolton Kelly Doub
Sent: Monday, 06 January, 2020 4:01 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Tools for batch updating locations in ArchivesSpace during a collections move

Hi All,

At the University of Southern California, we are preparing to move a high volume of archival collections (basically the contents of an entire offsite storage building) from one offsite facility to another. We are investigating tools and methods for batch updating locations in ArchivesSpace to spare us from having to edit each location record’s building, room, row, range, shelf, etc. fields individually.

One additional challenge to this task is that the capacity of each destination shelf in the new building will not necessarily match the capacity of the corresponding shelving in the old offsite storage building. In many cases, a set of boxes that shared the same shelf in the old facility will be split up into different shelves in the new facility.

Most of the boxes that are moving have unique barcodes displayed on each box. Most of these boxes also already have locations in ArchivesSpace (with building, room, row, range, and shelf values applied at the box level). However, the box barcodes are only documented in USC’s ILS system (Alma/Primo). The barcodes are not documented in our instance of ArchivesSpace.

Has anyone on this list worked through a collections move under similar conditions using ArchivesSpace? Do you know of any relevant plugins or ArchivesSpace API tools that we could use to batch change locations?

Thank you in advance for any help or feedback.

Happy New Year,
Bo

Bo Doub
Archival Projects Librarian
USC Libraries Special Collections
University of Southern California
Doheny Memorial Library
3550 Trousdale Parkway, Room B22
Los Angeles, CA 90089-0189
tel:213-740-8180
bdoub at usc.edu<mailto:bdoub at usc.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200107/234de76d/attachment.html>


More information about the Archivesspace_Users_Group mailing list