Skip to content

Commit

Permalink
Fix facet links for new advanced search parameters (RPB-38)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Nov 30, 2023
1 parent 6cb3376 commit cbce42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/search.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@
@facetLink(key: String, term: String, label:String, count: Int) = {
@if(f.contains(key+":"+term)){
@Html(label)
<a href='@routes.HomeController.search(q, f.replace(s"+($key:$term)", "").replace(s"$key:$term","").trim)'>
<a href='@routes.HomeController.search(q, name, place, subject, publication, date, f.replace(s"+($key:$term)", "").replace(s"$key:$term","").trim)'>
<span class="label label-default">Filter entfernen <span class="glyphicon glyphicon-remove"></span></span>
</a>
} else {
<a href='@routes.HomeController.search(q, s"$f +($key:$term)".trim)'>@Html(label) (@formatCount(count))</a>
<a href='@routes.HomeController.search(q, name, place, subject, publication, date, s"$f +($key:$term)".trim)'>@Html(label) (@formatCount(count))</a>
}
}

Expand Down

0 comments on commit cbce42e

Please sign in to comment.