diff --git a/add/data/xqm/eutil.xqm b/add/data/xqm/eutil.xqm index 1d0cf76e..b9fb658e 100644 --- a/add/data/xqm/eutil.xqm +++ b/add/data/xqm/eutil.xqm @@ -224,7 +224,7 @@ declare function eutil:getPartLabel($measureOrPerfRes as node(), $type as xs:str let $dictKey := 'perfMedium.perfRes.' || functx:substring-before-if-contains($perfResLabel,'.') let $label := - if(eutil:getLanguageString($dictKey, (), $lang)) then + if(eutil:getLanguageString($dictKey, (), $lang) != 'noValueFound') then (eutil:getLanguageString($dictKey, (), $lang)) else ($perfResLabel) @@ -270,7 +270,7 @@ declare function eutil:getLanguageString($key as xs:string, $values as xs:string let $string := functx:replace-multi($string, for $i in (0 to (count($values) - 1)) return concat('\{',$i,'\}'), $values) return - $string + if($string) then $string else 'noValueFound' };