cirneco 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +124 -49
  3. data/cirneco.gemspec +5 -4
  4. data/lib/cirneco/api.rb +8 -8
  5. data/lib/cirneco/base.rb +2 -2
  6. data/lib/cirneco/cli.rb +1 -1
  7. data/lib/cirneco/utils.rb +48 -95
  8. data/lib/cirneco/version.rb +1 -1
  9. data/lib/cirneco/work.rb +8 -203
  10. data/spec/api_spec.rb +16 -28
  11. data/spec/doi_spec.rb +9 -11
  12. data/spec/fixtures/cool-dois-minted/index.html +189 -234
  13. data/spec/fixtures/cool-dois-minted.html.md +1 -1
  14. data/spec/fixtures/cool-dois.html.md +2 -2
  15. data/spec/fixtures/index-minted.html +1 -1
  16. data/spec/fixtures/index.html +50 -1
  17. data/spec/fixtures/index.html.erb +2 -2
  18. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +20 -18
  19. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/jats/should_generate_jats_for_all_urls.yml +38 -0
  20. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +20 -20
  21. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_url.yml +19 -17
  22. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_metadata_for_work.yml +19 -17
  23. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +204 -108
  24. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_url.yml +72 -64
  25. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +17 -291
  26. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_post_metadata_for_work.yml +47 -82
  27. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_all_dois.yml +22 -18
  28. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_doi.yml +19 -17
  29. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/put/should_put_doi.yml +20 -18
  30. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/jats/writes_jats_for_list_of_urls.yml +38 -0
  31. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_a_doi.yml +19 -17
  32. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +81 -0
  33. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_a_doi.yml +72 -64
  34. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +204 -108
  35. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +17 -291
  36. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +140 -18
  37. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +137 -17
  38. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi_not_found.yml +134 -16
  39. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/username_missing.yml +121 -0
  40. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +138 -18
  41. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +135 -17
  42. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +137 -17
  43. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +137 -17
  44. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +170 -27
  45. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +173 -28
  46. data/spec/fixtures/vcr_cassettes/Cirneco_Work/media/includes_media.yml +121 -0
  47. data/spec/fixtures/vcr_cassettes/Cirneco_Work/schema/BlogPosting.yml +121 -0
  48. data/spec/spec_helper.rb +1 -1
  49. data/spec/utils_spec.rb +28 -41
  50. data/spec/work_spec.rb +33 -43
  51. metadata +43 -19
  52. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_url.yml +0 -174
  53. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_a_doi.yml +0 -174
@@ -2,19 +2,19 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://mds-sandbox.datacite.org/metadata
5
+ uri: https://mds.test.datacite.org/metadata
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: |
9
9
  <?xml version="1.0" encoding="UTF-8"?>
10
10
  <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
11
- <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
11
+ <identifier identifierType="DOI">10.5438/0000-03VC</identifier>
12
12
  <creators>
13
13
  <creator>
14
14
  <creatorName>Fenner, Martin</creatorName>
15
15
  <givenName>Martin</givenName>
16
16
  <familyName>Fenner</familyName>
17
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
17
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-1419-2405</nameIdentifier>
18
18
  </creator>
19
19
  </creators>
20
20
  <titles>
@@ -24,10 +24,11 @@ http_interactions:
24
24
  <publicationYear>2016</publicationYear>
25
25
  <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
26
  <alternateIdentifiers>
27
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
27
+ <alternateIdentifier alternateIdentifierType=""/>
28
28
  </alternateIdentifiers>
29
29
  <subjects>
30
30
  <subject>doi</subject>
31
+ <subject>featured</subject>
31
32
  </subjects>
32
33
  <dates>
33
34
  <date dateType="Created">2016-12-15</date>
@@ -35,11 +36,14 @@ http_interactions:
35
36
  <date dateType="Updated">2016-12-15</date>
36
37
  </dates>
37
38
  <relatedIdentifiers>
38
- <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
39
  <relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://blog.datacite.org/</relatedIdentifier>
40
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
41
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">https://doi.org/10.1371/journal.pone.0115253</relatedIdentifier>
41
42
  </relatedIdentifiers>
42
43
  <version>1.0</version>
44
+ <rightsList>
45
+ <rights rightsURI="https://creativecommons.org/licenses/by/4.0/"/>
46
+ </rightsList>
43
47
  <descriptions>
44
48
  <description descriptionType="Abstract">In 1998 Tim Berners-Lee coined the term cool URIs (1998), that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot (Klein et al., 2014) and making it hard or impossible to find...</description>
45
49
  </descriptions>
@@ -56,40 +60,42 @@ http_interactions:
56
60
  response:
57
61
  status:
58
62
  code: 201
59
- message: ''
63
+ message: Created
60
64
  headers:
61
- Server:
62
- - openresty/1.11.2.1
63
- Date:
64
- - Mon, 02 Jan 2017 21:21:20 GMT
65
+ Access-Control-Allow-Methods:
66
+ - GET, POST, OPTIONS
67
+ Access-Control-Allow-Origin:
68
+ - "*"
69
+ Cache-Control:
70
+ - no-cache, no-store
65
71
  Content-Type:
66
72
  - text/html;charset=UTF-8
67
- Connection:
68
- - keep-alive
69
- Pragma:
70
- - no-cache
73
+ Date:
74
+ - Sat, 22 Jul 2017 07:17:34 GMT
71
75
  Expires:
72
76
  - Thu, 01 Jan 1970 00:00:00 GMT
73
- Cache-Control:
74
- - no-cache, no-store
75
77
  Location:
76
- - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
77
- Access-Control-Allow-Origin:
78
- - "*"
79
- Access-Control-Allow-Methods:
80
- - GET, POST, OPTIONS
78
+ - http://mds.test.datacite.org/metadata/10.5438/0000-03VC
79
+ Pragma:
80
+ - no-cache
81
+ Server:
82
+ - openresty/1.11.2.2
83
+ Content-Length:
84
+ - '22'
85
+ Connection:
86
+ - keep-alive
81
87
  body:
82
88
  encoding: UTF-8
83
- string: OK (10.5072/0000-03VC)
89
+ string: OK (10.5438/0000-03VC)
84
90
  http_version:
85
- recorded_at: Mon, 02 Jan 2017 21:21:20 GMT
91
+ recorded_at: Sat, 22 Jul 2017 07:17:33 GMT
86
92
  - request:
87
93
  method: put
88
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
94
+ uri: https://mds.test.datacite.org/doi/10.5438/0000-03VC
89
95
  body:
90
96
  encoding: UTF-8
91
97
  string: |-
92
- doi=10.5072/0000-03VC
98
+ doi=10.5438/0000-03VC
93
99
  url=https://blog.datacite.org/cool-dois/
94
100
  headers:
95
101
  User-Agent:
@@ -103,42 +109,42 @@ http_interactions:
103
109
  response:
104
110
  status:
105
111
  code: 201
106
- message: ''
112
+ message: Created
107
113
  headers:
108
- Server:
109
- - openresty/1.11.2.1
110
- Date:
111
- - Mon, 02 Jan 2017 21:21:21 GMT
114
+ Access-Control-Allow-Methods:
115
+ - GET, POST, OPTIONS
116
+ Access-Control-Allow-Origin:
117
+ - "*"
118
+ Cache-Control:
119
+ - no-cache, no-store
112
120
  Content-Type:
113
121
  - text/html;charset=UTF-8
114
- Connection:
115
- - keep-alive
116
- Pragma:
117
- - no-cache
122
+ Date:
123
+ - Sat, 22 Jul 2017 07:17:34 GMT
118
124
  Expires:
119
125
  - Thu, 01 Jan 1970 00:00:00 GMT
120
- Cache-Control:
121
- - no-cache, no-store
122
- Access-Control-Allow-Origin:
123
- - "*"
124
- Access-Control-Allow-Methods:
125
- - GET, POST, OPTIONS
126
+ Pragma:
127
+ - no-cache
128
+ Server:
129
+ - openresty/1.11.2.2
130
+ Content-Length:
131
+ - '2'
132
+ Connection:
133
+ - keep-alive
126
134
  body:
127
135
  encoding: UTF-8
128
136
  string: OK
129
137
  http_version:
130
- recorded_at: Mon, 02 Jan 2017 21:21:21 GMT
138
+ recorded_at: Sat, 22 Jul 2017 07:17:33 GMT
131
139
  - request:
132
- method: post
133
- uri: https://mds-sandbox.datacite.org/media/10.5072/0000-03VC
140
+ method: delete
141
+ uri: https://mds.test.datacite.org/metadata/10.5438/0000-03VC
134
142
  body:
135
- encoding: UTF-8
136
- string: application/xml=https://blog.datacite.org/cool-dois/cool-dois.xml
143
+ encoding: US-ASCII
144
+ string: ''
137
145
  headers:
138
146
  User-Agent:
139
147
  - Maremma - https://github.com/datacite/maremma
140
- Content-Type:
141
- - text/plain;charset=UTF-8
142
148
  Accept:
143
149
  - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
144
150
  Authorization:
@@ -146,29 +152,31 @@ http_interactions:
146
152
  response:
147
153
  status:
148
154
  code: 200
149
- message: ''
155
+ message: OK
150
156
  headers:
151
- Server:
152
- - openresty/1.11.2.1
153
- Date:
154
- - Mon, 02 Jan 2017 21:21:21 GMT
157
+ Access-Control-Allow-Methods:
158
+ - GET, POST, OPTIONS
159
+ Access-Control-Allow-Origin:
160
+ - "*"
161
+ Cache-Control:
162
+ - no-cache, no-store
155
163
  Content-Type:
156
164
  - text/html;charset=UTF-8
157
- Connection:
158
- - keep-alive
159
- Pragma:
160
- - no-cache
165
+ Date:
166
+ - Sat, 22 Jul 2017 07:17:35 GMT
161
167
  Expires:
162
168
  - Thu, 01 Jan 1970 00:00:00 GMT
163
- Cache-Control:
164
- - no-cache, no-store
165
- Access-Control-Allow-Origin:
166
- - "*"
167
- Access-Control-Allow-Methods:
168
- - GET, POST, OPTIONS
169
+ Pragma:
170
+ - no-cache
171
+ Server:
172
+ - openresty/1.11.2.2
173
+ Content-Length:
174
+ - '2'
175
+ Connection:
176
+ - keep-alive
169
177
  body:
170
178
  encoding: UTF-8
171
179
  string: OK
172
180
  http_version:
173
- recorded_at: Mon, 02 Jan 2017 21:21:21 GMT
181
+ recorded_at: Sat, 22 Jul 2017 07:17:33 GMT
174
182
  recorded_with: VCR 3.0.3
@@ -1,312 +1,38 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
5
- uri: https://mds-sandbox.datacite.org/metadata
4
+ method: head
5
+ uri: https://doi.org/10.5438/55E5-T5C0
6
6
  body:
7
- encoding: UTF-8
8
- string: |
9
- <?xml version="1.0" encoding="UTF-8"?>
10
- <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
11
- <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
12
- <creators>
13
- <creator>
14
- <creatorName>Fenner, Martin</creatorName>
15
- <givenName>Martin</givenName>
16
- <familyName>Fenner</familyName>
17
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
18
- </creator>
19
- </creators>
20
- <titles>
21
- <title>Cool DOI's</title>
22
- </titles>
23
- <publisher>DataCite</publisher>
24
- <publicationYear>2016</publicationYear>
25
- <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
- <alternateIdentifiers>
27
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
28
- </alternateIdentifiers>
29
- <subjects>
30
- <subject>doi</subject>
31
- </subjects>
32
- <dates>
33
- <date dateType="Created">2016-12-15</date>
34
- <date dateType="Issued">2016-12-15</date>
35
- <date dateType="Updated">2016-12-15</date>
36
- </dates>
37
- <relatedIdentifiers>
38
- <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
- <relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://blog.datacite.org/</relatedIdentifier>
41
- </relatedIdentifiers>
42
- <version>1.0</version>
43
- <descriptions>
44
- <description descriptionType="Abstract">In 1998 Tim Berners-Lee coined the term cool URIs (1998), that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot (Klein et al., 2014) and making it hard or impossible to find...</description>
45
- </descriptions>
46
- </resource>
7
+ encoding: US-ASCII
8
+ string: ''
47
9
  headers:
48
10
  User-Agent:
49
11
  - Maremma - https://github.com/datacite/maremma
50
- Content-Type:
51
- - application/xml;charset=UTF-8
52
12
  Accept:
53
13
  - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
54
- Authorization:
55
- - Basic <MDS_TOKEN>
56
14
  response:
57
15
  status:
58
- code: 201
59
- message: ''
16
+ code: 303
17
+ message: See Other
60
18
  headers:
61
19
  Server:
62
- - openresty/1.11.2.1
63
- Date:
64
- - Mon, 02 Jan 2017 21:21:21 GMT
65
- Content-Type:
66
- - text/html;charset=UTF-8
67
- Connection:
68
- - keep-alive
69
- Pragma:
70
- - no-cache
71
- Expires:
72
- - Thu, 01 Jan 1970 00:00:00 GMT
73
- Cache-Control:
74
- - no-cache, no-store
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
75
23
  Location:
76
- - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
77
- Access-Control-Allow-Origin:
78
- - "*"
79
- Access-Control-Allow-Methods:
80
- - GET, POST, OPTIONS
81
- body:
82
- encoding: UTF-8
83
- string: OK (10.5072/0000-03VC)
84
- http_version:
85
- recorded_at: Mon, 02 Jan 2017 21:21:21 GMT
86
- - request:
87
- method: put
88
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
89
- body:
90
- encoding: UTF-8
91
- string: |-
92
- doi=10.5072/0000-03VC
93
- url=https://blog.datacite.org/cool-dois/
94
- headers:
95
- User-Agent:
96
- - Maremma - https://github.com/datacite/maremma
97
- Content-Type:
98
- - text/plain;charset=UTF-8
99
- Accept:
100
- - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
101
- Authorization:
102
- - Basic <MDS_TOKEN>
103
- response:
104
- status:
105
- code: 201
106
- message: ''
107
- headers:
108
- Server:
109
- - openresty/1.11.2.1
110
- Date:
111
- - Mon, 02 Jan 2017 21:21:22 GMT
112
- Content-Type:
113
- - text/html;charset=UTF-8
114
- Connection:
115
- - keep-alive
116
- Pragma:
117
- - no-cache
24
+ - https://blog.datacite.org/cool-dois/
118
25
  Expires:
119
- - Thu, 01 Jan 1970 00:00:00 GMT
120
- Cache-Control:
121
- - no-cache, no-store
122
- Access-Control-Allow-Origin:
123
- - "*"
124
- Access-Control-Allow-Methods:
125
- - GET, POST, OPTIONS
126
- body:
127
- encoding: UTF-8
128
- string: OK
129
- http_version:
130
- recorded_at: Mon, 02 Jan 2017 21:21:22 GMT
131
- - request:
132
- method: post
133
- uri: https://mds-sandbox.datacite.org/media/10.5072/0000-03VC
134
- body:
135
- encoding: UTF-8
136
- string: application/xml=https://blog.datacite.org/cool-dois/cool-dois.xml
137
- headers:
138
- User-Agent:
139
- - Maremma - https://github.com/datacite/maremma
26
+ - Sat, 22 Jul 2017 07:25:52 GMT
140
27
  Content-Type:
141
- - text/plain;charset=UTF-8
142
- Accept:
143
- - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
144
- Authorization:
145
- - Basic <MDS_TOKEN>
146
- response:
147
- status:
148
- code: 200
149
- message: ''
150
- headers:
151
- Server:
152
- - openresty/1.11.2.1
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '157'
153
31
  Date:
154
- - Mon, 02 Jan 2017 21:21:22 GMT
155
- Content-Type:
156
- - text/html;charset=UTF-8
157
- Connection:
158
- - keep-alive
159
- Pragma:
160
- - no-cache
161
- Expires:
162
- - Thu, 01 Jan 1970 00:00:00 GMT
163
- Cache-Control:
164
- - no-cache, no-store
165
- Access-Control-Allow-Origin:
166
- - "*"
167
- Access-Control-Allow-Methods:
168
- - GET, POST, OPTIONS
169
- body:
170
- encoding: UTF-8
171
- string: OK
172
- http_version:
173
- recorded_at: Mon, 02 Jan 2017 21:21:22 GMT
174
- - request:
175
- method: post
176
- uri: https://mds-sandbox.datacite.org/metadata
177
- body:
178
- encoding: UTF-8
179
- string: |
180
- <?xml version="1.0" encoding="UTF-8"?>
181
- <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
182
- <identifier identifierType="DOI">10.5072/0000-00SS</identifier>
183
- <creators>
184
- <creator>
185
- <creatorName>Cruse, Patricia</creatorName>
186
- <givenName>Patricia</givenName>
187
- <familyName>Cruse</familyName>
188
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0002-9300-5278</nameIdentifier>
189
- </creator>
190
- <creator>
191
- <creatorName>Rueda, Laura</creatorName>
192
- <givenName>Laura</givenName>
193
- <familyName>Rueda</familyName>
194
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0001-5952-7630</nameIdentifier>
195
- </creator>
196
- <creator>
197
- <creatorName>Garza, Kristian</creatorName>
198
- <givenName>Kristian</givenName>
199
- <familyName>Garza</familyName>
200
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-3484-6875</nameIdentifier>
201
- </creator>
202
- <creator>
203
- <creatorName>Fenner, Martin</creatorName>
204
- <givenName>Martin</givenName>
205
- <familyName>Fenner</familyName>
206
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
207
- </creator>
208
- </creators>
209
- <titles>
210
- <title>DataCite Blog</title>
211
- </titles>
212
- <publisher>DataCite</publisher>
213
- <publicationYear>2015</publicationYear>
214
- <resourceType resourceTypeGeneral="Collection">Blog</resourceType>
215
- <alternateIdentifiers>
216
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-25-1785</alternateIdentifier>
217
- </alternateIdentifiers>
218
- <dates>
219
- <date dateType="Created">2015-08-03</date>
220
- <date dateType="Issued">2015-08-03</date>
221
- <date dateType="Updated">2015-08-03</date>
222
- </dates>
223
- <version>1.0</version>
224
- <descriptions>
225
- <description descriptionType="Abstract">The DataCite blog.</description>
226
- </descriptions>
227
- </resource>
228
- headers:
229
- User-Agent:
230
- - Maremma - https://github.com/datacite/maremma
231
- Content-Type:
232
- - application/xml;charset=UTF-8
233
- Accept:
234
- - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
235
- Authorization:
236
- - Basic <MDS_TOKEN>
237
- response:
238
- status:
239
- code: 201
240
- message: ''
241
- headers:
242
- Server:
243
- - openresty/1.11.2.1
244
- Date:
245
- - Mon, 02 Jan 2017 21:21:23 GMT
246
- Content-Type:
247
- - text/html;charset=UTF-8
248
- Connection:
249
- - keep-alive
250
- Pragma:
251
- - no-cache
252
- Expires:
253
- - Thu, 01 Jan 1970 00:00:00 GMT
254
- Cache-Control:
255
- - no-cache, no-store
256
- Location:
257
- - http://mds-sandbox.datacite.org/metadata/10.5072/0000-00SS
258
- Access-Control-Allow-Origin:
259
- - "*"
260
- Access-Control-Allow-Methods:
261
- - GET, POST, OPTIONS
262
- body:
263
- encoding: UTF-8
264
- string: OK (10.5072/0000-00SS)
265
- http_version:
266
- recorded_at: Mon, 02 Jan 2017 21:21:23 GMT
267
- - request:
268
- method: put
269
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-00SS
270
- body:
271
- encoding: UTF-8
272
- string: |-
273
- doi=10.5072/0000-00SS
274
- url=https://blog.datacite.org/
275
- headers:
276
- User-Agent:
277
- - Maremma - https://github.com/datacite/maremma
278
- Content-Type:
279
- - text/plain;charset=UTF-8
280
- Accept:
281
- - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
282
- Authorization:
283
- - Basic <MDS_TOKEN>
284
- response:
285
- status:
286
- code: 201
287
- message: ''
288
- headers:
289
- Server:
290
- - openresty/1.11.2.1
291
- Date:
292
- - Mon, 02 Jan 2017 21:21:23 GMT
293
- Content-Type:
294
- - text/html;charset=UTF-8
295
- Connection:
296
- - keep-alive
297
- Pragma:
298
- - no-cache
299
- Expires:
300
- - Thu, 01 Jan 1970 00:00:00 GMT
301
- Cache-Control:
302
- - no-cache, no-store
303
- Access-Control-Allow-Origin:
304
- - "*"
305
- Access-Control-Allow-Methods:
306
- - GET, POST, OPTIONS
32
+ - Sat, 22 Jul 2017 07:04:35 GMT
307
33
  body:
308
34
  encoding: UTF-8
309
- string: OK
35
+ string: ''
310
36
  http_version:
311
- recorded_at: Mon, 02 Jan 2017 21:21:23 GMT
37
+ recorded_at: Sat, 22 Jul 2017 07:04:34 GMT
312
38
  recorded_with: VCR 3.0.3