Project

General

Profile

« Previous | Next » 

Revision dc4d1922

Added by Andreas Kohlbecker over 7 years ago

fix #6093 including more taxa into algea registry import

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/iapt/IAPTExcelImport.java
1139 1139
    }
1140 1140

  
1141 1141
    private boolean excludeFromImport(SimpleExcelTaxonImportState<CONFIG> state) {
1142
        boolean include = false;
1142 1143
        if(state.getConfig().isDoAlgeaeOnly()){
1143
            return !getValue(state.getOriginalRecord(), HIGHERTAXON, true).matches(".*?PHYCEAE(?:$|\\s+)");
1144
            String higherTaxon = getValue(state.getOriginalRecord(), HIGHERTAXON, true);
1145
            String fullNameStr = getValue(state.getOriginalRecord(), FULLNAME, true);
1146
            include |= higherTaxon.matches(".*?PHYCEAE(?:$|\\s+)");
1147
            for(String test : new String[]{
1148
                    "Bolidophyceae ",
1149
                    "Phaeothamniophyceae ",
1150
                    "Bolidomonadales ",
1151
                    "Bolidomonadaceae ",
1152
                    "Aureoumbra ",
1153
                    "Bolidomonas ",
1154
                    "Seagriefia ",
1155
                    "Navicula "
1156
                })
1157
            include |= fullNameStr.startsWith(test);
1144 1158
        }
1145 1159

  
1146
        return false;
1160
        return !include;
1147 1161
    }
1148 1162

  
1149 1163
    private ExtensionType getExtensionTypeIAPTRegData() {

Also available in: Unified diff