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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f0ad35d86007004e6b15e1d87388be0e27975d4
|
4
|
+
data.tar.gz: 272aa8029bb7002ae0a3ec267fd606fadcc84d2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e436ada7729c2c837573c31e704c799771998338df4d00677eb59853be900e5b500fcf0410141f64c981fc1b80a4d25f573441259b6a8eaa2eed847eb6615bcd
|
7
|
+
data.tar.gz: 2193e6806968bfa552f17c9a2c79fca9a05608730397aac7aec4db4d1eab1ba47f21d919586a1b5dc6c1f0f7bbc7b0f4cbfbaf669d88bd6df5d7756ebe0f3736
|
data/Gemfile.lock
CHANGED
data/lib/bolognese/crossref.rb
CHANGED
@@ -60,13 +60,17 @@ module Bolognese
|
|
60
60
|
"PostedContent" => "article"
|
61
61
|
}
|
62
62
|
|
63
|
+
CONTACT_EMAIL = "tech@datacite.org"
|
64
|
+
|
63
65
|
def initialize(id: nil, string: nil)
|
64
66
|
id = normalize_doi(id) if id.present?
|
65
67
|
|
66
68
|
if string.present?
|
67
69
|
@raw = string
|
68
70
|
elsif id.present?
|
69
|
-
|
71
|
+
doi = doi_from_url(id)
|
72
|
+
url = "http://www.crossref.org/openurl/?id=doi:#{doi}&noredirect=true&pid=#{CONTACT_EMAIL}&format=unixref"
|
73
|
+
response = Maremma.get(url, accept: "text/xml", raw: true)
|
70
74
|
@raw = response.body.fetch("data", nil)
|
71
75
|
@raw = Nokogiri::XML(@raw, nil, 'UTF-8', &:noblanks).to_s if @raw.present?
|
72
76
|
end
|
@@ -75,7 +79,12 @@ module Bolognese
|
|
75
79
|
alias_method :crossref, :raw
|
76
80
|
|
77
81
|
def metadata
|
78
|
-
@metadata ||= raw.present?
|
82
|
+
@metadata ||= if raw.present?
|
83
|
+
m = Maremma.from_xml(raw).fetch("doi_records", {}).fetch("doi_record", {})
|
84
|
+
m.dig("crossref", "error").nil? ? m : {}
|
85
|
+
else
|
86
|
+
{}
|
87
|
+
end
|
79
88
|
end
|
80
89
|
|
81
90
|
def exists?
|
data/lib/bolognese/datacite.rb
CHANGED
@@ -88,7 +88,13 @@ module Bolognese
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def title
|
91
|
-
metadata.dig("titles", "title")
|
91
|
+
Array.wrap(metadata.dig("titles", "title")).map do |r|
|
92
|
+
if r.is_a?(String)
|
93
|
+
sanitize(r)
|
94
|
+
else
|
95
|
+
{ "title_type" => r["titleType"], "lang" => r["xml:lang"], "text" => sanitize(r["__content__"]) }.compact
|
96
|
+
end
|
97
|
+
end.unwrap
|
92
98
|
end
|
93
99
|
|
94
100
|
def alternate_name
|
data/lib/bolognese/version.rb
CHANGED
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 20 Apr 2017 20:22:10 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"daf85afdb45f3c2713bc7e75916ba82a"
|
35
35
|
Server:
|
@@ -45,23 +45,21 @@ http_interactions:
|
|
45
45
|
X-Powered-By:
|
46
46
|
- Phusion Passenger 5.1.2
|
47
47
|
X-Request-Id:
|
48
|
-
-
|
48
|
+
- 2d99412d-a622-4e13-9b87-70f8e0b9646b
|
49
49
|
X-Runtime:
|
50
|
-
- '0.
|
50
|
+
- '0.562022'
|
51
51
|
X-Xss-Protection:
|
52
52
|
- 1; mode=block
|
53
|
-
Content-Length:
|
54
|
-
- '124'
|
55
53
|
Connection:
|
56
54
|
- keep-alive
|
57
55
|
body:
|
58
56
|
encoding: UTF-8
|
59
57
|
string: '{"data":{"id":"10.7554","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:07:27Z"}}}'
|
60
58
|
http_version:
|
61
|
-
recorded_at:
|
59
|
+
recorded_at: Thu, 20 Apr 2017 20:22:10 GMT
|
62
60
|
- request:
|
63
61
|
method: get
|
64
|
-
uri:
|
62
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.7554/elife.01567&noredirect=true&pid=tech@datacite.org
|
65
63
|
body:
|
66
64
|
encoding: US-ASCII
|
67
65
|
string: ''
|
@@ -69,73 +67,22 @@ http_interactions:
|
|
69
67
|
User-Agent:
|
70
68
|
- Maremma - https://github.com/datacite/maremma
|
71
69
|
Accept:
|
72
|
-
-
|
70
|
+
- text/xml
|
73
71
|
response:
|
74
72
|
status:
|
75
|
-
code:
|
73
|
+
code: 200
|
76
74
|
message: ''
|
77
75
|
headers:
|
78
76
|
Server:
|
79
77
|
- Apache-Coyote/1.1
|
80
|
-
|
81
|
-
-
|
82
|
-
Location:
|
83
|
-
- http://data.crossref.org/10.7554%2Felife.01567
|
84
|
-
Expires:
|
85
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
78
|
+
Crossref-Deployment-Name:
|
79
|
+
- qs4-1
|
86
80
|
Content-Type:
|
87
|
-
- text/
|
88
|
-
Content-
|
89
|
-
-
|
90
|
-
Date:
|
91
|
-
- Tue, 18 Apr 2017 18:28:05 GMT
|
92
|
-
body:
|
93
|
-
encoding: UTF-8
|
94
|
-
string: |-
|
95
|
-
<html><head><title>Handle Redirect</title></head>
|
96
|
-
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
97
|
-
http_version:
|
98
|
-
recorded_at: Tue, 18 Apr 2017 18:28:05 GMT
|
99
|
-
- request:
|
100
|
-
method: get
|
101
|
-
uri: http://data.crossref.org/10.7554%2Felife.01567
|
102
|
-
body:
|
103
|
-
encoding: US-ASCII
|
104
|
-
string: ''
|
105
|
-
headers:
|
106
|
-
User-Agent:
|
107
|
-
- Maremma - https://github.com/datacite/maremma
|
108
|
-
Accept:
|
109
|
-
- application/vnd.crossref.unixref+xml
|
110
|
-
response:
|
111
|
-
status:
|
112
|
-
code: 200
|
113
|
-
message: ''
|
114
|
-
headers:
|
115
|
-
Access-Control-Allow-Origin:
|
116
|
-
- "*"
|
117
|
-
Access-Control-Allow-Headers:
|
118
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
119
|
-
Accept-Ranges, Cache-Control
|
120
|
-
Access-Control-Expose-Headers:
|
121
|
-
- Link
|
122
|
-
Link:
|
123
|
-
- <http://dx.doi.org/10.7554/elife.01567>; rel="canonical", <http://creativecommons.org/licenses/by/3.0/>;
|
124
|
-
version="vor"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
125
|
-
version="am"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
126
|
-
version="tdm"; rel="license"
|
127
|
-
Content-Type:
|
128
|
-
- application/vnd.crossref.unixref+xml
|
129
|
-
Content-Length:
|
130
|
-
- '28603'
|
131
|
-
Server:
|
132
|
-
- http-kit
|
81
|
+
- text/xml;charset=UTF-8
|
82
|
+
Content-Language:
|
83
|
+
- en-US
|
133
84
|
Date:
|
134
|
-
-
|
135
|
-
X-Rate-Limit-Limit:
|
136
|
-
- '50'
|
137
|
-
X-Rate-Limit-Interval:
|
138
|
-
- 1s
|
85
|
+
- Thu, 20 Apr 2017 20:43:38 GMT
|
139
86
|
Connection:
|
140
87
|
- close
|
141
88
|
body:
|
@@ -778,5 +725,5 @@ http_interactions:
|
|
778
725
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
779
726
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
780
727
|
http_version:
|
781
|
-
recorded_at:
|
728
|
+
recorded_at: Thu, 20 Apr 2017 20:22:11 GMT
|
782
729
|
recorded_with: VCR 3.0.3
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 20 Apr 2017 20:22:14 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"daf85afdb45f3c2713bc7e75916ba82a"
|
35
35
|
Server:
|
@@ -45,23 +45,21 @@ http_interactions:
|
|
45
45
|
X-Powered-By:
|
46
46
|
- Phusion Passenger 5.1.2
|
47
47
|
X-Request-Id:
|
48
|
-
-
|
48
|
+
- 4a981e49-8f21-4b01-bbbe-1b0d53a3bfb1
|
49
49
|
X-Runtime:
|
50
|
-
- '0.
|
50
|
+
- '0.549376'
|
51
51
|
X-Xss-Protection:
|
52
52
|
- 1; mode=block
|
53
|
-
Content-Length:
|
54
|
-
- '124'
|
55
53
|
Connection:
|
56
54
|
- keep-alive
|
57
55
|
body:
|
58
56
|
encoding: UTF-8
|
59
57
|
string: '{"data":{"id":"10.7554","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:07:27Z"}}}'
|
60
58
|
http_version:
|
61
|
-
recorded_at:
|
59
|
+
recorded_at: Thu, 20 Apr 2017 20:22:14 GMT
|
62
60
|
- request:
|
63
61
|
method: get
|
64
|
-
uri:
|
62
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.7554/elife.01567&noredirect=true&pid=tech@datacite.org
|
65
63
|
body:
|
66
64
|
encoding: US-ASCII
|
67
65
|
string: ''
|
@@ -69,73 +67,22 @@ http_interactions:
|
|
69
67
|
User-Agent:
|
70
68
|
- Maremma - https://github.com/datacite/maremma
|
71
69
|
Accept:
|
72
|
-
-
|
70
|
+
- text/xml
|
73
71
|
response:
|
74
72
|
status:
|
75
|
-
code:
|
73
|
+
code: 200
|
76
74
|
message: ''
|
77
75
|
headers:
|
78
76
|
Server:
|
79
77
|
- Apache-Coyote/1.1
|
80
|
-
|
81
|
-
-
|
82
|
-
Location:
|
83
|
-
- http://data.crossref.org/10.7554%2Felife.01567
|
84
|
-
Expires:
|
85
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
78
|
+
Crossref-Deployment-Name:
|
79
|
+
- qs3-1
|
86
80
|
Content-Type:
|
87
|
-
- text/
|
88
|
-
Content-
|
89
|
-
-
|
90
|
-
Date:
|
91
|
-
- Tue, 18 Apr 2017 18:27:59 GMT
|
92
|
-
body:
|
93
|
-
encoding: UTF-8
|
94
|
-
string: |-
|
95
|
-
<html><head><title>Handle Redirect</title></head>
|
96
|
-
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
97
|
-
http_version:
|
98
|
-
recorded_at: Tue, 18 Apr 2017 18:28:00 GMT
|
99
|
-
- request:
|
100
|
-
method: get
|
101
|
-
uri: http://data.crossref.org/10.7554%2Felife.01567
|
102
|
-
body:
|
103
|
-
encoding: US-ASCII
|
104
|
-
string: ''
|
105
|
-
headers:
|
106
|
-
User-Agent:
|
107
|
-
- Maremma - https://github.com/datacite/maremma
|
108
|
-
Accept:
|
109
|
-
- application/vnd.crossref.unixref+xml
|
110
|
-
response:
|
111
|
-
status:
|
112
|
-
code: 200
|
113
|
-
message: ''
|
114
|
-
headers:
|
115
|
-
Access-Control-Allow-Origin:
|
116
|
-
- "*"
|
117
|
-
Access-Control-Allow-Headers:
|
118
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
119
|
-
Accept-Ranges, Cache-Control
|
120
|
-
Access-Control-Expose-Headers:
|
121
|
-
- Link
|
122
|
-
Link:
|
123
|
-
- <http://dx.doi.org/10.7554/elife.01567>; rel="canonical", <http://creativecommons.org/licenses/by/3.0/>;
|
124
|
-
version="vor"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
125
|
-
version="am"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
126
|
-
version="tdm"; rel="license"
|
127
|
-
Content-Type:
|
128
|
-
- application/vnd.crossref.unixref+xml
|
129
|
-
Content-Length:
|
130
|
-
- '28603'
|
131
|
-
Server:
|
132
|
-
- http-kit
|
81
|
+
- text/xml;charset=UTF-8
|
82
|
+
Content-Language:
|
83
|
+
- en-US
|
133
84
|
Date:
|
134
|
-
-
|
135
|
-
X-Rate-Limit-Limit:
|
136
|
-
- '50'
|
137
|
-
X-Rate-Limit-Interval:
|
138
|
-
- 1s
|
85
|
+
- Thu, 20 Apr 2017 20:22:14 GMT
|
139
86
|
Connection:
|
140
87
|
- close
|
141
88
|
body:
|
@@ -778,5 +725,5 @@ http_interactions:
|
|
778
725
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
779
726
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
780
727
|
http_version:
|
781
|
-
recorded_at:
|
728
|
+
recorded_at: Thu, 20 Apr 2017 20:22:15 GMT
|
782
729
|
recorded_with: VCR 3.0.3
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 20 Apr 2017 20:22:09 GMT
|
33
33
|
Etag:
|
34
34
|
- W/"daf85afdb45f3c2713bc7e75916ba82a"
|
35
35
|
Server:
|
@@ -45,21 +45,23 @@ http_interactions:
|
|
45
45
|
X-Powered-By:
|
46
46
|
- Phusion Passenger 5.1.2
|
47
47
|
X-Request-Id:
|
48
|
-
-
|
48
|
+
- 10adaa88-14d2-44b1-bfef-ffe701bea8d9
|
49
49
|
X-Runtime:
|
50
|
-
- '0.
|
50
|
+
- '0.356223'
|
51
51
|
X-Xss-Protection:
|
52
52
|
- 1; mode=block
|
53
|
+
Content-Length:
|
54
|
+
- '124'
|
53
55
|
Connection:
|
54
56
|
- keep-alive
|
55
57
|
body:
|
56
58
|
encoding: UTF-8
|
57
59
|
string: '{"data":{"id":"10.7554","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:07:27Z"}}}'
|
58
60
|
http_version:
|
59
|
-
recorded_at:
|
61
|
+
recorded_at: Thu, 20 Apr 2017 20:22:09 GMT
|
60
62
|
- request:
|
61
63
|
method: get
|
62
|
-
uri:
|
64
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.7554/elife.01567&noredirect=true&pid=tech@datacite.org
|
63
65
|
body:
|
64
66
|
encoding: US-ASCII
|
65
67
|
string: ''
|
@@ -67,73 +69,22 @@ http_interactions:
|
|
67
69
|
User-Agent:
|
68
70
|
- Maremma - https://github.com/datacite/maremma
|
69
71
|
Accept:
|
70
|
-
-
|
72
|
+
- text/xml
|
71
73
|
response:
|
72
74
|
status:
|
73
|
-
code:
|
75
|
+
code: 200
|
74
76
|
message: ''
|
75
77
|
headers:
|
76
78
|
Server:
|
77
79
|
- Apache-Coyote/1.1
|
78
|
-
|
79
|
-
-
|
80
|
-
Location:
|
81
|
-
- http://data.crossref.org/10.7554%2Felife.01567
|
82
|
-
Expires:
|
83
|
-
- Tue, 18 Apr 2017 18:39:23 GMT
|
84
|
-
Content-Type:
|
85
|
-
- text/html;charset=utf-8
|
86
|
-
Content-Length:
|
87
|
-
- '177'
|
88
|
-
Date:
|
89
|
-
- Tue, 18 Apr 2017 18:27:58 GMT
|
90
|
-
body:
|
91
|
-
encoding: UTF-8
|
92
|
-
string: |-
|
93
|
-
<html><head><title>Handle Redirect</title></head>
|
94
|
-
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
95
|
-
http_version:
|
96
|
-
recorded_at: Tue, 18 Apr 2017 18:27:59 GMT
|
97
|
-
- request:
|
98
|
-
method: get
|
99
|
-
uri: http://data.crossref.org/10.7554%2Felife.01567
|
100
|
-
body:
|
101
|
-
encoding: US-ASCII
|
102
|
-
string: ''
|
103
|
-
headers:
|
104
|
-
User-Agent:
|
105
|
-
- Maremma - https://github.com/datacite/maremma
|
106
|
-
Accept:
|
107
|
-
- application/vnd.crossref.unixref+xml
|
108
|
-
response:
|
109
|
-
status:
|
110
|
-
code: 200
|
111
|
-
message: ''
|
112
|
-
headers:
|
113
|
-
Access-Control-Allow-Origin:
|
114
|
-
- "*"
|
115
|
-
Access-Control-Allow-Headers:
|
116
|
-
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
117
|
-
Accept-Ranges, Cache-Control
|
118
|
-
Access-Control-Expose-Headers:
|
119
|
-
- Link
|
120
|
-
Link:
|
121
|
-
- <http://dx.doi.org/10.7554/elife.01567>; rel="canonical", <http://creativecommons.org/licenses/by/3.0/>;
|
122
|
-
version="vor"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
123
|
-
version="am"; rel="license", <http://creativecommons.org/licenses/by/3.0/>;
|
124
|
-
version="tdm"; rel="license"
|
80
|
+
Crossref-Deployment-Name:
|
81
|
+
- qs2-2
|
125
82
|
Content-Type:
|
126
|
-
-
|
127
|
-
Content-
|
128
|
-
-
|
129
|
-
Server:
|
130
|
-
- http-kit
|
83
|
+
- text/xml;charset=UTF-8
|
84
|
+
Content-Language:
|
85
|
+
- en-US
|
131
86
|
Date:
|
132
|
-
-
|
133
|
-
X-Rate-Limit-Limit:
|
134
|
-
- '50'
|
135
|
-
X-Rate-Limit-Interval:
|
136
|
-
- 1s
|
87
|
+
- Thu, 20 Apr 2017 20:22:09 GMT
|
137
88
|
Connection:
|
138
89
|
- close
|
139
90
|
body:
|
@@ -776,5 +727,5 @@ http_interactions:
|
|
776
727
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
777
728
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
778
729
|
http_version:
|
779
|
-
recorded_at:
|
730
|
+
recorded_at: Thu, 20 Apr 2017 20:22:10 GMT
|
780
731
|
recorded_with: VCR 3.0.3
|