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

take only the record id as filename for new thumbnails


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent d4e0fd38
Pipeline #20683 failed with stages
in 2 minutes and 19 seconds
......@@ -25,10 +25,6 @@ import ch.memobase.settings.HeaderExtractionTransformSupplier
import ch.memobase.settings.HeaderMetadata
import ch.memobase.settings.SettingsLoader
import ch.memobase.sftp.SftpClient
import java.io.StringReader
import java.io.StringWriter
import java.net.MalformedURLException
import java.net.URL
import org.apache.jena.rdf.model.Model
import org.apache.jena.rdf.model.ModelFactory
import org.apache.jena.rdf.model.Resource
......@@ -40,6 +36,10 @@ import org.apache.kafka.streams.kstream.Predicate
import org.apache.logging.log4j.LogManager
import org.memobase.reports.ReportMessages
import org.memobase.reports.ReportStatus
import java.io.StringReader
import java.io.StringWriter
import java.net.MalformedURLException
import java.net.URL
class KafkaTopology(private val settings: SettingsLoader) {
private val appSettings = settings.appSettings
......@@ -284,6 +284,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
recordResource.uri.split(
"/"
).last()
.substring(7)
}.jpg"
val pathOnSftpServer = previewImageHandler.moveFileToSFTP(pathToLocalFile, destPath)
if (pathOnSftpServer != null) {
......
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