Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
48b394b5c9577e324192bdf751a123ff486c1ee8...d6e325d9c85c3d5a7a0f62d6c1206e34e126c709
Commits (1)
445: Link from search results presentation to quick-search * on
· d6e325d9
Gradl, Tobias
authored
Sep 27, 2021
respective collection (OPENED) Task-Url:
search#445
d6e325d9
Hide whitespace changes
Inline
Side-by-side
item/view.jsp
View file @
d6e325d9
...
...
@@ -11,7 +11,7 @@
<div
class=
"row"
>
<div
class=
"col-12 col-md-7 col-lg-8 col-xl-9"
>
<h3
id=
"item-detail-collection"
>
${collectionName}
</h3>
<h3
id=
"item-detail-collection"
>
<a
data-toggle=
"tooltip"
data-placement=
"right"
title=
"
<s:message
code=
"~eu.dariah.de.minfba.search.actions.collections.search_collection"
/>
"
href=
'
<s:url
value=
"/search/simple/?q=*&sourceId="
/>
${collection.id}'
>
${collectionName}
</
a></
h3>
<c:if
test=
"
${
rootParents
!=
null
&&
fn:
length
(
rootParents
)>
0
}
"
>
<c:forEach
items=
"
${
rootParents
}
"
var=
"hierarchyElement"
>
<ul
class=
"item-detail-hierarchy"
>
...
...
@@ -38,7 +38,7 @@
<form
method=
"POST"
action=
"
<s:url
value=
"/search/simple/"
/>
"
>
<span>
${fn:replace(title.value, newLineChar, " ")}
</span>
<input
type=
"hidden"
name=
"expression"
value=
"#mlt: ${fn:replace(title.value, newLineChar, ' ')}"
/>
<button
type=
"submit"
class=
"btn btn-inline"
title=
"~Find similar
"
onclick=
'resultItem.findSimilar(this);'
><i
class=
"fas fa-
search
fa-2x"
></i></button>
<button
type=
"submit"
data-toggle=
"tooltip"
data-placement=
"right"
title=
"
<s:message
code=
"~eu.dariah.de.minfba.search.view.result.more_like_this"
/>
"
class=
"btn btn-inline
"
onclick=
'resultItem.findSimilar(this);'
><i
class=
"fas fa-
binoculars
fa-2x"
></i></button>
</form>
</c:forEach>
</c:otherwise>
...
...
@@ -143,7 +143,35 @@
</div>
</c:if>
<c:if
test=
"
${
secondaryInfo
!=
null
&&
fn:
length
(
secondaryInfo
)>
0
}
"
>
<div
id=
'secondary-info-container'
style=
"margin-top: -1em; margin-bottom: 2em;"
>
<button
id=
"btn-collapse-secondary-info"
class=
"btn btn-inline collapsed"
type=
"button"
data-toggle=
"collapse"
data-target=
"#collapseSecondaryInfo"
aria-expanded=
"false"
aria-controls=
"collapseSecondaryInfo"
>
<s:message
code=
"~eu.dariah.de.minfba.search.view.result.further_metadata"
/>
<i
class=
"fas fa-chevron-down"
></i>
</button>
<div
class=
"collapse"
id=
"collapseSecondaryInfo"
>
<c:forEach
var=
"secInfo"
items=
"
${
secondaryInfo
}
"
>
<c:if
test=
"
${
secInfo
.
childResources
!=
null
}
"
>
<c:forEach
items=
"
${
secInfo
.
childResources
}
"
var=
"infoProp"
>
<c:choose>
<c:when
test=
"
${
infoProp
.
key
==
'Type'
}
"
>
<c:set
var=
"infoType"
value=
"
${
infoProp
.
value
}
"
/>
</c:when>
</c:choose>
</c:forEach>
</c:if>
<div
style=
"margin-bottom: 1em;"
>
<small>
<c:if
test=
"
${
fn:
length
(
infoType
)>
0
}
"
>
<b>
${infoType}
</b>
</c:if>
${secInfo.value}
</small>
</div>
</c:forEach>
</div>
</div>
</c:if>
<!--
<c:if
test=
"
${
highlights
!=
null
&&
fn:
length
(
highlights
)>
0
}
"
>
...
...
@@ -223,9 +251,10 @@
<%@ include
file=
"incl/images.jsp"
%>
<h2><s:message
code=
"~eu.dariah.de.minfba.metamodel.collection"
/></h2>
<div
class=
"item-collection-image collection-image"
>
<img
src=
"${collection.imageUrl}"
>
<span>
${collectionName}
</span>
<div
class=
"item-collection-image collection-image"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"
<s:message
code=
"~eu.dariah.de.minfba.search.actions.collections.search_collection"
/>
"
>
<a
href=
'
<s:url
value=
"/search/simple/?q=*&sourceId="
/>
${collection.id}'
>
<img
src=
"${collection.imageUrl}"
><span>
${collectionName}
<i
class=
"fas fa-search"
></i></span>
</a>
</div>
</div>
...
...