Project

General

Profile

Revision 0455fc3f

ID0455fc3f8995ec721818570a2c0d9b4b718f2da2
Parent f6f52f73
Child 4f913449

Added by Andreas Müller almost 4 years ago

ref #7158 fix pro parte misapplied name issues in app-import

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)