Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-views
Compare Revisions
255e23de4b3262402bd623ef7ca3a09f3016f03d...9f7b5581481f783778f33b94dc15f7be479ecc0a
Commits (1)
439: Support search result preview for audio files (OPENED)
· 9f7b5581
Gradl, Tobias
authored
Jul 15, 2021
Task-Url:
search#439
9f7b5581
Show whitespace changes
Inline
Side-by-side
item/view.jsp
View file @
9f7b5581
...
...
@@ -77,15 +77,51 @@
</ul>
</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'>
<h2>
<s:message
code=
"~eu.dariah.de.minfba.search.view.result.resources.hits_in_document"
/>
</h2>
<c:forEach
var=
"highlight"
items=
"
${
highlights
}
"
>
<div>${highlight}</div>
</c:forEach>
</div>
</c:if>
</c:if>
-->
<h2><s:message
code=
"~eu.dariah.de.minfba.search.view.item.additional_data"
/></h2>
...
...