Commit d6e325d9 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

445: Link from search results presentation to quick-search * on

respective collection (OPENED)

Task-Url: search#445
parent 48b394b5
......@@ -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>
......
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