Revision 0455fc3f
Added by Andreas Müller about 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/cyprus/CyprusImagesActivator.java | ||
---|---|---|
466 | 466 |
Iterator<TaxonBase> it = list.iterator(); |
467 | 467 |
while (it.hasNext()){ |
468 | 468 |
Taxon next = (Taxon)it.next(); |
469 |
if (next.getTaxonNodes().isEmpty() && !next.getTaxonForMisappliedName().isEmpty()){
|
|
469 |
if (next.getTaxonNodes().isEmpty() && !next.getTaxaForMisappliedName(true).isEmpty()){
|
|
470 | 470 |
it.remove(); |
471 | 471 |
} |
472 | 472 |
} |
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelCommonNamesImport.java | ||
---|---|---|
300 | 300 |
} |
301 | 301 |
if (misappliedNameTaxon != null){ |
302 | 302 |
|
303 |
if (! taxon.getMisappliedNames().contains(misappliedNameTaxon)){ |
|
303 |
if (! taxon.getMisappliedNames(false).contains(misappliedNameTaxon)){
|
|
304 | 304 |
taxon.addMisappliedName(misappliedNameTaxon,state.getTransactionalSourceReference(), null); |
305 | 305 |
logger.warn("Misapplied name for common name was not found related to the accepted taxon. Created new relationship. CommonNameId: " + commonNameId); |
306 | 306 |
} |
Also available in: Unified diff
ref #7158 fix pro parte misapplied name issues in app-import