Skip to content

Commit

Permalink
Add fulltextOnline and schoeneNummer to details view (RPB-37)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Oct 26, 2023
1 parent 3426e0f commit 81cb329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
17 changes: 1 addition & 16 deletions app/views/details.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div class="row" id="search-results">
@defining(Lobid.items(doc.toString)) { items =>
@defining(!(doc\\"containedIn").isEmpty && (doc\"type").toString.contains("Article")){superordination =>
<div class="col-md-@if(!doc.toString.contains("fulltextOnline")){12} else {8}">
<div class="col-md-12">
<dl>
@defining((doc\"rpbId").asOpt[String].getOrElse(q)){ id =>
<dt>@tags.star_button(id) Titeldetails:
Expand All @@ -80,21 +80,6 @@
}
</dl>
</div>
@if(doc.toString.contains("fulltextOnline")){
<div class="col-md-4" id="holdings">
<dl>
<dt>Online-Ressource:</dt>
<dd>
<table class="table table-striped table-condensed">
<tr>
<th style="width: 15%"></th>
<th style="width: 85%"></th>
</tr>
@result_field("Link", "fulltextOnline", doc, TableRow.LINKS)
</table>
</dd>
</div>
}
}
}
</div>
Expand Down
2 changes: 2 additions & 0 deletions app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@

@for(pub <- sortedPublications((doc\"publication").asOpt[Seq[JsValue]].getOrElse(Seq()))){ @publication(pub) }
@result_field("Auflage", "edition", doc, TableRow.VALUES)
@result_field("Schoene-Nummer", "schoeneNummer", doc, TableRow.VALUES)
@result_field("Inhalt", "abstract", doc, TableRow.VALUES)
@result_field("Anmerkungen", "note", doc, TableRow.VALUES, node = Option(doc))
@result_field("ISBN", "isbn", doc, TableRow.VALUES)
Expand All @@ -268,6 +269,7 @@

@labelled("Inhaltsangabe", "description")
@labelled("Inhaltsverzeichnis", "tableOfContents")
@labelled("Volltext", "fulltextOnline")
}

@schema_org(doc)

0 comments on commit 81cb329

Please sign in to comment.