From d6a97a89c04e61c1e9c27567c7e545c411a760fa Mon Sep 17 00:00:00 2001 From: wrznr Date: Wed, 24 Jun 2020 16:31:22 +0200 Subject: [PATCH] Skip bindings und colour checker --- Changelog | 2 +- mets_mods2tei/api/tei.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index dbc750d..316bcd4 100644 --- a/Changelog +++ b/Changelog @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Changed - Added tests for TEI API -- Evaluate texts from all struct types +- Evaluate texts from all struct types but `binding` and `colour_checker` - Add `front`, `body` and `back` per default ### Fixed diff --git a/mets_mods2tei/api/tei.py b/mets_mods2tei/api/tei.py index 59a210d..741e72b 100644 --- a/mets_mods2tei/api/tei.py +++ b/mets_mods2tei/api/tei.py @@ -699,7 +699,9 @@ def add_div_structure(self, div): entry_point = front for sub_div in div.get_div(): - if sub_div.get_TYPE() == "title_page": + if sub_div.get_TYPE() == "binding" or sub_div.get_TYPE() == "colour_checker": + continue + elif sub_div.get_TYPE() == "title_page": self.__add_div(entry_point, sub_div, 1, "titlePage") else: entry_point = body