Skip to content

Commit

Permalink
Show all type and medium fields in details view (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jan 16, 2025
1 parent d32db65 commit e7d9b9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
<tr><td>@label</td><td><span class="@Lobid.facetIcon(v,fullField)"></span> @Lobid.facetLabel(v,fullField,"")</td></tr>
@defining((if(property != "type") { nestedIds(property) } else { singleOrMultiString(property) }).filter(v => v != "BibliographicResource")){ vs =>
@for(v <- vs) {
<tr><td>@if(v==vs.head){@label}</td><td><span class="@Lobid.facetIcon(Seq(v),fullField)"></span> @Lobid.facetLabel(Seq(v),fullField,"")</td></tr>
}
}
}
}
Expand Down

0 comments on commit e7d9b9f

Please sign in to comment.