Project

General

Profile

« Previous | Next » 

Revision 1bbf337c

Added by Andreas Kohlbecker over 8 years ago

minor code cleaning

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/geo/EditGeoService.java
371 371

  
372 372
        if (parts.contains(InfoPart.mapUriParams)) {
373 373
            // only apply the subAreaPreference rule for the maps
374
            Set<Distribution> filteredMapDistributions = DescriptionUtility.filterDistributions(filteredDistributions, null, true, false, subAreaPreference);
374
            Set<Distribution> filteredMapDistributions = DescriptionUtility.filterDistributions(filteredDistributions, null, false, false, subAreaPreference);
375 375

  
376 376
            dto.setMapUriParams(EditGeoServiceUtilities.getDistributionServiceRequestParameterString(filteredMapDistributions,
377 377
                    areaMapping,
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/utility/DescriptionUtility.java
203 203

  
204 204
        // -------------------------------------------------------------------
205 205
        // 4) Sub area preference rule
206
        Set<NamedArea> removeCandidatesArea = new HashSet<NamedArea>();
207 206
        if(subAreaPreference){
207
            Set<NamedArea> removeCandidatesArea = new HashSet<NamedArea>();
208 208
            for(NamedArea key : filteredDistributions.keySet()){
209 209
                if(removeCandidatesArea.contains(key)){
210 210
                    continue;

Also available in: Unified diff