Skip to content

Commit

Permalink
Update title-initial non-sorting strings and display (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jan 29, 2024
1 parent 55b1fd2 commit 94b98b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/nwbib/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public static Promise<Result> journals() {
}

private static String sortValue(Map<String, String> 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();
}

Expand All @@ -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*", "");
}

/**
Expand Down

0 comments on commit 94b98b0

Please sign in to comment.