NIHVIVO-759 Modify custom list view for core:webpage to display url if anchor text is absent
This commit is contained in:
parent
733e893288
commit
5461162130
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
OPTIONAL { ?link core:linkURI ?url }
|
||||
OPTIONAL { ?link core:rank ?rank }
|
||||
<critical-data-required>
|
||||
FILTER ( bound(?anchor) && bound(?url) )
|
||||
FILTER ( bound(?url) )
|
||||
</critical-data-required>
|
||||
} ORDER BY ?rank ?anchor
|
||||
</query-select>
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
-->
|
||||
|
||||
<#assign linkText>
|
||||
<#if statement.anchor??>${statement.anchor}
|
||||
<#else>${statement.linkName} (no anchor text provided for link)
|
||||
<#if statement.anchor?has_content>${statement.anchor}
|
||||
<#elseif statement.url?has_content>${statement.url}
|
||||
</#if>
|
||||
</#assign>
|
||||
|
||||
<#if statement.url??>
|
||||
<#if statement.url?has_content>
|
||||
<a href="${statement.url}">${linkText}</a>
|
||||
<#else>
|
||||
<a href="${profileUrl(statement.link)}">${linkText}</a> (no url provided for link)
|
||||
<a href="${profileUrl(statement.link)}">${statement.linkName}</a> (no url provided for link)
|
||||
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue