Commit 8926a7fb authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

update Record.secondary_oai to fix a bug.

parent 5bc096ac
......@@ -343,9 +343,9 @@ class Record(dict):
data = (data if isinstance(data, list) else [data])
# data is a list of dictionary
# keys are `institute`, `value` or `canceled`
# keys are `institute`, `value` or `cancelled`
for di in data:
institute = di["institute"]
institute = di.get("institute")
if institute == "CDS":
if "value" in di:
return OAI % ("cds.cern.ch", di["value"])
......
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