Project

General

Profile

« Previous | Next » 

Revision f586dcf5

Added by Patrick Plitzner over 7 years ago

Fix ClassCastException and ordering #5452

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/bfnXml/out/BfnXmlTaxonNameExport.java
109 109
            exportCategoricalData(BfnXmlConstants.VOC_KURZFRISTIGER_BESTANDSTREND, descriptionElements, taxon, parent);
110 110
            exportCategoricalData(BfnXmlConstants.VOC_RISIKOFAKTOREN, descriptionElements, taxon, parent);
111 111
            exportCategoricalData(BfnXmlConstants.VOC_SONDERFAELLE, descriptionElements, taxon, parent);
112
            exportTextData(BfnXmlConstants.FEAT_LETZTER_NACHWEIS, descriptionElements, taxon, parent);
112 113
            exportCategoricalData(BfnXmlConstants.VOC_VERANTWORTLICHKEIT, descriptionElements, taxon, parent);
113
            exportCategoricalData(BfnXmlConstants.VOC_VERANTWORTLICHKEIT, descriptionElements, taxon, parent);
114
            exportTextData(BfnXmlConstants.FEAT_KOMMENTAR_TAXONOMIE, descriptionElements, taxon, parent);
115
            exportTextData(BfnXmlConstants.FEAT_KOMMENTAR_GEFAEHRDUNG, descriptionElements, taxon, parent);
116
            exportTextData(BfnXmlConstants.FEAT_WEITERE_KOMMENTARE, descriptionElements, taxon, parent);
117
            exportCategoricalData(BfnXmlConstants.VOC_ALTE_RL_KAT, descriptionElements, taxon, parent);
114 118

  
115 119

  
116 120
//            for (DescriptionElementBase descriptionElementBase : descriptionElements) {
......
284 288
            addNanteil(wissName, BfnXmlConstants.BEREICH_EPITHETON2, epitheton2);
285 289
        }
286 290
        //epitheton3
291
        String epitheton3 = null;
287 292
        if(rank.isLower(Rank.SPECIES())){
288
            String epitheton3 = name.getInfraSpecificEpithet();
289
            if(epitheton3==null){
290
                epitheton3 = name.getSpecificEpithet();
291
            }
292
            addNanteil(wissName, BfnXmlConstants.BEREICH_EPITHETON3, epitheton3);
293
            epitheton3 = name.getInfraSpecificEpithet();
293 294
        }
295
        if(epitheton3==null){
296
            epitheton3 = name.getSpecificEpithet();
297
        }
298
        addNanteil(wissName, BfnXmlConstants.BEREICH_EPITHETON3, epitheton3);
299

  
294 300
        //epitheton4-5
295 301
        addNanteil(wissName, BfnXmlConstants.BEREICH_EPITHETON4, null);
296 302
        addNanteil(wissName, BfnXmlConstants.BEREICH_EPITHETON5, null);

Also available in: Unified diff