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
Commits
579cef18
Commit
579cef18
authored
May 07, 2020
by
Gradl, Tobias
Browse files
Preparing CLARIAH-DE LMS
parent
f6d78da3
Changes
2
Hide whitespace changes
Inline
Side-by-side
item/incl/images.jsp
View file @
579cef18
...
...
@@ -2,30 +2,55 @@
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%@ taglib
prefix=
"s"
uri=
"http://www.springframework.org/tags"
%>
<c:if
test=
"
${
fn:
length
(
images
)>
0
}
"
>
<c:if
test=
"
${
fn:
length
(
images
)
+
fn:
length
(
frames
)
>
0
}
"
>
<h2><s:message
code=
"~eu.dariah.de.minfba.search.view.item.preview"
/></h2>
<div
id=
"item-images"
class=
"carousel slide"
data-ride=
"carousel"
data-interval=
"false"
>
<c:set
var=
"idx"
value=
"0"
/>
<c:forEach
items=
"
${
frames
}
"
var=
"frame"
varStatus=
"status"
>
<div
class=
"carousel-item${idx==0 ? ' active' : ''}"
>
<div
style=
"text-align: center;"
class=
"preview-image-label"
>
${idx+1} / ${fn:length(frames)+fn:length(images)}
</div>
<!-- <img src="
<s:url
value=
"/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY"
/>
">-->
<a
href=
"${frame.value}"
data-vbtype=
"iframe"
data-gall=
"item-image"
class=
"venobox"
>
<c:choose>
<c:when
test=
"
${
fn:
length
(
images
)>
0
}
"
>
<img
class=
"item-image"
style=
"opacity: 0.3"
src=
"
<s:url
value=
"/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${images[0].value}&type=DISPLAY"
/>
"
>
</c:when>
<c:otherwise>
<img
class=
"item-image"
src=
"
<s:url
value=
"/theme/img/placeholder-logo.png"
/>
"
>
</c:otherwise>
</c:choose>
<i
style=
"position: absolute; left: 42%; top: 41%; "
class=
"fa-3x fas fa-play"
></i>
</a>
</div>
<c:set
var=
"idx"
value=
"
${
idx
+
1
}
"
/>
</c:forEach>
<c:forEach
items=
"
${
images
}
"
var=
"image"
varStatus=
"status"
>
<div
class=
"carousel-item${
status.inde
x==0 ? ' active' : ''}"
>
<div
class=
"carousel-item${
id
x==0 ? ' active' : ''}"
>
<div
style=
"text-align: center;"
class=
"preview-image-label"
>
${
status.index+1} / ${
fn:length(images)}
</div>
<div
style=
"text-align: center;"
class=
"preview-image-label"
>
${
idx+1} / ${fn:length(frames)+
fn:length(images)}
</div>
<!-- <img src="
<s:url
value=
"/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY"
/>
">-->
<a
href=
"
<s:url
value=
"/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY"
/>
"
data-gall=
"item-image"
class=
"venobox"
>
<img
class=
"item-image"
src=
"
<s:url
value=
"/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY"
/>
"
>
</a>
</div>
<c:set
var=
"idx"
value=
"
${
idx
+
1
}
"
/>
</c:forEach>
<!-- Controls -->
<a
class=
"carousel-control-prev${fn:length(images)==1 ? ' hide' : ''}"
href=
"#item-images"
role=
"button"
data-slide=
"prev"
>
<a
class=
"carousel-control-prev${fn:length(images)
+fn:length(frames)
==1 ? ' hide' : ''}"
href=
"#item-images"
role=
"button"
data-slide=
"prev"
>
<span
class=
"carousel-control-prev-icon"
aria-hidden=
"true"
></span>
<span
class=
"sr-only"
>
Previous
</span>
</a>
<a
class=
"carousel-control-next${fn:length(images)==1 ? ' hide' : ''}"
href=
"#item-images"
role=
"button"
data-slide=
"next"
>
<a
class=
"carousel-control-next${fn:length(images)
+fn:length(frames)
==1 ? ' hide' : ''}"
href=
"#item-images"
role=
"button"
data-slide=
"next"
>
<span
class=
"carousel-control-next-icon"
aria-hidden=
"true"
></span>
<span
class=
"sr-only"
>
Next
</span>
</a>
...
...
item/view.jsp
View file @
579cef18
...
...
@@ -65,7 +65,7 @@
</c:forEach>
</c:when>
<c:otherwise>
<c:set
var=
"linkUrl"
value=
"
${
link
}
"
/>
<c:set
var=
"linkUrl"
value=
"
${
link
.
value
}
"
/>
<!-- <a href="${link}" target="_blank">${link}</a> -->
</c:otherwise>
</c:choose>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment