In the 'CSW server configuration' I entered the 'title' and 'abstract'
fields for several languages. However, when I make the GetCapabilitites call
for diferent languages, that's it:
List<String> langs = Lib.local.getLanguagesInspire(dbms);
if (isoLangParamValue != null) {
// Retrieve GN language id from Iso language id
if (langs.contains(isoLangParamValue)) {
currentLanguage = isoLangParamValue;
}
}
String defaultLanguage = Lib.local.getDefaultLanguage(dbms);
if (StringUtils.isEmpty(currentLanguage)) {
*currentLanguage = defaultLanguage;*
}
setInspireLanguages(capabilities, langs, currentLanguage,
defaultLanguage);
} /
The sentence '/String isoLangParamValue =
request.getAttributeValue("language");/' always fills isoLangParamValue with
a null value, therefore, 'currentLanguage' variable always takes the default
language (eng).
Can anyone give a solution to try to change the code in order to arrange
that?
Hi Montse, this is how it's expected to work [1]. When INSPIRE option is
enable, the LANGUAGE parameter (defined in the INSPIRE discovery service
technical guidance) of CSW requests is then used (instead of the internal
language info provided in GeoNetwork URLs).
List<String> langs = Lib.local.getLanguagesInspire(dbms);
if (isoLangParamValue != null) {
// Retrieve GN language id from Iso language id
if (langs.contains(isoLangParamValue)) {
currentLanguage = isoLangParamValue;
}
}
String defaultLanguage = Lib.local.getDefaultLanguage(dbms);
if (StringUtils.isEmpty(currentLanguage)) {
*currentLanguage = defaultLanguage;*
}
setInspireLanguages(capabilities, langs, currentLanguage,
defaultLanguage);
} /
The sentence '/String isoLangParamValue =
request.getAttributeValue("language");/' always fills isoLangParamValue
with
a null value, therefore, 'currentLanguage' variable always takes the
default
language (eng).
Can anyone give a solution to try to change the code in order to arrange
that?