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 87c72e3 commit acae8f8Copy full SHA for acae8f8
caltech_thesis.py
@@ -47,7 +47,10 @@ def cleanhtml(raw_html):
47
metadata['publicationYear'] = eprint['date']
48
metadata['resourceType']={"resourceType":\
49
"Dissertation ("+eprint['thesis_degree']+")",'resourceTypeGeneral':"Text"}
50
- metadata['identifier'] = {'identifier':eprint['doi'],'identifierType':"DOI"}
+
51
+ if 'doi' in eprint:
52
+ metadata['identifier'] = {'identifier':eprint['doi'],'identifierType':"DOI"}
53
54
metadata['descriptions'] =[{'descriptionType':"Abstract",\
55
'description':cleanhtml(eprint['abstract'])}]
56
metadata['formats'] = ['PDF']
0 commit comments