Revision e1d0ff38
Added by Patrick Plitzner over 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java | ||
---|---|---|
419 | 419 |
String hybridFormula1 = ep1String+" "+split[0].trim(); |
420 | 420 |
String hybridFormula2 = ep1String+" "+split[1].trim(); |
421 | 421 |
//check if the specific epithets are from the same genus or not like e.g. EPI2 = pratensis × Lolium multiflorum |
422 |
if(split[1].split(" ").length>1){ |
|
422 |
String[] secondHybrid = split[1].trim().split(" "); |
|
423 |
if(secondHybrid.length>1 && secondHybrid[0].matches("[A-Z].*")){ |
|
423 | 424 |
hybridFormula2 = split[1]; |
424 | 425 |
} |
425 | 426 |
if(CdmUtils.isNotBlank(ep3String)){ |
... | ... | |
466 | 467 |
private void checkNameConsistency(long id, String nomZusatzString, String taxZusatzString, |
467 | 468 |
String zusatzString, String authorString, String hybString, NonViralName<?> name) { |
468 | 469 |
String authorshipCache = name.getAuthorshipCache(); |
469 |
if(hybString.equals(RedListUtil.HYB_XF)){ |
|
470 |
//FIXME: remove split length check when name parser can parse multiple hybrid parents |
|
471 |
if(hybString.equals(RedListUtil.HYB_XF) && name.getTitleCache().split(RedListUtil.HYB_SIGN).length==2){ |
|
470 | 472 |
if(name.getHybridChildRelations().isEmpty()){ |
471 | 473 |
RedListUtil.logMessage(id, "Hybrid formula but no hybrid child relations: "+name.getTitleCache(), logger); |
472 | 474 |
return; |
Also available in: Unified diff
#5448 Fix hybrid import where specific epithets are not from same genus