Skip to content

Commit

Permalink
Fix display of non-GND subjects in componentList (RPB-127)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jul 18, 2024
1 parent a4683c1 commit fb813d4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
}

@subjects(subjects: Seq[JsValue]) = {
@if(subjects.toString.contains("GND")){
<tr>
<td>Schlagwörter</td>
<td>
Expand All @@ -149,17 +148,15 @@
if !sourceLabel.getOrElse("").contains("Rheinland-Pfälzischen");
if !sourceLabel.getOrElse("").contains("Dewey");
label <- (component \ "label").asOpt[String];
id = (component \ "id").asOpt[String]) {
<span style="white-space: nowrap;"><a title="Nach weiteren Titeln zu '@label' suchen" href='@nwbib.routes.Application.search(subject=id.getOrElse("\""+label+"\""))'/>@label</a></span>
<a title="Nach Themen mit '@label' suchen" href='@nwbib.routes.Application.topics(q=label.replace(":","\\:"))'><span class='octicon octicon-ellipsis'></span></a>
id = (component \ "id").asOpt[String].getOrElse("")) {
<span style="white-space: nowrap;"><a title="Nach weiteren Titeln zu '@label' suchen" href='@nwbib.routes.Application.search(subject=if(id.contains("/gnd/")) {id} else {"\""+label+"\""})'/>@label</a></span>
@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){
| <a href='@nwbib.routes.Application.search(q="subject.label.raw:\""+topic.trim+"\"")' title="Alle @hits Titel zum Thema '@topic.trim' anzeigen"><span class='badge progress-bar-success'>@hits</span></a>
}<br/>
} else { | }
}</td>
</tr>
}
}

@sortedPublications(seq: Seq[JsValue]) = @{
Expand Down

0 comments on commit fb813d4

Please sign in to comment.