Skip to content

Commit

Permalink
Merge #494 from branch '493-add-link-to-API-usage-policy' of https://…
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Oct 6, 2023
2 parents 7007586 + 06e619b commit 1a98e21
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/views/api.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
}

@main("*", scripts = hypothesisEmbed) {
<div id="usage-policy" class="alert alert-info" role="alert">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
@Html(Messages.get("api.usage.policy", "https://lobid.org/usage-policy/"))
</div>
<h2 id="basics">@Messages.get("api.basics.header") <small><a href="#basics"><span class="glyphicon glyphicon-link"></span></a></small></h2>
<dl>
@desc("HTTP GET", routes.Application.get("DE-6", format="json"))
Expand Down
2 changes: 2 additions & 0 deletions app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<ul class="dropdown-menu">
<li @if(controllers.Application.currentUri().contains("dataset")){class="active"}><a href='@routes.Application.dataset("")'>@Messages.get("main.navbar.info.dataset")</a></li>
<li><a href="mailto:lobid-admin@@hbz-nrw.de?subject=Feedback%20lobid-organisations,%20URL%[email protected]()">@Messages.get("main.navbar.info.feedback")</a></li>
<li><a href="http://lobid.org/usage-policy/">@Messages.get("main.navbar.info.policy")</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -76,6 +77,7 @@
lobid-organisations | @Html(Messages.get("main.footer.text", "https://www.hbz-nrw.de/produkte/linked-open-data"))
</span>
<span class="pull-right">
<a href="http://lobid.org/warranty">@Messages.get("main.footer.warranty")</a> |
<a href="https://www.hbz-nrw.de/impressum">@Messages.get("main.footer.imprint")</a> |
<a href="https://github.com/hbz/lobid/blob/master/conf/Datenschutzerklaerung_lobid.textile">@Messages.get("main.footer.data_protection")</a> |
<a href="https://twitter.com/lobidorg"><i class="fa fa-twitter" aria-hidden="true"></i> Twitter</a>&nbsp;
Expand Down
5 changes: 4 additions & 1 deletion conf/messages.de
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ main.navbar.api.title = Programmierschnittstelle

main.navbar.info.dataset = Datenbeschreibung
main.navbar.info.feedback = Feedback zur aktuellen Seite
main.navbar.info.policy = Richtlinien API-Nutzung

main.footer.text = ein LOD-Dienst des <a href="{0}">hbz — Hochschulbibliothekszentrum des Landes NRW</a>
main.footer.text = ein Dienst des <a href="{0}">hbz</a>
main.footer.warranty = Gewährleistung
main.footer.imprint = Impressum
main.footer.data_protection = Datenschutz

Expand Down Expand Up @@ -47,6 +49,7 @@ search.position_sort = In Ihrer Nähe

# api

api.usage.policy = Technische und sonstige Hinweise zur lobid-Nutzung finden sich in den <a class="alert-link" href="{0}">Richtlinien zur API-Nutzung</a>.
api.basics.header = API-Grundlagen
api.basics.search = Suche über alle Felder
api.basics.pagination = Suche mit Paginierung
Expand Down
5 changes: 4 additions & 1 deletion conf/messages.en
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ main.navbar.api.title = Application programming interface

main.navbar.info.dataset = Dataset description
main.navbar.info.feedback = Feedback about current page
main.navbar.info.policy = Guidelines API usage

main.footer.text = a LOD service by <a href="{0}">hbz — Hochschulbibliothekszentrum des Landes NRW</a>
main.footer.text = a service by <a href="{0}">hbz</a>
main.footer.warranty = Warranty
main.footer.imprint = Imprint
main.footer.data_protection = Privacy

Expand Down Expand Up @@ -47,6 +49,7 @@ search.position_sort = Close to you

# api

api.usage.policy = Technical and other guidance on the usage of lobid can be found in the <a class="alert-link" href="{0}">API Usage Guidelines</a>.
api.basics.header = API basics
api.basics.search = Query all fields
api.basics.pagination = Query with pagination
Expand Down
9 changes: 9 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,12 @@ small {
color: blue;
z-index: 100 !important;
}

#usage-policy {
margin-top: 20px;
/*
setting standard background-color for .alert-info
https://getbootstrap.com/docs/3.3/components/#alerts
*/
background-color: #d9edf7;
}

0 comments on commit 1a98e21

Please sign in to comment.