From 102b15ffa997bb440759dfee49976cbabbffb694 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 6 May 2022 19:36:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Do=20not=20duplicate=20ALTO=20me?= =?UTF-8?q?tadata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/modstool/altotool.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qurator/modstool/altotool.py b/qurator/modstool/altotool.py index 9006601..b38dddf 100755 --- a/qurator/modstool/altotool.py +++ b/qurator/modstool/altotool.py @@ -116,12 +116,8 @@ def process(alto_files: List[str], output_file: str, output_csv: str, output_xls with warnings.catch_warnings(record=True) as caught_warnings: warnings.simplefilter('always') # do NOT filter double occurrences - # MODS + # ALTO d = flatten(alto_to_dict(alto, raise_errors=True)) - # METS - d_alto = flatten(alto_to_dict(alto, raise_errors=True)) - for k, v in d_alto.items(): - d[f"alto_{k}"] = v # "meta" d['alto_file'] = alto_file