[Archivesspace_Users_Group] Unpublish Repository from Public Interface

Callahan, Maureen maureen.callahan at yale.edu
Wed Feb 17 16:39:29 EST 2016


Hey Phil,

I don’t know if you’ve thought about using the API for updates like this, but we’re taking the approach of never touching the database directly (for safety reasons — API updates help make sure that we’re only making changes that are schema-valid. Plus, those database table are hella complicated. Plus, API updates kick of re-indexing of that record automatically. Plus, I’m enjoying learning to use the API!).

Here’s some extremely middling Python by someone who is very new at this to unpublish some resource records. This may inspire you to do something similar for your repository record: https://github.com/YaleArchivesSpace/ASpaceScripts/blob/master/UpdatePublish4Resource.py

Thanks,
Maureen


On Feb 17, 2016, at 4:31 PM, Suda, Phillip J <psuda1 at tulane.edu<mailto:psuda1 at tulane.edu>> wrote:

Greetings all,

                I figured out how to unpublish the repository. In the repository table in the table, there is a “hidden” field. Changing this from 0 to 1 hides the repository. You will have to stop/start/reindex your instance.

Thanks,

Phil

From: Suda, Phillip J
Sent: Monday, February 15, 2016 12:26 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Unpublish Repository from Public Interface

Greetings all,

                A library (repository) wants to unpublish all of their records. I have figured out how to do this on the sql/database side of things. Is there a way to unpublish/suppress a repository from the repository tab? Or do I need to use some javascript to hide the repository in question? I tried finding the page in the view to create a ‘plugin’ to only list certain repositories, but I cannot find the view in question.

Thanks,

Phil


Phillip Suda
Systems Librarian
Howard-Tilton Memorial Library
Tulane University
psuda1 at tulane.edu<mailto:psuda1 at tulane.edu>
504-865-5607

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwICAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=bsL4gXQLEorPl4XTlA_ZMzyTUER1c6GF9oZDhNfrP_U&s=KaIdnZKZqmhBTzg3zQJq7uSdK1jKJUxt-7NyjLWWg-0&e=

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


More information about the Archivesspace_Users_Group mailing list