Skip to content

Commit

Permalink
Skip bindings und colour checker
Browse files Browse the repository at this point in the history
  • Loading branch information
wrznr committed Jun 24, 2020
1 parent 2303929 commit d6a97a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion mets_mods2tei/api/tei.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6a97a8

Please sign in to comment.