Commit 4009b97a authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1312: Implement initial vocabulary browsing mechanism

Task-Url: https://pm.winseda.de/issues/1312
parent cf4785e8
......@@ -28,3 +28,20 @@
<input type="hidden" id="selected-datasources" name="selected-datasources" value="[]" />
</div>
</nav>
<nav class="sidebar-block">
<h2><s:message code="~eu.dariah.de.minfba.search.options.available_filters" /></h2>
<c:forEach items="${availableFilters}" var="filter" varStatus="filterStatus">
<h3><s:message code="${filter.displayCode}" /></h3>
<ul id="search-available-filter-${filterStatus.index}" class="search-available-filter">
<c:forEach items="${filter.terms}" var="term" varStatus="termStatus">
<li ${termStatus.index>4 ? "class='hide'" : ""}><button class="btn btn-inline" onclick="search.addFilterTerm('${filter.label}', '${term.type}', '${term.term}');">${term.term} (${term.count})</button></li>
</c:forEach>
</ul>
<c:if test="${filter.totalSize > 4}">
<button id="btn-search-available-filter-more-${filterStatus.index}" class="btn btn-inline" onclick="search.showMoreFilterTerms('${filterStatus.index}');">~more..</button>
</c:if>
</c:forEach>
<input type="hidden" id="selected-filters" name="selected-filters" value="[]" />
</nav>
\ No newline at end of file
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