bolognese 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/bolognese/crossref.rb +11 -2
  4. data/lib/bolognese/datacite.rb +7 -1
  5. data/lib/bolognese/version.rb +1 -1
  6. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +14 -67
  7. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +14 -67
  8. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +16 -65
  9. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +14 -67
  10. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +14 -67
  11. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +7 -11
  12. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +7 -11
  13. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +7 -11
  14. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +7 -11
  15. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +7 -11
  16. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +12 -12
  17. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +12 -12
  18. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +12 -12
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +12 -12
  20. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/author.yml +10 -77
  21. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/no_author.yml +10 -77
  22. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/single_author.yml +10 -77
  23. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/with_organization.yml +10 -77
  24. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_ORCID_ID.yml +10 -62
  25. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml +10 -61
  26. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml +10 -61
  27. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/Schema_org_JSON.yml +10 -61
  28. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml +10 -63
  29. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml +10 -59
  30. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +15 -70
  31. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml +10 -77
  32. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_data_citation.yml +10 -61
  33. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_pages.yml +10 -62
  34. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/journal_article.yml +10 -61
  35. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/with_pages.yml +10 -62
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_ORCID_ID.yml +10 -62
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_data_citation.yml +10 -61
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_editor.yml +10 -59
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_rdf_xml/journal_article.yml +28 -79
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_rdf_xml/with_pages.yml +28 -80
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/journal_article.yml +10 -61
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/with_pages.yml +10 -62
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_string/DOI_with_data_citation.yml +10 -61
  44. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/journal_article.yml +28 -79
  45. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/with_pages.yml +28 -80
  46. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_ORCID.yml +3 -5
  47. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_no_ORCID.yml +3 -3
  48. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_familyName.yml +3 -3
  49. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order.yml +3 -3
  50. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order_with_ORCID.yml +3 -5
  51. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_sort-order.yml +3 -3
  52. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/is_organization.yml +10 -77
  53. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_comma.yml +10 -77
  54. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_family_name.yml +10 -77
  55. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_id.yml +10 -77
  56. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_no_info.yml +10 -77
  57. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_organization.yml +10 -77
  58. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_person.yml +10 -77
  59. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a87dcfda2acc47c84644d1b5bde8df749b7b8700
4
- data.tar.gz: 83491658ed3d00d359bb7c3e087c7b477dd73305
3
+ metadata.gz: 0f0ad35d86007004e6b15e1d87388be0e27975d4
4
+ data.tar.gz: 272aa8029bb7002ae0a3ec267fd606fadcc84d2d
5
5
  SHA512:
6
- metadata.gz: d92685458199416d739bbe1420044d94bf5f6a6be10e556471d30227ec52c614edc0a5514aa06cad8be2042078d374b3f7af148db28972a0b9f775307f9bcf6e
7
- data.tar.gz: c21cdcf2a8b74bd5089da69910cc3631b3896d53392f3f3ef5992dba1b828f58b862dcc2fe8fafc95ca45c774f71c3955b31e843abe3c7a02dfc3ad4f153e8bf
6
+ metadata.gz: e436ada7729c2c837573c31e704c799771998338df4d00677eb59853be900e5b500fcf0410141f64c981fc1b80a4d25f573441259b6a8eaa2eed847eb6615bcd
7
+ data.tar.gz: 2193e6806968bfa552f17c9a2c79fca9a05608730397aac7aec4db4d1eab1ba47f21d919586a1b5dc6c1f0f7bbc7b0f4cbfbaf669d88bd6df5d7756ebe0f3736
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.9.3)
4
+ bolognese (0.9.4)
5
5
  activesupport (>= 4.2.5)
6
6
  bibtex-ruby (~> 4.1)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -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
- response = Maremma.get(id, accept: "application/vnd.crossref.unixref+xml", host: true, raw: true)
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? ? Maremma.from_xml(raw).fetch("doi_records", {}).fetch("doi_record", {}) : {}
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?
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
@@ -29,7 +29,7 @@ http_interactions:
29
29
  Content-Type:
30
30
  - application/vnd.api+json; charset=utf-8
31
31
  Date:
32
- - Tue, 18 Apr 2017 18:28:05 GMT
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
- - b6886db1-cbeb-4be6-855a-929a807c14fc
48
+ - 2d99412d-a622-4e13-9b87-70f8e0b9646b
49
49
  X-Runtime:
50
- - '0.772071'
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: Tue, 18 Apr 2017 18:28:05 GMT
59
+ recorded_at: Thu, 20 Apr 2017 20:22:10 GMT
62
60
  - request:
63
61
  method: get
64
- uri: https://doi.org/10.7554/elife.01567
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
- - application/vnd.crossref.unixref+xml
70
+ - text/xml
73
71
  response:
74
72
  status:
75
- code: 303
73
+ code: 200
76
74
  message: ''
77
75
  headers:
78
76
  Server:
79
77
  - Apache-Coyote/1.1
80
- Vary:
81
- - Accept
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/html;charset=utf-8
88
- Content-Length:
89
- - '177'
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
- - Tue, 18 Apr 2017 18:28:06 GMT
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: Tue, 18 Apr 2017 18:28:06 GMT
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
- - Tue, 18 Apr 2017 18:28:00 GMT
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
- - 8e173f08-f41f-4142-bb07-9ab28e17bc47
48
+ - 4a981e49-8f21-4b01-bbbe-1b0d53a3bfb1
49
49
  X-Runtime:
50
- - '0.329946'
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: Tue, 18 Apr 2017 18:28:00 GMT
59
+ recorded_at: Thu, 20 Apr 2017 20:22:14 GMT
62
60
  - request:
63
61
  method: get
64
- uri: https://doi.org/10.7554/elife.01567
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
- - application/vnd.crossref.unixref+xml
70
+ - text/xml
73
71
  response:
74
72
  status:
75
- code: 303
73
+ code: 200
76
74
  message: ''
77
75
  headers:
78
76
  Server:
79
77
  - Apache-Coyote/1.1
80
- Vary:
81
- - Accept
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/html;charset=utf-8
88
- Content-Length:
89
- - '177'
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
- - Tue, 18 Apr 2017 18:28:00 GMT
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: Tue, 18 Apr 2017 18:28:01 GMT
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
- - Tue, 18 Apr 2017 18:27:58 GMT
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
- - aac01895-c2ee-48e1-9fcf-5a8bc6add205
48
+ - 10adaa88-14d2-44b1-bfef-ffe701bea8d9
49
49
  X-Runtime:
50
- - '0.370228'
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: Tue, 18 Apr 2017 18:27:58 GMT
61
+ recorded_at: Thu, 20 Apr 2017 20:22:09 GMT
60
62
  - request:
61
63
  method: get
62
- uri: https://doi.org/10.7554/elife.01567
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
- - application/vnd.crossref.unixref+xml
72
+ - text/xml
71
73
  response:
72
74
  status:
73
- code: 303
75
+ code: 200
74
76
  message: ''
75
77
  headers:
76
78
  Server:
77
79
  - Apache-Coyote/1.1
78
- Vary:
79
- - Accept
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
- - application/vnd.crossref.unixref+xml
127
- Content-Length:
128
- - '28603'
129
- Server:
130
- - http-kit
83
+ - text/xml;charset=UTF-8
84
+ Content-Language:
85
+ - en-US
131
86
  Date:
132
- - Tue, 18 Apr 2017 18:27:59 GMT
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: Tue, 18 Apr 2017 18:27:59 GMT
730
+ recorded_at: Thu, 20 Apr 2017 20:22:10 GMT
780
731
  recorded_with: VCR 3.0.3