Skip to content
Snippets Groups Projects
Commit c211f875 authored by uhensler's avatar uhensler
Browse files

OO-3828: Heatmap grouping "location" had never entries

parent 6810da0e
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,7 @@ class GroupByNameCache { ...@@ -60,6 +60,7 @@ class GroupByNameCache {
private Map<String, String> groupNamesContextCurriculumElement; private Map<String, String> groupNamesContextCurriculumElement;
private Map<String, String> groupNamesContextCurriculumOrganisation; private Map<String, String> groupNamesContextCurriculumOrganisation;
private Map<String, String> groupNamesContextTaxonomyLevel; private Map<String, String> groupNamesContextTaxonomyLevel;
private Map<String, String> groupNamesContextLocation;
private Map<String, String> groupNamesDataCollection; private Map<String, String> groupNamesDataCollection;
private Map<GroupBy, Map<String, String>> cache = new HashMap<>(); private Map<GroupBy, Map<String, String>> cache = new HashMap<>();
...@@ -122,6 +123,8 @@ class GroupByNameCache { ...@@ -122,6 +123,8 @@ class GroupByNameCache {
return loadContextCurriculumOrganisationGroupNames(); return loadContextCurriculumOrganisationGroupNames();
case CONTEXT_TAXONOMY_LEVEL: case CONTEXT_TAXONOMY_LEVEL:
return loadContextTaxonomyLevelGroupNames(); return loadContextTaxonomyLevelGroupNames();
case CONTEXT_LOCATION:
return loadContextLocationGroupNames();
case DATA_COLLECTION: case DATA_COLLECTION:
return loadDataCollectionGroupNames(); return loadDataCollectionGroupNames();
default: default:
...@@ -238,6 +241,17 @@ class GroupByNameCache { ...@@ -238,6 +241,17 @@ class GroupByNameCache {
} }
return groupNamesContextTaxonomyLevel; return groupNamesContextTaxonomyLevel;
} }
private Map<String, String> loadContextLocationGroupNames() {
groupNamesContextLocation = new HashMap<>();
List<String> contextLocations = analysisService.loadContextLocations(searchParams);
for (String location: contextLocations) {
String key = location;
String value = location;
groupNamesContextLocation.put(key, value);
}
return groupNamesContextLocation;
}
private Map<String, String> loadDataCollectionGroupNames() { private Map<String, String> loadDataCollectionGroupNames() {
groupNamesDataCollection = new HashMap<>(); groupNamesDataCollection = new HashMap<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment