Commit 1ab887be authored by Matija Obreza's avatar Matija Obreza
Browse files

Allow data filtering on MLS status

parent 38b0aa25
......@@ -82,6 +82,7 @@ public class GenesysFilterServiceImpl implements GenesysFilterService {
this.availableFilters.add(new GenesysFilterImpl("taxon", FilterType.STRING));
this.availableFilters.add(new GenesysFilterImpl("crop", FilterType.STRING));
this.availableFilters.add(new GenesysFilterImpl("inSvalbard", FilterType.BOOLEAN));
this.availableFilters.add(new GenesysFilterImpl("mls", FilterType.BOOLEAN));
}
@Override
......@@ -117,6 +118,7 @@ public class GenesysFilterServiceImpl implements GenesysFilterService {
createQuery(sbf, "a.Origin", jsonTree.get("origin"), params);
createQuery(sbf, "a.Institute", jsonTree.get("institute"), params);
createQuery(sbf, "a.In_Svalbard", jsonTree.get("inSvalbard"), params);
createQuery(sbf, "a.MLS_Status", jsonTree.get("mls"), params);
createQuery(sbf, "org.slug", jsonTree.get("organization"), params);
createQuery(sbf, "t.Genus", jsonTree.get("genus"), params);
createQuery(sbf, "t.Taxon_Name", jsonTree.get("taxon"), params);
......
......@@ -228,6 +228,7 @@ filter.alt=Altitude
filter.genus=Genus
filter.taxon=Taxonomy name
filter.inSvalbard=In Svalbard
filter.mls=In Multilateral System
search.page.title=Full-text Search
search.no-results=No matches found for your query.
......
......@@ -10,9 +10,14 @@
<h1>
<spring:message code="itpgrfa.page.list.title" />
</h1>
<div class="page-header">
<a href="<c:url value="/acn/f"><c:param name="filter">{"mls":["Y"]}</c:param></c:url>"><spring:message code="view.accessions" /></a>
</div>
<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
<div id="letter-top" class="page-header">
<c:set value="" var="hoofdleter" />
<c:forEach items="${countries}" var="country" varStatus="status">
......
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