From 97a95608590e05e442836f02372cee2da245fbe4 Mon Sep 17 00:00:00 2001 From: Kathrin Huber Date: Thu, 20 May 2021 12:23:49 +0200 Subject: [PATCH 1/2] reuse yearIncludedStructuralElement --- .../production/migration/NewspaperProcessesMigrator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, From 161383d8ef2a28128b95c90f2129dec70a319e0f Mon Sep 17 00:00:00 2001 From: Kathrin Huber Date: Thu, 27 May 2021 10:37:05 +0200 Subject: [PATCH 2/2] create orderlabel in test transformation --- .../xslt/MetsModsGoobi_to_MetsKitodo.xsl | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +