Project

General

Profile

« Previous | Next » 

Revision 575a6bd5

Added by Andreas Müller 4 months ago

ref #9778 adapt redlist import to new existing ranks lusus and subproles

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
602 602
            else if(rankStr.equals("SAM")){
603 603
                return getRank(state, RedListUtil.uuidRankCollectionSpecies, "Collective Species", "Collective Species", "\"Coll. Species\"", (OrderedTermVocabulary<Rank>) Rank.GENUS().getVocabulary(), null, RankClass.SpeciesGroup);
604 604
            }
605
            else if(rankStr.equals("SPR")){
606
                return getRank(state, RedListUtil.uuidRankSubproles, "Subproles", "Subproles", "subproles", (OrderedTermVocabulary<Rank>) Rank.GENUS().getVocabulary(), null, RankClass.Infraspecific);
607
            }
608 605
            else if(rankStr.equals("MOD")){
609 606
                return getRank(state, RedListUtil.uuidRankModification, "Modification", "Modification", "modificatio", (OrderedTermVocabulary<Rank>) Rank.GENUS().getVocabulary(), null, RankClass.Infraspecific);
610 607
            }
611
            else if(rankStr.equals("LUS")){
612
                return getRank(state, RedListUtil.uuidRankLusus, "Lusus", "Lusus", "lusus", (OrderedTermVocabulary<Rank>) Rank.GENUS().getVocabulary(), null, RankClass.Infraspecific);
613
            }
614 608
            else if(rankStr.equals("SPI")){
615 609
                return getRank(state, RedListUtil.uuidRankSubspeciesPrincipes, "Subspecies principes", "Subspecies principes", "subsp. princ.", (OrderedTermVocabulary<Rank>) Rank.GENUS().getVocabulary(), null, RankClass.Infraspecific);
616 610
            }
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenTransformer.java
53 53
        else if (key.equals("SVA")){return Rank.SUBVARIETY();}
54 54
        else if (key.equals("CV")){return Rank.CULTIVAR();}
55 55
        else if (key.equals("PRO")){return Rank.PROLES();}
56
        else if (key.equals("SPR")){return Rank.SUBPROLES();}
56 57
        else if (key.equals("SER")){return Rank.SERIES();}
57 58
        else if (key.equals("GRE")){
58 59
            logger.warn("Unclear which grex is meant here");
......
60 61
        else if (key.equals("AGG")){return Rank.SPECIESAGGREGATE();}
61 62
        else if (key.equals("SFO")){return Rank.SUBFORM();}
62 63
        else if (key.equals("FAM")){return Rank.FAMILY();}
64
        else if (key.equals("LUS")){return Rank.LUSUS();}
63 65
        else if (key.equals("SLU")){return Rank.SUBLUSUS();}
64 66
        else if (key.equals("SPI")){return Rank.SUBSPECIES();}
65 67
        else if (key.equals("GRO") || key.equals("GRU")){return Rank.SPECIESGROUP();}
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListUtil.java
45 45
    public static final UUID uuidClassificationS = UUID.fromString("53e81162-5c2d-425b-bbe6-6e8d12e85790");
46 46

  
47 47
    public static final UUID uuidRankCollectionSpecies = UUID.fromString("6056e143-4efe-4632-b532-27699ed62884");
48
    public static final UUID uuidRankSubproles = UUID.fromString("47bd1439-c2ba-4c4e-994f-9c60853258f8");
49 48
    public static final UUID uuidRankModification = UUID.fromString("1c6e16f5-f7a5-41a5-9cc4-53c1438478c9");
50
    public static final UUID uuidRankLusus = UUID.fromString("4c8e12f6-2c16-4eda-a7d9-2fd247dcce789");
51 49
    public static final UUID uuidRankSubspeciesPrincipes = UUID.fromString("b6b9351b-6beb-431d-8c7a-d30fe0cf3a90");
52 50
    public static final UUID uuidRankCombination = UUID.fromString("ec2c580e-416a-4ecf-85df-d03641f3bd64");
53 51
    public static final UUID uuidRankForme = UUID.fromString("05b4f66f-5559-4e44-bbb8-70744a5ea64a");

Also available in: Unified diff