WEBLAB-1541 : add functionnality to download native Content by clicking on the link

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabServices/Portlets/metadata-portlet@4454 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent 34a38eb0
......@@ -10,7 +10,7 @@
<groupId>org.ow2.weblab.portlets</groupId>
<artifactId>weblab-metaview</artifactId>
<version>2.2.3</version>
<version>2.2.4-SNAPSHOT</version>
<packaging>war</packaging>
<name>WebLab Metaview</name>
......
......@@ -272,19 +272,16 @@
test="${metaDisplay['isExposedAs'] && weblab:hasValue(resource, rdfProperties['isExposedAs'])}">
<tr>
<th><fmt:message key="meta.isExposedAs" /></th>
<td><c:choose>
<td>
<c:set var="nativeContentPath">${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}<weblab:getPropertyValues
uri="${rdfProperties['isExposedAs'] }" /></c:set>
<c:choose>
<c:when test="${metaDisplay['hasOriginalFileName'] && weblab:hasValue(resource, rdfProperties['hasOriginalFileName'])}">
<c:set var="hasOriginalFileNameString"><weblab:getPropertyValues uri="${rdfProperties['hasOriginalFileName'] }" /></c:set>
<i>
<a href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}<weblab:getPropertyValues
uri="${rdfProperties['isExposedAs'] }" />
"><weblab:getPropertyValues
uri="${rdfProperties['hasOriginalFileName'] }" /></a></i>
</c:when>
<a href="${nativeContentPath}" download="${hasOriginalFileNameString}">${hasOriginalFileNameString}</a></i> </c:when>
<c:otherwise>
<weblab:renderValues style="anchor" cssClass="meta_link">
${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}<weblab:getPropertyValues
uri="${rdfProperties['isExposedAs'] }" />
</weblab:renderValues>
<i><a href="${nativeContentPath}" download>${nativeContentPath}</a></i>
</c:otherwise>
</c:choose>
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment