[Archivesspace_Users_Group] Need to add new value to Subject Term Type lookup table

Majewski, Steven Dennis (sdm7g) sdm7g at virginia.edu
Fri Jan 17 20:31:52 EST 2020


This will make it editable and cause the ‘create’ button to appear:

MariaDB [archivesspace]> update enumeration set editable = 1 where name = "subject_term_type" ; 

But I’ld still like to understand the reason it was set as not editable as the default. 


— Steve M. 



> On Jan 17, 2020, at 5:02 PM, Bowers, Kate A. <kate_bowers at harvard.edu> wrote:
> 
> This needs to either be editable or include all of these controlled vocabularies (405 of them) with the ability to suppress display of them by repository managers:
> https://www.loc.gov/standards/sourcelist/subject.html <https://www.loc.gov/standards/sourcelist/subject.html>
>  
> Kate
>  
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Majewski, Steven Dennis (sdm7g)
> Sent: Friday, January 17, 2020 4:27 PM
> To: mcyzyk at jhu.edu; Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
> Subject: Re: [Archivesspace_Users_Group] Need to add new value to Subject Term Type lookup table
>  
>  
> subject_term_type enumeration is set as non-editable, which is why no create button appears in the view, and also, I believe, prevents changing it via the API as well:
>  
>  
> ./curl_as_osx http://localhost:4567/config/enumerations/names/subject_term_type <http://localhost:4567/config/enumerations/names/subject_term_type> | jq . 
> {
>   "lock_version": 0,
>   "name": "subject_term_type",
>   "editable": false,
>   "create_time": "2015-08-11T21:10:13Z",
>   "system_mtime": "2015-08-11T21:10:13Z",
>   "user_mtime": "2015-08-11T21:10:13Z",
>   "jsonmodel_type": "enumeration",
>   "relationships": [
>     "term_type"
>   ],
>   "enumeration_values": [
>> 
> 
> 
> 
>  
> I don’t know where the logic behind what values are editable and what are not is documented. 
> I’m thinking you could change this in MySQL, but it would be wise to know why is it set non-editable first. 
>  
> — Steve M. 
>  
>  
> 
> 
> On Jan 17, 2020, at 3:19 PM, Mark Cyzyk <mcyzyk at jhu.edu <mailto:mcyzyk at jhu.edu>> wrote:
>  
> 
> Dear Aspace List,
> 
> I've been asked to add two new terms in the following two lookup tables:
> 
> Subject Source:  lcmptm "Library of Congress Medium of Performance Thesaurus for Music
> Subject Term Type: medium_of_performacne "Medium of performance"
> 
> The Subject Source lookup table has a Create button, I click it, add "lcmptm", then go into /aspace/locales/enums/en.yml to add the corresponding "translation".
> 
> However, the Subject Term Type lookup table does NOT have a Create button.  I added the new value to the proper place in /aspace/locales/enums/en.yml anyway hoping it would show up in the Web GUI.  But no joy.
> 
> Question:  How can I add a new value to the Subject Term Type lookup table without a Create button?
> 
> Thanks,
> 
> Mark
> 
> -- 
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> Mark Cyzyk, M.A., M.L.S.
> Library Applications Group
> The Sheridan Libraries
> The Johns Hopkins University
> mcyzyk at jhu.edu <mailto:mcyzyk at jhu.edu>
> 
> Verba volant, scripta manent.
> 
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
>  
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200118/28ce2c88/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4974 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200118/28ce2c88/attachment.bin>


More information about the Archivesspace_Users_Group mailing list