Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt RPB UI for BiblioVino (RPB-37) #52

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/advanced.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
@import play.api.libs.json.Json
@import play.api.libs.json.JsValue

@main("RPB - Erweiterte Suche") {
@main("BiblioVino - Erweiterte Suche") {
@tags.search_advanced("Suchen", person="_", name="_", subject="_")
}
26 changes: 15 additions & 11 deletions app/views/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@import play.api.libs.json.JsValue
@import controllers.nwbib.Lobid

@main("RPB") {
@main("BiblioVino") {
@tags.search_form("")
<div class="row">
@*<div class="col-md-7 intro">
Expand Down Expand Up @@ -37,18 +37,22 @@
*@
<div class="col-md-12 intro">
<p class="lead">
Die Rheinland-Pfälzische Bibliographie (RPB) ist eine regionale Literaturdokumentation des Landes Rheinland-Pfalz, die seit 1991 im Auftrag des damaligen
Ministeriums für Wissenschaft und Weiterbildung erstellt wird. Sie erfasst Bücher, Aufsätze aus Zeitschriften, Jahrbüchern, Tages- und Wochenzeitungen sowie
Einzelbeiträge aus Sammelwerken.
Die Bibliographie zur Geschichte und Kultur des Weines ist eine Literaturdokumentation der deutschsprachigen Weinliteratur. Sie erfasst Bücher,
Aufsätze aus Zeitschriften, Jahrbüchern, Tages- und Wochenzeitungen sowie Einzelbeiträge aus Sammelwerken. Wo möglich werden Volltexte als frei
zugängliche Digitalisate eingebunden.
</p>
<p>
Die Bibliographie wird von Mitarbeitern des Landesbibliothekszentrums an den Standorten Speyer und Koblenz sowie den wissenschaftlichen Stadtbibliotheken in
Mainz und Trier gemeinsam erarbeitet. Die einzelnen Bibliotheken sind schwerpunktmäßig für die Literatur aus ihrer und über ihre Region zuständig. Rund 1400
Zeitschriften des Berichtszeitraums 1991 bis heute und andere fortlaufende Werke werden durchgesehen. Die Titel werden in den einzelnen Bibliotheken dezentral
erfasst. Die Rheinische Landesbibliothek des lbz führt das Titelmaterial redaktionell zusammen und betreut mit dem hbz die für die Herstellung der Bibliographie
erforderliche Datenverarbeitung.
</p>
</div>
Die Bibliographie wird von Mitarbeitern des Landesbibliothekszentrums bearbeitet. Für die Verzeichnung in der Weinbibliographie werden alle
Veröffentlichungen aus allen Epochen berücksichtigt, die einen inhaltlichen Bezug zu kulturellen und geschichtlichen Aspekten des Weins
haben. Nicht erfasst werden moderne, praktische Aspekte des Weinbaus. Im Wesentlichen wird deutschsprachiges Schrifttum (bei älteren Schriften auch
Latein) ausgewertet. Fremdsprachige Literatur ist vereinzelt zu finden, wird jedoch nicht systematisch erschlossen. Das Landesbibliothekszentrums führt
das Titelmaterial redaktionell zusammen und betreut mit dem hbz die für die Herstellung der Bibliographie erforderliche Datenverarbeitung.
</p>
<p>
Grundlage der sachlichen Erschließung sind die Schlagwörter gemäß der bundeseinheitlichen Normdatei (GND), die in Kooperation der wissenschaftlichen
Bibliotheken des deutschsprachigen Raumes erstellt und von der Deutschen Nationalbibliothek verwaltet werden.
</p>
</div>
</div>
@*
<script type="application/ld+json">
Expand Down
24 changes: 11 additions & 13 deletions app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.at("stylesheets/jquery-ui.min.css")">
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.at("stylesheets/font-awesome.min.css")">
<link rel="stylesheet" media="all" href="@controllers.routes.Assets.at("stylesheets/nwbib.css")">
<link rel="shortcut icon" type="image/png" href="@controllers.routes.Assets.at("images/favicon.png")">
<link rel="shortcut icon" type="image/png" href="@controllers.routes.Assets.at("images/bibliovino.png")">
<script src="@controllers.routes.Assets.at("javascripts/jquery-1.10.2.min.js")"></script>
<script src="@controllers.routes.Assets.at("javascripts/jquery-ui.min.js")"></script>
<script src="@controllers.routes.Assets.at("javascripts/bootstrap.min.js")"></script>
Expand All @@ -35,28 +35,26 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="@nwbib.routes.Application.index()"><span class="glyphicon glyphicon-home"></span> RPB</a>
<a class="navbar-brand" href="@nwbib.routes.Application.index()"><span class="glyphicon glyphicon-home"></span> BiblioVino</a>
</div>
<div class="navbar-collapse collapse" id="nwbib-nav">
<ul class="nav navbar-nav">
<li @if(title=="RPB - Ergebnisliste"){class="active"}>
<li @if(title=="BiblioVino - Ergebnisliste"){class="active"}>
<a href="@nwbib.routes.Application.search()">Suche</a>
</li>
<li @if(title=="RPB - Erweiterte Suche"){class="active"}>
<li @if(title=="BiblioVino - Erweiterte Suche"){class="active"}>
<a href="@nwbib.routes.Application.advanced()">Erweiterte Suche</a>
</li>
@*
<li @if(title=="RPB - Themensuche"){class="active"}>
<li @if(title=="BiblioVino - Themensuche"){class="active"}>
<a href="@nwbib.routes.Application.topics()">Themensuche</a>
</li>
*@
<li @if(title.contains("Raumsystematik")){class="active"}>
<a href="@nwbib.routes.Application.spatial()">Regionen</a>
</li>
<li @if(title.contains("Sachsystematik")){class="active"}>
<a href="@nwbib.routes.Application.subjects()">Sachgebiete</a>
</li>
@*
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Ergänzende Suche<b class="caret"></b></a>
<ul class="dropdown-menu">
Expand All @@ -73,7 +71,7 @@
*@
</ul>
<ul class="nav navbar-nav navbar-right">
<li @if(title=="RPB - Merkliste"){class="active"}><a href="@nwbib.routes.Application.showStars()"><span class="glyphicon glyphicon-star-empty"></span> Merkliste</a></li>
<li @if(title=="BiblioVino - Merkliste"){class="active"}><a href="@nwbib.routes.Application.showStars()"><span class="glyphicon glyphicon-star-empty"></span> Merkliste</a></li>
<li class="divider"></li>
<li @if(title=="RPB: Kontakt"){class="active"} class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Info"><span class="glyphicon glyphicon-info-sign"></span><b class="caret"></b></a>
Expand All @@ -83,10 +81,10 @@
<li><a href="@nwbib.routes.Application.journals()">Ausgewertete Zeitschriften</a></li>
*@
<li class="dropdown-header">Feedback</li>
<li><a href="mailto:lobid-admin@@hbz-nrw.de?subject=Feedback%20zur%20RPB,%20aktuelle%20URL%20@controllers.nwbib.Application.currentUri()">Feedback zur aktuellen Seite</a></li>
<li><a href="mailto:lobid-admin@@hbz-nrw.de?subject=Feedback%20zu%20BiblioVino,%20aktuelle%20URL%20@controllers.nwbib.Application.currentUri()">Feedback zur aktuellen Seite</a></li>
<li class="divider"></li>
<li class="dropdown-header">Fachlicher Kontakt</li>
<li><a href="mailto:pl.rlb@@lbz-rlp.de?Subject=Anfrage%20Zentralredaktion%20RPB">Zentralredaktion (Tel.: 0261/91500-450)</a></li>
<li><a href="mailto:pl.rlb@@lbz-rlp.de?Subject=Anfrage%20Zentralredaktion%20BiblioVino">Zentralredaktion (Tel.: 0261/91500-450)</a></li>
<li class="divider"></li>
<li class="dropdown-header">Technischer Kontakt</li>
<li><a href="https://www.hbz-nrw.de/produkte/linked-open-data" target="_blank">Hochschulbibliothekszentrum NRW</a></li>
Expand All @@ -101,16 +99,16 @@
</div><!--/.container-fluid -->
</div>
<div class="page-header">
<img class="media-object nrw-logo pull-right" src="@controllers.routes.Assets.at("images/wappen.png")" alt="NRW">
<h1>Die Rheinland-Pfälzische Bibliographie<br/><small>Ein Entwicklungsprojekt von lbz &amp; hbz <span class="badge">beta</span></small></h1>
<img class="media-object nrw-logo pull-right" src="@controllers.routes.Assets.at("images/bibliovino.png")" alt="BiblioVino">
<h1>BiblioVino<br/><small>Bibliographie zur Geschichte und Kultur des Weines <span class="badge">beta</span></small></h1>
</div>
@content
<div class="panel panel-default nwbib-footer">
<div class="panel-body">
@defining(controllers.nwbib.Lobid.getTotalHits("").get(Lobid.API_TIMEOUT)){ hits =>
<img class="media-object pull-left nrw-wappen" src="@controllers.routes.Assets.at("images/wappen.png")" alt="NRW-Wappen">
<img class="media-object pull-right hbz-logo" src="@controllers.routes.Assets.at("images/hbz.png")" alt="hbz-Logo">
Die RPB enthält aktuell @hits Literaturnachweise | Ein Entwicklungsprojekt von <a href="https://lbz.rlp.de/">lbz</a> &amp; <a href="http://www.hbz-nrw.de/">hbz</a>
BiblioVino enthält aktuell @hits Literaturnachweise | Ein Entwicklungsprojekt von <a href="https://lbz.rlp.de/">lbz</a> &amp; <a href="http://www.hbz-nrw.de/">hbz</a>
}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/search.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
(json\"rpbId").asOpt[String].getOrElse((json\"id").asOpt[String].map(_.replaceAll("https?://lobid.org/resources/","").replaceAll("#!","")).getOrElse(""))
}

@main("RPB - Ergebnisliste") {
@main("BiblioVino - Ergebnisliste") {
@if(Seq(person, name, subject, id, publisher, issued, word, corporation).exists(!_.isEmpty)){
@tags.search_advanced("Suche aktualisieren", q, person, name, subject, rpbspatial, rpbsubject, id, publisher, issued, sortParam, word=word, corporation=corporation)
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/views/stars.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
}

@main("RPB - Merkliste") {
@main("BiblioVino - Merkliste") {
@if(ids.isEmpty){
<div class="alert alert-info text-center">
Keine gemerkten Titel. Sie können Titel in der Trefferliste oder der Einzeltrefferanzeige durch Klicken des Sterns hinzufügen.
Expand Down
4 changes: 2 additions & 2 deletions app/views/tags/facets.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@
<div id="issued-div"> <a id="issued-link" style="display:none" href="@nwbib.routes.Application.search(q,person,name,subject,id,publisher,issued,medium,rpbspatial,rpbsubject,from,size,owner,t,sortParam,location=location,word=word,corporation=corporation,raw=raw)">Anwenden</a> </div>
</div>
<br/>
<div class="row facet"><div class="col-md-12">@facets("Regionen", Application.NWBIB_SPATIAL_FIELD, rpbspatial)</div></div>
<div class="row facet"><div class="col-md-12">@facets("Sachgebiete", Application.RPB_SUBJECT_FIELD, rpbsubject)</div></div>
<div class="row facet"><div class="col-md-12">@facets("Schlagwörter", Application.SUBJECT_FIELD, if(!urisOnly(subject).isEmpty) urisOnly(subject) else "", "dropup")</div></div>
<div class="row facet"><div class="col-md-12">@facets("Publikationstypen", Application.TYPE_FIELD, t, "dropup")</div></div>
<div class="row facet"><div class="col-md-12">@facets("Medientypen", Application.MEDIUM_FIELD, medium, "dropup")</div></div>
@*
<div class="row facet"><div class="col-md-12">@facets("Sachgebiete", Application.RPB_SUBJECT_FIELD, nwbibsubject)</div></div>
<div class="row facet"><div class="col-md-12">@facets("Regionen", Application.NWBIB_SPATIAL_FIELD, nwbibspatial)</div></div>
<p/>
<div id="coverage"><p class="h5">@facetToggle("coverage-map"){Raumbezug} @facetLabel(location, locationLabel(location.split("\\|")(0)))</p>
<div class="row facet" id="coverage-map"><div class="col-md-12">@coverage_map(q,person,name,subject,id,publisher,issued,medium,rpbspatial,rpbsubject,owner,t,sortParam,location,word,corporation,raw,from,size)</div></div>
Expand Down
7 changes: 2 additions & 5 deletions app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
}

@subjects(subjects: Seq[JsValue]) = {
@if(subjects.toString.contains("GND")){
<tr>
<td>Schlagwörter</td>
<td>
Expand All @@ -149,17 +148,15 @@
if !sourceLabel.getOrElse("").contains("Rheinland-Pfälzischen");
if !sourceLabel.getOrElse("").contains("Dewey");
label <- (component \ "label").asOpt[String];
id = (component \ "id").asOpt[String]) {
<span style="white-space: nowrap;"><a title="Nach weiteren Titeln zu '@label' suchen" href='@nwbib.routes.Application.search(subject=id.getOrElse("\""+label+"\""))'/>@label</a></span>
<a title="Nach Themen mit '@label' suchen" href='@nwbib.routes.Application.topics(q=label.replace(":","\\:"))'><span class='octicon octicon-ellipsis'></span></a>
id = (component \ "id").asOpt[String].getOrElse("")) {
<span style="white-space: nowrap;"><a title="Nach weiteren Titeln zu '@label' suchen" href='@nwbib.routes.Application.search(subject=if(id.contains("/gnd/")) {id} else {"\""+label+"\""})'/>@label</a></span>
@if(components.last == component) {
@for(topic <- (subject\"label").asOpt[String]; hits = Lobid.getTotalHits("subject.label.raw", topic.trim, CONFIG.getString("nwbib.filter")).get(Lobid.API_TIMEOUT); if hits > 1){
| <a href='@nwbib.routes.Application.search(q="subject.label.raw:\""+topic.trim+"\"")' title="Alle @hits Titel zum Thema '@topic.trim' anzeigen"><span class='badge progress-bar-success'>@hits</span></a>
}<br/>
} else { | }
}</td>
</tr>
}
}

@sortedPublications(seq: Seq[JsValue]) = @{
Expand Down
6 changes: 3 additions & 3 deletions app/views/tags/search_form.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</div>
<p/>
<div class="alert alert-warning">
Aufgrund einer technischen Störung musste die Rheinland-Pfälzische Bibliographie in ihrer bisherigen Form abgeschaltet
werden und auf eine neue Oberfläche umziehen. Bitte beachten Sie, dass es sich hierbei um eine Version handelt, in der
noch nicht alle Funktionen umgesetzt sind. Wir sind bestrebt, dies fortlaufend zu verbessern.
Aufgrund einer technischen Störung musste BiblioVino in seiner bisherigen Form abgeschaltet werden und auf eine neue Oberfläche umziehen.
Bitte beachten Sie, dass es sich hierbei um eine Version handelt, in der noch nicht alle Funktionen umgesetzt sind.
Wir sind bestrebt, dies fortlaufend zu verbessern.
</div>
}
2 changes: 1 addition & 1 deletion conf/nwbib.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ indexUrlFormat="http://quaoar1:1990/resources/search?q=rpbId:%s&format=json"
item.api="http://lobid.org/items"
hbz01.api="http://lobid.org/hbz01"
orgs.api="http://lobid.org/organisations"
nwbib.filter="inCollection.id:\"http://lobid.org/resources/HT013494180#!\""
nwbib.filter="inCollection.id:\"http://lobid.org/resources/HT013678171#!\""

# Embedded Elasticsearch index for classification data
index {
Expand Down
Binary file added public/images/bibliovino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading