Skip to content

Commit

Permalink
Set custom label for publication (RPB-38)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Nov 16, 2023
1 parent d56e8fb commit 76a5f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/GndOntology.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public static String type(String property) {

private static String ontologyLabel(String id) {
labels.put("gndSubjectCategory", "GND-Sachgruppe | Personen zu...");
labels.put("publication", "Werke");
String key = id.contains("#") ? id.split("#")[1] : id;
String result = labels.get(key);
return result == null ? id : result.replaceAll("Personen (zu|der) ", "");
Expand Down

0 comments on commit 76a5f90

Please sign in to comment.