Revision 5e328b3f
Added by Andreas Müller 8 months ago
app-import/src/main/java/eu/etaxonomy/cdm/io/caryo/KewExcelTaxonImport.java | ||
---|---|---|
577 | 577 |
private Taxon getParent(SimpleExcelTaxonImportState<CONFIG> state, Map<String, String> record, TaxonName taxonName, String line, String kewId) { |
578 | 578 |
String statusStr = getValue(record, Kew_Taxonomic_Status); |
579 | 579 |
if ("Unplaced".equals(statusStr)){ |
580 |
return CdmBase.deproxy(getTaxonService().find(state.getConfig().getUnplacedTaxonUuid()), Taxon.class); |
|
580 |
Taxon unplaced = CdmBase.deproxy(getTaxonService().find(state.getConfig().getUnplacedTaxonUuid()), Taxon.class); |
|
581 |
logger.warn(line + "Could not find 'unplaced' taxon with uuid '" + state.getConfig().getUnplacedTaxonUuid() + "'." ); |
|
582 |
return unplaced; |
|
581 | 583 |
}else if ("Artificial Hybrid".equals(statusStr)){ |
582 | 584 |
return null ; //getTaxonNodeService().find(UUID.fromString(KEW_HYBRIDS_NODE)); hybrids are handled as synonyms now |
583 | 585 |
}else if ("Accepted".equals(statusStr)){ |
Also available in: Unified diff
ref #10224 final to KewImport for Nyctaginaceae import (cont.)