diff --git a/app/views/tags/result_doc.scala.html b/app/views/tags/result_doc.scala.html index 5854159..7efe6ca 100644 --- a/app/views/tags/result_doc.scala.html +++ b/app/views/tags/result_doc.scala.html @@ -212,12 +212,22 @@ @parallelausgabe() = { @for( related <- (doc \ "related").asOpt[Seq[JsValue]].getOrElse(Seq()); - id <- (related \ "id").asOpt[String]; - shortId = Lobid.shortId(id); - note <- (related \ "note").asOpt[Seq[String]]) { + id = (related \ "id").asOpt[String]; + shortId = Lobid.shortId(id.getOrElse("")); + note = (related \ "note").asOpt[Seq[String]]){