Skip to content

Commit

Permalink
Show manufacture details like publication (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jan 22, 2024
1 parent a69b8e2 commit 1776ab2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
@if((pub \ "type").toString.contains("SecondaryPublicationEvent")){
Sekundärpublikation
} else {
Erschienen
@if(pub.toString.contains("manufacturedBy")) {
Hergestellt
} else {
Erschienen
}
}
</td>
<td>
Expand All @@ -47,6 +51,7 @@
<br/>
@optional("Erscheinungsort", "location", pub)
@optional("Verlag", "publishedBy", pub)
@optional("Hersteller", "manufacturedBy", pub)
@((pub\"frequency").asOpt[Seq[JsValue]].map { freq =>
optional("Erscheinungsweise", "label", freq.head)
})
Expand Down Expand Up @@ -244,6 +249,7 @@
@result_field("", "thesisInformation", doc, TableRow.VALUES)

@for(pub <- sortedPublications((doc\"publication").asOpt[Seq[JsValue]].getOrElse(Seq()))){ @publication(pub) }
@for(pub <- sortedPublications((doc\"manufacture").asOpt[Seq[JsValue]].getOrElse(Seq()))){ @publication(pub) }
@result_field("Auflage", "edition", doc, TableRow.VALUES)
@result_field("Inhalt", "abstract", doc, TableRow.VALUES)
@result_field("Anmerkungen", "note", doc, TableRow.VALUES, node = Option(doc))
Expand Down

0 comments on commit 1776ab2

Please sign in to comment.