fix returning datasource classes for mode=dris (eurocrisdris::dris)

This commit is contained in:
Konstantinos Spyrou 2022-07-20 13:11:33 +00:00
parent 7aa70bff48
commit 3149357f8e
1 changed files with 5 additions and 1 deletions

View File

@ -118,6 +118,10 @@ public class RepositoryServiceImpl implements RepositoryService {
dataSourceClass.get("opendoar").add(key);
} else if (key.contains("datarepository")) {
dataSourceClass.putIfAbsent("re3data", Collections.singletonList("datarepository::unknown"));
} else if (key.contains("crissystem")) {
// dataSourceClass.putIfAbsent("cris", new ArrayList<>());
dataSourceClass.putIfAbsent("dris", new ArrayList<>());
dataSourceClass.get("dris").add(key);
}
}
@ -837,7 +841,7 @@ public class RepositoryServiceImpl implements RepositoryService {
} else if (mode.equalsIgnoreCase("re3data")) {
if (entry.getKey().contains("datarepository"))
retMap.put(entry.getKey(), entry.getValue());
} else if (mode.equalsIgnoreCase("cris")) {
} else if (mode.equalsIgnoreCase("dris")) {
if (entry.getKey().contains("crissystem"))
retMap.put(entry.getKey(), entry.getValue());
}