diff --git a/app/views/tags/result_doc.scala.html b/app/views/tags/result_doc.scala.html index 060a7892..5dc3dd75 100644 --- a/app/views/tags/result_doc.scala.html +++ b/app/views/tags/result_doc.scala.html @@ -7,12 +7,24 @@ @import controllers.nwbib.Application.CONFIG @import controllers.nwbib.Application.ZDB_PREFIX +@idAndLabelLink(e: JsValue) = { + @((e\"label").asOpt[String].getOrElse("--")) +} + @labelled(label: String, key: String) = { @if((doc\key).asOpt[Seq[JsValue]].isDefined) { + @defining((doc\key).asOpt[Seq[JsValue]].getOrElse(Seq(doc\key))) { elems => @label - @(((doc\key)(0)\"label").asOpt[String].getOrElse("--")) + @idAndLabelLink(elems.head.asOpt[JsValue].get) + @for(elem <- elems.tail; e <- elem.asOpt[JsValue]) { + + + @idAndLabelLink(e) + + } + } } } @@ -267,7 +279,7 @@ @result_field("Schlagwortfolge", "subjectChain", doc, TableRow.VALUES, valueLabel = Option(Seq())) - @labelled("Inhaltsangabe", "description") + @labelled("Weitere Informationen", "description") @labelled("Inhaltsverzeichnis", "tableOfContents") @labelled("Volltext", "fulltextOnline") }