Commit 05432dd7 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Improve RecordCdsConfPaper._process_conference_data

parent 8c67dc7e
...@@ -117,7 +117,17 @@ class RecordCdsConfPaper(RecordCdsPubli, ConfMixin): ...@@ -117,7 +117,17 @@ class RecordCdsConfPaper(RecordCdsPubli, ConfMixin):
return return
city, country = data.get("location", ",").split(",") city, country = data.get("location", ",").split(",")
url = recjson.get("url", {}).get("url", None)
# extract conference URL
obj = recjson.get("url", {})
if isinstance(obj, dict):
url = recjson.get("url", {}).get("url", None)
elif isinstance(obj, list):
for dct in obj:
if dct.get("description", "") == "Conference home page":
url = dct["url"]
break
dct = { dct = {
"addresses": [{ "addresses": [{
......
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