This commit is contained in:
Federico De Faveri 2013-04-30 17:15:28 +00:00
parent 6801b55472
commit 4b3522234d
1 changed files with 2 additions and 2 deletions

View File

@ -70,11 +70,11 @@ public class QueryBuilder {
query.append("RETURN ");
if (searchFilters.getResultType()!=null) {
switch (searchFilters.getResultType()) {
case RESULTITEM: query.append("Product HAVING xpath(\"//product[type='OCCURRENCES' and counter>0]\")"); break;
case RESULTITEM: query.append("Product HAVING xpath(\"//product[type='Occurrence' and count>0]\")"); break;
case TAXONOMYITEM: query.append("Taxon"); break;
}
} else {
query.append("Product HAVING xpath(\"//product[type='OCCURRENCE' and counter>0]\")");
query.append("Product HAVING xpath(\"//product[type='Occurrence' and count>0]\")");
}
String builtQuery = query.toString();