From e7d9b9f413379a38f3fa4205373ea7461047a54d Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Thu, 16 Jan 2025 12:19:14 +0100 Subject: [PATCH] Show all `type` and `medium` fields in details view (#2017) --- web/app/views/tags/result_doc.scala.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index c91f67ff0..8d4a65de6 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -78,8 +78,10 @@ @with_icon(label: String, property: String, fullField: String) = { @if((doc\property).asOpt[JsValue].isDefined) { - @defining(if(property != "type") { nestedIds(property) } else { singleOrMultiString(property) }){ v => - @label @Lobid.facetLabel(v,fullField,"") + @defining((if(property != "type") { nestedIds(property) } else { singleOrMultiString(property) }).filter(v => v != "BibliographicResource")){ vs => + @for(v <- vs) { + @if(v==vs.head){@label} @Lobid.facetLabel(Seq(v),fullField,"") + } } } }