bolognese 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bolognese/crossref.rb +11 -2
- data/lib/bolognese/datacite.rb +7 -1
- data/lib/bolognese/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +14 -67
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +14 -67
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +16 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +14 -67
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +14 -67
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +7 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +7 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +7 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +7 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +7 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/author.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/no_author.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/single_author.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/with_organization.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_ORCID_ID.yml +10 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/Schema_org_JSON.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml +10 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml +10 -59
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +15 -70
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_data_citation.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_pages.yml +10 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/journal_article.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/with_pages.yml +10 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_ORCID_ID.yml +10 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_data_citation.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_editor.yml +10 -59
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_rdf_xml/journal_article.yml +28 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_rdf_xml/with_pages.yml +28 -80
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/journal_article.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/with_pages.yml +10 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_string/DOI_with_data_citation.yml +10 -61
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/journal_article.yml +28 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/with_pages.yml +28 -80
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_ORCID.yml +3 -5
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_no_ORCID.yml +3 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_familyName.yml +3 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order.yml +3 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order_with_ORCID.yml +3 -5
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_sort-order.yml +3 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/is_organization.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_comma.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_family_name.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_id.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_no_info.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_organization.yml +10 -77
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_person.yml +10 -77
- metadata +2 -2
data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_data_citation.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.7554/elife.01567&noredirect=true&pid=tech@datacite.org
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,73 +10,22 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Maremma - https://github.com/datacite/maremma
|
12
12
|
Accept:
|
13
|
-
-
|
13
|
+
- text/xml
|
14
14
|
response:
|
15
15
|
status:
|
16
|
-
code:
|
16
|
+
code: 200
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Server:
|
20
20
|
- Apache-Coyote/1.1
|
21
|
-
|
22
|
-
-
|
23
|
-
Location:
|
24
|
-
- http://data.crossref.org/10.7554%2Felife.01567
|
25
|
-
Expires:
|
26
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
27
|
-
Content-Type:
|
28
|
-
- text/html;charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '177'
|
31
|
-
Date:
|
32
|
-
- Tue, 18 Apr 2017 18:28:26 GMT
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: |-
|
36
|
-
<html><head><title>Handle Redirect</title></head>
|
37
|
-
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
38
|
-
http_version:
|
39
|
-
recorded_at: Tue, 18 Apr 2017 18:28:26 GMT
|
40
|
-
- request:
|
41
|
-
method: get
|
42
|
-
uri: http://data.crossref.org/10.7554%2Felife.01567
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ''
|
46
|
-
headers:
|
47
|
-
User-Agent:
|
48
|
-
- Maremma - https://github.com/datacite/maremma
|
49
|
-
Accept:
|
50
|
-
- application/vnd.crossref.unixref+xml
|
51
|
-
response:
|
52
|
-
status:
|
53
|
-
code: 200
|
54
|
-
message: ''
|
55
|
-
headers:
|
56
|
-
Access-Control-Allow-Origin:
|
57
|
-
- "*"
|
58
|
-
Access-Control-Allow-Headers:
|
59
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
60
|
-
Accept-Ranges, Cache-Control
|
61
|
-
Access-Control-Expose-Headers:
|
62
|
-
- Link
|
63
|
-
Link:
|
64
|
-
- <http://dx.doi.org/10.7554/elife.01567>; rel="canonical", <http://creativecommons.org/licenses/by/3.0/>;
|
65
|
-
version="vor"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
66
|
-
version="am"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
67
|
-
version="tdm"; rel="license"
|
21
|
+
Crossref-Deployment-Name:
|
22
|
+
- cr6-1
|
68
23
|
Content-Type:
|
69
|
-
-
|
70
|
-
Content-
|
71
|
-
-
|
72
|
-
Server:
|
73
|
-
- http-kit
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
Content-Language:
|
26
|
+
- en-US
|
74
27
|
Date:
|
75
|
-
-
|
76
|
-
X-Rate-Limit-Limit:
|
77
|
-
- '50'
|
78
|
-
X-Rate-Limit-Interval:
|
79
|
-
- 1s
|
28
|
+
- Thu, 20 Apr 2017 20:22:24 GMT
|
80
29
|
Connection:
|
81
30
|
- close
|
82
31
|
body:
|
@@ -719,5 +668,5 @@ http_interactions:
|
|
719
668
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
720
669
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
721
670
|
http_version:
|
722
|
-
recorded_at:
|
671
|
+
recorded_at: Thu, 20 Apr 2017 20:22:24 GMT
|
723
672
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1155/2012/291294&noredirect=true&pid=tech@datacite.org
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,74 +10,22 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Maremma - https://github.com/datacite/maremma
|
12
12
|
Accept:
|
13
|
-
-
|
13
|
+
- text/xml
|
14
14
|
response:
|
15
15
|
status:
|
16
|
-
code:
|
16
|
+
code: 200
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Server:
|
20
20
|
- Apache-Coyote/1.1
|
21
|
-
|
22
|
-
-
|
23
|
-
Location:
|
24
|
-
- http://data.crossref.org/10.1155%2F2012%2F291294
|
25
|
-
Expires:
|
26
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
27
|
-
Content-Type:
|
28
|
-
- text/html;charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '181'
|
31
|
-
Date:
|
32
|
-
- Tue, 18 Apr 2017 18:28:25 GMT
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: |-
|
36
|
-
<html><head><title>Handle Redirect</title></head>
|
37
|
-
<body><a href="http://data.crossref.org/10.1155%2F2012%2F291294">http://data.crossref.org/10.1155%2F2012%2F291294</a></body></html>
|
38
|
-
http_version:
|
39
|
-
recorded_at: Tue, 18 Apr 2017 18:28:25 GMT
|
40
|
-
- request:
|
41
|
-
method: get
|
42
|
-
uri: http://data.crossref.org/10.1155%2F2012%2F291294
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ''
|
46
|
-
headers:
|
47
|
-
User-Agent:
|
48
|
-
- Maremma - https://github.com/datacite/maremma
|
49
|
-
Accept:
|
50
|
-
- application/vnd.crossref.unixref+xml
|
51
|
-
response:
|
52
|
-
status:
|
53
|
-
code: 200
|
54
|
-
message: ''
|
55
|
-
headers:
|
56
|
-
Access-Control-Allow-Origin:
|
57
|
-
- "*"
|
58
|
-
Access-Control-Allow-Headers:
|
59
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
60
|
-
Accept-Ranges, Cache-Control
|
61
|
-
Access-Control-Expose-Headers:
|
62
|
-
- Link
|
63
|
-
Link:
|
64
|
-
- <http://dx.doi.org/10.1155/2012/291294>; rel="canonical", <http://downloads.hindawi.com/journals/pm/2012/291294.pdf>;
|
65
|
-
version="vor"; type="application/pdf"; rel="item", <http://downloads.hindawi.com/journals/pm/2012/291294.xml>;
|
66
|
-
version="vor"; type="application/xml"; rel="item", <http://creativecommons.org/licenses/by/3.0/>;
|
67
|
-
version="vor"; rel="license", <http://orcid.org/0000-0003-2043-4925>; title="Beatriz
|
68
|
-
Hernandez"; rel="author"
|
21
|
+
Crossref-Deployment-Name:
|
22
|
+
- qs4-1
|
69
23
|
Content-Type:
|
70
|
-
-
|
71
|
-
Content-
|
72
|
-
-
|
73
|
-
Server:
|
74
|
-
- http-kit
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
Content-Language:
|
26
|
+
- en-US
|
75
27
|
Date:
|
76
|
-
-
|
77
|
-
X-Rate-Limit-Limit:
|
78
|
-
- '50'
|
79
|
-
X-Rate-Limit-Interval:
|
80
|
-
- 1s
|
28
|
+
- Thu, 20 Apr 2017 20:43:52 GMT
|
81
29
|
Connection:
|
82
30
|
- close
|
83
31
|
body:
|
@@ -366,5 +314,5 @@ http_interactions:
|
|
366
314
|
ZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8L2Rv
|
367
315
|
aV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
368
316
|
http_version:
|
369
|
-
recorded_at:
|
317
|
+
recorded_at: Thu, 20 Apr 2017 20:22:25 GMT
|
370
318
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/journal_article.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.7554/elife.01567&noredirect=true&pid=tech@datacite.org
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,73 +10,22 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Maremma - https://github.com/datacite/maremma
|
12
12
|
Accept:
|
13
|
-
-
|
13
|
+
- text/xml
|
14
14
|
response:
|
15
15
|
status:
|
16
|
-
code:
|
16
|
+
code: 200
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Server:
|
20
20
|
- Apache-Coyote/1.1
|
21
|
-
|
22
|
-
-
|
23
|
-
Location:
|
24
|
-
- http://data.crossref.org/10.7554%2Felife.01567
|
25
|
-
Expires:
|
26
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
27
|
-
Content-Type:
|
28
|
-
- text/html;charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '177'
|
31
|
-
Date:
|
32
|
-
- Tue, 18 Apr 2017 18:28:23 GMT
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: |-
|
36
|
-
<html><head><title>Handle Redirect</title></head>
|
37
|
-
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
38
|
-
http_version:
|
39
|
-
recorded_at: Tue, 18 Apr 2017 18:28:23 GMT
|
40
|
-
- request:
|
41
|
-
method: get
|
42
|
-
uri: http://data.crossref.org/10.7554%2Felife.01567
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ''
|
46
|
-
headers:
|
47
|
-
User-Agent:
|
48
|
-
- Maremma - https://github.com/datacite/maremma
|
49
|
-
Accept:
|
50
|
-
- application/vnd.crossref.unixref+xml
|
51
|
-
response:
|
52
|
-
status:
|
53
|
-
code: 200
|
54
|
-
message: ''
|
55
|
-
headers:
|
56
|
-
Access-Control-Allow-Origin:
|
57
|
-
- "*"
|
58
|
-
Access-Control-Allow-Headers:
|
59
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
60
|
-
Accept-Ranges, Cache-Control
|
61
|
-
Access-Control-Expose-Headers:
|
62
|
-
- Link
|
63
|
-
Link:
|
64
|
-
- <http://dx.doi.org/10.7554/elife.01567>; rel="canonical", <http://creativecommons.org/licenses/by/3.0/>;
|
65
|
-
version="vor"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
66
|
-
version="am"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
67
|
-
version="tdm"; rel="license"
|
21
|
+
Crossref-Deployment-Name:
|
22
|
+
- qs2-2
|
68
23
|
Content-Type:
|
69
|
-
-
|
70
|
-
Content-
|
71
|
-
-
|
72
|
-
Server:
|
73
|
-
- http-kit
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
Content-Language:
|
26
|
+
- en-US
|
74
27
|
Date:
|
75
|
-
-
|
76
|
-
X-Rate-Limit-Limit:
|
77
|
-
- '50'
|
78
|
-
X-Rate-Limit-Interval:
|
79
|
-
- 1s
|
28
|
+
- Thu, 20 Apr 2017 20:22:23 GMT
|
80
29
|
Connection:
|
81
30
|
- close
|
82
31
|
body:
|
@@ -719,5 +668,5 @@ http_interactions:
|
|
719
668
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
720
669
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
721
670
|
http_version:
|
722
|
-
recorded_at:
|
671
|
+
recorded_at: Thu, 20 Apr 2017 20:22:23 GMT
|
723
672
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1155/2012/291294&noredirect=true&pid=tech@datacite.org
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,74 +10,22 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Maremma - https://github.com/datacite/maremma
|
12
12
|
Accept:
|
13
|
-
-
|
13
|
+
- text/xml
|
14
14
|
response:
|
15
15
|
status:
|
16
|
-
code:
|
16
|
+
code: 200
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Server:
|
20
20
|
- Apache-Coyote/1.1
|
21
|
-
|
22
|
-
-
|
23
|
-
Location:
|
24
|
-
- http://data.crossref.org/10.1155%2F2012%2F291294
|
25
|
-
Expires:
|
26
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
27
|
-
Content-Type:
|
28
|
-
- text/html;charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '181'
|
31
|
-
Date:
|
32
|
-
- Tue, 18 Apr 2017 18:28:24 GMT
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: |-
|
36
|
-
<html><head><title>Handle Redirect</title></head>
|
37
|
-
<body><a href="http://data.crossref.org/10.1155%2F2012%2F291294">http://data.crossref.org/10.1155%2F2012%2F291294</a></body></html>
|
38
|
-
http_version:
|
39
|
-
recorded_at: Tue, 18 Apr 2017 18:28:24 GMT
|
40
|
-
- request:
|
41
|
-
method: get
|
42
|
-
uri: http://data.crossref.org/10.1155%2F2012%2F291294
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ''
|
46
|
-
headers:
|
47
|
-
User-Agent:
|
48
|
-
- Maremma - https://github.com/datacite/maremma
|
49
|
-
Accept:
|
50
|
-
- application/vnd.crossref.unixref+xml
|
51
|
-
response:
|
52
|
-
status:
|
53
|
-
code: 200
|
54
|
-
message: ''
|
55
|
-
headers:
|
56
|
-
Access-Control-Allow-Origin:
|
57
|
-
- "*"
|
58
|
-
Access-Control-Allow-Headers:
|
59
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
60
|
-
Accept-Ranges, Cache-Control
|
61
|
-
Access-Control-Expose-Headers:
|
62
|
-
- Link
|
63
|
-
Link:
|
64
|
-
- <http://dx.doi.org/10.1155/2012/291294>; rel="canonical", <http://downloads.hindawi.com/journals/pm/2012/291294.pdf>;
|
65
|
-
version="vor"; type="application/pdf"; rel="item", <http://downloads.hindawi.com/journals/pm/2012/291294.xml>;
|
66
|
-
version="vor"; type="application/xml"; rel="item", <http://creativecommons.org/licenses/by/3.0/>;
|
67
|
-
version="vor"; rel="license", <http://orcid.org/0000-0003-2043-4925>; title="Beatriz
|
68
|
-
Hernandez"; rel="author"
|
21
|
+
Crossref-Deployment-Name:
|
22
|
+
- qs2-2
|
69
23
|
Content-Type:
|
70
|
-
-
|
71
|
-
Content-
|
72
|
-
-
|
73
|
-
Server:
|
74
|
-
- http-kit
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
Content-Language:
|
26
|
+
- en-US
|
75
27
|
Date:
|
76
|
-
-
|
77
|
-
X-Rate-Limit-Limit:
|
78
|
-
- '50'
|
79
|
-
X-Rate-Limit-Interval:
|
80
|
-
- 1s
|
28
|
+
- Thu, 20 Apr 2017 20:22:23 GMT
|
81
29
|
Connection:
|
82
30
|
- close
|
83
31
|
body:
|
@@ -366,5 +314,5 @@ http_interactions:
|
|
366
314
|
ZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8L2Rv
|
367
315
|
aV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
368
316
|
http_version:
|
369
|
-
recorded_at:
|
317
|
+
recorded_at: Thu, 20 Apr 2017 20:22:24 GMT
|
370
318
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_ORCID_ID.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1155/2012/291294&noredirect=true&pid=tech@datacite.org
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,74 +10,22 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Maremma - https://github.com/datacite/maremma
|
12
12
|
Accept:
|
13
|
-
-
|
13
|
+
- text/xml
|
14
14
|
response:
|
15
15
|
status:
|
16
|
-
code:
|
16
|
+
code: 200
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
Server:
|
20
20
|
- Apache-Coyote/1.1
|
21
|
-
|
22
|
-
-
|
23
|
-
Location:
|
24
|
-
- http://data.crossref.org/10.1155%2F2012%2F291294
|
25
|
-
Expires:
|
26
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
27
|
-
Content-Type:
|
28
|
-
- text/html;charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '181'
|
31
|
-
Date:
|
32
|
-
- Tue, 18 Apr 2017 18:28:21 GMT
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: |-
|
36
|
-
<html><head><title>Handle Redirect</title></head>
|
37
|
-
<body><a href="http://data.crossref.org/10.1155%2F2012%2F291294">http://data.crossref.org/10.1155%2F2012%2F291294</a></body></html>
|
38
|
-
http_version:
|
39
|
-
recorded_at: Tue, 18 Apr 2017 18:28:21 GMT
|
40
|
-
- request:
|
41
|
-
method: get
|
42
|
-
uri: http://data.crossref.org/10.1155%2F2012%2F291294
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ''
|
46
|
-
headers:
|
47
|
-
User-Agent:
|
48
|
-
- Maremma - https://github.com/datacite/maremma
|
49
|
-
Accept:
|
50
|
-
- application/vnd.crossref.unixref+xml
|
51
|
-
response:
|
52
|
-
status:
|
53
|
-
code: 200
|
54
|
-
message: ''
|
55
|
-
headers:
|
56
|
-
Access-Control-Allow-Origin:
|
57
|
-
- "*"
|
58
|
-
Access-Control-Allow-Headers:
|
59
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
60
|
-
Accept-Ranges, Cache-Control
|
61
|
-
Access-Control-Expose-Headers:
|
62
|
-
- Link
|
63
|
-
Link:
|
64
|
-
- <http://dx.doi.org/10.1155/2012/291294>; rel="canonical", <http://downloads.hindawi.com/journals/pm/2012/291294.pdf>;
|
65
|
-
version="vor"; type="application/pdf"; rel="item", <http://downloads.hindawi.com/journals/pm/2012/291294.xml>;
|
66
|
-
version="vor"; type="application/xml"; rel="item", <http://creativecommons.org/licenses/by/3.0/>;
|
67
|
-
version="vor"; rel="license", <http://orcid.org/0000-0003-2043-4925>; title="Beatriz
|
68
|
-
Hernandez"; rel="author"
|
21
|
+
Crossref-Deployment-Name:
|
22
|
+
- cr6-1
|
69
23
|
Content-Type:
|
70
|
-
-
|
71
|
-
Content-
|
72
|
-
-
|
73
|
-
Server:
|
74
|
-
- http-kit
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
Content-Language:
|
26
|
+
- en-US
|
75
27
|
Date:
|
76
|
-
-
|
77
|
-
X-Rate-Limit-Limit:
|
78
|
-
- '50'
|
79
|
-
X-Rate-Limit-Interval:
|
80
|
-
- 1s
|
28
|
+
- Thu, 20 Apr 2017 20:22:25 GMT
|
81
29
|
Connection:
|
82
30
|
- close
|
83
31
|
body:
|
@@ -366,5 +314,5 @@ http_interactions:
|
|
366
314
|
ZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8L2Rv
|
367
315
|
aV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
368
316
|
http_version:
|
369
|
-
recorded_at:
|
317
|
+
recorded_at: Thu, 20 Apr 2017 20:22:25 GMT
|
370
318
|
recorded_with: VCR 3.0.3
|