@@ -42,8 +42,24 @@ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
42
42
"resource_type" : {
43
43
"buckets" : [
44
44
{
45
- "doc_count" : 10 ,
45
+ "doc_count" : 4 ,
46
+ "key" : " book"
47
+ },
48
+ {
49
+ "doc_count" : 3 ,
50
+ "key" : " text"
51
+ },
52
+ {
53
+ "doc_count" : 1 ,
46
54
"key" : " image"
55
+ },
56
+ {
57
+ "doc_count" : 1 ,
58
+ "key" : " multimedia"
59
+ },
60
+ {
61
+ "doc_count" : 1 ,
62
+ "key" : " periodical"
47
63
}
48
64
],
49
65
"doc_count_error_upper_bound" : 0 ,
@@ -91,12 +107,9 @@ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
91
107
"scheme" : " entity-id-scheme"
92
108
}
93
109
],
94
- "identifiers" : [
95
- {
96
- "identifier" : " 9999-9999-9999-9998" ,
97
- "scheme" : " Orcid"
98
- }
99
- ],
110
+ "identifiers" : {
111
+ "Orcid" : " 9999-9999-9999-9998"
112
+ },
100
113
"name" : " Gina Brown" ,
101
114
"role" : " RightsHolder" ,
102
115
"type" : " Personal"
@@ -111,12 +124,9 @@ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
111
124
"scheme" : " entity-id-scheme"
112
125
}
113
126
],
114
- "identifiers" : [
115
- {
116
- "identifier" : " 9999-9999-9999-9999" ,
117
- "scheme" : " Orcid"
118
- }
119
- ],
127
+ "identifiers" : {
128
+ "Orcid" : " 9999-9999-9999-9999"
129
+ },
120
130
"name" : " Christina Wright" ,
121
131
"type" : " Personal"
122
132
}
@@ -136,16 +146,10 @@ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
136
146
}
137
147
],
138
148
"embargo_date" : " 1997-12-01" ,
139
- "identifiers" : [
140
- {
141
- "identifier" : " 10.9999/rdm.9999999" ,
142
- "scheme" : " DOI"
143
- },
144
- {
145
- "identifier" : " 9999.99999" ,
146
- "scheme" : " arXiv"
147
- }
148
- ],
149
+ "identifiers" : {
150
+ "DOI" : " 10.9999/rdm.9999999" ,
151
+ "arXiv" : " 9999.99999"
152
+ },
149
153
"language" : " eng" ,
150
154
"licenses" : [
151
155
{
@@ -179,14 +183,14 @@ curl -k -XGET https://localhost:5000/api/records/ | python3 -m json.tool
179
183
"identifier" : " 10.9999/rdm.9999988" ,
180
184
"relation_type" : " Requires" ,
181
185
"resource_type" : {
182
- "subtype" : " photo" ,
186
+ "subtype" : " image- photo" ,
183
187
"type" : " image"
184
188
},
185
189
"scheme" : " DOI"
186
190
}
187
191
],
188
192
"resource_type" : {
189
- "subtype" : " photo" ,
193
+ "subtype" : " image- photo" ,
190
194
"type" : " image"
191
195
},
192
196
"subjects" : [
@@ -234,30 +238,22 @@ curl -k -XPOST -H "Content-Type: application/json" https://localhost:5000/api/re
234
238
"_created_by": 1,
235
239
"access_right": "open",
236
240
"resource_type": {
237
- "type": "image",
238
- "subtype": "photo"
241
+ "type": "publication",
242
+ "subtype": "publication-article"
243
+ },
244
+ "identifiers": {
245
+ "DOI": "10.9999/rdm.9999999",
246
+ "arXiv": "9999.99999"
239
247
},
240
- "identifiers": [
241
- {
242
- "identifier": "10.9999/rdm.9999999",
243
- "scheme": "DOI"
244
- }, {
245
- "identifier": "9999.99999",
246
- "scheme": "arXiv"
247
- }
248
- ],
249
248
"creators": [
250
249
{
251
250
"name": "Julio Cesar",
252
251
"type": "Personal",
253
252
"given_name": "Julio",
254
253
"family_name": "Cesar",
255
- "identifiers": [
256
- {
257
- "identifier": "9999-9999-9999-9999",
258
- "scheme": "Orcid"
259
- }
260
- ],
254
+ "identifiers": {
255
+ "Orcid": "9999-9999-9999-9999"
256
+ },
261
257
"affiliations": [
262
258
{
263
259
"name": "Entity One",
@@ -318,7 +314,7 @@ curl -k -XGET https://localhost:5000/api/records/?q=Gladiator | python3 -m json.
318
314
"buckets" : [
319
315
{
320
316
"doc_count" : 1 ,
321
- "key" : " image "
317
+ "key" : " publication "
322
318
}
323
319
],
324
320
"doc_count_error_upper_bound" : 0 ,
@@ -362,12 +358,9 @@ curl -k -XGET https://localhost:5000/api/records/?q=Gladiator | python3 -m json.
362
358
],
363
359
"family_name" : " Cesar" ,
364
360
"given_name" : " Julio" ,
365
- "identifiers" : [
366
- {
367
- "identifier" : " 9999-9999-9999-9999" ,
368
- "scheme" : " Orcid"
369
- }
370
- ],
361
+ "identifiers" : {
362
+ "Orcid" : " 9999-9999-9999-9999"
363
+ },
371
364
"name" : " Julio Cesar" ,
372
365
"type" : " Personal"
373
366
}
@@ -379,16 +372,10 @@ curl -k -XGET https://localhost:5000/api/records/?q=Gladiator | python3 -m json.
379
372
"type" : " Abstract"
380
373
}
381
374
],
382
- "identifiers" : [
383
- {
384
- "identifier" : " 10.9999/rdm.9999999" ,
385
- "scheme" : " DOI"
386
- },
387
- {
388
- "identifier" : " 9999.99999" ,
389
- "scheme" : " arXiv"
390
- }
391
- ],
375
+ "identifiers" : {
376
+ "DOI" : " 10.9999/rdm.9999999" ,
377
+ "arXiv" : " 9999.99999"
378
+ },
392
379
"licenses" : [
393
380
{
394
381
"identifier" : " BSD-3" ,
@@ -400,8 +387,8 @@ curl -k -XGET https://localhost:5000/api/records/?q=Gladiator | python3 -m json.
400
387
"publication_date" : " 2020-02-26" ,
401
388
"recid" : " 8wtcp-1bs44" ,
402
389
"resource_type" : {
403
- "subtype" : " photo " ,
404
- "type" : " image "
390
+ "subtype" : " publication-article " ,
391
+ "type" : " publication "
405
392
},
406
393
"titles" : [
407
394
{
0 commit comments