standardise lang matching
This commit is contained in:
parent
7487c978f2
commit
d04242446e
|
@ -299,7 +299,7 @@ public class ValueSetExpanderSimple extends ValueSetWorker implements ValueSetEx
|
||||||
ConceptDefinitionDesignationComponent tu = expParams.hasParameter("displayLanguage") ? getMatchingLang(designations, expParams.getParameterString("displayLanguage")) : null;
|
ConceptDefinitionDesignationComponent tu = expParams.hasParameter("displayLanguage") ? getMatchingLang(designations, expParams.getParameterString("displayLanguage")) : null;
|
||||||
if (tu != null) {
|
if (tu != null) {
|
||||||
n.setDisplay(tu.getValue());
|
n.setDisplay(tu.getValue());
|
||||||
} else if (display != null && (srcLang == null || dstLang == null || LanguageUtils.matches(dstLang, srcLang))) {
|
} else if (display != null && (srcLang == null || dstLang == null || LanguageUtils.langsMatch(dstLang, srcLang))) {
|
||||||
n.setDisplay(display);
|
n.setDisplay(display);
|
||||||
usedDisplay = true;
|
usedDisplay = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue