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:linkURI ?url }
OPTIONAL { ?link core:rank ?rank } OPTIONAL { ?link core:rank ?rank }
<critical-data-required> <critical-data-required>
FILTER ( bound(?anchor) &amp;&amp; bound(?url) ) FILTER ( bound(?url) )
</critical-data-required> </critical-data-required>
} ORDER BY ?rank ?anchor } ORDER BY ?rank ?anchor
</query-select> </query-select>

View file

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