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

fix collection prefix extraction

parent 329c1379
Pipeline #39129 passed with stages
in 5 minutes and 14 seconds
......@@ -82,7 +82,7 @@ object BinaryResourceMetadata extends RecordUtils {
val binaryObjectId = v("@id").str.substring(s"$baseUrl/digital/".length - 1)
val locator = {
val basename = v("locator").str.split("/").last.split("\\.")(0).replaceAll(" ", "_")
val recordSetId = binaryObjectId.substring(1, 8)
val recordSetId = binaryObjectId.substring(0, 7)
s"$recordSetId-$basename"
}
BinaryResourceMetadata(
......
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