Skip to content

Commit

Permalink
Remove lobid header from /reconcile, adapt for gnd.network (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jun 14, 2024
1 parent 1d33116 commit a28e81d
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 1 deletion.
74 changes: 74 additions & 0 deletions app/views/gnd.scala.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
@* Copyright 2015-2024 Fabian Steeg, hbz. Licensed under the EPL 2.0 *@

@(title: String)(content: Html)

<!DOCTYPE html>

<html lang="de">
<head>
<title>@title</title>
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.versioned("stylesheets/bootstrap.min.css")">
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.versioned("stylesheets/octicons.css")">
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.versioned("stylesheets/jquery-ui.min.css")">
<link rel="stylesheet" media="all" href='@controllers.routes.Assets.versioned("stylesheets/font-awesome.min.css")'>
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.versioned("stylesheets/main.css")">
<link rel="shortcut icon" type="image/png" href="@controllers.routes.Assets.versioned("images/gnd.png")">
<script src="@controllers.routes.Assets.versioned("javascripts/jquery-1.10.2.min.js")"></script>
<script src="@controllers.routes.Assets.versioned("javascripts/jquery-ui.min.js")"></script>
<script src="@controllers.routes.Assets.versioned("javascripts/bootstrap.min.js")"></script>
<script src="@controllers.routes.Assets.versioned("javascripts/main.js")"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10">
</head>
<body>
<div class="container">
<p/>
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid" id="header-gnd">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#resources-nav">
<span class="sr-only">Navigation ein/ausblenden</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://gnd.network">
<span><img id="small-gnd-logo" src='@controllers.routes.Assets.versioned("images/gnd.png")' alt="lobid"/></span></a>
</div>
<div class="navbar-collapse collapse" id="resources-nav">

<ul class="nav navbar-nav navbar-right">
<li class="divider"></li>
<li @if(title.contains("Dataset")){class="active"} class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Info" style='color:white'><span class="glyphicon glyphicon-info-sign"></span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-header">Dokumentation</li>
<li><a href="http://lobid.org/usage-policy" target="_blank">Richtlinien zur API-Nutzung</a></li>
<li class="divider"></li>
<li class="dropdown-header">Kontakt</li>
<li><a href="mailto:lobid-admin@@hbz-nrw.de?subject=Feedback%20zum%20GND-Reconciliation-Service">Feedback zum Reconciliation-Service</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</div>
@content
<div class="panel panel-default footer-gnd">
<div class="panel-body">
<span class="pull-left">
<img id='small-gnd-logo' src='@controllers.routes.Assets.versioned("images/gnd.png")' alt="GND-Logo"/> &nbsp;
GND Reconciliation | ein Dienst im <a href='https://gnd.network'>gnd.network</a>
</span>
<span class="pull-right">
<a href="http://lobid.org/warranty">Gewährleistung</a> |
<a href="http://www.hbz-nrw.de/impressum">Impressum</a> |
<a href="https://github.com/hbz/lobid/blob/master/conf/Datenschutzerklaerung_lobid.textile">Datenschutz</a> |
<a href="http://github.com/hbz/lobid-gnd"><i class="fa-brands fa-github" aria-hidden="true"></i> GitHub</a>&nbsp;
<a href="https://wiki.dnb.de/pages/viewrecentblogposts.action?key=GND"><i class="fa fa-pencil" aria-hidden="true"></i> Blog</a>
</span>
</div>
</div>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion app/views/reconcile.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dt>@Html(label)</dt> <dd><a href='@link'>@java.net.URLDecoder.decode(link.toString.replaceAll("[&?]format=json$", ""), "UTF-8")</a></dd>
}

@main("", "lobid-gnd - Reconcile") {
@gnd("GND Reconciliation") {
<div class='pull-right'>
<img src='@controllers.routes.Assets.versioned("images/gnd.png")' height='85px'/>
<img src='@controllers.routes.Assets.versioned("images/refine.png")' height='100px'/>
Expand Down
21 changes: 21 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ dd {
background-repeat: repeat-x;
}

#header-gnd {
width: 100%;
background: #0069b4;
}

#small-gnd-logo {
height: 25px;
border: 2px solid white;
background: white;
}

#header #butterfly {
height: 25px;
}
Expand Down Expand Up @@ -119,6 +130,16 @@ ul.facet li {
margin-top: 30px;
}

.footer-gnd {
margin-top: 30px;
background: #0069b4;
color: white;
}

.footer-gnd a {
color: white;
}

.pagination {
margin-top: 0px !important;
margin-bottom: 0px !important;
Expand Down

0 comments on commit a28e81d

Please sign in to comment.