cirneco 0.7.4 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/lib/cirneco/api.rb +8 -8
  4. data/lib/cirneco/base.rb +1 -1
  5. data/lib/cirneco/doi.rb +20 -9
  6. data/lib/cirneco/utils.rb +204 -128
  7. data/lib/cirneco/version.rb +1 -1
  8. data/lib/cirneco/work.rb +19 -7
  9. data/spec/api_spec.rb +10 -10
  10. data/spec/doi_spec.rb +29 -27
  11. data/spec/fixtures/cool-dois-minted.html +404 -0
  12. data/spec/fixtures/cool-dois-minted.html.md +99 -0
  13. data/spec/fixtures/cool-dois-missing-metadata.html +356 -0
  14. data/spec/fixtures/cool-dois-no-json-ld.html +352 -0
  15. data/spec/fixtures/cool-dois.html +404 -0
  16. data/spec/fixtures/cool-dois.html.md +1 -0
  17. data/spec/fixtures/index.html +271 -0
  18. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +499 -4
  19. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +44 -0
  20. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_url.yml +44 -0
  21. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_metadata_for_work.yml +8 -4
  22. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +130 -0
  23. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_url.yml +130 -0
  24. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +130 -0
  25. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_url.yml +130 -0
  26. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_post_metadata_for_work.yml +25 -20
  27. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_all_dois.yml +499 -4
  28. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_doi.yml +8 -4
  29. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/put/should_put_doi.yml +8 -4
  30. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_a_doi.yml +44 -0
  31. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +44 -0
  32. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_a_doi.yml +130 -0
  33. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_a_doi.yml +130 -0
  34. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +130 -0
  35. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +130 -0
  36. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +499 -4
  37. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +8 -4
  38. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +8 -4
  39. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +8 -4
  40. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +8 -4
  41. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +8 -4
  42. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +10 -5
  43. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +11 -6
  44. data/spec/utils_spec.rb +105 -48
  45. data/spec/work_spec.rb +4 -4
  46. metadata +20 -2
@@ -0,0 +1,130 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mds-sandbox.datacite.org/metadata
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
11
+ <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
12
+ <creators>
13
+ <creator>
14
+ <creatorName>Fenner, Martin</creatorName>
15
+ <givenName>Martin</givenName>
16
+ <familyName>Fenner</familyName>
17
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
18
+ </creator>
19
+ </creators>
20
+ <titles>
21
+ <title>Cool DOI's</title>
22
+ </titles>
23
+ <publisher>DataCite</publisher>
24
+ <publicationYear>2016</publicationYear>
25
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
+ <alternateIdentifiers>
27
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
28
+ </alternateIdentifiers>
29
+ <subjects>
30
+ <subject>doi</subject>
31
+ </subjects>
32
+ <dates>
33
+ <date dateType="Created">2016-12-15</date>
34
+ <date dateType="Issued">2016-12-15</date>
35
+ <date dateType="Updated">2016-12-15</date>
36
+ </dates>
37
+ <relatedIdentifiers>
38
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
+ </relatedIdentifiers>
41
+ <version>1.0</version>
42
+ <descriptions>
43
+ <description descriptionType="Abstract">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...</description>
44
+ </descriptions>
45
+ </resource>
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Content-Type:
50
+ - application/xml;charset=UTF-8
51
+ Accept:
52
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
53
+ Authorization:
54
+ - Basic <MDS_TOKEN>
55
+ response:
56
+ status:
57
+ code: 201
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - openresty/1.11.2.1
62
+ Date:
63
+ - Sun, 01 Jan 2017 15:59:34 GMT
64
+ Content-Type:
65
+ - text/html;charset=UTF-8
66
+ Connection:
67
+ - keep-alive
68
+ Pragma:
69
+ - no-cache
70
+ Expires:
71
+ - Thu, 01 Jan 1970 00:00:00 GMT
72
+ Cache-Control:
73
+ - no-cache, no-store
74
+ Location:
75
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Access-Control-Allow-Methods:
79
+ - GET, POST, OPTIONS
80
+ body:
81
+ encoding: UTF-8
82
+ string: OK (10.5072/0000-03VC)
83
+ http_version:
84
+ recorded_at: Sun, 01 Jan 2017 15:59:34 GMT
85
+ - request:
86
+ method: put
87
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
88
+ body:
89
+ encoding: UTF-8
90
+ string: |-
91
+ doi=10.5072/0000-03VC
92
+ url=https://blog.datacite.org/cool-dois/
93
+ headers:
94
+ User-Agent:
95
+ - Maremma - https://github.com/datacite/maremma
96
+ Content-Type:
97
+ - text/plain;charset=UTF-8
98
+ Accept:
99
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
100
+ Authorization:
101
+ - Basic <MDS_TOKEN>
102
+ response:
103
+ status:
104
+ code: 201
105
+ message: ''
106
+ headers:
107
+ Server:
108
+ - openresty/1.11.2.1
109
+ Date:
110
+ - Sun, 01 Jan 2017 15:59:35 GMT
111
+ Content-Type:
112
+ - text/html;charset=UTF-8
113
+ Connection:
114
+ - keep-alive
115
+ Pragma:
116
+ - no-cache
117
+ Expires:
118
+ - Thu, 01 Jan 1970 00:00:00 GMT
119
+ Cache-Control:
120
+ - no-cache, no-store
121
+ Access-Control-Allow-Origin:
122
+ - "*"
123
+ Access-Control-Allow-Methods:
124
+ - GET, POST, OPTIONS
125
+ body:
126
+ encoding: UTF-8
127
+ string: OK
128
+ http_version:
129
+ recorded_at: Sun, 01 Jan 2017 15:59:35 GMT
130
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,130 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mds-sandbox.datacite.org/metadata
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
11
+ <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
12
+ <creators>
13
+ <creator>
14
+ <creatorName>Fenner, Martin</creatorName>
15
+ <givenName>Martin</givenName>
16
+ <familyName>Fenner</familyName>
17
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
18
+ </creator>
19
+ </creators>
20
+ <titles>
21
+ <title>Cool DOI's</title>
22
+ </titles>
23
+ <publisher>DataCite</publisher>
24
+ <publicationYear>2016</publicationYear>
25
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
+ <alternateIdentifiers>
27
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
28
+ </alternateIdentifiers>
29
+ <subjects>
30
+ <subject>doi</subject>
31
+ </subjects>
32
+ <dates>
33
+ <date dateType="Created">2016-12-15</date>
34
+ <date dateType="Issued">2016-12-15</date>
35
+ <date dateType="Updated">2016-12-15</date>
36
+ </dates>
37
+ <relatedIdentifiers>
38
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
+ </relatedIdentifiers>
41
+ <version>1.0</version>
42
+ <descriptions>
43
+ <description descriptionType="Abstract">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...</description>
44
+ </descriptions>
45
+ </resource>
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Content-Type:
50
+ - application/xml;charset=UTF-8
51
+ Accept:
52
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
53
+ Authorization:
54
+ - Basic <MDS_TOKEN>
55
+ response:
56
+ status:
57
+ code: 201
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - openresty/1.11.2.1
62
+ Date:
63
+ - Sun, 01 Jan 2017 15:59:31 GMT
64
+ Content-Type:
65
+ - text/html;charset=UTF-8
66
+ Connection:
67
+ - keep-alive
68
+ Pragma:
69
+ - no-cache
70
+ Expires:
71
+ - Thu, 01 Jan 1970 00:00:00 GMT
72
+ Cache-Control:
73
+ - no-cache, no-store
74
+ Location:
75
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Access-Control-Allow-Methods:
79
+ - GET, POST, OPTIONS
80
+ body:
81
+ encoding: UTF-8
82
+ string: OK (10.5072/0000-03VC)
83
+ http_version:
84
+ recorded_at: Sun, 01 Jan 2017 15:59:31 GMT
85
+ - request:
86
+ method: put
87
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
88
+ body:
89
+ encoding: UTF-8
90
+ string: |-
91
+ doi=10.5072/0000-03VC
92
+ url=https://blog.datacite.org/cool-dois/
93
+ headers:
94
+ User-Agent:
95
+ - Maremma - https://github.com/datacite/maremma
96
+ Content-Type:
97
+ - text/plain;charset=UTF-8
98
+ Accept:
99
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
100
+ Authorization:
101
+ - Basic <MDS_TOKEN>
102
+ response:
103
+ status:
104
+ code: 201
105
+ message: ''
106
+ headers:
107
+ Server:
108
+ - openresty/1.11.2.1
109
+ Date:
110
+ - Sun, 01 Jan 2017 15:59:31 GMT
111
+ Content-Type:
112
+ - text/html;charset=UTF-8
113
+ Connection:
114
+ - keep-alive
115
+ Pragma:
116
+ - no-cache
117
+ Expires:
118
+ - Thu, 01 Jan 1970 00:00:00 GMT
119
+ Cache-Control:
120
+ - no-cache, no-store
121
+ Access-Control-Allow-Origin:
122
+ - "*"
123
+ Access-Control-Allow-Methods:
124
+ - GET, POST, OPTIONS
125
+ body:
126
+ encoding: UTF-8
127
+ string: OK
128
+ http_version:
129
+ recorded_at: Sun, 01 Jan 2017 15:59:31 GMT
130
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,130 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mds-sandbox.datacite.org/metadata
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
11
+ <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
12
+ <creators>
13
+ <creator>
14
+ <creatorName>Fenner, Martin</creatorName>
15
+ <givenName>Martin</givenName>
16
+ <familyName>Fenner</familyName>
17
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
18
+ </creator>
19
+ </creators>
20
+ <titles>
21
+ <title>Cool DOI's</title>
22
+ </titles>
23
+ <publisher>DataCite</publisher>
24
+ <publicationYear>2016</publicationYear>
25
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
+ <alternateIdentifiers>
27
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
28
+ </alternateIdentifiers>
29
+ <subjects>
30
+ <subject>doi</subject>
31
+ </subjects>
32
+ <dates>
33
+ <date dateType="Created">2016-12-15</date>
34
+ <date dateType="Issued">2016-12-15</date>
35
+ <date dateType="Updated">2016-12-15</date>
36
+ </dates>
37
+ <relatedIdentifiers>
38
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
+ </relatedIdentifiers>
41
+ <version>1.0</version>
42
+ <descriptions>
43
+ <description descriptionType="Abstract">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...</description>
44
+ </descriptions>
45
+ </resource>
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Content-Type:
50
+ - application/xml;charset=UTF-8
51
+ Accept:
52
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
53
+ Authorization:
54
+ - Basic <MDS_TOKEN>
55
+ response:
56
+ status:
57
+ code: 201
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - openresty/1.11.2.1
62
+ Date:
63
+ - Sun, 01 Jan 2017 15:59:32 GMT
64
+ Content-Type:
65
+ - text/html;charset=UTF-8
66
+ Connection:
67
+ - keep-alive
68
+ Pragma:
69
+ - no-cache
70
+ Expires:
71
+ - Thu, 01 Jan 1970 00:00:00 GMT
72
+ Cache-Control:
73
+ - no-cache, no-store
74
+ Location:
75
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Access-Control-Allow-Methods:
79
+ - GET, POST, OPTIONS
80
+ body:
81
+ encoding: UTF-8
82
+ string: OK (10.5072/0000-03VC)
83
+ http_version:
84
+ recorded_at: Sun, 01 Jan 2017 15:59:32 GMT
85
+ - request:
86
+ method: put
87
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
88
+ body:
89
+ encoding: UTF-8
90
+ string: |-
91
+ doi=10.5072/0000-03VC
92
+ url=https://blog.datacite.org/cool-dois/
93
+ headers:
94
+ User-Agent:
95
+ - Maremma - https://github.com/datacite/maremma
96
+ Content-Type:
97
+ - text/plain;charset=UTF-8
98
+ Accept:
99
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
100
+ Authorization:
101
+ - Basic <MDS_TOKEN>
102
+ response:
103
+ status:
104
+ code: 201
105
+ message: ''
106
+ headers:
107
+ Server:
108
+ - openresty/1.11.2.1
109
+ Date:
110
+ - Sun, 01 Jan 2017 15:59:33 GMT
111
+ Content-Type:
112
+ - text/html;charset=UTF-8
113
+ Connection:
114
+ - keep-alive
115
+ Pragma:
116
+ - no-cache
117
+ Expires:
118
+ - Thu, 01 Jan 1970 00:00:00 GMT
119
+ Cache-Control:
120
+ - no-cache, no-store
121
+ Access-Control-Allow-Origin:
122
+ - "*"
123
+ Access-Control-Allow-Methods:
124
+ - GET, POST, OPTIONS
125
+ body:
126
+ encoding: UTF-8
127
+ string: OK
128
+ http_version:
129
+ recorded_at: Sun, 01 Jan 2017 15:59:33 GMT
130
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,130 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mds-sandbox.datacite.org/metadata
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
11
+ <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
12
+ <creators>
13
+ <creator>
14
+ <creatorName>Fenner, Martin</creatorName>
15
+ <givenName>Martin</givenName>
16
+ <familyName>Fenner</familyName>
17
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
18
+ </creator>
19
+ </creators>
20
+ <titles>
21
+ <title>Cool DOI's</title>
22
+ </titles>
23
+ <publisher>DataCite</publisher>
24
+ <publicationYear>2016</publicationYear>
25
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
+ <alternateIdentifiers>
27
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
28
+ </alternateIdentifiers>
29
+ <subjects>
30
+ <subject>doi</subject>
31
+ </subjects>
32
+ <dates>
33
+ <date dateType="Created">2016-12-15</date>
34
+ <date dateType="Issued">2016-12-15</date>
35
+ <date dateType="Updated">2016-12-15</date>
36
+ </dates>
37
+ <relatedIdentifiers>
38
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
+ </relatedIdentifiers>
41
+ <version>1.0</version>
42
+ <descriptions>
43
+ <description descriptionType="Abstract">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...</description>
44
+ </descriptions>
45
+ </resource>
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Content-Type:
50
+ - application/xml;charset=UTF-8
51
+ Accept:
52
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
53
+ Authorization:
54
+ - Basic <MDS_TOKEN>
55
+ response:
56
+ status:
57
+ code: 201
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - openresty/1.11.2.1
62
+ Date:
63
+ - Sun, 01 Jan 2017 15:59:29 GMT
64
+ Content-Type:
65
+ - text/html;charset=UTF-8
66
+ Connection:
67
+ - keep-alive
68
+ Pragma:
69
+ - no-cache
70
+ Expires:
71
+ - Thu, 01 Jan 1970 00:00:00 GMT
72
+ Cache-Control:
73
+ - no-cache, no-store
74
+ Location:
75
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Access-Control-Allow-Methods:
79
+ - GET, POST, OPTIONS
80
+ body:
81
+ encoding: UTF-8
82
+ string: OK (10.5072/0000-03VC)
83
+ http_version:
84
+ recorded_at: Sun, 01 Jan 2017 15:59:29 GMT
85
+ - request:
86
+ method: put
87
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
88
+ body:
89
+ encoding: UTF-8
90
+ string: |-
91
+ doi=10.5072/0000-03VC
92
+ url=https://blog.datacite.org/cool-dois/
93
+ headers:
94
+ User-Agent:
95
+ - Maremma - https://github.com/datacite/maremma
96
+ Content-Type:
97
+ - text/plain;charset=UTF-8
98
+ Accept:
99
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
100
+ Authorization:
101
+ - Basic <MDS_TOKEN>
102
+ response:
103
+ status:
104
+ code: 201
105
+ message: ''
106
+ headers:
107
+ Server:
108
+ - openresty/1.11.2.1
109
+ Date:
110
+ - Sun, 01 Jan 2017 15:59:29 GMT
111
+ Content-Type:
112
+ - text/html;charset=UTF-8
113
+ Connection:
114
+ - keep-alive
115
+ Pragma:
116
+ - no-cache
117
+ Expires:
118
+ - Thu, 01 Jan 1970 00:00:00 GMT
119
+ Cache-Control:
120
+ - no-cache, no-store
121
+ Access-Control-Allow-Origin:
122
+ - "*"
123
+ Access-Control-Allow-Methods:
124
+ - GET, POST, OPTIONS
125
+ body:
126
+ encoding: UTF-8
127
+ string: OK
128
+ http_version:
129
+ recorded_at: Sun, 01 Jan 2017 15:59:29 GMT
130
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://mds.test.datacite.org/metadata
5
+ uri: https://mds-sandbox.datacite.org/metadata
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: |
@@ -20,30 +20,27 @@ http_interactions:
20
20
  <titles>
21
21
  <title>Cool DOI's</title>
22
22
  </titles>
23
- <publisher>DataCite Blog</publisher>
23
+ <publisher>DataCite</publisher>
24
24
  <publicationYear>2016</publicationYear>
25
25
  <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
+ <alternateIdentifiers>
27
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
28
+ </alternateIdentifiers>
26
29
  <subjects>
27
30
  <subject>doi</subject>
28
31
  </subjects>
29
- <contributors>
30
- <contributor contributorType="HostingInstitution">
31
- <contributorName>DataCite</contributorName>
32
- </contributor>
33
- </contributors>
34
32
  <dates>
33
+ <date dateType="Created">2016-12-15</date>
35
34
  <date dateType="Issued">2016-12-15</date>
35
+ <date dateType="Updated">2016-12-15</date>
36
36
  </dates>
37
37
  <relatedIdentifiers>
38
38
  <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
39
  <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
40
  </relatedIdentifiers>
41
41
  <version>1.0</version>
42
- <rightsList>
43
- <rights rightsURI="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution</rights>
44
- </rightsList>
45
42
  <descriptions>
46
- <description descriptionType="Abstract">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 the referenced resource.</description>
43
+ <description descriptionType="Abstract">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...</description>
47
44
  </descriptions>
48
45
  </resource>
49
46
  headers:
@@ -61,13 +58,11 @@ http_interactions:
61
58
  message: ''
62
59
  headers:
63
60
  Server:
64
- - nginx/1.4.6 (Ubuntu)
61
+ - openresty/1.11.2.1
65
62
  Date:
66
- - Mon, 19 Dec 2016 08:14:45 GMT
63
+ - Sun, 01 Jan 2017 15:59:35 GMT
67
64
  Content-Type:
68
65
  - text/html;charset=UTF-8
69
- Location:
70
- - https://mds.test.datacite.org/metadata/10.5072/0000-03VC
71
66
  Connection:
72
67
  - keep-alive
73
68
  Pragma:
@@ -76,14 +71,20 @@ http_interactions:
76
71
  - Thu, 01 Jan 1970 00:00:00 GMT
77
72
  Cache-Control:
78
73
  - no-cache, no-store
74
+ Location:
75
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Access-Control-Allow-Methods:
79
+ - GET, POST, OPTIONS
79
80
  body:
80
81
  encoding: UTF-8
81
82
  string: OK (10.5072/0000-03VC)
82
83
  http_version:
83
- recorded_at: Mon, 19 Dec 2016 08:14:45 GMT
84
+ recorded_at: Sun, 01 Jan 2017 15:59:35 GMT
84
85
  - request:
85
86
  method: put
86
- uri: https://mds.test.datacite.org/doi/10.5072/0000-03VC
87
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
87
88
  body:
88
89
  encoding: UTF-8
89
90
  string: |-
@@ -104,9 +105,9 @@ http_interactions:
104
105
  message: ''
105
106
  headers:
106
107
  Server:
107
- - nginx/1.4.6 (Ubuntu)
108
+ - openresty/1.11.2.1
108
109
  Date:
109
- - Mon, 19 Dec 2016 08:14:46 GMT
110
+ - Sun, 01 Jan 2017 15:59:36 GMT
110
111
  Content-Type:
111
112
  - text/html;charset=UTF-8
112
113
  Connection:
@@ -117,9 +118,13 @@ http_interactions:
117
118
  - Thu, 01 Jan 1970 00:00:00 GMT
118
119
  Cache-Control:
119
120
  - no-cache, no-store
121
+ Access-Control-Allow-Origin:
122
+ - "*"
123
+ Access-Control-Allow-Methods:
124
+ - GET, POST, OPTIONS
120
125
  body:
121
126
  encoding: UTF-8
122
127
  string: OK
123
128
  http_version:
124
- recorded_at: Mon, 19 Dec 2016 08:14:46 GMT
129
+ recorded_at: Sun, 01 Jan 2017 15:59:36 GMT
125
130
  recorded_with: VCR 3.0.3