Make distribiution to parse as list

This commit is contained in:
George Kalampokis 2021-12-14 18:05:10 +02:00
parent 6964aa1d47
commit 42c5dbb3b2
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class DatasetRDAMapper {
}
List<JsonNode> distributionNodes = JsonSearcher.findNodes(datasetDescriptionObj, "rdaProperty", "dataset.distribution");
if (!distributionNodes.isEmpty()) {
rda.setDistribution(Collections.singletonList(DistributionRDAMapper.toRDA(distributionNodes)));
rda.setDistribution(DistributionRDAMapper.toRDAList(distributionNodes));
}
List<JsonNode> keywordNodes = JsonSearcher.findNodes(datasetDescriptionObj, "rdaProperty", "dataset.keyword");
if (!keywordNodes.isEmpty()) {