Verified Commit de0985a8 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

cut away file extension for binary id

parent c916f79c
Pipeline #35332 failed with stages
in 1 minute and 43 seconds
......@@ -79,7 +79,7 @@ object BinaryResourceMetadata extends RecordUtils {
v.obj match {
case v if isLocalRecord(v) && isProcessableMimeType(v) =>
val instantiation = MemobaseResource(v("type").str)
val locator = v("locator").str.split("/").last.replaceAll(" ", "_")
val locator = v("locator").str.split("/").last.split(".")(0).replaceAll(" ", "_")
BinaryResourceMetadata(
v("@id").str.substring(s"$baseUrl/digital/".length - 1),
buildDistributorUrl(locator, distributorHost, instantiation),
......
Markdown is supported
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