From 57e2efa6888a38e549ebf3f5ce53d02ef7819204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Thu, 16 Jan 2025 11:05:05 +0100 Subject: [PATCH 1/6] Add URI to detail page #2126 --- web/app/views/tags/result_doc.scala.html | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index 404dfebc5..8c4cb035f 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -178,6 +178,7 @@ } @table(){ + @result_field("URI", "id", doc, TableRow.VALUES, node = Option(doc)) Titel@((doc\"title").asOpt[String].getOrElse(""))@for(corporateBodyForTitle <- (doc \ "corporateBodyForTitle").asOpt[Seq[String]]){. @corporateBodyForTitle} @result_field("Titelzusatz", "otherTitleInformation", doc, TableRow.VALUES) @result_field("Alternativer Titel", "alternativeTitle", doc, TableRow.VALUES) From 77427defa622b710b1568aad0a65579ed92c8e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Thu, 16 Jan 2025 11:05:44 +0100 Subject: [PATCH 2/6] Add HBZ ID to detail page #2126 --- web/app/views/tags/result_doc.scala.html | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index 8c4cb035f..59d3c2d7e 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -194,6 +194,7 @@ @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)) @withPrefixedLink("DOI", "https://dx.doi.org/", doc \ "doi") @withPrefixedLink("URN", "https://nbn-resolving.org/", doc \ "urn") @result_field("Umfang", "extent", doc, TableRow.VALUES) From 36555f5f5457ee2778c085e860829ae614cf64f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Thu, 16 Jan 2025 11:06:12 +0100 Subject: [PATCH 3/6] Add ZDB ID to detail page #2126 --- web/app/views/tags/result_doc.scala.html | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index 59d3c2d7e..60cb0b2d6 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -195,6 +195,7 @@ @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)) @withPrefixedLink("DOI", "https://dx.doi.org/", doc \ "doi") @withPrefixedLink("URN", "https://nbn-resolving.org/", doc \ "urn") @result_field("Umfang", "extent", doc, TableRow.VALUES) From d32db657cc774e69d86cf5ac42614694c21a0893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Thu, 16 Jan 2025 11:06:35 +0100 Subject: [PATCH 4/6] Add ALMA MMS ID to detail page #2126 --- web/app/views/tags/result_doc.scala.html | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index 60cb0b2d6..c91f67ff0 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -196,6 +196,7 @@ @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) From e7d9b9f413379a38f3fa4205373ea7461047a54d Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Thu, 16 Jan 2025 12:19:14 +0100 Subject: [PATCH 5/6] 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,"") + } } } } From 1eb35344aa747abdaade4a1dace79226b67e13c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Thu, 16 Jan 2025 12:27:35 +0100 Subject: [PATCH 6/6] Adjust column labels #2126 --- web/app/views/tags/result_doc.scala.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index 8d4a65de6..adbe7b616 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -196,9 +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)) + @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)