Project

General

Profile

« Previous | Next » 

Revision 62c9db2c

Added by Patrick Plitzner almost 8 years ago

#5448 Import genus hybrid formulas

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
416 416
                else if(hybString.equals(RedListUtil.HYB_XF) || hybString.equals(RedListUtil.HYB_XU)){
417 417
                    name.setHybridFormula(true);
418 418
                    if(ep1String.contains(RedListUtil.HYB_SIGN)){
419
                        RedListUtil.logMessage(id, "EPI1 has hybrid signs but with flag: "+RedListUtil.HYB_XF, logger);
419
                        name = NonViralNameParserImpl.NewInstance().parseFullName(ep1String, NomenclaturalCode.ICNAFP, rank);
420 420
                    }
421 421
                    else if(ep2String.contains(RedListUtil.HYB_SIGN)){
422 422
                        String[] split = ep2String.split(RedListUtil.HYB_SIGN);
......
528 528
        taxNameString = taxNameString.trim();
529 529
        taxNameString = taxNameString.replaceAll(" +", " ");
530 530

  
531
        if(taxNameString.endsWith("agg.")){
532
            taxNameString = taxNameString.replace("agg.", "aggr.");
533
        }
534 531

  
535 532
        if(hybString.equals(RedListUtil.HYB_X) || hybString.equals(RedListUtil.HYB_N)){
536 533
            taxNameString = taxNameString.replace(" "+RedListUtil.HYB_SIGN+" ", " "+RedListUtil.HYB_SIGN);//hybrid sign has no space after it in titleCache for binomial hybrids
......
562 559
            taxNameString = taxNameString.replaceAll("- group", "species group");
563 560
        }
564 561

  
562
        taxNameString = taxNameString.replace("agg.", "aggr.");
565 563
        taxNameString = taxNameString.replace("[ranglos]", "[unranked]");
564

  
566 565
        if(taxonBase.getName().getRank()!=null){
567 566
            if(taxonBase.getName().getRank().equals(Rank.PROLES())){
568 567
                taxNameString = taxNameString.replace("proles", "prol.");

Also available in: Unified diff