Skip to content

Commit

Permalink
converted XML
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost committed May 11, 2019
1 parent 05513e7 commit 44e3e12
Show file tree
Hide file tree
Showing 322 changed files with 669,127 additions and 665,494 deletions.
3 changes: 2 additions & 1 deletion bin/anthology/anthology.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Anthology:

def __init__(self, importdir=None):
self.formatter = MarkupFormatter()
self.collections = {} # maps collection IDs to Collection objections
self.volumes = {} # maps volume IDs to Volume objects
self.papers = {} # maps paper IDs to Paper objects
if importdir is not None:
Expand All @@ -61,7 +62,7 @@ def import_directory(self, importdir):
for xmlfile in glob(importdir + "/xml/*.xml"):
self.import_file(xmlfile)
self.pindex.verify()

def import_file(self, filename):
tree = etree.parse(filename)
if self.schema is not None:
Expand Down
2,113 changes: 1,043 additions & 1,070 deletions data/xml/A00.xml

Large diffs are not rendered by default.

1,034 changes: 503 additions & 531 deletions data/xml/A83.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 44e3e12

Please sign in to comment.