summaryrefslogtreecommitdiff
path: root/s2-pdf-report.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-10 02:10:47 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-10 02:10:47 +0100
commitc412e5f0f8b71d137e4f18f8a8c7361e15c8f500 (patch)
tree6e64363892573065336cb219538d45e93dc0846a /s2-pdf-report.py
parent34b1972124da38f6cd28c1991f190bd4bdf1fe9e (diff)
integrating with institutions list, adding doi institutions
Diffstat (limited to 's2-pdf-report.py')
-rw-r--r--s2-pdf-report.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/s2-pdf-report.py b/s2-pdf-report.py
index 0748897f..c47579a6 100644
--- a/s2-pdf-report.py
+++ b/s2-pdf-report.py
@@ -22,9 +22,10 @@ def s2_pdf_report():
addresses = AddressBook()
for fn in glob.iglob('{}/**/*.txt'.format(PDF_DIR), recursive=True):
paper_id = fn.replace(PDF_DIR, '').split('/')[2]
+ paper = load_paper(paper_id)
total_count += 1
# print(paper_id)
- headings, found_abstract = read_headings(fn)
+ headings, found_abstract = read_headings(fn, paper)
heading_string = '\n'.join(headings[0:20])
found_addresses = []
if not found_abstract: