Fixed minor issue when importing RDA Distributions

This commit is contained in:
George Kalampokis 2020-05-29 16:08:40 +03:00
parent 4d91f0c7af
commit 0e89ec50a6
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class DistributionRDAMapper {
for (JsonNode distributionNode: distributionNodes) { for (JsonNode distributionNode: distributionNodes) {
for (ExportPropertyName exportPropertyName: ExportPropertyName.values()) { for (ExportPropertyName exportPropertyName: ExportPropertyName.values()) {
if (distributionNode.get("rdaProperty").asText().endsWith(exportPropertyName.getName())) { if (distributionNode.get("rdaProperty").asText().contains(exportPropertyName.getName())) {
switch (exportPropertyName) { switch (exportPropertyName) {
case ACCESS_URL: case ACCESS_URL:
properties.put(distributionNode.get("id").asText(), rda.getAccessUrl()); properties.put(distributionNode.get("id").asText(), rda.getAccessUrl());