<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Updating multilingual fields with Javascript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/updating-multilingual-fields-with-javascript/m-p/145631#M38589</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a Javascript executed by a rule on a folder when I drop a file into the folder.&lt;/P&gt;&lt;P&gt;The script takes a CSV file containing NodeIDs and field values which I would like to set, the primary one being cm:description and updates the values.&lt;BR /&gt;&lt;BR /&gt;Now when I run the script it updates the description but only of the description in the particular language that my browser is running in. When I now run a search based on the contents of the cm:description when running the browser in a different language I find the old values still. I need to change for all languages as the value should apply to all languages.&lt;/P&gt;&lt;P&gt;Q1. How can I apply to all languages?&lt;/P&gt;&lt;P&gt;Q2. How can I update only a specific language, irrespective of browser language?&lt;/P&gt;&lt;P&gt;Q3. How do I query the value in a particular language, irrespective of my browser language?&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 14:04:00 GMT</pubDate>
    <dc:creator>CologneClaret</dc:creator>
    <dc:date>2024-03-27T14:04:00Z</dc:date>
    <item>
      <title>Updating multilingual fields with Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/updating-multilingual-fields-with-javascript/m-p/145631#M38589</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a Javascript executed by a rule on a folder when I drop a file into the folder.&lt;/P&gt;&lt;P&gt;The script takes a CSV file containing NodeIDs and field values which I would like to set, the primary one being cm:description and updates the values.&lt;BR /&gt;&lt;BR /&gt;Now when I run the script it updates the description but only of the description in the particular language that my browser is running in. When I now run a search based on the contents of the cm:description when running the browser in a different language I find the old values still. I need to change for all languages as the value should apply to all languages.&lt;/P&gt;&lt;P&gt;Q1. How can I apply to all languages?&lt;/P&gt;&lt;P&gt;Q2. How can I update only a specific language, irrespective of browser language?&lt;/P&gt;&lt;P&gt;Q3. How do I query the value in a particular language, irrespective of my browser language?&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 14:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/updating-multilingual-fields-with-javascript/m-p/145631#M38589</guid>
      <dc:creator>CologneClaret</dc:creator>
      <dc:date>2024-03-27T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Updating multilingual fields with Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/updating-multilingual-fields-with-javascript/m-p/145632#M38590</link>
      <description>&lt;P&gt;Check, does your solr switched into multilanguage search?&lt;/P&gt;&lt;P&gt;To search in all locales solr6 Dockerfile must have something like this:&lt;/P&gt;&lt;PRE&gt;# Cross Locale
ARG CROSS_LOCALE
ENV CROSS_LOCALE $CROSS_LOCALE

# Enable Cross Locale SOLR Configuration
RUN if [ "$CROSS_LOCALE" == "true" ] ; then \
    sed -i '/^bash.*/i sed -i "'"/alfresco.cross.locale.datatype/s/^#//g"'" $DIST_DIR/solrhome/conf/shared.properties\n' \
    ${DIST_DIR}/solr/bin/search_config_setup.sh; \
fi&lt;/PRE&gt;&lt;P&gt;It uncomment all "alfresco.cross.locale.datatype" properties in the solr 'shared.properties' file.&lt;/P&gt;&lt;P&gt;Set variable "CROSS_LOCALE" to "true" in your deployment and rebuild solr.&lt;/P&gt;&lt;P&gt;I don't remember exactly, but the full reindex could be required to search cross locales.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 14:49:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/updating-multilingual-fields-with-javascript/m-p/145632#M38590</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2024-03-27T14:49:14Z</dc:date>
    </item>
  </channel>
</rss>

