[Archivesspace_Users_Group] Location Records

Custer, Mark mark.custer at yale.edu
Fri Sep 12 08:34:46 EDT 2014


Thanks for sharing this script with everyone, Chris!

We've been using the API via cURL during our testing when not bugging our sysadmin to perform a complete wipe of our database, but I might give this approach a whirl the next time around.

Mark



From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Chris Fitzpatrick
Sent: Friday, September 12, 2014 7:25 AM
To: archivesspace_users_group at lyralists.lyrasis.org
Subject: Re: [Archivesspace_Users_Group] Location Records


Hi Shea,



I created a script to batch delete locations, which you can see here:

https://gist.github.com/cfitz/3db6e6c9313be8f2096f
[https://avatars1.githubusercontent.com/u/142965?s=140]<https://gist.github.com/cfitz/3db6e6c9313be8f2096f>

Delete ASpace locations
Delete ASpace locations - Gist is a simple way to share snippets of text and code with others.
Read more...<https://gist.github.com/cfitz/3db6e6c9313be8f2096f>




It's written in Ruby and required the rest_client gem ( "gem install rest_client" to install it)



Let me know if that works for you..b,chris.


Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/
________________________________
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 Shea, Patrick <PShea at chemheritage.org<mailto:PShea at chemheritage.org>>
Sent: Thursday, September 11, 2014 7:17 PM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Location Records

Greetings everyone.

We just installed Archive Space at my institution this week, so I am brand new to the group, and unfortunately already in need of some basic assistance.

I just finished batch-creating "location records," and now need to delete them all due to an error on my part.   I have begun deleting them individually, but I batch-created so many, that just about any alternative to that task would be more efficient.

Currently, the only thing I have done in AS is to create the repository, and manage the user access.  Starting everything over from scratch would not be a problem.  Do I have any alternatives to individually deleting or editing all of these location records?

Any advice is greatly appreciated.

-Patrick Shea




__________________________________

Patrick H. Shea, CA
Chief Curator of Archives and Manuscripts
Othmer Library of Chemical History
P: +1.215.873.8265
F: +1.215.629.5265

Chemical Heritage Foundation
LIBRARY * MUSEUM * CENTER FOR SCHOLARS
315 Chestnut Street  *  Philadelphia, PA 19106 * U.S.A.
chemheritage.org<http://www.chemheritage.org/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140912/997413a8/attachment.html>


More information about the Archivesspace_Users_Group mailing list