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 =>