Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix import
  • Loading branch information
kthoden committed Jan 28, 2020
1 parent e868cf4 commit 51dddac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fix_tei.py
Expand Up @@ -537,15 +537,15 @@ def fix_tei_header(xml_tree, bibfile_string, bibtype):
encoding_desc.insert(0, project_desc)

appinfo = xml_tree.xpath("//t:encodingDesc/t:appInfo", namespaces=NS_MAP)[0]
fix_tei_info = libeoaconvert.get_appinfo("fix_tei", __version__, "fixtei", "Fix TEI for EOA", datetime.now().strftime("%Y-%m-%d"))
fix_tei_info = libeoaconvert.get_appinfo("fix_tei", __version__, "fixtei", "Fix TEI for EOA", datetime.datetime.now().strftime("%Y-%m-%d"))
appinfo.insert(0, fix_tei_info)

revision_desc = xml_tree.xpath("//t:revisionDesc", namespaces=NS_MAP)[0]
olderchanges = revision_desc.find("t:listChange", namespaces=NS_MAP)
olderchanges.clear()
olderchanges.tag = "tagtobestripped"

first_change = etree.SubElement(revision_desc, "change", when=datetime.now().strftime("%Y-%m-%d"), who="#fixtei")
first_change = etree.SubElement(revision_desc, "change", when=datetime.datetime.now().strftime("%Y-%m-%d"), who="#fixtei")
first_change.text = "Fixed TEI created by docxtotei"

return xml_tree
Expand Down

0 comments on commit 51dddac

Please sign in to comment.