Unverified Commit bd209d8c authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix file name creation

parent c324b076
Pipeline #14430 passed with stages
in 12 minutes and 20 seconds
......@@ -76,9 +76,8 @@ object BinaryResourceMetadata {
case Some(eventType) =>
val instantiation = Instantiation(v("type").str)
BinaryResourceMetadata(
v("@id").str.substring(s"$baseUrl/digital/".length),
// FIXME: Quickfix
v("locator").str.replaceAll("tx:[^/]+/", ""),
v("@id").str.substring(s"$baseUrl/digital/".length - 1),
v("locator").str,
if (instantiation == Thumbnail) {JpegFile} else {Conversions.getMediaFileType(v("hasMimeType").str).get},
instantiation,
eventType)
......
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