Allow collections in collections
This commit is contained in:
parent
fdcacfcd6a
commit
6a1b6767b9
|
@ -70,6 +70,15 @@ public class BulkUpload {
|
||||||
uri.setLabel(ace.getTypeLabel());
|
uri.setLabel(ace.getTypeLabel());
|
||||||
ace.setHas_type(uri);
|
ace.setHas_type(uri);
|
||||||
|
|
||||||
|
String uniqueIsPartOf = ace.getUniqueIsPartOf();
|
||||||
|
if (uniqueIsPartOf != null) {
|
||||||
|
ace.setIsPartOf(Arrays.asList(uniqueIsPartOf));
|
||||||
|
}
|
||||||
|
if (ace.getContributor() != null) {
|
||||||
|
ace.getContributor().clear();
|
||||||
|
ace.setContributor(ace.getCreator());
|
||||||
|
}
|
||||||
|
|
||||||
if (ace.getSpatial()!=null) {
|
if (ace.getSpatial()!=null) {
|
||||||
ace.getSpatial()
|
ace.getSpatial()
|
||||||
.stream()
|
.stream()
|
||||||
|
@ -162,17 +171,6 @@ public class BulkUpload {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isCollection) {
|
|
||||||
String uniqueIsPartOf = ace.getUniqueIsPartOf();
|
|
||||||
if (uniqueIsPartOf != null) {
|
|
||||||
ace.setIsPartOf(Arrays.asList(uniqueIsPartOf));
|
|
||||||
}
|
|
||||||
if (ace.getContributor() != null) {
|
|
||||||
ace.getContributor().clear();
|
|
||||||
ace.setContributor(ace.getCreator());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
String[] splits = ace.getIdentifier().split("/");
|
String[] splits = ace.getIdentifier().split("/");
|
||||||
|
|
||||||
log.debug("JSON >>>> "+ace.toJson());
|
log.debug("JSON >>>> "+ace.toJson());
|
||||||
|
|
Loading…
Reference in New Issue