Skip to content

Commit

Permalink
Merge pull request #2127 from hbz/2126-detailPage
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx authored Jan 16, 2025
2 parents f3a5c35 + 1eb3534 commit 3b114d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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 Expand Up @@ -178,6 +180,7 @@
}

@table(){
@result_field("URI", "id", doc, TableRow.VALUES, node = Option(doc))
<tr><td>Titel</td><td>@((doc\"title").asOpt[String].getOrElse(""))@for(corporateBodyForTitle <- (doc \ "corporateBodyForTitle").asOpt[Seq[String]]){. @corporateBodyForTitle}</td></tr>
@result_field("Titelzusatz", "otherTitleInformation", doc, TableRow.VALUES)
@result_field("Alternativer Titel", "alternativeTitle", doc, TableRow.VALUES)
Expand All @@ -193,6 +196,9 @@
@result_field("Auflage", "edition", doc, TableRow.VALUES)
@result_field("ISBN", "isbn", doc, TableRow.VALUES, node = Option(doc))
@result_field("ISSN", "issn", doc, TableRow.VALUES, node = Option(doc))
@result_field("hbz-ID", "hbzId", doc, TableRow.VALUES, node = Option(doc))
@result_field("ZDB-ID", "zdbId", doc, TableRow.VALUES, node = Option(doc))
@result_field("Alma-MMS-ID", "almaMmsId", doc, TableRow.VALUES, node = Option(doc))
@withPrefixedLink("DOI", "https://dx.doi.org/", doc \ "doi")
@withPrefixedLink("URN", "https://nbn-resolving.org/", doc \ "urn")
@result_field("Umfang", "extent", doc, TableRow.VALUES)
Expand Down

0 comments on commit 3b114d2

Please sign in to comment.