Project

General

Profile

« Previous | Next » 

Revision cefdede1

Added by Patrick Plitzner about 8 years ago

Improve taxon name check #5448

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
412 412
            taxNameString = taxNameString.replace("agg.", "aggr.");
413 413
        }
414 414
        if(hybString.equals(RedListUtil.HYB_X)){
415
            taxNameString = taxNameString.replace("× ", "×");//hybrid sign has no space after it in titleCache for binomial hybrids
415
            taxNameString = taxNameString.replace(RedListUtil.HYB_SIGN+" ", RedListUtil.HYB_SIGN);//hybrid sign has no space after it in titleCache for binomial hybrids
416 416
        }
417
//        if(taxNameString.endsWith(Rank.SPECIESGROUP().toString())){
418
        if(taxNameString.endsWith("species group")){
419
            taxNameString.replaceAll(Rank.SPECIESGROUP().toString(), "- Gruppe");
420
            if(!taxNameString.trim().equals(nameCache)){
421
                taxNameString.replaceAll(Rank.SPECIESGROUP().toString(), "- group");
422
            }
417
        if(taxNameString.endsWith("- Gruppe")){
418
            taxNameString.replaceAll("- Gruppe", "species group");
419
        }
420
        if(taxNameString.endsWith("- group")){
421
            taxNameString.replaceAll("- group", "species group");
423 422
        }
424 423
        if(!taxNameString.trim().equals(nameCache)){
425 424
            RedListUtil.logMessage(id, "Taxon name inconsistent! taxon.titleCache <-> Column "+RedListUtil.TAXNAME+": "+nameCache+" <-> "+taxNameString, logger);

Also available in: Unified diff