Fixed minor issue when importing RDA Distributions
This commit is contained in:
parent
4d91f0c7af
commit
0e89ec50a6
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue