From 1b86fedd793cc6eab58df6b9973e8e49cadcf816 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Tue, 14 Jan 2025 13:41:06 +0100 Subject: [PATCH] Add `subject` source links like for `contribution` (RPB-242) --- app/views/tags/result_doc.scala.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/tags/result_doc.scala.html b/app/views/tags/result_doc.scala.html index a49e7b5..653733b 100644 --- a/app/views/tags/result_doc.scala.html +++ b/app/views/tags/result_doc.scala.html @@ -148,7 +148,10 @@ component <- components; label <- (component \ "label").asOpt[String]; id = (component \ "id").asOpt[String].getOrElse("")) { - @label + + @label + @if(id.startsWith("http") && !id.contains("/sw/")){} + @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