Project

General

Profile

« Previous | Next » 

Revision 7ab729a4

Added by Patrick Plitzner about 6 years ago

Fix import of misapplied names

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportClassification.java
130 130
        //taxon
131 131
        if(taxonBase.isInstanceOf(Taxon.class)){
132 132
            //misapplied name
133
            String appendedPhrase = taxonBase.getName().getAppendedPhrase();
134
            if(appendedPhrase!=null && appendedPhrase.contains(RedListUtil.AUCT)){
133
            String appendedPhrase = taxonBase.getAppendedPhrase();
134
            if(appendedPhrase!=null && appendedPhrase.equals(RedListUtil.AUCT)){
135 135
                parent.addMisappliedName((Taxon) taxonBase, null, null);
136 136
            }
137 137
            else{
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java
167 167
                }
168 168
            }
169 169
        }
170
        else if(authorKombString.trim().equals(RedListUtil.AUCT)){
170
        else if(authorKombString.trim().contains(RedListUtil.AUCT)){
171 171
            RedListUtil.logMessage(id, "AUCT information in "+RedListUtil.AUTOR_KOMB+" column", logger);
172 172
        }
173 173
        else if(CdmUtils.isNotBlank(authorKombString)){
......
240 240

  
241 241
        //---TAXON---
242 242
        TaxonBase taxonBase = null;
243
        if(gueltString.equals(RedListUtil.GUELT_ACCEPTED_TAXON) || (name.getAppendedPhrase()!=null && authorBasiString.trim().equals(RedListUtil.AUCT))){
243
        if(authorBasiString.trim().contains(RedListUtil.AUCT)){
244
            taxonBase = Taxon.NewInstance(name, null);
245
            taxonBase.setAppendedPhrase(RedListUtil.AUCT);
246
        }
247
        else if(gueltString.equals(RedListUtil.GUELT_ACCEPTED_TAXON)){
244 248
            taxonBase = Taxon.NewInstance(name, null);
245
            taxonBase.setAppendedPhrase(authorBasiString);
246 249
        }
247 250
        else if(gueltString.equals(RedListUtil.GUELT_SYNONYM) || gueltString.equals(RedListUtil.GUELT_BASIONYM)){
248 251
            taxonBase = Synonym.NewInstance(name, null);

Also available in: Unified diff