Skip to content

Commit

Permalink
argparse
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Thoden committed Mar 5, 2018
1 parent 0ddbde5 commit d2804ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prepare_tei.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def fix_document_structure(xml_tree):

# def fix_document_structure ends here

def fix_tei_header(xml_tree):
def fix_tei_header(xml_tree, bibfile_string):
"""Populate TEI header with mandatory data"""

title_statement = xml_tree.xpath("//t:titleStmt", namespaces=NS_MAP)[0]
Expand All @@ -296,7 +296,7 @@ def fix_tei_header(xml_tree):
# licence_text = etree.SubElement(licence, "p").text = """Distributed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany License."""

source_desc = xml_tree.xpath("//t:sourceDesc", namespaces=NS_MAP)[0]
bibfile = etree.SubElement(source_desc, "listBibl", source=str(args.bibfile), type="monograph")
bibfile = etree.SubElement(source_desc, "listBibl", source=bibfile_string, type="monograph")

profile_desc = etree.SubElement(xml_tree, "profileDesc")
langusage = etree.SubElement(profile_desc, "langUsage")
Expand Down

0 comments on commit d2804ef

Please sign in to comment.