Commit 1ba1fa16 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update CheckAndFix to fix an issue in _get_author_rescue_list

parent 5463629b
......@@ -232,17 +232,25 @@ class CheckAndFix(object):
if record.df_info.year.iloc[0] != "":
year = record.df_info.year.iloc[0]
# start date of a conference
elif record._get("meeting_name", "opening_date") != "":
year = record._get("meeting_name", "opening_date")
# date of a conference (cds.cern.ch)
elif "meeting_name" in record:
if record._get("meeting_name", "opening_date") != "":
year = record._get("meeting_name", "opening_date")
# end date of a conference
elif record._get("meeting_name", "closing_date") != "":
year = record._get("meeting_name", "closing_date")
# end date of a conference
elif record._get("meeting_name", "closing_date") != "":
year = record._get("meeting_name", "closing_date")
else:
return []
else:
return []
# date of a conference (inspirehep.net)
elif "conference" in record:
val = record.conference.get("opening_date", None)
if val is None:
return []
year = val[:4]
#
# protection
# submitted and paper year are protect against erratum, but ...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment