Add rdf link to individual page

This commit is contained in:
rjy7 2011-01-11 21:56:45 +00:00
parent 7874d600b9
commit 86b6d57fcf
2 changed files with 10 additions and 1 deletions

View file

@ -77,6 +77,12 @@ public class IndividualTemplateModel extends BaseTemplateModel {
return uri.startsWith(defaultNamespace) ? uri + "/" + getLocalName() + ".rdf" : null;
}
// RY Used for the rdf link on the individual page. Is it correct that this is not the same
// as getLinkedDataUrl()?
public String getRdfUrl() {
return getProfileUrl() + "/" + getLocalName() + ".rdf";
}
public String getEditUrl() {
return urlBuilder.getPortalUrl(Route.INDIVIDUAL_EDIT, "uri", getUri());
}

View file

@ -53,7 +53,10 @@
<li role="listitem"><a class="picto-font picto-uri" href="#">j</a></li>
<#--<li role="listitem"><a class="picto-font picto-pdf" href="#">F</a></li>-->
<li role="listitem"><a class="picto-font picto-share" href="#">R</a></li>
<li role="listitem"><a class="icon-rdf" href="#">RDF</a></li>
<#assign rdfUrl = individual.rdfUrl>
<#if rdfUrl??>
<li role="listitem"><a class="icon-rdf" href="${rdfUrl}">RDF</a></li>
</#if>
</ul>
</nav>