diff --git a/app/views/tags/result_doc.scala.html b/app/views/tags/result_doc.scala.html
index 7e0802f..060bb82 100644
--- a/app/views/tags/result_doc.scala.html
+++ b/app/views/tags/result_doc.scala.html
@@ -18,6 +18,7 @@
@optional(label: String, key: String, v: JsValue) = {
@defining((v\key).asOpt[Seq[JsValue]].getOrElse(Seq(v\key))) { elems =>
+ @if(!elems.isEmpty && elems.head.asOpt[String].isDefined) { @label }
@for(elem <- elems; elemString <- elem.asOpt[String]) {
@(elemString)@if(elem!=elems.last){ | } else {
}
}
@@ -49,11 +50,11 @@
@start.asOpt[String].getOrElse(end.asOpt[String].getOrElse(""))
}
- @optional("Erscheinungsort", "location", pub)
- @optional("Verlag", "publishedBy", pub)
- @optional("Hersteller", "manufacturedBy", pub)
+ @optional("", "location", pub)
+ @optional("", "publishedBy", pub)
+ @optional("", "manufacturedBy", pub)
@((pub\"frequency").asOpt[Seq[JsValue]].map { freq =>
- optional("Erscheinungsweise", "label", freq.head)
+ optional("", "label", freq.head)
})
@@ -218,12 +219,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]]){