Skip to content

Commit

Permalink
Show all related publications, with their ISBN and ISSN (#636)
Browse files Browse the repository at this point in the history
Previously, only those with `id` showed up, without other details
  • Loading branch information
fsteeg committed Jan 23, 2024
1 parent 64b9ca0 commit 57b1017
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,22 @@
@parallelausgabe() = {
@for(
related <- (doc \ "related").asOpt[Seq[JsValue]].getOrElse(Seq());
id <- (related \ "id").asOpt[String];
shortId = Lobid.shortId(id);
note <- (related \ "note").asOpt[Seq[String]]) {
id = (related \ "id").asOpt[String];
shortId = Lobid.shortId(id.getOrElse(""));
note = (related \ "note").asOpt[Seq[String]]){
<tr>
<td>Parallelausgabe</td>
<td><a href="@shortId">@note</a></td>
<td>
@if(id.isDefined){
<a href="@shortId">@note.getOrElse(shortId)</a> |
<a title="Linked-Data-Quelle abrufen" href='@id'><span class='glyphicon glyphicon-link'></span></a>
<br/>
} else {
@optional("", "note", related)
}
@optional("", "isbn", related)
@optional("", "issn", related)
</td>
</tr>
}
}
Expand Down

0 comments on commit 57b1017

Please sign in to comment.