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 9849455 commit 56c6fc7Copy full SHA for 56c6fc7
caltechdata_api/get_metadata.py
@@ -4,6 +4,7 @@
4
from caltechdata_api import decustomize_schema
5
6
def get_metadata(idv,production=True):
7
+ # Returns just DataCite metadata
8
9
if production==True:
10
api_url = "https://data.caltech.edu/api/record/"
@@ -17,8 +18,8 @@ def get_metadata(idv,production=True):
17
18
if not 'metadata' in r_data:
19
raise AssertionError('expected as metadata property in response, got '+r_data)
20
metadata = r_data['metadata']
- metadata = decustomize_schema(metadata)
21
22
+ metadata = decustomize_schema(metadata)
23
try:
24
assert schema40.validate(metadata)
25
except AssertionError:
0 commit comments