Project

General

Profile

Revision 9b9b5b41

ID9b9b5b417a319f7d75bd228d5673304da99316e7
Parent 833731f1
Child b3e21c63

Added by Katja Luther over 1 year ago

cdmlight: change area category to the area level

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/cdmLight/CdmLightClassificationExport.java
1857 1857
                                    csvLine[table.getIndex(CdmLightExportTable.FURTHER_AREAS)] = "0";
1858 1858
                                    for (NamedArea area: gathering.getCollectingAreas()){
1859 1859
                                        if (index == 0){
1860
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_CATEGORY1)] = area.getTermType().getKey();
1860
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_CATEGORY1)] = area.getLevel().getLabel();
1861 1861
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_NAME1)] = area.getLabel();
1862 1862
                                        }
1863 1863
                                        if (index == 1){
1864
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_CATEGORY2)] = area.getTermType().getKey();
1864
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_CATEGORY2)] = area.getLevel().getLabel();
1865 1865
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_NAME2)] = area.getLabel();
1866 1866
                                        }
1867 1867
                                        if (index == 2){
1868
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_CATEGORY3)] = area.getTermType().getKey();
1868
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_CATEGORY3)] = area.getLevel().getLabel();
1869 1869
                                            csvLine[table.getIndex(CdmLightExportTable.AREA_NAME3)] = area.getLabel();
1870 1870
                                        }
1871 1871
                                        if (index == 3){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)