Commit 9f7b5581 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

439: Support search result preview for audio files (OPENED)

Task-Url: search#439
parent 255e23de
...@@ -77,15 +77,51 @@ ...@@ -77,15 +77,51 @@
</ul> </ul>
</c:if> </c:if>
<c:if test="${contentElements!=null && fn:length(contentElements)>0}">
<div id='item-content-elements' style="margin-bottom: 2em;">
<h2><s:message code="~eu.dariah.de.minfba.search.view.item.content" /></h2>
<c:forEach var="contentElement" items="${contentElements}">
<c:choose>
<c:when test="${contentElement.key=='Audio'}">
<c:forEach var="audio" items="${contentElement.value}">
<div style="margin-bottom: 1em;"><audio controls><source src="${audio.value}">Sorry - Ihr Browser hat keine Unterstützung für dieses Audio-Format.</audio></div>
</c:forEach>
</c:when>
<c:when test="${contentElement.key=='Video'}">
<c:forEach var="video" items="${contentElement.value}">
<div style="margin-bottom: 1em;"><video src="${video.value}">Sorry - Ihr Browser hat keine Unterstützung für dieses Video-Format.</audio></div>
</c:forEach>
</c:when>
<c:when test="${contentElement.key=='Info'}">
<c:forEach var="info" items="${contentElement.value}">
<div style="margin-bottom: 1em;">${info.value}</div>
</c:forEach>
</c:when>
<c:when test="${contentElement.key=='Frame'}">
<c:forEach var="frame" items="${contentElement.value}">
<div style="margin-bottom: 1em;">
<iframe allowfullscreen="allowfullscreen"
mozallowfullscreen="mozallowfullscreen"
msallowfullscreen="msallowfullscreen"
oallowfullscreen="oallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen"
src="${frame.value}" style="padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"></iframe>
</div>
</c:forEach>
</c:when>
</c:choose>
</c:forEach>
</div>
</c:if>
<c:if test="${highlights!=null && fn:length(highlights)>0}"> <!--<c:if test="${highlights!=null && fn:length(highlights)>0}">
<div id='item-highlights'> <div id='item-highlights'>
<h2><s:message code="~eu.dariah.de.minfba.search.view.result.resources.hits_in_document" /></h2> <h2><s:message code="~eu.dariah.de.minfba.search.view.result.resources.hits_in_document" /></h2>
<c:forEach var="highlight" items="${highlights}"> <c:forEach var="highlight" items="${highlights}">
<div>${highlight}</div> <div>${highlight}</div>
</c:forEach> </c:forEach>
</div> </div>
</c:if> </c:if> -->
<h2><s:message code="~eu.dariah.de.minfba.search.view.item.additional_data" /></h2> <h2><s:message code="~eu.dariah.de.minfba.search.view.item.additional_data" /></h2>
......
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