From d4cd7daa234a7bd551d45a598980e4b73d4f0bbd Mon Sep 17 00:00:00 2001 From: bansp Date: Thu, 13 Jun 2024 00:34:35 +0200 Subject: [PATCH] hide warning and recommendation headers for non-depositing centres; closes #288 --- SIS/clarin/views/view-centre.xq | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/SIS/clarin/views/view-centre.xq b/SIS/clarin/views/view-centre.xq index 4a687826..c71ab9f0 100644 --- a/SIS/clarin/views/view-centre.xq +++ b/SIS/clarin/views/view-centre.xq @@ -25,7 +25,7 @@ let $template := request:get-parameter('template', '') let $centre := cm:get-centre($id) let $centre-name := $centre/name/text() let $centre-link := data($centre/a/@href) - +let $isDepositing := $centre/@deposition let $centre-ri := $centre/nodeInfo/ri let $recommendation := cm:get-recommendations($id) @@ -89,7 +89,12 @@ else Research infrastructure: - {cm:print-curation($respStmt,$languageHeader)} + { + if ($isDepositing) + then + cm:print-curation($respStmt,$languageHeader) + else () + } { if ($centre-info) then @@ -161,6 +166,9 @@ else ) else ( + if ($isDepositing) + then ( +
Recommendations: not available @@ -171,6 +179,8 @@ else
+ ) + else () ) }