Commit 298afe46 authored by Matija Obreza's avatar Matija Obreza
Browse files

Added filter on material availability

parent 049be3ec
......@@ -83,6 +83,7 @@ public class GenesysFilterServiceImpl implements GenesysFilterService {
this.availableFilters.add(new GenesysFilterImpl("crop", FilterType.STRING));
this.availableFilters.add(new GenesysFilterImpl("inSvalbard", FilterType.BOOLEAN));
this.availableFilters.add(new GenesysFilterImpl("mls", FilterType.BOOLEAN));
this.availableFilters.add(new GenesysFilterImpl("available", FilterType.BOOLEAN));
}
@Override
......@@ -119,6 +120,7 @@ public class GenesysFilterServiceImpl implements GenesysFilterService {
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, "a.Availability", jsonTree.get("available"), 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);
......
......@@ -239,6 +239,7 @@ filter.genus=Genus
filter.taxon=Taxonomy name
filter.inSvalbard=In Svalbard
filter.mls=In Multilateral System
filter.available=Available for distribution
search.page.title=Full-text Search
search.no-results=No matches found for your query.
......
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