incl_facet.jsp 2.19 KB
Newer Older
1
2
3
4
5
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>

Gradl, Tobias's avatar
Gradl, Tobias committed
6
7
8
<div id="facets${index}" class="search-facet d-flex">
	<div class="flex-grow-1">
		<select name="facets[${index}].elementId" id="facets${index}.elementId" class="form-control search-facet-element">
9
			<c:forEach items="${availableFacets}" var="availFacet">
10
				<c:choose>
11
					<c:when test="${availFacet.elementId==facet.elementId}">
12
13
14
15
16
17
18
						<c:set var="selected">selected="selected"</c:set>
					</c:when>
					<c:otherwise>
						<c:set var="selected"></c:set>
					</c:otherwise>
				</c:choose>
				<option ${selected} value="${availFacet.elementId}">${availFacet.displayName}</option>
19
20
21
			</c:forEach>
		</select>
	</div>
Gradl, Tobias's avatar
Gradl, Tobias committed
22
	<div class="flex-grow-1 pl-2">
Gradl, Tobias's avatar
Gradl, Tobias committed
23
		<input onkeypress="if (event.which==13) { search.queryHandler.doSearch(); }" name="facets[${index}].value" id="facets${index}.value" class="form-control search-facet-expression" type="text" placeholder="<s:message code="~eu.dariah.de.minfba.search.view.labels.query_expression" />" value="${facet.value}" />
Gradl, Tobias's avatar
Gradl, Tobias committed
24
25
26
	</div>
	<div class="mt-2">
		<input type="hidden" class="facet-fieldselect-hiddenindex" value="${index}" />
Gradl, Tobias's avatar
Gradl, Tobias committed
27
		<button onclick="search.queryHandler.removeSearchFacet(this);" class="btn btn-link btn-remove-search-facet"><i class="far fa-times-circle fa-color-danger"></i></button>
28
29
	</div>
	<!-- <div class="col-md-2">
30
31
32
		<label class="checkbox"><input type="checkbox" value="false" name="search-facet-not-${index}" class="search-facet-not-flag"><s:message code="~eu.dariah.de.minfba.search.view.labels.not" /></label>
		<label class="radio"><input type="radio" value="true" name="search-facet-flags-${index}" class="search-facet-must-flag"><s:message code="~eu.dariah.de.minfba.search.view.labels.must" /></label>
		<label class="radio"><input type="radio" value="false" checked="checked" name="search-facet-flags-${index}" class="search-facet-should-flag"><s:message code="~eu.dariah.de.minfba.search.view.labels.should" /></label>
33
34
	</div> -->
</div>