From 45b3f67c47c3f4686735767e7bed084a9ddfcaaf Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Mon, 17 Jun 2024 14:08:00 +0200 Subject: [PATCH] #550 Map to monograph as default publication type --- .../uni_jena/thunibib/his/xml/HISinOneResolver.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/de/uni_jena/thunibib/his/xml/HISinOneResolver.java b/common/src/main/java/de/uni_jena/thunibib/his/xml/HISinOneResolver.java index 8fdc9307f..cfced6edb 100644 --- a/common/src/main/java/de/uni_jena/thunibib/his/xml/HISinOneResolver.java +++ b/common/src/main/java/de/uni_jena/thunibib/his/xml/HISinOneResolver.java @@ -234,17 +234,17 @@ protected SysValue resolveGenre(String ubogenre) { .filter(pubType -> pubType.getUniqueName().equals(MCRXMLFunctions.getDisplayName("ubogenre", ubogenre))) .findFirst(); - SysValue id; + SysValue sysValue; if (tpv.isEmpty()) { - id = pubTypeValues.stream() - .filter(pubType -> "Sonstiger Publikationstyp".equals(pubType.getUniqueName())) + sysValue = pubTypeValues.stream() + .filter(pubType -> "Monographie".equals(pubType.getUniqueName())) .findFirst().get(); } else { - id = tpv.get(); + sysValue = tpv.get(); } - GENRE_TYPE_MAP.put(ubogenre, id); - return id; + GENRE_TYPE_MAP.put(ubogenre, sysValue); + return sysValue; } }