[Archivesspace_Users_Group] updating the enumerations file

Maura Carbone mauraa at brandeis.edu
Mon May 4 11:01:45 EDT 2015


Hi James and Nathan,
Yeah we knew how to do it through the database, I just wasn't sure why the
API wouldn't work (which I now have an answer for!). We had a few labels we
had to make for legacy data (non-Archon/AT) to be usable but we've
documented them should it pose a problem for migration. I just found it
strange that sometimes it would say updated successfully instead of
constantly giving me the 'access denied'.

Thanks for your responses!
Maura

On Mon, May 4, 2015 at 10:51 AM, James Bullen <james at hudmol.com> wrote:

>
> Maura,
>
> If you try to update an enum that isn’t editable it will give a 403
> Forbidden.
>
> I think date_label is not editable, so that might explain what you’re
> seeing.
>
> As Nathan said, these enums are protected through the API.
>
> It seems your choices are something like:
> -  Live with the date_label values as they are
> -  Flip the ‘editable’ boolean in the database and then proceed to update
> through the API
> -  Edit the schema file for enumerations to make ‘editable’ not readonly,
> then set editable to true through the API, and then do the updates you want
> through the API
>
> Note that there may well be good reasons for these enums to be
> non-editable, so you may run into trouble at some point if you start
> changing them.
>
> Good luck!
>
>
> James
>
>
> On May 4, 2015, at 9:59 AM, Maura Carbone <mauraa at brandeis.edu> wrote:
>
> I exported the list, updated it and then tried to reimport using this:
>
> curl -X POST -H "X-ArchivesSpace-Session: $token" '
> http://localhost:8089/config/enumerations/35' --data @date_label
>
> where token was the current exported token. If the file was identical I
> would get a 'updated' success. If it wasn't (I made the changes I needed),
> I get the access denied.
>
> On Mon, May 4, 2015 at 8:15 AM, Nathan Stevens <ns96 at nyu.edu> wrote:
>
>> I believe the only way to add to enumeration list which cannot be edited,
>> is not through the REST API, but directly to backend database using SQL
>> calls.
>>
>> On Mon, May 4, 2015 at 5:35 AM, Chris Fitzpatrick <
>> Chris.Fitzpatrick at lyrasis.org> wrote:
>>
>>> Hey,
>>>
>>>
>>> How are you passing in the authentication token?
>>>
>>> b,chris.
>>>
>>>
>>> Chris Fitzpatrick | Developer, ArchivesSpace
>>> Skype: chrisfitzpat  | Phone: 918.236.6048
>>> http://archivesspace.org/
>>> ------------------------------
>>> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
>>> archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of
>>> Maura Carbone <mauraa at brandeis.edu>
>>> *Sent:* Thursday, April 30, 2015 9:27 PM
>>> *To:* Archivesspace Users Group
>>> *Subject:* Re: [Archivesspace_Users_Group] updating the enumerations
>>> file
>>>
>>> Didn't want to start a new thread since this is so closely related but I
>>> keep getting "error: Access denied" when I try to do an update through the
>>> API. I am logged in as an admin. Any ideas?
>>>
>>> On Thu, Apr 30, 2015 at 2:45 PM, Callahan, Maureen <
>>> maureen.callahan at yale.edu>wrote:
>>>
>>>> That’s the conclusion that I’m coming to — I had somehow (erroneously)
>>>> hoped that the en.yml file both loaded the configurations and provided the
>>>> translation values, but I now see that it’s just providing a translation. I
>>>> suppose that I could do them in batch using the API —
>>>> http://archivesspace.github.io/archivesspace/doc/file.API.html#post-configenumerations
>>>>
>>>> Thanks for taking this journey with me, everyone.
>>>>
>>>> Maureen
>>>>
>>>>
>>>> On Apr 30, 2015, at 2:38 PM, Kevin Clair <Kevin.Clair at du.edu> wrote:
>>>>
>>>> Hello,
>>>>
>>>> Not sure if you've tried this yet, but you can do that from the "Manage
>>>> Controlled Value Lists" link in the System drop-down menu. I don't know
>>>> about importing more than one at a time; I usually just add the codes one
>>>> by one from there, and then edit the en.yml file afterward to add the
>>>> translations.  -k
>>>> ------------------------------
>>>> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org [
>>>> archivesspace_users_group-bounces at lyralists.lyrasis.org] on behalf of
>>>> Callahan, Maureen [maureen.callahan at yale.edu]
>>>> *Sent:* Thursday, April 30, 2015 12:29 PM
>>>> *To:* Archivesspace Users Group
>>>> *Subject:* Re: [Archivesspace_Users_Group] updating the enumerations
>>>> file
>>>>
>>>> I see in the readme:
>>>>
>>>>   * "enums/en.yml" contains the entries for the dynamic enumeration
>>>> codes - add your translations to this file after importing your enumeration
>>>> codes
>>>>
>>>> What does it mean to import enumeration codes? Any insights?
>>>>
>>>> MC
>>>>
>>>> On Apr 30, 2015, at 1:42 PM, Callahan, Maureen <
>>>> maureen.callahan at yale.edu> wrote:
>>>>
>>>> Yes I did. I tried re-starting the application a couple of times, but
>>>> no dice so far. I also had a colleague try this on her local instillation
>>>> as well.
>>>>
>>>> Maureen
>>>>
>>>> On Apr 30, 2015, at 1:40 PM, Brad Westbrook <brad.westbrook at lyrasis.org>
>>>> wrote:
>>>>
>>>> Hi, Maureen,
>>>>
>>>> Did you close ASpace, edit the file, and then restart Aspace?
>>>>
>>>> b
>>>>
>>>> -----Original Message-----
>>>> 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>] On Behalf
>>>> Of Callahan, Maureen
>>>> Sent: Thursday, April 30, 2015 1:38 PM
>>>> To: Archivesspace Users Group
>>>> Subject: [Archivesspace_Users_Group] updating the enumerations file
>>>>
>>>> Hi everyone,
>>>>
>>>> Have you ever updated the archivesspace/locales/enums/en.yml file?
>>>> We’re trying to do so, and while I’ve been able to get the file to
>>>> successfully load (it doesn’t throw an error, which is what happens if the
>>>> formatting is improper), it also doesn’t, like, *stick*. I still see the
>>>> default values. Is this a cacheing/indexing/whatever problem? Is there a
>>>> step beyond updating the file that I should know?
>>>>
>>>> Thanks for your help with what is probably a dumb question.
>>>>
>>>> Maureen
>>>>
>>>> Maureen Callahan
>>>> Archivist, Metadata Specialist
>>>> Manuscripts & Archives
>>>> Yale University Library
>>>> maureen.callahan at yale.edu
>>>> 203.432.3627
>>>>
>>>> Webpage: web.library.yale.edu/mssa
>>>> Collections: drs.library.yale.edu
>>>> _______________________________________________
>>>> Archivesspace_Users_Group mailing list
>>>> 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=AwIGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pBScezzUf_UPzb08UhVmNWd7iMH6O3IK4IPxOmqC2tA&s=U-B_SiTZZhkWQqCio-aCMBCG3J9bQjBurwyP5rCBQ54&e=
>>>>
>>>> _______________________________________________
>>>> Archivesspace_Users_Group mailing list
>>>> 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=AwIGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=pBScezzUf_UPzb08UhVmNWd7iMH6O3IK4IPxOmqC2tA&s=U-B_SiTZZhkWQqCio-aCMBCG3J9bQjBurwyP5rCBQ54&e=
>>>>
>>>>
>>>> _______________________________________________
>>>> Archivesspace_Users_Group mailing list
>>>> 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=86rKvCIfA0ydGkkfLYMcqOUfGLFrvrJp_E9-OrzYb6s&s=GouRUlAccTHzg4bZ4NTkaliZeroCAjw65yxOr_0-FPs&e=
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Archivesspace_Users_Group mailing list
>>>> 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=N06BtJ0l0NWCnHIyPqvGnSGwJP69r0zW0UbvSvRDYXE&s=lBHEFRDSgrsWfrHsrS3SerzPjLMpH9jSOqJEKlEO7Zo&e=
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Archivesspace_Users_Group mailing list
>>>> Archivesspace_Users_Group at lyralists.lyrasis.org
>>>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>>>
>>>>
>>>
>>>
>>> --
>>> Maura Carbone
>>> Digital Initiatives Librarian
>>> Brandeis University
>>> Library and Technology Services
>>> (781) 736-4659
>>> 415 South Street, (MS 017/P.O. Box 549110)
>>> Waltham, MA 02454-9110
>>> email: mauraa at brandeis.edu
>>>
>>> _______________________________________________
>>> Archivesspace_Users_Group mailing list
>>> Archivesspace_Users_Group at lyralists.lyrasis.org
>>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>>
>>>
>>
>>
>> --
>> Nathan Stevens
>> Programmer/Analyst
>> Digital Library Technology Services
>> New York University
>>
>> 1212-998-2653
>> ns96 at nyu.edu
>>
>> _______________________________________________
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group at lyralists.lyrasis.org
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>
>>
>
>
> --
> Maura Carbone
> Digital Initiatives Librarian
> Brandeis University
> Library and Technology Services
> (781) 736-4659
> 415 South Street, (MS 017/P.O. Box 549110)
> Waltham, MA 02454-9110
> email: mauraa at brandeis.edu
> !DSPAM:55477b6c197468075318469!
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
> !DSPAM:55477b6c197468075318469!
>
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>


-- 
Maura Carbone
Digital Initiatives Librarian
Brandeis University
Library and Technology Services
(781) 736-4659
415 South Street, (MS 017/P.O. Box 549110)
Waltham, MA 02454-9110
email: mauraa at brandeis.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150504/074b280d/attachment.html>


More information about the Archivesspace_Users_Group mailing list