Project

General

Profile

Revision cc9d28ec

IDcc9d28ecb21f305b830842e454d01174de8df50b
Parent d4f17a57
Child a02150f9, 6ab8444c

Added by Patrick Plitzner over 4 years ago

#5448 Pass rank and nomenclatural code to name parser creation

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
430 430
                        String hybridFormula1 = ep1String+" "+ep2String+" "+split[0];
431 431
                        String hybridFormula2 = ep1String+" "+ep2String+" "+split[1];
432 432
                        String fullFormula = hybridFormula1+" "+RedListUtil.HYB_SIGN+" "+hybridFormula2;
433
                        name = NonViralNameParserImpl.NewInstance().parseFullName(fullFormula);
433
                        name = NonViralNameParserImpl.NewInstance().parseFullName(fullFormula, NomenclaturalCode.ICNAFP, rank);
434 434
                    }
435 435
                }
436 436
                else if(hybString.equals(RedListUtil.HYB_N)){
437
                    name = NonViralNameParserImpl.NewInstance().parseFullName(taxNameString);
437
                    name = NonViralNameParserImpl.NewInstance().parseFullName(taxNameString, NomenclaturalCode.ICNAFP, rank);
438 438
                }
439 439
                else if(hybString.equals(RedListUtil.HYB_GF)){
440 440
                    if(ep1String.contains(RedListUtil.HYB_SIGN)){
441
                        name = NonViralNameParserImpl.NewInstance().parseFullName(ep1String);
441
                        name = NonViralNameParserImpl.NewInstance().parseFullName(ep1String, NomenclaturalCode.ICNAFP, rank);
442 442
                    }
443 443
                    else{
444 444
                        RedListUtil.logMessage(id, "HYB is "+hybString+" but "+RedListUtil.HYB+" does not contain "+RedListUtil.HYB_SIGN, logger);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)