NIHVIVO-759 Modify custom list view for core:webpage to display url if anchor text is absent

This commit is contained in:
ryounes 2011-07-08 19:26:27 +00:00
parent 733e893288
commit 5461162130
2 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@
OPTIONAL { ?link core:linkURI ?url }
OPTIONAL { ?link core:rank ?rank }
<critical-data-required>
FILTER ( bound(?anchor) &amp;&amp; bound(?url) )
FILTER ( bound(?url) )
</critical-data-required>
} ORDER BY ?rank ?anchor
</query-select>

View file

@ -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>