Commit a934157b authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove technical requirement ebucore:locator for digital object.

A URL is not yet known when the media file is imported into memobase.
parent 0f6470dc
Pipeline #9238 passed with stages
in 6 minutes and 47 seconds
......@@ -70,13 +70,9 @@ class ResourceBuilder(
digitalObjectFieldMappers.forEach {
it.apply(source, digitalObject)
}
// Records in which no external link is available no digital object is generated at all.
if (digitalObject.resource.hasProperty(EBUCORE.locator)) {
digitalObject.addRecord(record)
record.addInstantiation(digitalObject)
resources.add(digitalObject)
}
digitalObject.addRecord(record)
record.addInstantiation(digitalObject)
resources.add(digitalObject)
digitalObject
} else {
null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment