-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rpb-46-anniversaries' of https://github.com/hbz/lobid-gnd…
… into rppd Resolves #371 (RPB-46) See https://rppd.lobid.org
- Loading branch information
Showing
5 changed files
with
186 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,45 @@ | ||
@* Copyright 2015-2018 Fabian Steeg, hbz. Licensed under the EPL 2.0 *@ | ||
|
||
@(entity: AuthorityResource, dataset: com.fasterxml.jackson.databind.JsonNode, allHits: Long) | ||
@(entity: AuthorityResource, dataset: com.fasterxml.jackson.databind.JsonNode, anniversaries: List[String], allHits: Long) | ||
|
||
@import helper._ | ||
@import controllers.HomeController.formatCount | ||
@import controllers.HomeController.thisDay | ||
@import play.api.libs.json._ | ||
@import controllers.HomeController.CONFIG | ||
|
||
@main("", "RPPD", allHits) { | ||
<div class="page-header"> | ||
<img class="media-object nrw-logo pull-right" src="@controllers.routes.Assets.versioned("images/wappen.png")" alt="NRW"> | ||
<h1>@dataset.get("alternateName").get("de").asText()<br/><small>@formatCount(allHits) Personen aus allen Wissensgebieten <span class="badge">beta</span></small></h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-@if(entity!=null){9}else{12} intro"> | ||
<p> | ||
@Html(dataset.get("description").get("de").asText()) | ||
</p> | ||
</div> | ||
@if(entity!=null){<div class="col-md-3"> | ||
<figure> | ||
<a href='@routes.HomeController.authority(entity.getId)'><img width="200px" id="index-image" src='https://lobid.org/[email protected]' alt="Darstellung von @entity.preferredName"/></a> | ||
<figcaption><a href='@routes.HomeController.authority(entity.getId)'>@entity.preferredName</a><br/>@if(entity.imageAttribution!=null){<small>(@Html(entity.imageAttribution))</small>}</figcaption> | ||
</figure> | ||
</div>} | ||
<div class="col-md-3"> | ||
<p><strong>Jubiläen</strong></p> | ||
@for(resource <- anniversaries) { | ||
<div> | ||
<small> | ||
@for(json <- Json.parse(resource).asOpt[JsValue]; | ||
label <- (json \ "label").asOpt[String]; | ||
details <- (json \ "details").asOpt[String]; | ||
url = (json \ "url").asOpt[String]) { | ||
<a href="@url">@label</a> | ||
<p>@details</p> | ||
} | ||
</small> | ||
</div> | ||
} | ||
<p><a href='@routes.HomeController.search(date=thisDay)'>Aktuelle Jahrestage</a></p> | ||
</div> | ||
<div class="col-md-@if(entity!=null){6}else{9} intro"> | ||
@Html(dataset.get("description").get("de").asText()) | ||
</div> | ||
@if(entity!=null){<div class="col-md-3"> | ||
<figure> | ||
<a href='@routes.HomeController.authority(entity.getId)'><img width="200px" id="index-image" src='https://lobid.org/[email protected]' alt="Darstellung von @entity.preferredName"/></a> | ||
<figcaption><a href='@routes.HomeController.authority(entity.getId)'>@entity.preferredName</a><br/>@if(entity.imageAttribution!=null){<small>(@Html(entity.imageAttribution))</small>}</figcaption> | ||
</figure> | ||
</div>} | ||
</div> | ||
<script type="application/ld+json"> | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters