From 289369ebabeda82efd1614f8f36f1c5998a0b4d4 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Thu, 21 Mar 2024 15:43:13 +0100 Subject: [PATCH] Tweak UI details on index page, header, and footer (RPB-152) --- app/controllers/HomeController.java | 8 ++++++++ app/views/details.scala.html | 30 +++++++++++++--------------- app/views/index.scala.html | 7 ++----- app/views/main.scala.html | 16 +++++++-------- conf/dataset.jsonld | 2 +- public/stylesheets/bootstrap.min.css | 2 +- public/stylesheets/config.json | 2 +- public/stylesheets/main.css | 8 ++++++-- 8 files changed, 40 insertions(+), 35 deletions(-) diff --git a/app/controllers/HomeController.java b/app/controllers/HomeController.java index ec3276a..3e9c531 100644 --- a/app/controllers/HomeController.java +++ b/app/controllers/HomeController.java @@ -687,6 +687,14 @@ public static String formatCount(long count) { return df.format(count); } + public static String formatName(String name) { + String[] lastAndFirst = name.split(", "); + if (lastAndFirst.length != 2) { + return name; + } + return lastAndFirst[1] + " " + lastAndFirst[0]; + } + private String attribution(String url) { try { return requestInfo(httpClient, url).thenApply(info -> { diff --git a/app/views/details.scala.html b/app/views/details.scala.html index a702479..47d51ba 100644 --- a/app/views/details.scala.html +++ b/app/views/details.scala.html @@ -223,22 +223,20 @@ } } else { @main("", resource.preferredName, allHits) { - +

+ @defining("Namen in die Zwischenablage kopieren") { title => + + @resource.title + + } + + / @resource.lifeDates +
+ + JSON +
+
+

@* @if(resource.gndRelationEdges != "[]"){