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

678: Implement search result preview

Task-Url: https://mantisbt.tgradl.de/view.php?id=678
parent 9bf624d4
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<div class="panel panel-search-result search-results-resource-item">
<div class="panel-heading">
<div class="search-results-resources-collection">~{datasource}<span class="score pull-right">~{score}</span></div>
<h3 class="panel-title">~{title}</h3>
<div class="row">
<div class="col-sm-2 search-results-image" id="search-results-image-~{index}">
<div id="search-results-image-carousel-~{index}" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators"></ol>
<div class="carousel-inner" role="listbox"></div>
<!-- Controls -->
<a class="left carousel-control" href="#search-results-image-carousel-~{index}" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#search-results-image-carousel-~{index}" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="panel-body">
<div>
~{link}
<div class="panel-group search-result-subpanel" id="search-results-content-~{index}-accordion">
<div class="panel panel-default">
<div class="panel-heading">
<a class="collapsed" data-toggle="collapse" data-parent="search-results-content-~{index}-accordion" href="#search-results-content-~{index}-body">
<s:message code="~de.dariah.genericsearch.view.search.resource.content" />
</a>
</div>
<div style="height: 0px;" id="search-results-content-~{index}-body" class="panel-collapse collapse">
<div class="panel-body">~{snippet}</div>
</div>
</div>
<div class="col-sm-10">
<div class="panel panel-search-result search-results-resource-item">
<div class="panel-heading">
<div class="search-results-resources-collection">~{datasource}<span class="score pull-right">~{score}</span></div>
<h3 class="panel-title">~{title}</h3>
</div>
<c:if test="${explain}">
<div class="panel-group search-result-subpanel"
id="search-results-resources-~{index}-accordion">
<div class="panel panel-default">
<div class="panel-heading">
<a class="collapsed" data-toggle="collapse" data-parent="search-results-resources-~{index}-accordion" href="#search-results-resources-~{index}-body">
<s:message code="~de.dariah.genericsearch.view.search.resource.explanation" />
</a>
</div>
<div style="height: 0px;" id="search-results-resources-~{index}-body" class="panel-collapse collapse">
<div class="panel-body">~{explanation}</div>
<div class="panel-body">
<div>
~{link}
<div class="panel-group search-result-subpanel" id="search-results-content-~{index}-accordion">
<div class="panel panel-default">
<div class="panel-heading">
<a class="collapsed" data-toggle="collapse" data-parent="search-results-content-~{index}-accordion" href="#search-results-content-~{index}-body">
<s:message code="~de.dariah.genericsearch.view.search.resource.content" />
</a>
</div>
<div style="height: 0px;" id="search-results-content-~{index}-body" class="panel-collapse collapse">
<div class="panel-body">~{snippet}</div>
</div>
</div>
</div>
<c:if test="${explain}">
<div class="panel-group search-result-subpanel"
id="search-results-resources-~{index}-accordion">
<div class="panel panel-default">
<div class="panel-heading">
<a class="collapsed" data-toggle="collapse" data-parent="search-results-resources-~{index}-accordion" href="#search-results-resources-~{index}-body">
<s:message code="~de.dariah.genericsearch.view.search.resource.explanation" />
</a>
</div>
<div style="height: 0px;" id="search-results-resources-~{index}-body" class="panel-collapse collapse">
<div class="panel-body">~{explanation}</div>
</div>
</div>
</div>
</c:if>
</div>
</c:if>
</div>
</div>
</div>
</div>
\ No newline at end of file
Supports Markdown
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