[GeoNetwork-users] PDF not building properly when multilingual metadata

Hi,

My metadata are multilingual (2 languages: main language is Spanish and the
locale is catalan).

Suppose I select the catalan language from the Geonetwork drop-down list to
have the catalan interface.

Next, I make a search and, after that, I press de ‘pdf’ button that is
beside one of the metadata returned from the search. The content of the pdf
is in Catalan, except the fields of free text that are in Spanish. It seems
that, to build the pdf, is taking the spanish string from the metadata
(gco:CharacterString) instead of the locale one
(gmd:PT_FreeText/gmd:textGroup/gmd:LocalisedCharacterString).

Thanks a lot for your help.

Best regards,
Montse

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/PDF-not-building-properly-when-multilingual-metadata-tp5032177.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

I forgot to explain that this happens in version 2.8 RC2.
Best regards

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/PDF-not-building-properly-when-multilingual-metadata-tp5032177p5032196.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

I found the problem. The langId variable is not set properly, so the
metadata CharacterStrings branches always divert to the default language.

The file to be corrected is \xsl\*metadata-fop-utils.xsl* line 66. This line
is

/<xsl:with-param name=&quot;langId&quot;
select=&quot;concat('#',translate(substring(/root/gui/language,1,&lt;b>2*),$LOWER,$UPPER))"
/>/

but should be changed to this:

/<xsl:with-param name=&quot;langId&quot;
select=&quot;concat('#',translate(substring(/root/gui/language,1,&lt;b>3*),$LOWER,$UPPER))"
/>/

There is also an error in the
WEB-INF\data\config\schema_plugins\iso19139\present\*metadata-iso19139-fop.xsl*.
Line 310. This line is:

/select="./gmd:identificationInfo/*/gmd:resourceConstraints/*/gmd:useLimitation*/gco:CharacterString*">/

but should be changed to this:

/select="./gmd:identificationInfo/*/gmd:resourceConstraints/*/gmd:useLimitation">
/

Please, could you make those changes for the next versions?

Thanks and best regards,
Montse

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/PDF-not-building-properly-when-multilingual-metadata-tp5032177p5056343.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.