Adding code to make link to rdf/xml of entity page.
This commit is contained in:
parent
822ad3b159
commit
c90d286d8f
3 changed files with 13 additions and 1 deletions
|
@ -216,6 +216,11 @@ public class EntityController extends VitroHttpServlet {
|
|||
css += customCss;
|
||||
}
|
||||
|
||||
if( indiv.getURI().startsWith( vreq.getWebappDaoFactory().getDefaultNamespace() )){
|
||||
vreq.setAttribute("entityLinkedDataURL", indiv.getURI() + "/" + indiv.getLocalName() + ".rdf");
|
||||
}
|
||||
|
||||
|
||||
// generate link to RDF representation for semantic web clients like Piggy Bank
|
||||
// BJL 2008-07-16: I'm temporarily commenting this out because I forgot we need to make sure it filters out the hidden properties
|
||||
// generate url for this entity
|
||||
|
|
BIN
webapp/web/images/edit_icons/rdf_w3c_icon48.gif
Normal file
BIN
webapp/web/images/edit_icons/rdf_w3c_icon48.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 830 B |
|
@ -317,5 +317,12 @@ if (VitroRequestPrep.isSelfEditing(request) || LoginFormBean.loggedIn(request, L
|
|||
|
||||
${requestScope.servletButtons}
|
||||
|
||||
<!--
|
||||
<c:if test="${not empty entityLinkedDataURL}">
|
||||
<c:url var="rdfImg" value="/images/edit_icons/rdf_w3c_icon48.gif"/>
|
||||
<a href="${entityLinkedDataURL}" title="get this as RDF/XML"><img src="${rdfImg}"/></a>
|
||||
</c:if>
|
||||
-->
|
||||
</div> <!-- contents -->
|
||||
|
||||
</div> <!-- content -->
|
||||
|
|
Loading…
Add table
Reference in a new issue