diff --git a/Kitodo/src/main/java/org/kitodo/production/migration/NewspaperProcessesMigrator.java b/Kitodo/src/main/java/org/kitodo/production/migration/NewspaperProcessesMigrator.java index b91db33ff8a..7e593988651 100644 --- a/Kitodo/src/main/java/org/kitodo/production/migration/NewspaperProcessesMigrator.java +++ b/Kitodo/src/main/java/org/kitodo/production/migration/NewspaperProcessesMigrator.java @@ -401,9 +401,8 @@ private String createLinkStructureAndCopyDates(Process process, URI yearMetadata year = MetadataEditor.getMetadataValue(yearFileYearIncludedStructuralElement, FIELD_TITLE); } IncludedStructuralElement processYearIncludedStructuralElement = years.computeIfAbsent(year, theYear -> { - IncludedStructuralElement yearIncludedStructuralElement = new IncludedStructuralElement(); - MetadataEditor.writeMetadataEntry(yearIncludedStructuralElement, yearSimpleMetadataView, theYear); - return yearIncludedStructuralElement; + MetadataEditor.writeMetadataEntry(yearFileYearIncludedStructuralElement, yearSimpleMetadataView, theYear); + return yearFileYearIncludedStructuralElement; }); createLinkStructureAndCopyMonths(process, metaFileYearIncludedStructuralElement, diff --git a/Kitodo/src/test/resources/xslt/MetsModsGoobi_to_MetsKitodo.xsl b/Kitodo/src/test/resources/xslt/MetsModsGoobi_to_MetsKitodo.xsl index eb51f653a2a..5b94dbf89ce 100644 --- a/Kitodo/src/test/resources/xslt/MetsModsGoobi_to_MetsKitodo.xsl +++ b/Kitodo/src/test/resources/xslt/MetsModsGoobi_to_MetsKitodo.xsl @@ -84,6 +84,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +