Project

General

Profile

« Previous | Next » 

Revision a02150f9

Added by Patrick Plitzner over 7 years ago

#5448 Fix hybrid import where specific epithets are not from same genus

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
418 418
                        String[] split = ep2String.split(RedListUtil.HYB_SIGN);
419 419
                        String hybridFormula1 = ep1String+" "+split[0].trim();
420 420
                        String hybridFormula2 = ep1String+" "+split[1].trim();
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){
423
                            hybridFormula2 = split[1];
424
                        }
421 425
                        if(CdmUtils.isNotBlank(ep3String)){
422 426
                            hybridFormula1 += " "+ep3String;
423 427
                            hybridFormula2 += " "+ep3String;

Also available in: Unified diff