[Archivesspace_Users_Group] need help customizing text in ArchivesSpace

Majewski, Steven Dennis (sdm7g) sdm7g at virginia.edu
Mon Dec 9 14:06:12 EST 2019


There shouldn’t be a text value after ‘brand:’   
The value of en.brand is the hash of the following values, so that en.brand.title, for example, maps to a value.  
If you take out that text it should work: 

en:
 brand:
  title: McDaniel College Archives Catalog
  home: Home
  welcome_message: HEY HEY HEY! !


Error message is a bit confusing, but it’s trying to say it can’t assign mappings of title, home, welcome_message, to en.brand because it already has a string value of “McDaniel Archives” .


> On Dec 9, 2019, at 1:34 PM, Janet Hack <jhack at mcdaniel.edu> wrote:
> 
> So, I finally got some time to get back to this and still can't get it to work.
> 
> After updating the en.yml file located at plugins/local/public/locales/ to the following:
> 
> en:
>  brand: McDaniel Archives
>   title: McDaniel College Archives Catalog
>   home: Home
>   welcome_message: HEY HEY HEY! !
> and restarting the server, I get the following fatal error message in the log:
>  I18n::InvalidLocaleData (can not load translations from /opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml: #<Psych::SyntaxError: (/opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml): mapping values are not allowed here at line 3 column 8>
> ​Any suggestions would be greatly appreciated.
> 
>   - Janet
> 
> -----------------
> Janet Hack
> Science and Online Technologies Librarian
> Hoover Library | McDaniel College
> 2 College Hill | Westminster, MD 21157-4390
> 410-857-2283 | jhack at mcdaniel.edu <mailto:jhack at mcdaniel.edu>
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu>
> Sent: Friday, November 22, 2019 3:02 PM
> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
> Subject: Re: [Archivesspace_Users_Group] need help customizing text in ArchivesSpace
>  
> 
> 
>> On Nov 22, 2019, at 2:49 PM, Blake Carver <blake.carver at lyrasis.org <mailto:blake.carver at lyrasis.org>> wrote:
>> 
>> I think that doc is out of date, this might be more update:
>> https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md <https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md>
>> 
>>  
> 
> 
> Although, that doc has an error in the whitespace/indentation of the example. “brand:”  should be less indented.  — Steve.  
> 
> 
>> 
>> 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 Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu <mailto:sdm7g at virginia.edu>>
>> Sent: Friday, November 22, 2019 2:24 PM
>> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org <mailto:archivesspace_users_group at lyralists.lyrasis.org>>
>> Subject: Re: [Archivesspace_Users_Group] need help customizing text in ArchivesSpace
>>  
>> One thing to check:  the spaces and indentation in .yml files are significant, and you can’t mix tabs(*)  with spaces, so you should make sure that you haven’t accidentally inserted a tab when editing.  You can edit the file in place for testing, but for normal production, I advise copying the values you want to change into plugins/local/public/locales/en.yml and editing them there.  But again, you have to be careful to preserve .yml hierarchy. 
>> 
>> You may also eventually want to try copying some of the shared view templates into plugins/local/public/views/shared/   and editing those. 
>> It’s easier to manage upgrades if you keep your changes in plugins directories.  
>> 
>> (*) In fact, googling this, I see it doesn’t like tabs at all. Must be only spaces. 
>> 
>> 
>> — Steve M. 
>> 
>> 
>> 
>>> On Nov 22, 2019, at 1:50 PM, Janet Hack <jhack at mcdaniel.edu <mailto:jhack at mcdaniel.edu>> wrote:
>>> 
>>> Greetings,
>>> 
>>> we are new to ArchivesSpace and are trying to change the wording on our public-facing pages https://archivesspace.mcdaniel.edu/ <https://archivesspace.mcdaniel.edu/>. We want to change the header title from the standard "ArchivesSpace Public Interface" and we would like to put in a custom welcome message. I have tried editing the en.yml file following the instructions at https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/ <https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/> with no success. 
>>> 
>>> Any assistance would be greatly appreciated. Please feel free to contact me off-list.
>>> 
>>>   - Janet
>>> 
>>> -----------------
>>> Janet Hack
>>> Science and Online Technologies Librarian
>>> Hoover Library | McDaniel College
>>> 2 College Hill | Westminster, MD 21157-4390
>>> 410-857-2283 | jhack at mcdaniel.edu <mailto:jhack at mcdaniel.edu>_______________________________________________
>>> 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>
> _______________________________________________
> 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/20191209/87c98c00/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/20191209/87c98c00/attachment.bin>


More information about the Archivesspace_Users_Group mailing list