Skip to content

Commit

Permalink
Prefer own items over superordinate link (RPB-241)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jan 13, 2025
1 parent 8b4e186 commit 1e29649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/details.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
@tags.search_form(q)
<div class="row" id="search-results">
@defining((Lobid.items(doc.toString), Lobid.itemDetails(doc.toString))) { case (items, itemDetails) =>
@defining(!(doc\\"containedIn").isEmpty && (doc\"type").toString.contains("Article")){superordination =>
@defining(items.isEmpty && !(doc\\"containedIn").isEmpty && (doc\"type").toString.contains("Article")){superordination =>
<div class="col-md-@if(items.isEmpty && !doc.toString.contains("fulltextOnline") && !superordination){12} else {8}">
<dl>
@defining((doc\"rpbId").asOpt[String].getOrElse(q)){ id =>
Expand Down

0 comments on commit 1e29649

Please sign in to comment.