diff --git a/apis_ontology/ontology_specific_scripts/import_tei.py b/apis_ontology/ontology_specific_scripts/import_tei.py index 3074d07..5e3edb1 100644 --- a/apis_ontology/ontology_specific_scripts/import_tei.py +++ b/apis_ontology/ontology_specific_scripts/import_tei.py @@ -239,6 +239,13 @@ def parse_attr(path_node: PathNode): "date": None } + if ( + xml_elem.tag.endswith("publisher") + and path_node.path_node_parent.xml_elem.tag.endswith("rs") + and path_node.path_node_parent.xml_elem.attrib.get("type", "") == "publisher" + ): + return None + if ( ( xml_elem.tag.endswith("publisher") @@ -284,7 +291,7 @@ def parse_attr(path_node: PathNode): if attr_dict["name"] is not None: attr_dict["name"] = attr_dict["name"].replace("&", "&") - return attr_dict + return attr_dict else: