cirneco 0.9.13 → 0.9.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/cirneco/data_center.rb +5 -0
  4. data/lib/cirneco/doi.rb +6 -1
  5. data/lib/cirneco/file_utils.rb +368 -0
  6. data/lib/cirneco/media.rb +3 -1
  7. data/lib/cirneco/metadata.rb +2 -0
  8. data/lib/cirneco/utils.rb +5 -379
  9. data/lib/cirneco/version.rb +1 -1
  10. data/lib/cirneco/work.rb +2 -0
  11. data/spec/api_spec.rb +3 -3
  12. data/spec/doi_spec.rb +7 -7
  13. data/spec/file_utils_spec.rb +203 -0
  14. data/spec/fixtures/cool-dois-minted/index.html +1 -1
  15. data/spec/fixtures/cool-dois-minted.html.md +1 -1
  16. data/spec/fixtures/cool-dois.html.md +1 -1
  17. data/spec/fixtures/index-minted.html +1 -1
  18. data/spec/fixtures/index.html +2 -2
  19. data/spec/fixtures/index.html.erb +1 -1
  20. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/jats/should_generate_jats_for_all_urls.yml +4 -4
  21. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +3 -44
  22. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +4 -374
  23. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +4 -4
  24. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/jats/writes_jats_for_list_of_urls.yml +4 -4
  25. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +4 -47
  26. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +4 -374
  27. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +4 -4
  28. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +16 -577
  29. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +15 -58
  30. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi_not_found.yml +16 -57
  31. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/username_missing.yml +16 -16
  32. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +16 -63
  33. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +16 -61
  34. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +17 -62
  35. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +17 -60
  36. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +17 -104
  37. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +17 -108
  38. data/spec/fixtures/vcr_cassettes/Cirneco_Work/media/includes_media.yml +17 -17
  39. data/spec/fixtures/vcr_cassettes/Cirneco_Work/schema/BlogPosting.yml +15 -15
  40. data/spec/utils_spec.rb +9 -186
  41. data/spec/work_spec.rb +1 -1
  42. metadata +4 -12
  43. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +0 -562
  44. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_url.yml +0 -46
  45. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_metadata_for_work.yml +0 -46
  46. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_url.yml +0 -182
  47. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_post_metadata_for_work.yml +0 -139
  48. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_all_dois.yml +0 -564
  49. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_doi.yml +0 -46
  50. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/put/should_put_doi.yml +0 -50
  51. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_a_doi.yml +0 -46
  52. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_a_doi.yml +0 -182
@@ -0,0 +1,203 @@
1
+ require 'spec_helper'
2
+
3
+ describe Cirneco::DataCenter, vcr: true, :order => :defined do
4
+ let(:prefix) { ENV['PREFIX'] }
5
+ let(:username) { ENV['MDS_USERNAME'] }
6
+ let(:password) { ENV['MDS_PASSWORD'] }
7
+ let(:source_dir) { "/spec/fixtures/" }
8
+ let(:bibliography) { "spec/fixtures/references.yaml" }
9
+ let(:options) { { username: username,
10
+ password: password,
11
+ sandbox: true,
12
+ build_dir: source_dir,
13
+ source_dir: source_dir } }
14
+
15
+ subject { Cirneco::DataCenter.new(prefix: prefix,
16
+ username: username,
17
+ password: password) }
18
+
19
+ context "accession_number" do
20
+ it 'should get existing' do
21
+ filepath = fixture_path + 'cool-dois.html.md'
22
+ response = subject.get_accession_number(filepath)
23
+ expect(response).to eq(123)
24
+ end
25
+
26
+ it 'should get existing for folder' do
27
+ response = subject.get_all_accession_numbers(fixture_path)
28
+ expect(response).to eq([123, 124])
29
+ end
30
+
31
+ it 'should update for file' do
32
+ filepath = fixture_path + 'cool-dois.html.md'
33
+ response = subject.update_accession_number(filepath)
34
+ expect(response).to eq("Accession number MS-123 not changed for cool-dois.html.md")
35
+ end
36
+
37
+ it 'should update for all files' do
38
+ response = subject.update_all_accession_numbers(fixture_path, opt_in: true)
39
+ expect(response).to eq(["Accession number MS-124 not changed for cool-dois-minted.html.md", "File cool-dois-no-accession-number.html.md ignored: no empty accession_number", "Accession number MS-123 not changed for cool-dois.html.md"])
40
+ end
41
+ end
42
+
43
+ context "mint and hide DOIs" do
44
+ it 'get urls for works' do
45
+ filepath = fixture_path + 'index.html'
46
+ response = subject.get_urls_for_works(filepath)
47
+ expect(response.length).to eq(2)
48
+ end
49
+
50
+ it 'should mint for url' do
51
+ filepath = fixture_path + 'cool-dois/index.html'
52
+ response = subject.mint_doi_for_url(filepath, options)
53
+ expect(response).to eq("DOI 10.5438/0000-03vc minted for cool-dois.html.md")
54
+ end
55
+
56
+ it 'should hide for url' do
57
+ filepath = fixture_path + 'cool-dois-minted/index.html'
58
+ response = subject.hide_doi_for_url(filepath, options)
59
+ expect(response).to eq("DOI 10.5438/55e5-t5c0 hidden for cool-dois-minted.html.md")
60
+ end
61
+
62
+ it 'should mint and hide for url' do
63
+ filepath = fixture_path + 'cool-dois/index.html'
64
+ response = subject.mint_and_hide_doi_for_url(filepath, options)
65
+ expect(response).to eq("DOI 10.5438/0000-03vc minted and hidden for cool-dois.html.md")
66
+ end
67
+
68
+ it 'should mint for all urls' do
69
+ filepath = fixture_path + 'index.html'
70
+ response = subject.mint_dois_for_all_urls(filepath, options)
71
+ expect(response).to eq("DOI 10.5438/0000-03vc minted for cool-dois.html.md\nDOI 10.5438/0000-00ss minted for index.html.erb")
72
+ end
73
+
74
+ it 'should hide for all urls' do
75
+ filepath = fixture_path + 'index-minted.html'
76
+ response = subject.hide_dois_for_all_urls(filepath, options)
77
+ expect(response).to eq("No DOI for cool-dois.html.md\nErrors for DOI 10.5438/0000-nw90: Not found\n")
78
+ end
79
+
80
+ it 'should mint and hide for all urls' do
81
+ filepath = fixture_path + 'index.html'
82
+ response = subject.mint_and_hide_dois_for_all_urls(filepath, options)
83
+ expect(response).to eq("DOI 10.5438/0000-03vc minted and hidden for cool-dois.html.md\nDOI 10.5438/0000-00ss minted and hidden for index.html.erb")
84
+ end
85
+
86
+ it 'should get_json_ld_from_work' do
87
+ filepath = fixture_path + 'cool-dois/index.html'
88
+ json = subject.get_json_ld_from_work(filepath)
89
+ metadata = JSON.parse(json)
90
+ expect(metadata["url"]).to eq("https://blog.datacite.org/cool-dois/")
91
+ expect(metadata["author"]).to eq([{"@type"=>"Person", "@id"=>"http://orcid.org/0000-0003-1419-2405", "givenName"=>"Martin", "familyName"=>"Fenner", "name"=>"Martin Fenner"}])
92
+ expect(metadata["description"]).to eq("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...")
93
+ expect(metadata["citation"]).to eq([{"@type"=>"CreativeWork",
94
+ "@id"=>"https://www.w3.org/Provider/Style/URI"},
95
+ {"@type"=>"CreativeWork",
96
+ "@id"=>"https://doi.org/10.1371/journal.pone.0115253"}])
97
+ expect(metadata["isPartOf"]).to eq("@type"=>"Blog", "@id"=>"https://blog.datacite.org", "name"=>"DataCite Blog")
98
+ end
99
+
100
+ it 'should post_metadata_for_work' do
101
+ filepath = fixture_path + 'cool-dois/index.html'
102
+ json = subject.get_json_ld_from_work(filepath)
103
+ response = subject.post_metadata_for_work(json, options)
104
+ expect(response.body["data"]).to eq("OK")
105
+ expect(response.status).to eq(201)
106
+ end
107
+
108
+ it 'should hide_metadata_for_work' do
109
+ filepath = fixture_path + 'cool-dois/index.html'
110
+ json = subject.get_json_ld_from_work(filepath)
111
+ response = subject.hide_metadata_for_work(json, options)
112
+ expect(response.body["data"]).to eq("OK")
113
+ expect(response.status).to eq(200)
114
+ end
115
+ end
116
+
117
+ context "jats" do
118
+ it 'should generate metadata for jats' do
119
+ filepath = fixture_path + 'cool-dois/index.html'
120
+ metadata = subject.generate_metadata_for_jats(filepath)
121
+ expect(metadata["author"]).to eq([{"given_name"=>"Martin", "family_name"=>"Fenner", "orcid"=>"0000-0003-1419-2405"}])
122
+ expect(metadata["license_url"]).to eq("https://creativecommons.org/licenses/by/4.0/")
123
+ end
124
+
125
+ it 'should generate jats xml' do
126
+ filepath = fixture_path + 'cool-dois/index.html'
127
+ expect(subject.generate_jats_for_url(filepath, options.merge(bibliography: bibliography))).to eq("JATS XML written for cool-dois.html.md")
128
+ end
129
+
130
+ it 'should generate jats for all urls' do
131
+ filepath = fixture_path + 'index.html'
132
+ response = subject.generate_jats_for_all_urls(filepath, options)
133
+ expect(response).to eq("JATS XML written for cool-dois.html.md\nJATS XML written for index.html.erb")
134
+ end
135
+
136
+ # it 'should validate jats xml' do
137
+ # filepath = fixture_path + 'cool-dois/index.html'
138
+ # expect(subject.generate_jats_for_url(filepath, options.merge(bibliography: bibliography))).to eq("JATS XML written for cool-dois.html.md")
139
+ # xml = IO.read(fixture_path + 'cool-dois/cool-dois.xml')
140
+ # expect(subject.validate_jats(xml).body["errors"]).to be_empty
141
+ # end
142
+ end
143
+
144
+ context "get_related_identifiers" do
145
+ it 'isPartOf' do
146
+ metadata = { "isPartOf" => {
147
+ "@type" => "Blog",
148
+ "@id" => "https://blog.datacite.org",
149
+ "name" => "DataCite Blog" } }
150
+ expect(subject.get_related_identifiers(metadata)).to eq([{:value=>"https://blog.datacite.org/", :related_identifier_type=>"URL", :relation_type=>"IsPartOf"}])
151
+ end
152
+ end
153
+
154
+ context "filepath from url" do
155
+ it 'https://blog.datacite.org/' do
156
+ url = 'https://blog.datacite.org/'
157
+ filename, build_path, source_path = subject.filepath_from_url(url, build_dir: source_dir, source_dir: source_dir)
158
+ expect(filename).to eq("index.html.erb")
159
+ expect(source_path).to eq(fixture_path + "index.html.erb")
160
+ expect(build_path).to eq(fixture_path + "index.html")
161
+ end
162
+
163
+ it 'https://blog.datacite.org' do
164
+ url = 'https://blog.datacite.org'
165
+ filename, build_path, source_path = subject.filepath_from_url(url, build_dir: source_dir, source_dir: source_dir)
166
+ expect(filename).to eq("index.html.erb")
167
+ expect(source_path).to eq(fixture_path + "index.html.erb")
168
+ expect(build_path).to eq(fixture_path + "index.html")
169
+ end
170
+
171
+ it 'index.html' do
172
+ url = fixture_path + 'index.html'
173
+ filename, build_path, source_path = subject.filepath_from_url(url, build_dir: source_dir, source_dir: source_dir)
174
+ expect(filename).to eq("index.html.erb")
175
+ expect(source_path).to eq(fixture_path + "index.html.erb")
176
+ expect(build_path).to eq(fixture_path + "index.html")
177
+ end
178
+
179
+ it 'index.html basename' do
180
+ url = 'index.html'
181
+ filename, build_path, source_path = subject.filepath_from_url(url, build_dir: source_dir, source_dir: source_dir)
182
+ expect(filename).to eq("index.html.erb")
183
+ expect(source_path).to eq(fixture_path + "index.html.erb")
184
+ expect(build_path).to eq(fixture_path + "index.html")
185
+ end
186
+
187
+ it 'cool-dois.html' do
188
+ url = fixture_path + 'cool-dois.html'
189
+ filename, build_path, source_path = subject.filepath_from_url(url, build_dir: source_dir, source_dir: source_dir)
190
+ expect(filename).to eq("cool-dois.html.md")
191
+ expect(source_path).to eq(fixture_path + "cool-dois.html.md")
192
+ expect(build_path).to eq(fixture_path + "cool-dois/index.html")
193
+ end
194
+
195
+ it 'cool-dois.html basename' do
196
+ url = 'cool-dois.html'
197
+ filename, build_path, source_path = subject.filepath_from_url(url, build_dir: source_dir, source_dir: source_dir)
198
+ expect(filename).to eq("cool-dois.html.md")
199
+ expect(source_path).to eq(fixture_path + "cool-dois.html.md")
200
+ expect(build_path).to eq(fixture_path + "cool-dois/index.html")
201
+ end
202
+ end
203
+ end
@@ -44,7 +44,7 @@
44
44
  </script>
45
45
 
46
46
  <script type="application/ld+json">
47
- {"@context":"http://schema.org","@type":"BlogPosting","@id":"https://doi.org/10.5438/55E5-T5C0","name":"Cool DOI's","alternateName":"MS-55-5135-1980","url":"https://blog.datacite.org/cool-dois/","author":[{"@type":"Person","@id":"http://orcid.org/0000-0003-1419-2405","givenName":"Martin","familyName":"Fenner","name":"Martin Fenner"}],"publisher":{"@type":"Organization","name":"DataCite"},"dateCreated":"2016-12-15","datePublished":"2016-12-15","dateModified":"2016-12-15","keywords":"doi, featured","version":"1.0","description":"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...","license":"https://creativecommons.org/licenses/by/4.0/","image":"https://blog.datacite.org/images/2016/12/cool-dois.png","encoding":{"@type":"MediaObject","@id":"https://blog.datacite.org/cool-dois/cool-dois.xml","fileFormat":"application/xml"},"isPartOf":{"@type":"Blog","@id":"https://doi.org/10.5438/0000-00SS","name":"DataCite Blog"},"citation":[{"@type":"CreativeWork","@id":"https://www.w3.org/Provider/Style/URI"},{"@type":"CreativeWork","@id":"https://doi.org/10.1371/journal.pone.0115253"}]}
47
+ {"@context":"http://schema.org","@type":"BlogPosting","@id":"https://doi.org/10.5438/55e5-t5c0","name":"Cool DOI's","alternateName":"MS-55-5135-1980","url":"https://blog.datacite.org/cool-dois/","author":[{"@type":"Person","@id":"http://orcid.org/0000-0003-1419-2405","givenName":"Martin","familyName":"Fenner","name":"Martin Fenner"}],"publisher":{"@type":"Organization","name":"DataCite"},"dateCreated":"2016-12-15","datePublished":"2016-12-15","dateModified":"2016-12-15","keywords":"doi, featured","version":"1.0","description":"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...","license":"https://creativecommons.org/licenses/by/4.0/","image":"https://blog.datacite.org/images/2016/12/cool-dois.png","encoding":{"@type":"MediaObject","@id":"https://blog.datacite.org/cool-dois/cool-dois.xml","fileFormat":"application/xml"},"isPartOf":{"@type":"Blog","@id":"https://doi.org/10.5438/0000-00SS","name":"DataCite Blog"},"citation":[{"@type":"CreativeWork","@id":"https://www.w3.org/Provider/Style/URI"},{"@type":"CreativeWork","@id":"https://doi.org/10.1371/journal.pone.0115253"}]}
48
48
  </script>
49
49
  </head>
50
50
  <body>
@@ -8,7 +8,7 @@ tags:
8
8
  accession_number: MS-124
9
9
  image: https://blog.datacite.org/images/2016/12/cool-dois.png
10
10
  published: false
11
- doi: 10.5438/0000-03WD
11
+ doi: 10.5438/0000-03wd
12
12
  ---
13
13
  In 1998 Tim Berners-Lee coined the term cool URIs [-@https://www.w3.org/Provider/Style/URI], that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot [@https://doi.org/10.1371/journal.pone.0115253] and making it hard or impossible to find the referenced resource.READMORE
14
14
 
@@ -8,7 +8,7 @@ tags:
8
8
  accession_number: MS-123
9
9
  image: https://blog.datacite.org/images/2016/12/cool-dois.png
10
10
  published: false
11
- doi: 10.5438/0000-03VC
11
+ doi: 10.5438/0000-03vc
12
12
  date: '2016-12-15'
13
13
  ---
14
14
  In 1998 Tim Berners-Lee coined the term cool URIs [-@https://www.w3.org/Provider/Style/URI], that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot [@https://doi.org/10.1371/journal.pone.0115253] and making it hard or impossible to find the referenced resource.READMORE
@@ -45,7 +45,7 @@
45
45
  </script>
46
46
 
47
47
  <script type="application/ld+json">
48
- {"@context":"http://schema.org","@type":"Blog","@id":"https://doi.org/10.5438/0000-NW90","name":"DataCite Blog","alternateName":"MS-25-1785","url":"https://blog.datacite.org/","author":[{"@type":"Person","@id":"http://orcid.org/0000-0002-9300-5278","givenName":"Patricia","familyName":"Cruse","name":"Trisha Cruse"},{"@type":"Person","@id":"http://orcid.org/0000-0001-5952-7630","givenName":"Laura","familyName":"Rueda","name":"Laura Rueda"},{"@type":"Person","@id":"http://orcid.org/0000-0003-3484-6875","givenName":"Kristian","familyName":"Garza","name":"Kristian Garza"},{"@type":"Person","@id":"http://orcid.org/0000-0003-1419-2405","givenName":"Martin","familyName":"Fenner","name":"Martin Fenner"}],"publisher":{"@type":"Organization","name":"DataCite"},"dateCreated":"2015-08-03","datePublished":"2015-08-03","dateModified":"2015-08-03","version":"1.0","description":"The DataCite blog.","license":"https://creativecommons.org/licenses/by/4.0/","hasPart":[{"@type":"BlogPosting","@id":"https://doi.org/10.5438/55E5-T5C0","name":"Cool DOI's","datePublished":"2016-12-15"}]}
48
+ {"@context":"http://schema.org","@type":"Blog","@id":"https://doi.org/10.5438/0000-nw90","name":"DataCite Blog","alternateName":"MS-25-1785","url":"https://blog.datacite.org/","author":[{"@type":"Person","@id":"http://orcid.org/0000-0002-9300-5278","givenName":"Patricia","familyName":"Cruse","name":"Trisha Cruse"},{"@type":"Person","@id":"http://orcid.org/0000-0001-5952-7630","givenName":"Laura","familyName":"Rueda","name":"Laura Rueda"},{"@type":"Person","@id":"http://orcid.org/0000-0003-3484-6875","givenName":"Kristian","familyName":"Garza","name":"Kristian Garza"},{"@type":"Person","@id":"http://orcid.org/0000-0003-1419-2405","givenName":"Martin","familyName":"Fenner","name":"Martin Fenner"}],"publisher":{"@type":"Organization","name":"DataCite"},"dateCreated":"2015-08-03","datePublished":"2015-08-03","dateModified":"2015-08-03","version":"1.0","description":"The DataCite blog.","license":"https://creativecommons.org/licenses/by/4.0/","hasPart":[{"@type":"BlogPosting","@id":"https://doi.org/10.5438/55E5-T5C0","name":"Cool DOI's","datePublished":"2016-12-15"}]}
49
49
  </script>
50
50
  </head>
51
51
  <body>
@@ -48,7 +48,7 @@
48
48
  {
49
49
  "@context": "http://schema.org",
50
50
  "@type": "Blog",
51
- "@id": "https://doi.org/10.5438/0000-00SS",
51
+ "@id": "https://doi.org/10.5438/0000-00ss",
52
52
  "name": "DataCite Blog",
53
53
  "alternateName": "MS-25-1785",
54
54
  "url": "https://blog.datacite.org/",
@@ -89,7 +89,7 @@
89
89
  "license": "https://creativecommons.org/licenses/by/4.0/",
90
90
  "hasPart": [{
91
91
  "@type": "BlogPosting",
92
- "@id": "https://doi.org/10.5438/55E5-T5C0",
92
+ "@id": "https://doi.org/10.5438/55e5-t5c0",
93
93
  "name": "Cool DOI's",
94
94
  "dateCreated": "2016-12-15",
95
95
  "datePublished": "2016-12-15"
@@ -9,7 +9,7 @@ author:
9
9
  accession_number: MS-25-1785
10
10
  published: false
11
11
  date: '2017-07-11'
12
- doi: 10.5438/0000-00SS
12
+ doi: 10.5438/0000-00ss
13
13
  ---
14
14
  <div class="container-fluid">
15
15
  <div class="row">
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: head
5
- uri: https://doi.org/10.5438/55E5-T5C0
5
+ uri: https://doi.org/10.5438/55e5-t5c0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,16 +23,16 @@ http_interactions:
23
23
  Location:
24
24
  - https://blog.datacite.org/cool-dois/
25
25
  Expires:
26
- - Sat, 22 Jul 2017 07:25:52 GMT
26
+ - Sun, 23 Jul 2017 07:26:33 GMT
27
27
  Content-Type:
28
28
  - text/html;charset=utf-8
29
29
  Content-Length:
30
30
  - '157'
31
31
  Date:
32
- - Sat, 22 Jul 2017 07:03:54 GMT
32
+ - Sun, 23 Jul 2017 06:56:16 GMT
33
33
  body:
34
34
  encoding: UTF-8
35
35
  string: ''
36
36
  http_version:
37
- recorded_at: Sat, 22 Jul 2017 07:03:53 GMT
37
+ recorded_at: Sun, 23 Jul 2017 06:56:15 GMT
38
38
  recorded_with: VCR 3.0.3
@@ -23,57 +23,16 @@ http_interactions:
23
23
  Location:
24
24
  - https://blog.datacite.org/cool-dois/
25
25
  Expires:
26
- - Sat, 22 Jul 2017 07:25:52 GMT
26
+ - Sun, 23 Jul 2017 07:26:33 GMT
27
27
  Content-Type:
28
28
  - text/html;charset=utf-8
29
29
  Content-Length:
30
30
  - '157'
31
31
  Date:
32
- - Sat, 22 Jul 2017 07:04:36 GMT
32
+ - Sun, 23 Jul 2017 06:56:11 GMT
33
33
  body:
34
34
  encoding: UTF-8
35
35
  string: ''
36
36
  http_version:
37
- recorded_at: Sat, 22 Jul 2017 07:04:35 GMT
38
- - request:
39
- method: delete
40
- uri: https://mds.test.datacite.org/metadata/10.5438/0000-NW90
41
- body:
42
- encoding: US-ASCII
43
- string: ''
44
- headers:
45
- User-Agent:
46
- - Maremma - https://github.com/datacite/maremma
47
- Accept:
48
- - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
49
- Authorization:
50
- - Basic <MDS_TOKEN>
51
- response:
52
- status:
53
- code: 404
54
- message: Not Found
55
- headers:
56
- Access-Control-Allow-Methods:
57
- - GET, POST, OPTIONS
58
- Access-Control-Allow-Origin:
59
- - "*"
60
- Cache-Control:
61
- - no-cache, no-store
62
- Date:
63
- - Sat, 22 Jul 2017 07:04:36 GMT
64
- Expires:
65
- - Thu, 01 Jan 1970 00:00:00 GMT
66
- Pragma:
67
- - no-cache
68
- Server:
69
- - openresty/1.11.2.2
70
- Content-Length:
71
- - '17'
72
- Connection:
73
- - keep-alive
74
- body:
75
- encoding: UTF-8
76
- string: DOI doesn't exist
77
- http_version:
78
- recorded_at: Sat, 22 Jul 2017 07:04:35 GMT
37
+ recorded_at: Sun, 23 Jul 2017 06:56:10 GMT
79
38
  recorded_with: VCR 3.0.3