diff --git a/add/data/xql/getAnnotation.xql b/add/data/xql/getAnnotation.xql index fcf1972fd..4e2de75ce 100644 --- a/add/data/xql/getAnnotation.xql +++ b/add/data/xql/getAnnotation.xql @@ -202,11 +202,11 @@ declare function local:getItemLabel($elem as element()) { let $name := local-name($elem) return ( - if ($name = 'measure') then ( + if($name = 'measure') then ( if ($lang = 'de') then - (concat('Takt ', $elem/@n)) + (concat('Takt ', if ($elem/@label) then ($elem/@label) else ($elem/@n))) else - (concat('Bar ', $elem/@n)) + (concat('Bar ',if ($elem/@label) then ($elem/@label) else ($elem/@n))) ) else (),