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:linkURI ?url }
|
||||||
OPTIONAL { ?link core:rank ?rank }
|
OPTIONAL { ?link core:rank ?rank }
|
||||||
<critical-data-required>
|
<critical-data-required>
|
||||||
FILTER ( bound(?anchor) && bound(?url) )
|
FILTER ( bound(?url) )
|
||||||
</critical-data-required>
|
</critical-data-required>
|
||||||
} ORDER BY ?rank ?anchor
|
} ORDER BY ?rank ?anchor
|
||||||
</query-select>
|
</query-select>
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<#assign linkText>
|
<#assign linkText>
|
||||||
<#if statement.anchor??>${statement.anchor}
|
<#if statement.anchor?has_content>${statement.anchor}
|
||||||
<#else>${statement.linkName} (no anchor text provided for link)
|
<#elseif statement.url?has_content>${statement.url}
|
||||||
</#if>
|
</#if>
|
||||||
</#assign>
|
</#assign>
|
||||||
|
|
||||||
<#if statement.url??>
|
<#if statement.url?has_content>
|
||||||
<a href="${statement.url}">${linkText}</a>
|
<a href="${statement.url}">${linkText}</a>
|
||||||
<#else>
|
<#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>
|
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue