Skip to content

Commit

Permalink
hide warning and recommendation headers for non-depositing centres; c…
Browse files Browse the repository at this point in the history
…loses #288
  • Loading branch information
bansp committed Jun 12, 2024
1 parent bc9acc0 commit d4cd7da
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions SIS/clarin/views/view-centre.xq
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -89,7 +89,12 @@ else
<span class="heading">Research infrastructure: </span>
<ul>{cm:print-ri($centre-ri)}</ul>
</div>
{cm:print-curation($respStmt,$languageHeader)}
{
if ($isDepositing)
then
cm:print-curation($respStmt,$languageHeader)
else ()
}
{
if ($centre-info)
then
Expand Down Expand Up @@ -161,6 +166,9 @@ else
</div>
)
else (
if ($isDepositing)
then (

<div>
<span class="heading" id="recommendationTable">Recommendations: </span>
<span>not available</span>
Expand All @@ -171,6 +179,8 @@ else
<input name="id" type="hidden" value="{$id}"/>
</form>
</div>
)
else ()
)
}
</div>
Expand Down

0 comments on commit d4cd7da

Please sign in to comment.