[Archivesspace_Users_Group] Deleting Empty Top Containers

Stasiulatis, Suzanne sustasiula at pa.gov
Tue Sep 19 08:20:41 EDT 2017


Thank you both!

Suzanne

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Galligan, Patrick
Sent: Monday, September 18, 2017 9:05 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Deleting Empty Top Containers

Hey Suzanne,

We have automated this process for the most part.

If you want to have a method to just delete all orphaned top containers, you chan check out this Python script I wrote up really quickly: https://github.com/RockefellerArchiveCenter/scripts/blob/master/archivesspace/asDeleteOrphanContainers.py<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRockefellerArchiveCenter%2Fscripts%2Fblob%2Fmaster%2Farchivesspace%2FasDeleteOrphanContainers.py&data=02%7C01%7Csustasiula%40pa.gov%7C8bf8884c5c4e4ad8a1ae08d4fe95f5e8%7C418e284101284dd59b6c47fc5a9a1bde%7C1%7C0%7C636413367428603200&sdata=v982ks%2FV%2Bx0msIoNTi0gRi8xbwAQmwBEP91K0KlwJSQ%3D&reserved=0>

Let me know if you have any questions.

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: Sunday, September 17, 2017 at 2:09 PM
To: "archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>" <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Deleting Empty Top Containers


Hi, Suzanne.



Yep, that's exactly the way to do it, and exactly why the "unassociated" option was added.



Since top containers are scoped to repositories, though, if you have multiple repositories in your installation, then you'll need to perform this action within each repository.  We've assigned this cleanup task as something that our repository managers should do on a periodic basis.



We haven't decided to automate this task yet, however, which I guess gives us the opportunity to make sure that everything looks okay before activating the bulk delete option.  That said, I think that automating this on a periodic basis outside of normal business hours could be the way to go.  We had originally hoped that orphaned top containers could never be created in the staff application, but given that they can be associated with different resource, accession, and archival object records, it would be a bit tricky to do that, so orphaned, or unassociated, top containers will be created if an entire resource record is deleted, for instance.  Same thing happens right now for digital object records; the only difference there is that digital objects can also be created as stand-alone records in the staff interface, whereas you can't do that with top containers (without using the API).



Mark

________________________________
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 Stasiulatis, Suzanne <sustasiula at pa.gov<mailto:sustasiula at pa.gov>>
Sent: Saturday, September 16, 2017 1:55:14 PM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Deleting Empty Top Containers

Hello,

I am working in ArchivesSpace version 1.5.4. I’d like to delete all of our empty top containers through the staff interface. By empty, I mean top containers that aren’t linked to any archival objects. I believe we created containers in the archival object page and then unlinked them at some point.

In Manage Top Containers, you can choose Yes for Unassociated containers and leave all other fields blank. This gives us a very long list. Can anyone confirm that this list includes all of our empty top containers and only our empty top containers?

[cid:image001.png at 01D33120.2DF10100]

Thanks!

Suzanne

Suzanne Stasiulatis | Archivist II
Pennsylvania Historical and Museum Commission | Pennsylvania State Archives
350 North Street | Harrisburg, PA 17120-0090
www.phmc.pa.gov/Archives<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.phmc.pa.gov_Archives%26d%3DDwMFAg%26c%3DcjytLXgP8ixuoHflwc-poQ%26r%3D7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU%26m%3Dp6DgPzipKtHj5MNdBWmiUC7F9PxIagbI68ckkTxVYSQ%26s%3DL5_6KoOslchLuYAG4MlU2hUAyE1KmI2Y-fkbpZn5N5o%26e%3D&data=02%7C01%7Csustasiula%40pa.gov%7C8bf8884c5c4e4ad8a1ae08d4fe95f5e8%7C418e284101284dd59b6c47fc5a9a1bde%7C1%7C0%7C636413367428603200&sdata=CA%2BUjC3dx%2FcxTwLD2RZWK39eFdtT0uxnJKPRoY0FMZM%3D&reserved=0>
sustasiula at pa.gov<mailto:sustasiula at pa.gov>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170919/8ff0195a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 52963 bytes
Desc: image001.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170919/8ff0195a/attachment.png>


More information about the Archivesspace_Users_Group mailing list