From 8015f21b3bed27a79a1aee473f911beb23cdf65d Mon Sep 17 00:00:00 2001 From: Phu Tu Date: Tue, 19 Sep 2023 09:26:32 +0200 Subject: [PATCH 1/2] Add links to usage policy, #493 --- app/views/api.scala.html | 4 ++++ app/views/main.scala.html | 1 + conf/messages.de | 2 ++ conf/messages.en | 2 ++ public/stylesheets/main.css | 9 +++++++++ 5 files changed, 18 insertions(+) diff --git a/app/views/api.scala.html b/app/views/api.scala.html index dff799b6..6f24e1fb 100644 --- a/app/views/api.scala.html +++ b/app/views/api.scala.html @@ -31,6 +31,10 @@ } @main("*", scripts = hypothesisEmbed) { +

@Messages.get("api.basics.header")

@desc("HTTP GET", routes.Application.get("DE-6", format="json")) diff --git a/app/views/main.scala.html b/app/views/main.scala.html index 04cbbfea..9d12f0a9 100644 --- a/app/views/main.scala.html +++ b/app/views/main.scala.html @@ -49,6 +49,7 @@ diff --git a/conf/messages.de b/conf/messages.de index 84bae50f..600ee6ed 100644 --- a/conf/messages.de +++ b/conf/messages.de @@ -16,6 +16,7 @@ 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 hbz — Hochschulbibliothekszentrum des Landes NRW main.footer.imprint = Impressum @@ -47,6 +48,7 @@ search.position_sort = In Ihrer Nähe # api +api.usage.policy = Technische und sonstige Hinweise zur lobid-Nutzung finden sich in den Richtlinien zur API-Nutzung. api.basics.header = API-Grundlagen api.basics.search = Suche über alle Felder api.basics.pagination = Suche mit Paginierung diff --git a/conf/messages.en b/conf/messages.en index 200f8505..78a68ede 100644 --- a/conf/messages.en +++ b/conf/messages.en @@ -16,6 +16,7 @@ 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 hbz — Hochschulbibliothekszentrum des Landes NRW main.footer.imprint = Imprint @@ -47,6 +48,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 API Usage Guidelines. api.basics.header = API basics api.basics.search = Query all fields api.basics.pagination = Query with pagination diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css index a73b81c4..2425029d 100644 --- a/public/stylesheets/main.css +++ b/public/stylesheets/main.css @@ -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; +} From 0ed39744e286b00f403b1696227c662a0bd87de9 Mon Sep 17 00:00:00 2001 From: Phu Tu Date: Thu, 21 Sep 2023 14:53:42 +0200 Subject: [PATCH 2/2] Align footer with the main lobid page, #493 --- app/views/main.scala.html | 1 + conf/messages.de | 3 ++- conf/messages.en | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/main.scala.html b/app/views/main.scala.html index 9d12f0a9..a00a6f5a 100644 --- a/app/views/main.scala.html +++ b/app/views/main.scala.html @@ -77,6 +77,7 @@ lobid-organisations | @Html(Messages.get("main.footer.text", "https://www.hbz-nrw.de/produkte/linked-open-data")) + @Messages.get("main.footer.warranty") | @Messages.get("main.footer.imprint") | @Messages.get("main.footer.data_protection") | Twitter  diff --git a/conf/messages.de b/conf/messages.de index 600ee6ed..48912bef 100644 --- a/conf/messages.de +++ b/conf/messages.de @@ -18,7 +18,8 @@ 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 hbz — Hochschulbibliothekszentrum des Landes NRW +main.footer.text = ein Dienst des hbz +main.footer.warranty = Gewährleistung main.footer.imprint = Impressum main.footer.data_protection = Datenschutz diff --git a/conf/messages.en b/conf/messages.en index 78a68ede..d31dce25 100644 --- a/conf/messages.en +++ b/conf/messages.en @@ -18,7 +18,8 @@ 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 hbz — Hochschulbibliothekszentrum des Landes NRW +main.footer.text = a service by hbz +main.footer.warranty = Warranty main.footer.imprint = Imprint main.footer.data_protection = Privacy