Skip to content

Commit

Permalink
#550 Map to monograph as default publication type
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Jun 17, 2024
1 parent 6e9ebe6 commit 45b3f67
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 45b3f67

Please sign in to comment.