We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 713d2e7 commit ade6e50Copy full SHA for ade6e50
caltech_authors_tech_report.py
@@ -205,10 +205,11 @@ def epxml_to_datacite(eprint):
205
array.append(obj)
206
metadata['relatedIdentifiers']=array
207
208
- #Dates
209
- dates = []
210
- dates.append({"date":eprint['datestamp'],"dateType":"Available"})
211
- metadata['dates'] = dates
+ #Dates - only if record release date present
+ if 'datestamp' in eprint:
+ dates = []
+ dates.append({"date":eprint['datestamp'],"dateType":"Available"})
212
+ metadata['dates'] = dates
213
214
return metadata
215
0 commit comments