From 2cfb3a0566fc57403a925ab3cc2840c455bf4e3c Mon Sep 17 00:00:00 2001 From: Matt Post Date: Wed, 17 Jan 2024 08:14:57 -0500 Subject: [PATCH] Fix title logic --- bin/anthology/papers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/anthology/papers.py b/bin/anthology/papers.py index 65a1f38162..41fb5d2702 100644 --- a/bin/anthology/papers.py +++ b/bin/anthology/papers.py @@ -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 )