Skip to content

Commit

Permalink
Fix title logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost committed Jan 17, 2024
1 parent 897af3d commit 2cfb3a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/anthology/papers.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def from_xml(xml_element, *args):
# a better way to do this.
if "retracted" in paper.attrib and paper.attrib["retracted"] is None:
paper.attrib["retracted"] = " "

# Adjust the title for retracted papers
if "retracted" in paper.attrib:
paper.attrib["xml_title"].text = (
"[RETRACTED] " + paper.attrib["xml_title"].text
)
Expand Down

0 comments on commit 2cfb3a0

Please sign in to comment.