Commit b0c79e71 authored by Matija Obreza's avatar Matija Obreza
Browse files

Updated filtering to use new database model

parent 91a3eb88
......@@ -115,14 +115,14 @@ public class GenesysFilterServiceImpl implements GenesysFilterService {
}
StringBuffer sbf = new StringBuffer();
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, "a.Availability", jsonTree.get("available"), params);
createQuery(sbf, "a.orgCty", jsonTree.get("origin"), params);
createQuery(sbf, "a.instCode", jsonTree.get("institute"), params);
createQuery(sbf, "a.inSGSV", jsonTree.get("inSvalbard"), params);
createQuery(sbf, "a.mlsStat", jsonTree.get("mls"), params);
createQuery(sbf, "a.available", 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);
createQuery(sbf, "t.genus", jsonTree.get("genus"), params);
createQuery(sbf, "t.taxonName", jsonTree.get("taxon"), params);
createQuery(sbf, "geo.longitude", jsonTree.get("lon"), params);
createQuery(sbf, "geo.latitude", jsonTree.get("lat"), params);
createQuery(sbf, "geo.altitude", jsonTree.get("alt"), params);
......
......@@ -115,7 +115,7 @@ public class FilterController extends BaseController {
e.printStackTrace();
}
Page<Accession> accessions = filterService.listAccessions(jsonTree, new PageRequest(page - 1, 50, new Sort("ACC_Numb_HI")));
Page<Accession> accessions = filterService.listAccessions(jsonTree, new PageRequest(page - 1, 50, new Sort("acceNumb")));
_logger.info("Got: " + accessions);
model.addAttribute("pagedData", accessions);
......
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