Opened 12 years ago

Closed 12 years ago

#1055 closed defect (fixed)

MCP - unable to add "Other language"

Reported by: ianwallen Owned by: geonetwork-devel@…
Priority: major Milestone: v2.8.0
Component: User interface (web) Version: v2.8.0RC0
Keywords: Cc:

Description

When attempting to add "Other language" via the medatada editor, it always sets the language to "English" so I'm unable to add other languages via the interface.

OS: Windows XP Using todays 2.8 nightly build and latest MCP schema plugin.

Attachments (1)

update-fixed-info.patch (1.3 KB ) - added by ianwallen 12 years ago.

Download all attachments as: .zip

Change History (6)

by ianwallen, 12 years ago

Attachment: update-fixed-info.patch added

comment:1 by ianwallen, 12 years ago

The problem seems to be in the update-fixed-info.xsl file.

<xsl:template match="gmd:languageCode[gmd:LanguageCode/@codeList]" priority="10">
 <xsl:copy>
  <gmd:LanguageCode codeList="http://www.isotc211.org/2005/resources/Codelist/ML_gmxCodelists.xml#LanguageCode" codeListValue="eng">English</gmd:LanguageCode>
 </xsl:copy>
</xsl:template>

Not sure why this was hard coded to "English"?

I also noticed the same for the Country - it is hard coded to "Australia"? This means that code similar to the following would not be possible. (Taken from http://www.schemacentral.com/sc/niem21/e-gmd_PT_Locale.html)

<gmd:PT_Locale>
   <gmd:languageCode>
      <gmd:LanguageCode codeList="http://www.example.com/" codeListValue="http://www.example.com/">string</gmd:LanguageCode>
   </gmd:languageCode>
   <gmd:country>
      <gmd:Country codeList="http://www.example.com/" codeListValue="http://www.example.com/">string</gmd:Country>
   </gmd:country>
   <gmd:characterEncoding>
      <gmd:MD_CharacterSetCode codeList="http://www.example.com/" codeListValue="http://www.example.com/">string</gmd:MD_CharacterSetCode>
   </gmd:characterEncoding>
</gmd:PT_Locale>

I have upload a proposed patch based on the update-fixed-info.xsl from update-fixed-info.xsl

comment:3 by simonp, 12 years ago

Resolution: fixed
Status: newclosed

comment:4 by ianwallen, 12 years ago

Resolution: fixed
Status: closedreopened

I believe this was just a partial fix. It fixed the issue in that I can now select another main languages for the MCP metadata.

However if I click on "Other Languages" for the metadata I get an blank selection box. So I cannot create a multilingual record.

This may be related to Ticket #1054?

comment:5 by simonp, 12 years ago

Resolution: fixed
Status: reopenedclosed

Yes - Both languageCode *and* language need to be processed in iso19139 mode to pick up the language select box - why can't we all speak one language eg. esperanto? - would make things much easier! :-) Thanks.

Note: See TracTickets for help on using tickets.