fix institution and recordSet assignment

Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 3ba76823
Pipeline #19784 passed with stages
in 6 minutes and 20 seconds
......@@ -70,7 +70,7 @@ class KProducer(props: Properties, topic: String, reportTopic: String) extends L
private def createHeaders(recordId: String): java.lang.Iterable[Header] = {
val idPattern = "https://memobase.ch/([^/]+)/([^#/]+).*".r
val (recordSetId, institutionId) = idPattern.findFirstMatchIn(recordId) match {
val (institutionId, recordSetId) = idPattern.findFirstMatchIn(recordId) match {
case Some(m) => m.groupCount match {
case gc if gc >= 2 =>
m.group(1) match {
......
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