Commit c79073ce authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add a protection in record.conference_url.

parent 82d11e87
......@@ -1813,14 +1813,21 @@ class Record(dict):
"""
val = self._get("8564", 'u')
li = self._get("8564", 'u', force_list=True)
# protection
# from time to time this field contains the reference to the pdf file
val = []
for el in li:
if not el.endswith('pdf'):
val.append(el)
# if more than one URL is associated to the record
# select arbitrarily the first one
if isinstance(val, list):
val = val[0]
return val
if val:
return val[0]
return u''
def conference_year(self):
......
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