diff --git a/SIS/clarin/modules/centre.xql b/SIS/clarin/modules/centre.xql index 20b8487d..44ba8d33 100644 --- a/SIS/clarin/modules/centre.xql +++ b/SIS/clarin/modules/centre.xql @@ -175,15 +175,17 @@ declare function cm:get-centre-info($id, $lang) { cm:get-default-info($id) return - cm:parseFormatRef($info) + cm:parseFormatRef($info, $id) }; -declare function cm:parseFormatRef($info) { +declare function cm:parseFormatRef($info,$id) { if ($info) then ( - element info { + element span { $info/@*, + attribute {"id"} {concat("desctext",$id)}, + attribute {"class"} {"desctext"}, for $node in $info/node() return if ($node/self::p) diff --git a/SIS/clarin/views/view-centre.xq b/SIS/clarin/views/view-centre.xq index 1b292b70..3ed4f91a 100644 --- a/SIS/clarin/views/view-centre.xq +++ b/SIS/clarin/views/view-centre.xq @@ -136,11 +136,11 @@ else else () } { - if ($centre-info) + if ($centre-info/*) then