From fb813d48dd7acc4aff196ada14612bc896af4a81 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Thu, 18 Jul 2024 16:17:18 +0200 Subject: [PATCH] Fix display of non-GND subjects in `componentList` (RPB-127) --- app/views/tags/result_doc.scala.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/views/tags/result_doc.scala.html b/app/views/tags/result_doc.scala.html index 5dc3dd75..c8691433 100644 --- a/app/views/tags/result_doc.scala.html +++ b/app/views/tags/result_doc.scala.html @@ -137,7 +137,6 @@ } @subjects(subjects: Seq[JsValue]) = { - @if(subjects.toString.contains("GND")){ Schlagwörter @@ -149,9 +148,8 @@ if !sourceLabel.getOrElse("").contains("Rheinland-Pfälzischen"); if !sourceLabel.getOrElse("").contains("Dewey"); label <- (component \ "label").asOpt[String]; - id = (component \ "id").asOpt[String]) { - @label - + id = (component \ "id").asOpt[String].getOrElse("")) { + @label @if(components.last == component) { @for(topic <- (subject\"label").asOpt[String]; hits = Lobid.getTotalHits("subject.label.raw", topic.trim, CONFIG.getString("nwbib.filter")).get(Lobid.API_TIMEOUT); if hits > 1){ | @hits @@ -159,7 +157,6 @@ } else { | } } - } } @sortedPublications(seq: Seq[JsValue]) = @{