Revision c34e4d55
Added by Anahit Babadshanjan about 15 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonServiceImpl.java | ||
---|---|---|
326 | 326 |
public Pager<IdentifiableEntity> findTaxaAndNames(ITaxonServiceConfigurator configurator) { |
327 | 327 |
|
328 | 328 |
List<IdentifiableEntity> results = new ArrayList<IdentifiableEntity>(); |
329 |
int numberOfResults = 0; |
|
329 |
int numberOfResults = 0; // overall number of results (as opposed to number of results per page)
|
|
330 | 330 |
List<TaxonBase> taxa = null; |
331 |
int taxaCount = 0; |
|
332 |
int numberTaxaResults = 0; |
|
333 |
boolean isMisappliedName = false; |
|
334 |
|
|
331 |
|
|
335 | 332 |
// Taxa and synonyms |
336 | 333 |
|
334 |
int numberTaxaResults = 0; |
|
335 |
|
|
337 | 336 |
if (configurator.isDoTaxa() && configurator.isDoSynonyms()) { |
338 | 337 |
taxa = dao.getTaxaByName(configurator.getSearchString(), configurator.getMatchMode(), |
339 | 338 |
SelectMode.ALL, configurator.getPageSize(), configurator.getPageNumber()); |
340 |
numberTaxaResults = dao.countTaxaByName(configurator.getSearchString(), configurator.getMatchMode(), true); |
|
339 |
numberTaxaResults = |
|
340 |
dao.countTaxaByName(configurator.getSearchString(), configurator.getMatchMode(), SelectMode.ALL); |
|
341 | 341 |
|
342 | 342 |
} else if(configurator.isDoTaxa()) { |
343 | 343 |
taxa = dao.getTaxaByName(configurator.getSearchString(), configurator.getMatchMode(), |
Also available in: Unified diff
Added missing count method