git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@74317 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6801b55472
commit
4b3522234d
|
@ -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();
|
||||
|
|
Reference in New Issue