Add new accession filters
Extend AccessionFilter
with new filtering options:
public Boolean hasGeoref;
public Boolean hasDoi;
public Boolean hasDataset;
public Boolean hasSubset;
The JPA query is extended with:
if (hasGeoref != null) {
hasGeoref ? accession.latitude.notNull().and(accession.longitude.notNull())
: accession.latitude.isNull().or(accession.longitude.isNull());
}
if (hasDoi != null) {
hasDoi ? accession.doi.notNull() : accession.doi.isNull();
}
if (hasSubset != null) {
hasSubset ? accession.subsetCount.gt(0) : accession.subsetCount.eq(0);
}
...
No extensions are needed for ES.