From 94b98b0cc3b9b46f8cc8ce6e11017cbef350b56b Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Mon, 29 Jan 2024 16:07:34 +0100 Subject: [PATCH] Update title-initial non-sorting strings and display (#611) --- app/controllers/nwbib/Application.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/nwbib/Application.java b/app/controllers/nwbib/Application.java index 3661911..270909c 100644 --- a/app/controllers/nwbib/Application.java +++ b/app/controllers/nwbib/Application.java @@ -351,7 +351,7 @@ public static Promise journals() { } private static String sortValue(Map map, final String key) { - String value = map.get(key).replaceAll("^(Der|Die|Das|\\.\\.\\.)\\s", ""); + String value = map.get(key).replaceAll("^(Der|Die|Das|De)\\s", ""); return Arrays.asList(value.split("\\s")).toString(); } @@ -363,7 +363,7 @@ private static String journalLabelFor(JsonNode doc) { label += ": " + doc.get(other).elements().next().asText(); if (doc.has(responsibility)) label += " / " + doc.get(responsibility).elements().next().asText(); - return label; + return label.replaceAll("^\\.{3}\\s*", ""); } /**