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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.7554/elife.01567
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
- - application/vnd.crossref.unixref+xml
13
+ - text/xml
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
19
  Server:
20
20
  - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
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:48 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:48 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
- - application/vnd.crossref.unixref+xml
70
- Content-Length:
71
- - '28603'
72
- Server:
73
- - http-kit
24
+ - text/xml;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
74
27
  Date:
75
- - Tue, 18 Apr 2017 18:28:49 GMT
76
- X-Rate-Limit-Limit:
77
- - '50'
78
- X-Rate-Limit-Interval:
79
- - 1s
28
+ - Thu, 20 Apr 2017 20:22:27 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: Tue, 18 Apr 2017 18:28:49 GMT
671
+ recorded_at: Thu, 20 Apr 2017 20:22:27 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: https://doi.org/10.1016/j.ejphar.2015.03.018
5
+ uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1016/j.ejphar.2015.03.018&noredirect=true&pid=tech@datacite.org
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,75 +10,22 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.crossref.unixref+xml
13
+ - text/xml
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
19
  Server:
20
20
  - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
23
- Location:
24
- - http://data.crossref.org/10.1016%2Fj.ejphar.2015.03.018
25
- Expires:
26
- - Tue, 18 Apr 2017 18:39:23 GMT
27
- Link:
28
- - <https://api.elsevier.com/content/usage/doi/>; rel="dul"
29
- Content-Type:
30
- - text/html;charset=utf-8
31
- Content-Length:
32
- - '195'
33
- Date:
34
- - Tue, 18 Apr 2017 18:28:51 GMT
35
- body:
36
- encoding: UTF-8
37
- string: |-
38
- <html><head><title>Handle Redirect</title></head>
39
- <body><a href="http://data.crossref.org/10.1016%2Fj.ejphar.2015.03.018">http://data.crossref.org/10.1016%2Fj.ejphar.2015.03.018</a></body></html>
40
- http_version:
41
- recorded_at: Tue, 18 Apr 2017 18:28:52 GMT
42
- - request:
43
- method: get
44
- uri: http://data.crossref.org/10.1016%2Fj.ejphar.2015.03.018
45
- body:
46
- encoding: US-ASCII
47
- string: ''
48
- headers:
49
- User-Agent:
50
- - Maremma - https://github.com/datacite/maremma
51
- Accept:
52
- - application/vnd.crossref.unixref+xml
53
- response:
54
- status:
55
- code: 200
56
- message: ''
57
- headers:
58
- Access-Control-Allow-Origin:
59
- - "*"
60
- Access-Control-Allow-Headers:
61
- - X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
62
- Accept-Ranges, Cache-Control
63
- Access-Control-Expose-Headers:
64
- - Link
65
- Link:
66
- - <http://dx.doi.org/10.1016/j.ejphar.2015.03.018>; rel="canonical", <http://api.elsevier.com/content/article/PII:S0014299915002332?httpAccept=text/xml>;
67
- version="vor"; type="text/xml"; rel="item", <http://api.elsevier.com/content/article/PII:S0014299915002332?httpAccept=text/plain>;
68
- version="vor"; type="text/plain"; rel="item", <http://www.elsevier.com/tdm/userlicense/1.0/>;
69
- version="tdm"; rel="license"
21
+ Crossref-Deployment-Name:
22
+ - qs3-1
70
23
  Content-Type:
71
- - application/vnd.crossref.unixref+xml
72
- Content-Length:
73
- - '6390'
74
- Server:
75
- - http-kit
24
+ - text/xml;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
76
27
  Date:
77
- - Tue, 18 Apr 2017 18:28:52 GMT
78
- X-Rate-Limit-Limit:
79
- - '50'
80
- X-Rate-Limit-Interval:
81
- - 1s
28
+ - Thu, 20 Apr 2017 20:22:28 GMT
82
29
  Connection:
83
30
  - close
84
31
  body:
@@ -227,5 +174,5 @@ http_interactions:
227
174
  ICAgIDwvam91cm5hbF9hcnRpY2xlPg0KICAgICAgPC9qb3VybmFsPg0KICAg
228
175
  IDwvY3Jvc3NyZWY+DQogIDwvZG9pX3JlY29yZD4NCjwvZG9pX3JlY29yZHM+
229
176
  http_version:
230
- recorded_at: Tue, 18 Apr 2017 18:28:52 GMT
177
+ recorded_at: Thu, 20 Apr 2017 20:22:29 GMT
231
178
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.1371/journal.pone.0000030
5
+ uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1371/journal.pone.0000030&noredirect=true&pid=tech@datacite.org
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,71 +10,22 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.crossref.unixref+xml
13
+ - text/xml
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
19
  Server:
20
20
  - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
23
- Location:
24
- - http://data.crossref.org/10.1371%2Fjournal.pone.0000030
25
- Expires:
26
- - Tue, 18 Apr 2017 18:39:23 GMT
27
- Content-Type:
28
- - text/html;charset=utf-8
29
- Content-Length:
30
- - '195'
31
- Date:
32
- - Tue, 18 Apr 2017 18:28:47 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.1371%2Fjournal.pone.0000030">http://data.crossref.org/10.1371%2Fjournal.pone.0000030</a></body></html>
38
- http_version:
39
- recorded_at: Tue, 18 Apr 2017 18:28:47 GMT
40
- - request:
41
- method: get
42
- uri: http://data.crossref.org/10.1371%2Fjournal.pone.0000030
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.1371/journal.pone.0000030>; rel="canonical", <http://creativecommons.org/licenses/by/4.0/>;
65
- version="vor"; rel="license"
21
+ Crossref-Deployment-Name:
22
+ - qs3-1
66
23
  Content-Type:
67
- - application/vnd.crossref.unixref+xml
68
- Content-Length:
69
- - '38186'
70
- Server:
71
- - http-kit
24
+ - text/xml;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
72
27
  Date:
73
- - Tue, 18 Apr 2017 18:28:48 GMT
74
- X-Rate-Limit-Limit:
75
- - '50'
76
- X-Rate-Limit-Interval:
77
- - 1s
28
+ - Thu, 20 Apr 2017 20:22:27 GMT
78
29
  Connection:
79
30
  - close
80
31
  body:
@@ -930,5 +881,5 @@ http_interactions:
930
881
  bGU+DQogICAgICA8L2pvdXJuYWw+DQogICAgPC9jcm9zc3JlZj4NCiAgPC9k
931
882
  b2lfcmVjb3JkPg0KPC9kb2lfcmVjb3Jkcz4=
932
883
  http_version:
933
- recorded_at: Tue, 18 Apr 2017 18:28:48 GMT
884
+ recorded_at: Thu, 20 Apr 2017 20:22:27 GMT
934
885
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.7554/elife.01567x
5
+ uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.7554/elife.01567x&noredirect=true&pid=tech@datacite.org
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,84 +10,29 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.crossref.unixref+xml
13
+ - text/xml
14
14
  response:
15
15
  status:
16
- code: 404
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
19
  Server:
20
20
  - Apache-Coyote/1.1
21
+ Crossref-Deployment-Name:
22
+ - qs3-1
21
23
  Content-Type:
22
- - text/html;charset=utf-8
23
- Content-Length:
24
- - '4988'
24
+ - text/xml;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
25
27
  Date:
26
- - Tue, 18 Apr 2017 18:28:52 GMT
28
+ - Thu, 20 Apr 2017 20:22:28 GMT
29
+ Connection:
30
+ - close
27
31
  body:
28
32
  encoding: UTF-8
29
- string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n
30
- \ \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html>\n<head>\n<title>Error:
31
- DOI Not Found</title>\n\n<meta http-equiv=\"Content-Type\" content=\"text/html;
32
- charset=UTF-8\" />\n\n<link rel=\"icon\" href=\"/static/img/favicon.png\"
33
- />\n<link rel=\"shortcut icon\" href=\"/static/favicon.ico\" type=\"image/x-icon\"
34
- /> \n<link href=\"/static/style/new-style2.css\" rel=\"stylesheet\" type=\"text/css\"
35
- />\n</head>\n\n<body>\n\n\n<div style=\"background:#fcb426\">\n<img src=\"/static/img/banner-413.gif\"
36
- alt=\"Logo\" width=\"620\" height=\"137\" border=\"0\" />\n</div>\n\n<div
37
- style=\"height:1px;background:#000000\"></div>\n<div style=\"height:1px;background:#54524f\"></div>\n<div
38
- style=\"height:1px;background:#f6911e\"></div>\n\n\n<!-- TABLE FOR NAVIGATION
39
- BAR -->\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
40
- id=\"navtable\" align=\"center\">\n<tr>\n <td width=\"34\" height=\"26\"
41
- bgcolor=\"#231f20\"><img src=\"/static/img/transparent.gif\" alt=\"\" width=\"1\"
42
- height=\"1\" /></td>\n \n <td height=\"26\" bgcolor=\"#231f20\" class=\"navtext\">\n
43
- \ <a href=\"http://www.doi.org/index.html\">HOME</a> &nbsp;|&nbsp;<a href=\"http://www.doi.org/hb.html\">HANDBOOK</a>
44
- &nbsp;|&nbsp;<a href=\"http://www.doi.org/factsheets.html\">FACTSHEETS</a>
45
- &nbsp;|&nbsp;<a href=\"http://www.doi.org/faq.html\">FAQs</a> &nbsp;|&nbsp;
46
- <a href=\"http://www.doi.org/resources.html\">RESOURCES</a> &nbsp;|&nbsp;<a
47
- href=\"http://www.doi.org/users.html\">USERS</a> &nbsp;|&nbsp;<a href=\"http://www.doi.org/announce.html\">NEWS</a>
48
- &nbsp;|&nbsp;<a href=\"http://www.doi.org/idf-members/index.html\">MEMBERS
49
- AREA</a>\n </td> \n </tr>\n</table>\n<!-- END TABLE FOR NAVIGATION
50
- BAR -->\n\n<div style=\"height:1px;background:#e3a44d\"></div>\n<div style=\"height:3px;background:#4d4942\"></div>\n\n\n\n<!--
51
- TABLE FOR CONTENT --> \n<table width=\"100%\" border=\"0\" cellpadding=\"0\"
52
- cellspacing=\"0\" bgcolor=\"#ffffff\">\n<tr>\n<td colspan=\"6\">\n<img src=\"/static/img/transparent.gif\"
53
- alt=\"\" width=\"100\" height=\"20\" border=\"0\" />\n</td>\n</tr>\n\n<tr>\n\n<td
54
- valign=\"top\">\n\n<h2>DOI Not Found</h2>\n\n<div class=\"divider\">&nbsp;</div>\n\n\n\n<h3>10.7554/elife.01567x</h3>\n\n<div
55
- class=\"divider\">&nbsp;</div>\n\n\n\n\n<p>This DOI cannot be found in the
56
- DOI System. Possible reasons are:</p>\n\n\n<ul>\n\n<li style=\"padding-bottom:
57
- .5em;\">The DOI is incorrect in your source. Search for the item by name,
58
- title, or other metadata using a search engine.</li>\n\n<li style=\"padding-bottom:
59
- .5em;\">The DOI was copied incorrectly. Check to see that the string includes
60
- all the characters before and after the slash and no sentence punctuation
61
- marks.</li>\n\n<li style=\"padding-bottom: .5em;\">The DOI has not been activated
62
- yet. Please try again later, and report the problem if the error continues.</li>\n\n</ul>\n\n\n\n<div
63
- class=\"divider\">&nbsp;</div>\n\n<p>You may report this error to the responsible
64
- DOI Registration Agency using the form below. Include your email address
65
- to receive confirmation and feedback.</p>\n\n<div style=\"padding-left: 4em;\">\n\n<form
66
- action=\"/notfound\" method=\"post\" enctype=\"application/x-www-form-urlencoded\"
67
- name=\"notFoundForm\">\n\n\n<table border=\"0\" cellspacing=\"3\" cellpadding=\"3\">\n<tbody>\n<tr>\n<td>\n\n<table
68
- border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">\n<tbody><tr>\n<th
69
- \ align=\"right\" scope=\"row\"><label>DOI:</label></th>\n<td><input name=\"missingHandle\"
70
- type=\"text\" value=\"10.7554/elife.01567x\" size=\"42\" readonly=\"readonly\"
71
- /></td>\n</tr>\n<tr>\n<th align=\"right\" scope=\"row\"><label>URL of Web
72
- Page Listing the DOI:</label></th>\n<td><input name=\"referringPage\" type=\"text\"
73
- value=\"\" size=\"42\" readonly=\"readonly\" /></td>\n</tr>\n<tr>\n<th align=\"right\"
74
- scope=\"row\">Your Email Address:</th>\n<td><input name=\"userEmailAddress\"
75
- type=\"text\" value=\"Please enter your email address\" size=\"42\" /></td>\n</tr>\n<tr>\n<th
76
- align=\"right\" scope=\"row\" valign=\"top\">Additional Information About
77
- the Error:</th>\n<td><textarea name=\"comments\" cols=\"30\" rows=\"6\"></textarea></td>\n</tr>\n</tbody>\n</table>\n\n</td>\n</tr>\n<tr>\n\n<td
78
- align=\"right\"><p><input name=\"send\" type=\"submit\" value=\"Submit Error
79
- Report\" /></p></td>\n</tr>\n</tbody>\n</table>\n\n</form>\n</div>\n\n\n\n\n</td>\n<td><img
80
- src=\"/static/img/transparent.gif\" alt=\"\" width=\"20\" height=\"20\" border=\"0\"
81
- /></td>\n</tr>\n</table>\n\n<div class=\"divider-full\">&nbsp;</div>\n\n<!--
82
- TABLE FOR FOOTER -->\n\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
83
- align=\"center\">\n\n<tr>\n<td align=\"center\" colspan=\"2\">\n<a href=\"/help.html\">DOI
84
- System Proxy Server Documentation</a>\n</td>\n</tr>\n\n<tr>\n<td align=\"left\"
85
- height=\"40\">\n<img src=\"/static/img/Logo_TM.png\" alt=\"DOI_disc_logo\"
86
- width=\"24\" height=\"24\" />\n</td>\n\n<td align=\"left\">\n<span style=\"padding-left:
87
- 0px; font-size: 11px;\"><span style=\"vertical-align: super;\">&reg;</span>,
88
- DOI<span style=\"vertical-align: super;\">&reg;</span>, DOI.ORG<span style=\"vertical-align:
89
- super;\">&reg;</span>, and shortDOI<span style=\"vertical-align: super;\">&reg;</span>
90
- are trademarks of the International DOI Foundation.</span>\n</td> \n</tr>\n</table>\n</body>\n</html>\n"
33
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<doi_records>\r\n <doi_record>\r\n
34
+ \ <crossref>\r\n <error>doi:10.7554/elife.01567x</error>\r\n </crossref>\r\n
35
+ \ </doi_record>\r\n</doi_records>"
91
36
  http_version:
92
- recorded_at: Tue, 18 Apr 2017 18:28:53 GMT
37
+ recorded_at: Thu, 20 Apr 2017 20:22:28 GMT
93
38
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.1101/097196
5
+ uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1101/097196&noredirect=true&pid=tech@datacite.org
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,89 +10,22 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.crossref.unixref+xml
13
+ - text/xml
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
19
  Server:
20
20
  - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
23
- Location:
24
- - http://data.crossref.org/10.1101%2F097196
25
- Expires:
26
- - Tue, 18 Apr 2017 18:39:23 GMT
27
- Content-Type:
28
- - text/html;charset=utf-8
29
- Content-Length:
30
- - '167'
31
- Date:
32
- - Tue, 18 Apr 2017 18:28:49 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.1101%2F097196">http://data.crossref.org/10.1101%2F097196</a></body></html>
38
- http_version:
39
- recorded_at: Tue, 18 Apr 2017 18:28:50 GMT
40
- - request:
41
- method: get
42
- uri: http://data.crossref.org/10.1101%2F097196
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
- - !binary |-
65
- PGh0dHA6Ly9keC5kb2kub3JnLzEwLjExMDEvMDk3MTk2PjsgcmVsPSJjYW5v
66
- bmljYWwiLCA8aHR0cDovL29yY2lkLm9yZy8wMDAwLTAwMDMtMTQxOS0yNDA1
67
- PjsgdGl0bGU9Ik1hcnRpbiBGZW5uZXIiOyByZWw9ImF1dGhvciIsIDxodHRw
68
- Oi8vb3JjaWQub3JnLzAwMDAtMDAwMy0xMzA0LTE5Mzk+OyB0aXRsZT0iTWVy
69
- Y8OoIENyb3NhcyI7IHJlbD0iYXV0aG9yIiwgPGh0dHA6Ly9vcmNpZC5vcmcv
70
- MDAwMC0wMDAxLTUyMTItNzA1Mj47IHRpdGxlPSJKZWZmcmV5IEdyZXRoZSI7
71
- IHJlbD0iYXV0aG9yIiwgPGh0dHA6Ly9vcmNpZC5vcmcvMDAwMC0wMDAyLTkz
72
- NzctMDc5Nz47IHRpdGxlPSJEYXZpZCBLZW5uZWR5IjsgcmVsPSJhdXRob3Ii
73
- LCA8aHR0cDovL29yY2lkLm9yZy8wMDAwLTAwMDEtODQ3OS0wMjYyPjsgdGl0
74
- bGU9Ikhlbm5pbmcgSGVybWpha29iIjsgcmVsPSJhdXRob3IiLCA8aHR0cDov
75
- L29yY2lkLm9yZy8wMDAwLTAwMDEtOTg1My01NjY4PjsgdGl0bGU9IlBoaWxp
76
- cHBlIFJvY2NhLVNlcnJhIjsgcmVsPSJhdXRob3IiLCA8aHR0cDovL29yY2lk
77
- Lm9yZy8wMDAwLTAwMDItMTczMS01MzQ2PjsgdGl0bGU9IlJvYmluIEJlcmpv
78
- biI7IHJlbD0iYXV0aG9yIiwgPGh0dHA6Ly9vcmNpZC5vcmcvMDAwMC0wMDAx
79
- LTgyNDktNzM4OD47IHRpdGxlPSJTZWJhc3RpYW4gS2FyY2hlciI7IHJlbD0i
80
- YXV0aG9yIiwgPGh0dHA6Ly9vcmNpZC5vcmcvMDAwMC0wMDAyLTg0MDYtMzg3
81
- MT47IHRpdGxlPSJNYXJ5YW5uIE1hcnRvbmUiOyByZWw9ImF1dGhvciIsIDxo
82
- dHRwOi8vb3JjaWQub3JnLzAwMDAtMDAwMy00MDYwLTczNjA+OyB0aXRsZT0i
83
- VGltb3RoeSBDbGFyayI7IHJlbD0iYXV0aG9yIg==
21
+ Crossref-Deployment-Name:
22
+ - cr6-1
84
23
  Content-Type:
85
- - application/vnd.crossref.unixref+xml
86
- Content-Length:
87
- - '4840'
88
- Server:
89
- - http-kit
24
+ - text/xml;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
90
27
  Date:
91
- - Tue, 18 Apr 2017 18:28:51 GMT
92
- X-Rate-Limit-Limit:
93
- - '50'
94
- X-Rate-Limit-Interval:
95
- - 1s
28
+ - Thu, 20 Apr 2017 20:22:27 GMT
96
29
  Connection:
97
30
  - close
98
31
  body:
@@ -207,5 +140,5 @@ http_interactions:
207
140
  ICAgPC9wb3N0ZWRfY29udGVudD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8L2Rv
208
141
  aV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
209
142
  http_version:
210
- recorded_at: Tue, 18 Apr 2017 18:28:51 GMT
143
+ recorded_at: Thu, 20 Apr 2017 20:22:28 GMT
211
144
  recorded_with: VCR 3.0.3