Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility between GeoNetwork 3.10 / RNDT: i18n #17

Open
pdorio opened this issue Nov 4, 2021 · 0 comments
Open

Incompatibility between GeoNetwork 3.10 / RNDT: i18n #17

pdorio opened this issue Nov 4, 2021 · 0 comments

Comments

@pdorio
Copy link

pdorio commented Nov 4, 2021

The "Provincia Autonoma di Bolzano" needs to compile the metadata in two languages.

  1. The RNDT model is loaded. The metadata language is Italian. Note: The default title given to the new dataset is: "RNDTv2: Modello per dataset".
  2. The XML is modified by adding the German "locale" parameters following the example of the INSPIRE multilingual datasets
<gmd:locale>
  <gmd:PT_Locale id="GER">
	 <gmd:languageCode>
		<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="ger">ger</gmd:LanguageCode>
	 </gmd:languageCode>
	 <gmd:characterEncoding/>
  </gmd:PT_Locale>
</gmd:locale>
  1. An attempt is made to compile the metadata, it is no longer possible to compile the data in Italian

2021-11-04_15h39_58

  1. Modify the metadata by entering both languages as "locale".
<gmd:locale>
      <gmd:PT_Locale id="ITA">
         <gmd:languageCode>
            <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="ita">ita</gmd:LanguageCode>
         </gmd:languageCode>
         <gmd:characterEncoding/>
      </gmd:PT_Locale>
  </gmd:locale>
   <gmd:locale>
      <gmd:PT_Locale id="GER">
         <gmd:languageCode>
            <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="ger">ger</gmd:LanguageCode>
         </gmd:languageCode>
         <gmd:characterEncoding/>
      </gmd:PT_Locale>
  </gmd:locale>
  1. Titles are compiled, this time it works.

2021-11-04_15h35_07

  1. Check the metadata saved in the XML, the titles are saved in gmd:LocalisedCharacterString. The main title, the one contained in gco:CharacterString will never be updated again.
<gmd:title xsi:type="gmd:PT_FreeText_PropertyType">
  <gco:CharacterString>RNDTv2: Modello per dataset</gco:CharacterString>
  <gmd:PT_FreeText>
	 <gmd:textGroup>
		<gmd:LocalisedCharacterString locale="#ITA">Limiti amministrativi</gmd:LocalisedCharacterString>
	 </gmd:textGroup>
	 <gmd:textGroup>
		<gmd:LocalisedCharacterString locale="#GER">Administrative Grenzen</gmd:LocalisedCharacterString>
	 </gmd:textGroup>
  </gmd:PT_FreeText>
</gmd:title>

This means that a harvesting from RNDT to this catalog will have the title 'RNDTv2: Modello per dataset' instead of 'Limiti amministrativi'.

@pdorio pdorio changed the title Incompatibility between RNDT and i18n Incompatibility between GeoNetwork 3.10 / RNDT: i18n Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant