Skip to content

Commit

Permalink
Issue #17: Fixes problem on paper titles. Adds excel file with papers…
Browse files Browse the repository at this point in the history
… from top ES and BD conferences and journals.
  • Loading branch information
braganholo committed Sep 19, 2019
1 parent 8f4a65c commit 19dead3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file added resources/papers.xlsx
Binary file not shown.
9 changes: 5 additions & 4 deletions src/related-work.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def characters(self, content):
if save_paper:
if len(stack) >= 2 and (stack[-2] == 'inproceedings' or stack[-2] == 'article'):
content = saxutils.unescape(content, entities=ent)

if stack[-1] == 'crossref':
paper['crossref'] = content
if stack[-1] == 'author':
Expand All @@ -45,12 +44,14 @@ def characters(self, content):
if stack[-1] == 'title':
title = title + content
paper['title'] = title
if stack[-1] == 'url':
paper['url'] = content
if len(stack) >= 3 and (stack[-3] == 'inproceedings' or stack[-3] == 'article'):
content = saxutils.unescape(content, entities=ent)
if len(stack) >= 2 and stack[-2] == 'title':
#deal with cases like <title>Abc<i>def</i>ghd</title>
# deals with cases like <title>Abc<i>def</i>ghd</title>
title = title + content
paper['title'] = title
if stack[-1] == 'url':
paper['url'] = content

def endElement(self, name):
global stack, authors, save_paper, df, paper, title
Expand Down

0 comments on commit 19dead3

Please sign in to comment.