bolognese 1.8.3 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9eff0ba27c9712dc643e647b3800df6177e13cb1e01c8269b2b172a61616dc9b
4
- data.tar.gz: 8ef53004829fede6fdbcd4b5942a8e63950fe3b8bdcff770be69a66c34e6caa9
3
+ metadata.gz: 36737983981bbdb5e659c5226fe9c7a6f043d2cdea71ccf97ea358128770fa59
4
+ data.tar.gz: c09a31b4be63e5bc7998a6b506db232010eff1b60c6815b4aae86c186ea0d60b
5
5
  SHA512:
6
- metadata.gz: 476ec065a05d4c6fed3f4bee2deccf944723cbdbff07202f9e88ca29a1fb16310424b7e647a5e57c8cbc445adf345ef179e307b7aabaa61379e39ab42e03158d
7
- data.tar.gz: 2115e97733f06c4d67fdcf75eb8496758aa85a60b78888c296a6b25d1f7eb98ef5b9f82bff196b9c9e5544de75806c5787715b2aac2ea1848df027ec1d862eb8
6
+ metadata.gz: cfee7c8750c022e47d0e6d7050dc72f487b17675c073a4d1c2469573cf101054efd11329f23dd01b2b8a55bf4dfffffeb28b038ebe26527d728f4ddb04ad09fa
7
+ data.tar.gz: 36068c59bfbbf0420c9423919fd4b8f93552a100b57f23f8841e63bdec6f9e5b03e6c7d23ee76c986708cb379e59af0ff1e435d1fb2d22a5c4baaebfe30e8e1f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.8.3)
4
+ bolognese (1.8.4)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -48,9 +48,13 @@ module Bolognese
48
48
  book_metadata = meta.dig("crossref", "book", "book_metadata")
49
49
  book_series_metadata = meta.dig("crossref", "book", "book_series_metadata")
50
50
  book_set_metadata = meta.dig("crossref", "book", "book_set_metadata")
51
- bibliographic_metadata = meta.dig("crossref", "book", "content_item") || book_metadata || book_series_metadata
51
+ bibliographic_metadata = meta.dig("crossref", "book", "content_item") || book_metadata || book_series_metadata || book_set_metadata
52
52
  resource_type = bibliographic_metadata.fetch("component_type", nil) ? "book-" + bibliographic_metadata.fetch("component_type") : "book"
53
- publisher = book_metadata.present? ? book_metadata.dig("publisher", "publisher_name") : book_series_metadata.dig("publisher", "publisher_name")
53
+ # publisher = if book_metadata.present?
54
+ # book_metadata.dig("publisher", "publisher_name")
55
+ # elsif book_series_metadata.present?
56
+ # book_series_metadata.dig("publisher", "publisher_name")
57
+ # end
54
58
  when "conference"
55
59
  event_metadata = meta.dig("crossref", "conference", "event_metadata") || {}
56
60
  bibliographic_metadata = meta.dig("crossref", "conference", "conference_paper").to_h
@@ -165,7 +169,7 @@ module Bolognese
165
169
  "funding_references" => crossref_funding_reference(program_metadata),
166
170
  "publisher" => publisher,
167
171
  "container" => container,
168
- "agency" => agency = options[:ra] || "Crossref",
172
+ "agency" => agency = options[:ra] || "crossref",
169
173
  "related_identifiers" => related_identifiers,
170
174
  "dates" => dates,
171
175
  "publication_year" => publication_year,
@@ -239,7 +243,7 @@ module Bolognese
239
243
  { "nameType" => "Organizational",
240
244
  "name" => a["name"] || a["__content__"] }
241
245
  end
242
- end.unwrap
246
+ end
243
247
  end
244
248
 
245
249
  def crossref_funding_reference(program_metadata)
@@ -227,7 +227,7 @@ module Bolognese
227
227
  "contributors" => get_authors(Array.wrap(meta.dig("contributors", "contributor"))),
228
228
  "container" => set_container(meta),
229
229
  "publisher" => parse_attributes(meta.fetch("publisher", nil), first: true).to_s.strip.presence,
230
- "agency" => "DataCite",
230
+ "agency" => "datacite",
231
231
  "funding_references" => funding_references,
232
232
  "dates" => dates,
233
233
  "publication_year" => parse_attributes(meta.fetch("publicationYear", nil), first: true).to_s.strip.presence,
@@ -205,6 +205,7 @@ module Bolognese
205
205
  "AudioObject" => "Sound",
206
206
  "Blog" => "Text",
207
207
  "BlogPosting" => "Text",
208
+ "Book" => "Text",
208
209
  "Chapter" => "Text",
209
210
  "Collection" => "Collection",
210
211
  "DataCatalog" => "Dataset",
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.8.3"
2
+ VERSION = "1.8.4"
3
3
  end
@@ -58,6 +58,6 @@
58
58
  "description": "This tools are used to analyse the data produced by the Crosssover Experiment I designed to test Choice Architecture techniques as UI interventions in a SEEk4Science data catalogue. It contains:\n\n- Data structures for the experimental data.<br>\n- Visualisation functions<br>\n- Analysis functions\n\n## Installation\n\n- R<br>\n- python<br>\n- ipython 4\n\nClone and use.\n\n## Usage\n\n<br>\n```python<br>\nsource('parallel_plot.r')<br>\nwith(z, parallelset(trt,response, freq=count, alpha=0.2))<br>\n```\n\n<br>\n## Contributing\n\n1. Fork it!<br>\n2. Create your feature branch: `git checkout -b my-new-feature`<br>\n3. Commit your changes: `git commit -am 'Add some feature'`<br>\n4. Push to the branch: `git push origin my-new-feature`<br>\n5. Submit a pull request :D\n\n<br>\n## License\n\nThis work supports my PhD Thesis at University of Manchester."
59
59
  }],
60
60
  "schema_version": "http://datacite.org/schema/kernel-4",
61
- "agency": "DataCite",
61
+ "agency": "datacite",
62
62
  "state": "findable"
63
63
  }
@@ -79,5 +79,5 @@
79
79
  "description": "Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for..."
80
80
  }],
81
81
  "schemaVersion": "http://datacite.org/schema/kernel-4",
82
- "agency": "DataCite"
82
+ "agency": "datacite"
83
83
  }
@@ -17,5 +17,5 @@
17
17
  "publisher": "KNB Data Repository",
18
18
  "publication-year": "2016",
19
19
  "schema-version": "http://datacite.org/schema/kernel-3",
20
- "agency": "DataCite"
20
+ "agency": "datacite"
21
21
  }
@@ -68,7 +68,7 @@
68
68
  "schemaVersion": "http://datacite.org/schema/kernel-4",
69
69
  "providerId": "cern",
70
70
  "clientId": "cern.zenodo",
71
- "agency": "DataCite",
71
+ "agency": "datacite",
72
72
  "state": "findable"
73
73
  }
74
74
 
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/ra/10.1093
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org)
12
+ Accept:
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Date:
20
+ - Wed, 29 Jul 2020 18:49:31 GMT
21
+ Content-Type:
22
+ - application/json;charset=UTF-8
23
+ Connection:
24
+ - keep-alive
25
+ Set-Cookie:
26
+ - __cfduid=d6614b5a2ad0605965c4795ee34c9c8951596048571; expires=Fri, 28-Aug-20
27
+ 18:49:31 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure
28
+ Cf-Cache-Status:
29
+ - DYNAMIC
30
+ Cf-Request-Id:
31
+ - 043d8195850000c29fe4ae0200000001
32
+ Expect-Ct:
33
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
34
+ Strict-Transport-Security:
35
+ - max-age=31536000; includeSubDomains; preload
36
+ Server:
37
+ - cloudflare
38
+ Cf-Ray:
39
+ - 5ba90535aee4c29f-FRA
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: |-
43
+ [
44
+ {
45
+ "DOI": "10.1093",
46
+ "RA": "Crossref"
47
+ }
48
+ ]
49
+ http_version:
50
+ recorded_at: Wed, 29 Jul 2020 18:49:31 GMT
51
+ - request:
52
+ method: get
53
+ uri: https://api.crossref.org/works/10.1093/oxfordhb/9780198746140.013.5/transform/application/vnd.crossref.unixsd+xml
54
+ body:
55
+ encoding: US-ASCII
56
+ string: ''
57
+ headers:
58
+ User-Agent:
59
+ - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org)
60
+ Accept:
61
+ - text/xml
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Link:
68
+ - <http://dx.doi.org/10.1093/oxfordhb/9780198746140.013.5>; rel="canonical"
69
+ Access-Control-Allow-Origin:
70
+ - "*"
71
+ Access-Control-Allow-Headers:
72
+ - X-Requested-With
73
+ Content-Length:
74
+ - '5031'
75
+ Server:
76
+ - http-kit
77
+ Date:
78
+ - Wed, 29 Jul 2020 18:49:32 GMT
79
+ X-Rate-Limit-Limit:
80
+ - '50'
81
+ X-Rate-Limit-Interval:
82
+ - 1s
83
+ Connection:
84
+ - close
85
+ body:
86
+ encoding: ASCII-8BIT
87
+ string: !binary |-
88
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNyb3NzcmVmX3Jlc3VsdCB4bWxucz0iaHR0cDovL3d3dy5jcm9zc3JlZi5vcmcvcXJzY2hlbWEvMy4wIiB2ZXJzaW9uPSIzLjAiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL3d3dy5jcm9zc3JlZi5vcmcvcXJzY2hlbWEvMy4wIGh0dHA6Ly93d3cuY3Jvc3NyZWYub3JnL3NjaGVtYXMvY3Jvc3NyZWZfcXVlcnlfb3V0cHV0My4wLnhzZCI+DQogIDxxdWVyeV9yZXN1bHQ+DQogICAgPGhlYWQ+DQogICAgICA8ZG9pX2JhdGNoX2lkPm5vbmU8L2RvaV9iYXRjaF9pZD4NCiAgICA8L2hlYWQ+DQogICAgPGJvZHk+DQogICAgICA8cXVlcnkgc3RhdHVzPSJyZXNvbHZlZCI+DQogICAgICAgIDxkb2kgdHlwZT0iYm9va190aXRsZSI+MTAuMTA5My9veGZvcmRoYi85NzgwMTk4NzQ2MTQwLjAxMy41PC9kb2k+DQogICAgICAgIDxjcm0taXRlbSBuYW1lPSJwdWJsaXNoZXItbmFtZSIgdHlw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DwvZ2l2ZW5fbmFtZT4NCiAgICAgICAgICAgICAgICAgICAgPHN1cm5hbWU+Q296b3J0PC9zdXJuYW1lPg0KICAgICAgICAgICAgICAgICAgPC9wZXJzb25fbmFtZT4NCiAgICAgICAgICAgICAgICAgIDxwZXJzb25fbmFtZSBjb250cmlidXRvcl9yb2xlPSJlZGl0b3IiIGxhbmd1YWdlPSJlbiIgc2VxdWVuY2U9ImFkZGl0aW9uYWwiPg0KICAgICAgICAgICAgICAgICAgICA8Z2l2ZW5fbmFtZT5KYW1lcyBNYXJrPC9naXZlbl9uYW1lPg0KICAgICAgICAgICAgICAgICAgICA8c3VybmFtZT5TaGllbGRzPC9zdXJuYW1lPg0KICAgICAgICAgICAgICAgICAgPC9wZXJzb25fbmFtZT4NCiAgICAgICAgICAgICAgICAgIDxwZXJzb25fbmFtZSBjb250cmlidXRvcl9yb2xlPSJhdXRob3IiIGxhbmd1YWdlPSJlbiIgc2VxdWVuY2U9ImFkZGl0aW9uYWwiPg0KICAgICAgICAgICAgICAgICAgICA8Z2l2ZW5fbmFtZT5CYXJicmEgUi48L2dpdmVuX25hbWU+DQogICAgICAgICAgICAgICAgICAgIDxzdXJuYW1lPkNsYXl0b248L3N1cm5hbWU+DQogICAgICAgICAgICAgICAgICA8L3BlcnNvbl9uYW1lPg0KICAgICAgICAgICAgICAgIDwvY29udHJpYnV0b3JzPg0KICAgICAgICAgICAgICAgIDx0aXRsZXM+DQogICAgICAgICAgICAgICAgICA8dGl0bGU+VGhlIENoYW5naW5nIFdheSBvZiB0aGUgQm9kaGlzYXR0dmE8L3RpdGxlPg0KICAgICAgICAgICAgICAgICAgPG9yaWdpbmFsX2xhbmd1YWdlX3RpdGxlPlRoZSBDaGFuZ2luZyBXYXkgb2YgdGhlIEJvZGhpc2F0dHZhPC9vcmlnaW5hbF9sYW5ndWFnZV90aXRsZT4NCiAgICAgICAgICAgICAgICA8L3RpdGxlcz4NCiAgICAgICAgICAgICAgICA8YWJzdHJhY3QgeG1sb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L2RvaT4NCiAgICAgICAgICAgICAgICAgIDxyZXNvdXJjZSBtaW1lX3R5cGU9InRleHQvaHRtbCI+aHR0cDovL294Zm9yZGhhbmRib29rcy5jb20vdmlldy8xMC4xMDkzL294Zm9yZGhiLzk3ODAxOTg3NDYxNDAuMDAxLjAwMDEvb3hmb3JkaGItOTc4MDE5ODc0NjE0MC1lLTU8L3Jlc291cmNlPg0KICAgICAgICAgICAgICAgIDwvZG9pX2RhdGE+DQogICAgICAgICAgICAgIDwvYm9va19zZXRfbWV0YWRhdGE+DQogICAgICAgICAgICA8L2Jvb2s+DQogICAgICAgICAgPC9jcm9zc3JlZj4NCiAgICAgICAgPC9kb2lfcmVjb3JkPg0KICAgICAgPC9xdWVyeT4NCiAgICA8L2JvZHk+DQogIDwvcXVlcnlfcmVzdWx0Pg0KPC9jcm9zc3JlZl9yZXN1bHQ+
89
+ http_version:
90
+ recorded_at: Wed, 29 Jul 2020 18:49:32 GMT
91
+ recorded_with: VCR 3.0.3
@@ -47,7 +47,7 @@ describe Bolognese::Metadata, vcr: true do
47
47
  {"funderIdentifier"=>"https://doi.org/10.13039/501100006390",
48
48
  "funderIdentifierType"=>"Crossref Funder ID",
49
49
  "funderName"=>"University of Lausanne"}])
50
- expect(subject.agency).to eq("Crossref")
50
+ expect(subject.agency).to eq("crossref")
51
51
  end
52
52
 
53
53
  it "journal article" do
@@ -60,7 +60,7 @@ describe Bolognese::Metadata, vcr: true do
60
60
  expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"article-journal", "resourceType"=>"JournalArticle", "resourceTypeGeneral"=>"Text", "ris"=>"JOUR", "schemaOrg"=>"ScholarlyArticle")
61
61
  expect(subject.creators.length).to eq(5)
62
62
  expect(subject.creators.first).to eq("nameType"=>"Personal", "name"=>"Ralser, Markus", "givenName"=>"Markus", "familyName"=>"Ralser")
63
- expect(subject.contributors).to eq("contributorType"=>"Editor", "familyName"=>"Janbon", "givenName"=>"Guilhem", "name"=>"Janbon, Guilhem", "nameType"=>"Personal")
63
+ expect(subject.contributors).to eq([{"contributorType"=>"Editor", "familyName"=>"Janbon", "givenName"=>"Guilhem", "name"=>"Janbon, Guilhem", "nameType"=>"Personal"}])
64
64
  expect(subject.titles).to eq([{"title"=>"Triose Phosphate Isomerase Deficiency Is Caused by Altered Dimerization–Not Catalytic Inactivity–of the Mutant Enzymes"}])
65
65
  expect(subject.rights_list).to eq([{"rights"=>"Creative Commons Attribution 4.0 International",
66
66
  "rightsIdentifier"=>"cc-by-4.0",
@@ -74,7 +74,7 @@ describe Bolognese::Metadata, vcr: true do
74
74
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"1932-6203", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
75
75
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.1056/nejm199109123251104", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
76
76
  expect(subject.container).to eq("firstPage"=>"e30", "identifier"=>"1932-6203", "identifierType"=>"ISSN", "issue"=>"1", "title"=>"PLoS ONE", "type"=>"Journal", "volume"=>"1")
77
- expect(subject.agency).to eq("Crossref")
77
+ expect(subject.agency).to eq("crossref")
78
78
  end
79
79
 
80
80
  it "journal article with funding" do
@@ -101,7 +101,7 @@ describe Bolognese::Metadata, vcr: true do
101
101
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"1664-462X", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
102
102
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.17660/actahortic.2004.632.41", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
103
103
  expect(subject.container).to eq("identifier"=>"1664-462X", "identifierType"=>"ISSN", "title"=>"Frontiers in Plant Science", "type"=>"Journal", "volume"=>"10")
104
- expect(subject.agency).to eq("Crossref")
104
+ expect(subject.agency).to eq("crossref")
105
105
  end
106
106
 
107
107
  it "journal article original language title" do
@@ -111,7 +111,7 @@ describe Bolognese::Metadata, vcr: true do
111
111
  expect(subject.id).to eq("https://doi.org/10.7600/jspfsm.56.60")
112
112
  expect(subject.url).to eq("http://jlc.jst.go.jp/JST.JSTAGE/jspfsm/56.60?lang=en&from=CrossRef&type=abstract")
113
113
  expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"article-journal", "resourceType"=>"JournalArticle", "resourceTypeGeneral"=>"Text", "ris"=>"JOUR", "schemaOrg"=>"ScholarlyArticle")
114
- expect(subject.creators).to eq("name"=>":(unav)", "nameType"=>"Organizational")
114
+ expect(subject.creators).to eq([{"name"=>":(unav)", "nameType"=>"Organizational"}])
115
115
  expect(subject.titles).to eq([{"lang"=>"ja", "title"=>"自律神経・循環器応答"}])
116
116
  expect(subject.dates).to include({"date"=>"2007", "dateType"=>"Issued"})
117
117
  expect(subject.publication_year).to eq("2007")
@@ -119,7 +119,7 @@ describe Bolognese::Metadata, vcr: true do
119
119
  expect(subject.related_identifiers.length).to eq(1)
120
120
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"1881-4751", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
121
121
  expect(subject.container).to eq("firstPage"=>"60", "identifier"=>"1881-4751", "identifierType"=>"ISSN", "issue"=>"1", "lastPage"=>"60", "title"=>"Japanese Journal of Physical Fitness and Sports Medicine", "type"=>"Journal", "volume"=>"56")
122
- expect(subject.agency).to eq("Crossref")
122
+ expect(subject.agency).to eq("crossref")
123
123
  end
124
124
 
125
125
  it "journal article with RDF for container" do
@@ -139,7 +139,7 @@ describe Bolognese::Metadata, vcr: true do
139
139
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"1937-240X", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
140
140
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.1002/aqc.1122", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
141
141
  expect(subject.container).to eq("firstPage"=>"949", "identifier"=>"1937-240X", "identifierType"=>"ISSN", "issue"=>"6", "lastPage"=>"961", "title"=>"Journal of Crustacean Biology", "type"=>"Journal", "volume"=>"32")
142
- expect(subject.agency).to eq("Crossref")
142
+ expect(subject.agency).to eq("crossref")
143
143
  end
144
144
 
145
145
  it "book chapter with RDF for container" do
@@ -154,11 +154,11 @@ describe Bolognese::Metadata, vcr: true do
154
154
  expect(subject.titles).to eq([{"title"=>"Human Body Orientation Estimation in Multiview Scenarios"}])
155
155
  expect(subject.dates).to eq([{"date"=>"2012", "dateType"=>"Issued"}, {"date"=>"2019-07-03T01:07:17Z", "dateType"=>"Updated"}])
156
156
  expect(subject.publication_year).to eq("2012")
157
- expect(subject.publisher).to eq("Springer Berlin Heidelberg")
157
+ expect(subject.publisher).to eq("Springer Science and Business Media LLC")
158
158
  expect(subject.related_identifiers.length).to eq(7)
159
159
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"10.1007/978-3-540-24670-1_3", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
160
160
  expect(subject.container).to eq("identifier"=>"1611-3349", "identifierType"=>"ISSN", "title"=>"Lecture Notes in Computer Science", "type"=>"Book Series")
161
- expect(subject.agency).to eq("Crossref")
161
+ expect(subject.agency).to eq("crossref")
162
162
  end
163
163
 
164
164
  it "posted_content" do
@@ -176,7 +176,7 @@ describe Bolognese::Metadata, vcr: true do
176
176
  expect(subject.dates).to include({"date"=>"2017-10-09", "dateType"=>"Issued"})
177
177
  expect(subject.publication_year).to eq("2017")
178
178
  expect(subject.publisher).to eq("Cold Spring Harbor Laboratory")
179
- expect(subject.agency).to eq("Crossref")
179
+ expect(subject.agency).to eq("crossref")
180
180
  end
181
181
 
182
182
  it "DOI with SICI DOI" do
@@ -196,7 +196,7 @@ describe Bolognese::Metadata, vcr: true do
196
196
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"0012-9658", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
197
197
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.1098/rspb.2002.2213", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
198
198
  expect(subject.container).to eq("firstPage"=>"2832", "identifier"=>"0012-9658", "identifierType"=>"ISSN", "issue"=>"11", "lastPage"=>"2841", "title"=>"Ecology", "type"=>"Journal", "volume"=>"87")
199
- expect(subject.agency).to eq("Crossref")
199
+ expect(subject.agency).to eq("crossref")
200
200
  end
201
201
 
202
202
  it "DOI with ORCID ID" do
@@ -221,7 +221,7 @@ describe Bolognese::Metadata, vcr: true do
221
221
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"2090-1844", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
222
222
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.1378/chest.12-0045", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
223
223
  expect(subject.container).to eq("firstPage"=>"1", "identifier"=>"2090-1844", "identifierType"=>"ISSN", "lastPage"=>"7", "title"=>"Pulmonary Medicine", "type"=>"Journal", "volume"=>"2012")
224
- expect(subject.agency).to eq("Crossref")
224
+ expect(subject.agency).to eq("crossref")
225
225
  end
226
226
 
227
227
  it "date in future" do
@@ -240,7 +240,7 @@ describe Bolognese::Metadata, vcr: true do
240
240
  expect(subject.publisher).to eq("Elsevier BV")
241
241
  expect(subject.related_identifiers).to eq([{"relatedIdentifier"=>"0014-2999", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection"}])
242
242
  expect(subject.container).to eq("firstPage"=>"303", "identifier"=>"0014-2999", "identifierType"=>"ISSN", "lastPage"=>"312", "title"=>"European Journal of Pharmacology", "type"=>"Journal", "volume"=>"759")
243
- expect(subject.agency).to eq("Crossref")
243
+ expect(subject.agency).to eq("crossref")
244
244
  end
245
245
 
246
246
  it "vor with url" do
@@ -259,7 +259,7 @@ describe Bolognese::Metadata, vcr: true do
259
259
  expect(subject.related_identifiers.size).to eq(35)
260
260
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"1365-2540", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
261
261
  expect(subject.container).to eq("firstPage"=>"122", "identifier"=>"1365-2540", "identifierType"=>"ISSN", "issue"=>"2", "lastPage"=>"130", "title"=>"Heredity", "type"=>"Journal", "volume"=>"111")
262
- expect(subject.agency).to eq("Crossref")
262
+ expect(subject.agency).to eq("crossref")
263
263
  end
264
264
 
265
265
  it "dataset" do
@@ -276,7 +276,7 @@ describe Bolognese::Metadata, vcr: true do
276
276
  expect(subject.dates).to include({"date"=>"1984-07-17", "dateType"=>"Issued"})
277
277
  expect(subject.publication_year).to eq("1984")
278
278
  expect(subject.publisher).to eq("Worldwide Protein Data Bank")
279
- expect(subject.agency).to eq("Crossref")
279
+ expect(subject.agency).to eq("crossref")
280
280
  end
281
281
 
282
282
  it "component" do
@@ -286,13 +286,13 @@ describe Bolognese::Metadata, vcr: true do
286
286
  expect(subject.id).to eq("https://doi.org/10.1371/journal.pmed.0030277.g001")
287
287
  expect(subject.url).to eq("https://dx.plos.org/10.1371/journal.pmed.0030277.g001")
288
288
  expect(subject.types).to eq("bibtex"=>"misc", "citeproc"=>"article-journal", "resourceType"=>"SaComponent", "resourceTypeGeneral"=>"Text", "ris"=>"JOUR", "schemaOrg"=>"ScholarlyArticle")
289
- expect(subject.creators).to eq("name"=>":(unav)", "nameType"=>"Organizational")
289
+ expect(subject.creators).to eq([{"name"=>":(unav)", "nameType"=>"Organizational"}])
290
290
  expect(subject.titles).to eq([{"title"=>":{unav)"}])
291
291
  expect(subject.descriptions).to be_empty
292
292
  expect(subject.dates).to eq([{"date"=>"2015-10-20", "dateType"=>"Issued"}, {"date"=>"2018-10-19T17:13:42Z", "dateType"=>"Updated"}])
293
293
  expect(subject.publication_year).to eq("2015")
294
294
  expect(subject.publisher).to eq("Public Library of Science (PLoS)")
295
- expect(subject.agency).to eq("Crossref")
295
+ expect(subject.agency).to eq("crossref")
296
296
  end
297
297
 
298
298
  it "dataset usda" do
@@ -309,7 +309,7 @@ describe Bolognese::Metadata, vcr: true do
309
309
  expect(subject.dates).to eq([{"date"=>"2017-08-09", "dateType"=>"Issued"}, {"date"=>"2020-06-04T21:31:55Z", "dateType"=>"Updated"}])
310
310
  expect(subject.publication_year).to eq("2017")
311
311
  expect(subject.publisher).to eq("USDA Forest Service")
312
- expect(subject.agency).to eq("Crossref")
312
+ expect(subject.agency).to eq("crossref")
313
313
  end
314
314
 
315
315
  it "book chapter" do
@@ -324,8 +324,8 @@ describe Bolognese::Metadata, vcr: true do
324
324
  expect(subject.titles).to eq([{"title"=>"Clinical Symptoms and Physical Examinations"}])
325
325
  expect(subject.dates).to eq([{"date"=>"2015", "dateType"=>"Issued"}, {"date"=>"2015-04-14T02:31:13Z", "dateType"=>"Updated"}])
326
326
  expect(subject.publication_year).to eq("2015")
327
- expect(subject.publisher).to eq("Springer Berlin Heidelberg")
328
- expect(subject.agency).to eq("Crossref")
327
+ expect(subject.publisher).to eq("Springer Science and Business Media LLC")
328
+ expect(subject.agency).to eq("crossref")
329
329
  end
330
330
 
331
331
  it "another book chapter" do
@@ -335,12 +335,12 @@ describe Bolognese::Metadata, vcr: true do
335
335
  expect(subject.id).to eq("https://doi.org/10.1007/978-3-319-75889-3_1")
336
336
  expect(subject.url).to eq("http://link.springer.com/10.1007/978-3-319-75889-3_1")
337
337
  expect(subject.types).to eq("bibtex"=>"inbook", "citeproc"=>"chapter", "resourceType"=>"BookChapter", "resourceTypeGeneral"=>"Text", "ris"=>"CHAP", "schemaOrg"=>"Chapter")
338
- expect(subject.creators).to eq("familyName"=>"Jones", "givenName"=>"Hunter M.", "name"=>"Jones, Hunter M.", "nameType"=>"Personal")
338
+ expect(subject.creators).to eq([{"familyName"=>"Jones", "givenName"=>"Hunter M.", "name"=>"Jones, Hunter M.", "nameType"=>"Personal"}])
339
339
  expect(subject.titles).to eq([{"title"=>"Climate Change and Increasing Risk of Extreme Heat"}])
340
340
  expect(subject.dates).to include({"date"=>"2018", "dateType"=>"Issued"})
341
341
  expect(subject.publication_year).to eq("2018")
342
- expect(subject.publisher).to eq("Springer International Publishing")
343
- expect(subject.agency).to eq("Crossref")
342
+ expect(subject.publisher).to eq("Springer Science and Business Media LLC")
343
+ expect(subject.agency).to eq("crossref")
344
344
  end
345
345
 
346
346
  it "yet another book chapter" do
@@ -350,12 +350,12 @@ describe Bolognese::Metadata, vcr: true do
350
350
  expect(subject.id).to eq("https://doi.org/10.4018/978-1-4666-1891-6.ch004")
351
351
  expect(subject.url).to eq("http://services.igi-global.com/resolvedoi/resolve.aspx?doi=10.4018/978-1-4666-1891-6.ch004")
352
352
  expect(subject.types).to eq("bibtex"=>"inbook", "citeproc"=>"chapter", "resourceType"=>"BookChapter", "resourceTypeGeneral"=>"Text", "ris"=>"CHAP", "schemaOrg"=>"Chapter")
353
- expect(subject.creators).to eq("familyName"=>"Bichot", "givenName"=>"Charles-Edmond", "name"=>"Bichot, Charles-Edmond", "affiliation" => [{"name"=>"Université de Lyon, France"}], "nameType"=>"Personal")
353
+ expect(subject.creators).to eq([{"affiliation"=>[{"name"=>"Université de Lyon, France"}], "familyName"=>"Bichot", "givenName"=>"Charles-Edmond", "name"=>"Bichot, Charles-Edmond", "nameType"=>"Personal"}])
354
354
  expect(subject.titles).to eq([{"title"=>"Unsupervised and Supervised Image Segmentation Using Graph Partitioning"}])
355
355
  expect(subject.dates).to eq([{"date"=>"2012-08-08", "dateType"=>"Issued"}, {"date"=>"2019-07-02T17:17:21Z", "dateType"=>"Updated"}])
356
356
  expect(subject.publication_year).to eq("2012")
357
357
  expect(subject.publisher).to eq("IGI Global")
358
- expect(subject.agency).to eq("Crossref")
358
+ expect(subject.agency).to eq("crossref")
359
359
  end
360
360
 
361
361
  it "missing creator" do
@@ -370,7 +370,7 @@ describe Bolognese::Metadata, vcr: true do
370
370
  expect(subject.dates).to eq([{"date"=>"2018-04-09", "dateType"=>"Issued"}, {"date"=>"2018-04-10T17:58:05Z", "dateType"=>"Updated"}])
371
371
  expect(subject.publication_year).to eq("2018")
372
372
  expect(subject.publisher).to eq("MDPI AG")
373
- expect(subject.agency).to eq("Crossref")
373
+ expect(subject.agency).to eq("crossref")
374
374
  end
375
375
 
376
376
  it "book" do
@@ -380,13 +380,13 @@ describe Bolognese::Metadata, vcr: true do
380
380
  expect(subject.id).to eq("https://doi.org/10.1017/9781108348843")
381
381
  expect(subject.identifiers).to eq([{"identifier"=>"9781108348843", "identifierType"=>"ISBN"}])
382
382
  expect(subject.url).to eq("https://www.cambridge.org/core/product/identifier/9781108348843/type/book")
383
- expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "ris"=>"BOOK", "schemaOrg"=>"Book")
384
- expect(subject.creators).to eq("familyName"=>"Leung", "givenName"=>"Vincent S.", "name"=>"Leung, Vincent S.", "nameType"=>"Personal")
383
+ expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "resourceTypeGeneral"=>"Text", "ris"=>"BOOK", "schemaOrg"=>"Book")
384
+ expect(subject.creators).to eq([{"familyName"=>"Leung", "givenName"=>"Vincent S.", "name"=>"Leung, Vincent S.", "nameType"=>"Personal"}])
385
385
  expect(subject.titles).to eq([{"title"=>"The Politics of the Past in Early China"}])
386
386
  expect(subject.dates).to eq([{"date"=>"2019-07-01", "dateType"=>"Issued"}, {"date"=>"2019-12-01T18:11:11Z", "dateType"=>"Updated"}])
387
387
  expect(subject.publication_year).to eq("2019")
388
- expect(subject.publisher).to eq("Cambridge University Press")
389
- expect(subject.agency).to eq("Crossref")
388
+ expect(subject.publisher).to eq("Cambridge University Press (CUP)")
389
+ expect(subject.agency).to eq("crossref")
390
390
  expect(subject.date_registered).to eq("2019-07-06T10:19:22Z")
391
391
  end
392
392
 
@@ -396,15 +396,15 @@ describe Bolognese::Metadata, vcr: true do
396
396
  expect(subject.valid?).to be true
397
397
  expect(subject.id).to eq("https://doi.org/10.2973/odp.proc.ir.180.2000")
398
398
  expect(subject.url).to eq("http://www-odp.tamu.edu/publications/180_IR/180TOC.HTM")
399
- expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "ris"=>"BOOK", "schemaOrg"=>"Book")
400
- expect(subject.creators).to eq("name"=>":(unav)", "nameType"=>"Organizational")
399
+ expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "resourceTypeGeneral"=>"Text", "ris"=>"BOOK", "schemaOrg"=>"Book")
400
+ expect(subject.creators).to eq([{"name"=>":(unav)", "nameType"=>"Organizational"}])
401
401
  expect(subject.contributors.size).to eq(4)
402
402
  expect(subject.contributors.first).to eq("contributorType"=>"Editor", "familyName"=>"Taylor", "givenName"=>"B.", "name"=>"Taylor, B.", "nameType"=>"Personal")
403
403
  expect(subject.titles).to eq([{"title"=>"Proceedings of the Ocean Drilling Program, 180 Initial Reports"}])
404
404
  expect(subject.dates).to eq([{"date"=>"2000-02-04", "dateType"=>"Issued"}, {"date"=>"2009-02-02T21:19:43Z", "dateType"=>"Updated"}])
405
405
  expect(subject.publication_year).to eq("2000")
406
- expect(subject.publisher).to eq("Ocean Drilling Program")
407
- expect(subject.agency).to eq("Crossref")
406
+ expect(subject.publisher).to eq("International Ocean Discovery Program (IODP)")
407
+ expect(subject.agency).to eq("crossref")
408
408
  expect(subject.date_registered).to eq("2006-10-17T20:17:44Z")
409
409
  end
410
410
 
@@ -415,16 +415,16 @@ describe Bolognese::Metadata, vcr: true do
415
415
  expect(subject.id).to eq("https://doi.org/10.1029/ar035")
416
416
  expect(subject.identifiers).to eq([{"identifier"=>"0-87590-181-6", "identifierType"=>"ISBN"}])
417
417
  expect(subject.url).to eq("http://doi.wiley.com/10.1029/AR035")
418
- expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "ris"=>"BOOK", "schemaOrg"=>"Book")
419
- expect(subject.creators).to eq("familyName"=>"McGinnis", "givenName"=>"Richard Frank", "name"=>"McGinnis, Richard Frank", "nameType"=>"Personal")
418
+ expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "resourceTypeGeneral"=>"Text", "ris"=>"BOOK", "schemaOrg"=>"Book")
419
+ expect(subject.creators).to eq([{"familyName"=>"McGinnis", "givenName"=>"Richard Frank", "name"=>"McGinnis, Richard Frank", "nameType"=>"Personal"}])
420
420
  expect(subject.titles).to eq([{"title"=>"Biogeography of Lanternfishes (Myctophidae) South of 30°S"}])
421
421
  expect(subject.dates).to eq([{"date"=>"1982", "dateType"=>"Issued"}, {"date"=>"2019-06-15T05:11:12Z", "dateType"=>"Updated"}])
422
422
  expect(subject.publication_year).to eq("1982")
423
- expect(subject.publisher).to eq("American Geophysical Union")
423
+ expect(subject.publisher).to eq("Wiley")
424
424
  expect(subject.related_identifiers.length).to eq(44)
425
425
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"10.1016/0031-0182(70)90103-3", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
426
426
  expect(subject.container).to eq("identifier"=>"0066-4634", "identifierType"=>"ISSN", "title"=>"Antarctic Research Series", "type"=>"Book Series", "volume"=>"35")
427
- expect(subject.agency).to eq("Crossref")
427
+ expect(subject.agency).to eq("crossref")
428
428
  expect(subject.date_registered).to be_nil
429
429
  end
430
430
 
@@ -469,7 +469,7 @@ describe Bolognese::Metadata, vcr: true do
469
469
  expect(subject.id).to eq("https://doi.org/10.1241/johokanri.39.979")
470
470
  expect(subject.url).to eq("http://joi.jlc.jst.go.jp/JST.JSTAGE/johokanri/39.979?from=CrossRef")
471
471
  expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"article-journal", "resourceType"=>"JournalArticle", "resourceTypeGeneral"=>"Text", "ris"=>"JOUR", "schemaOrg"=>"ScholarlyArticle")
472
- expect(subject.creators).to eq("familyName"=>"KUSUMOTO", "givenName"=>"Hiroyuki", "name"=>"KUSUMOTO, Hiroyuki", "nameType"=>"Personal")
472
+ expect(subject.creators).to eq([{"familyName"=>"KUSUMOTO", "givenName"=>"Hiroyuki", "name"=>"KUSUMOTO, Hiroyuki", "nameType"=>"Personal"}])
473
473
  expect(subject.titles).to eq([{"title"=>"Utilizing the Internet. 12 Series. Future of the Internet."}])
474
474
  expect(subject.dates).to eq([{"date"=>"1997", "dateType"=>"Issued"}, {"date"=>"2020-03-06T06:44:36Z", "dateType"=>"Updated"}])
475
475
  expect(subject.publication_year).to eq("1997")
@@ -500,12 +500,12 @@ describe Bolognese::Metadata, vcr: true do
500
500
  expect(subject.id).to eq("https://doi.org/10.4000/dms.865")
501
501
  expect(subject.url).to eq("http://journals.openedition.org/dms/865")
502
502
  expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"article-journal", "resourceType"=>"JournalArticle", "resourceTypeGeneral"=>"Text", "ris"=>"JOUR", "schemaOrg"=>"ScholarlyArticle")
503
- expect(subject.creators).to eq("familyName"=>"Peraya", "givenName"=>"Daniel", "name"=>"Peraya, Daniel", "nameType"=>"Personal")
503
+ expect(subject.creators).to eq([{"familyName"=>"Peraya", "givenName"=>"Daniel", "name"=>"Peraya, Daniel", "nameType"=>"Personal"}])
504
504
  expect(subject.titles).to eq([{"title"=>"Distances, absence, proximités et présences : des concepts en déplacement"}, {"title"=>"Distance(s), proximity and presence(s): evolving concepts"}])
505
505
  expect(subject.dates).to include({"date"=>"2014-12-23", "dateType"=>"Issued"})
506
506
  expect(subject.publication_year).to eq("2014")
507
507
  expect(subject.publisher).to eq("OpenEdition")
508
- expect(subject.agency).to eq("Crossref")
508
+ expect(subject.agency).to eq("crossref")
509
509
  expect(subject.date_registered).to be_nil
510
510
  end
511
511
 
@@ -522,7 +522,7 @@ describe Bolognese::Metadata, vcr: true do
522
522
  expect(subject.dates).to include({"date"=>"2017-05-24", "dateType"=>"Issued"})
523
523
  expect(subject.publication_year).to eq("2017")
524
524
  expect(subject.publisher).to eq("The Royal Society")
525
- expect(subject.agency).to eq("Crossref")
525
+ expect(subject.agency).to eq("crossref")
526
526
  expect(subject.date_registered).to eq("2019-07-18T04:43:12Z")
527
527
  end
528
528
 
@@ -581,7 +581,7 @@ describe Bolognese::Metadata, vcr: true do
581
581
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"0028-646X", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
582
582
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.1002/pmic.201400530", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
583
583
  expect(subject.container).to eq("firstPage"=>"929", "identifier"=>"0028-646X", "identifierType"=>"ISSN", "issue"=>"3", "lastPage"=>"935", "title"=>"New Phytologist", "type"=>"Journal", "volume"=>"218")
584
- expect(subject.agency).to eq("Crossref")
584
+ expect(subject.agency).to eq("crossref")
585
585
  expect(subject.date_registered).to eq("2018-08-03T11:45:49Z")
586
586
  end
587
587
 
@@ -598,7 +598,7 @@ describe Bolognese::Metadata, vcr: true do
598
598
  expect(subject.dates).to include({"date"=>"2017-04-03", "dateType"=>"Issued"})
599
599
  expect(subject.publication_year).to eq("2017")
600
600
  expect(subject.publisher).to eq("Springer Science and Business Media LLC")
601
- expect(subject.agency).to eq("Crossref")
601
+ expect(subject.agency).to eq("crossref")
602
602
  expect(subject.date_registered).to eq("2019-11-02T09:30:06Z")
603
603
  end
604
604
 
@@ -620,7 +620,27 @@ describe Bolognese::Metadata, vcr: true do
620
620
  expect(subject.dates).to include({"date"=>"2020-07-28", "dateType"=>"Issued"})
621
621
  expect(subject.publication_year).to eq("2020")
622
622
  expect(subject.publisher).to eq("Copernicus GmbH")
623
- expect(subject.agency).to eq("Crossref")
623
+ expect(subject.agency).to eq("crossref")
624
+ end
625
+
626
+ it "book oup" do
627
+ input = "10.1093/oxfordhb/9780198746140.013.5"
628
+ subject = Bolognese::Metadata.new(input: input)
629
+ expect(subject.valid?).to be true
630
+ expect(subject.url).to eq("http://oxfordhandbooks.com/view/10.1093/oxfordhb/9780198746140.001.0001/oxfordhb-9780198746140-e-5")
631
+ expect(subject.types).to eq("bibtex"=>"book", "citeproc"=>"book", "resourceType"=>"Book", "resourceTypeGeneral"=>"Text", "ris"=>"BOOK", "schemaOrg"=>"Book")
632
+ expect(subject.creators.count).to eq(1)
633
+ expect(subject.creators.first).to eq("familyName"=>"Clayton", "givenName"=>"Barbra R.", "name"=>"Clayton, Barbra R.", "nameType"=>"Personal")
634
+ expect(subject.contributors.count).to eq(2)
635
+ expect(subject.contributors.first).to eq("contributorType"=>"Editor", "familyName"=>"Cozort", "givenName"=>"Daniel", "name"=>"Cozort, Daniel", "nameType"=>"Personal")
636
+ expect(subject.titles).to eq([{"title"=>"The Changing Way of the Bodhisattva"}])
637
+ expect(subject.id).to eq("https://doi.org/10.1093/oxfordhb/9780198746140.013.5")
638
+ expect(subject.identifiers).to be_empty
639
+ expect(subject.descriptions.first["description"]).to start_with("This chapter explores the nature of the connections")
640
+ expect(subject.dates).to include({"date"=>"2018-04-05", "dateType"=>"Issued"})
641
+ expect(subject.publication_year).to eq("2018")
642
+ expect(subject.publisher).to eq("Oxford University Press (OUP)")
643
+ expect(subject.agency).to eq("crossref")
624
644
  end
625
645
 
626
646
  it "journal issue" do
@@ -630,7 +650,7 @@ describe Bolognese::Metadata, vcr: true do
630
650
  expect(subject.id).to eq("https://doi.org/10.6002/ect.2015.0371")
631
651
  expect(subject.url).to eq("http://ectrx.org/forms/ectrxcontentshow.php?doi_id=10.6002/ect.2015.0371")
632
652
  expect(subject.types).to eq("bibtex"=>"misc", "citeproc"=>"article-journal", "resourceType"=>"JournalIssue", "resourceTypeGeneral"=>"Text", "ris"=>"JOUR", "schemaOrg"=>"PublicationIssue")
633
- expect(subject.creators).to eq("name"=>":(unav)", "nameType"=>"Organizational")
653
+ expect(subject.creators).to eq([{"name"=>":(unav)", "nameType"=>"Organizational"}])
634
654
  expect(subject.titles).to eq([{"title"=>":{unav)"}])
635
655
  expect(subject.dates).to eq([{"date"=>"2018-10", "dateType"=>"Issued"}, {"date"=>"2018-10-03T12:09:12Z", "dateType"=>"Updated"}])
636
656
  expect(subject.publication_year).to eq("2018")
@@ -638,7 +658,7 @@ describe Bolognese::Metadata, vcr: true do
638
658
  expect(subject.related_identifiers.length).to eq(1)
639
659
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"2146-8427", "relatedIdentifierType"=>"ISSN", "relationType"=>"IsPartOf", "resourceTypeGeneral"=>"Collection")
640
660
  expect(subject.container).to eq("identifier"=>"2146-8427", "identifierType"=>"ISSN", "issue"=>"5", "title"=>"Experimental and Clinical Transplantation", "type"=>"Journal", "volume"=>"16")
641
- expect(subject.agency).to eq("Crossref")
661
+ expect(subject.agency).to eq("crossref")
642
662
  end
643
663
 
644
664
  it "not found error" do
@@ -647,7 +667,7 @@ describe Bolognese::Metadata, vcr: true do
647
667
  expect(subject.valid?).to be false
648
668
  expect(subject.id).to eq("https://doi.org/10.7554/elife.01567x")
649
669
  expect(subject.doi).to eq("10.7554/elife.01567x")
650
- expect(subject.agency).to eq("Crossref")
670
+ expect(subject.agency).to eq("crossref")
651
671
  expect(subject.state).to eq("not_found")
652
672
  end
653
673
  end
@@ -25,7 +25,7 @@ describe Bolognese::Metadata, vcr: true do
25
25
  expect(subject.related_identifiers.length).to eq(3)
26
26
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"10.5438/0000-00ss", "relatedIdentifierType"=>"DOI", "relationType"=>"IsPartOf")
27
27
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.5438/55e5-t5c0", "relatedIdentifierType"=>"DOI", "relationType"=>"References")
28
- expect(subject.agency).to eq("DataCite")
28
+ expect(subject.agency).to eq("datacite")
29
29
  end
30
30
 
31
31
  # it "SoftwareSourceCode" do
@@ -74,7 +74,7 @@ describe Bolognese::Metadata, vcr: true do
74
74
  expect(subject.datacite).to include("<version>v0.3.2</version>")
75
75
  expect(subject.related_identifiers.length).to eq(2)
76
76
  expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"https://github.com/jakevdp/supersmoother/tree/v0.3.2", "relatedIdentifierType"=>"URL", "relationType"=>"IsSupplementTo")
77
- expect(subject.agency).to eq("DataCite")
77
+ expect(subject.agency).to eq("datacite")
78
78
  end
79
79
  end
80
80
  end
@@ -44,7 +44,7 @@ describe Bolognese::Metadata, vcr: true do
44
44
  {"subject"=>"phylogeny"},
45
45
  {"subject"=>"Parasites"}])
46
46
  expect(subject.publisher).to eq("Dryad")
47
- expect(subject.agency).to eq("DataCite")
47
+ expect(subject.agency).to eq("datacite")
48
48
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
49
49
  end
50
50
 
@@ -69,7 +69,7 @@ describe Bolognese::Metadata, vcr: true do
69
69
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.5438/0000-00ss", "relatedIdentifierType"=>"DOI", "relationType"=>"IsPartOf")
70
70
  expect(subject.publisher).to eq("DataCite")
71
71
  expect(subject.subjects).to eq([{"subject"=>"datacite"}, {"subject"=>"doi"}, {"subject"=>"metadata"}])
72
- expect(subject.agency).to eq("DataCite")
72
+ expect(subject.agency).to eq("datacite")
73
73
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
74
74
  end
75
75
 
@@ -90,7 +90,7 @@ describe Bolognese::Metadata, vcr: true do
90
90
  "subjectScheme"=>"DDC"}])
91
91
  expect(subject.publication_year).to eq("2013")
92
92
  expect(subject.publisher).to eq("Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH, Wadern/Saarbruecken, Germany")
93
- expect(subject.agency).to eq("DataCite")
93
+ expect(subject.agency).to eq("datacite")
94
94
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.1")
95
95
  end
96
96
 
@@ -142,7 +142,7 @@ describe Bolognese::Metadata, vcr: true do
142
142
  expect(subject.sizes).to eq(["4 kB"])
143
143
  expect(subject.formats).to eq(["application/xml"])
144
144
  expect(subject.publisher).to eq("DataCite")
145
- expect(subject.agency).to eq("DataCite")
145
+ expect(subject.agency).to eq("datacite")
146
146
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
147
147
  end
148
148
 
@@ -159,7 +159,7 @@ describe Bolognese::Metadata, vcr: true do
159
159
  expect(subject.dates).to eq([{"date"=>"2016-01-20", "dateType"=>"Available"}, {"date"=>"2016", "dateType"=>"Issued"}])
160
160
  expect(subject.publication_year).to eq("2016")
161
161
  expect(subject.publisher).to eq("University of St Andrews")
162
- expect(subject.agency).to eq("DataCite")
162
+ expect(subject.agency).to eq("datacite")
163
163
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
164
164
  end
165
165
 
@@ -178,7 +178,7 @@ describe Bolognese::Metadata, vcr: true do
178
178
  expect(subject.sizes).to eq([])
179
179
  expect(subject.subjects).to eq([{"subject"=>"Environmental research"}])
180
180
  expect(subject.publisher).to eq("EvK2 CNR Committee")
181
- expect(subject.agency).to eq("DataCite")
181
+ expect(subject.agency).to eq("datacite")
182
182
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.2")
183
183
  end
184
184
 
@@ -210,7 +210,7 @@ describe Bolognese::Metadata, vcr: true do
210
210
  {"subject"=>"crossover experiment"},
211
211
  {"subject"=>"hci"}])
212
212
  expect(subject.publisher).to eq("Zenodo")
213
- expect(subject.agency).to eq("DataCite")
213
+ expect(subject.agency).to eq("datacite")
214
214
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
215
215
  end
216
216
 
@@ -242,7 +242,7 @@ describe Bolognese::Metadata, vcr: true do
242
242
  "subjectScheme"=>"Fields of Science and Technology (FOS)"},
243
243
  {"subject"=>"Computational Biology"},
244
244
  {"subject"=>"Systems Biology"}])
245
- expect(subject.agency).to eq("DataCite")
245
+ expect(subject.agency).to eq("datacite")
246
246
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
247
247
  end
248
248
 
@@ -272,7 +272,7 @@ describe Bolognese::Metadata, vcr: true do
272
272
  expect(subject.subjects).to eq([{"subject"=>"Evolutionary Biology"},
273
273
  {"subject"=>"FOS: Biological sciences", "subjectScheme"=>"Fields of Science and Technology (FOS)", "schemeUri"=>"http://www.oecd.org/science/inno/38235147.pdf"},
274
274
  {"subject"=>"60412 Quantitative Genetics (incl. Disease and Trait Mapping Genetics)", "subjectScheme"=>"FOR", "schemeUri"=>"http://www.abs.gov.au/ausstats/abs@.nsf/0/6BB427AB9696C225CA2574180004463E"}])
275
- expect(subject.agency).to eq("DataCite")
275
+ expect(subject.agency).to eq("datacite")
276
276
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
277
277
  end
278
278
 
@@ -320,7 +320,7 @@ describe Bolognese::Metadata, vcr: true do
320
320
  {"subject"=>"Data mining"},
321
321
  {"subject"=>"Statistical Computing Language R"},
322
322
  {"subject"=>"funded research publications"}])
323
- expect(subject.agency).to eq("DataCite")
323
+ expect(subject.agency).to eq("datacite")
324
324
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
325
325
  end
326
326
 
@@ -361,7 +361,7 @@ describe Bolognese::Metadata, vcr: true do
361
361
  "funderIdentifierType"=>"Crossref Funder ID",
362
362
  "funderName"=>"European Commission"}])
363
363
  expect(subject.identifiers).to eq([{"identifier"=>"123", "identifierType"=>"Repository ID"}])
364
- expect(subject.agency).to eq("DataCite")
364
+ expect(subject.agency).to eq("datacite")
365
365
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
366
366
  expect(subject.state).to eq("findable")
367
367
  end
@@ -614,7 +614,7 @@ describe Bolognese::Metadata, vcr: true do
614
614
  "http://www.rcuk.ac.uk/research/efficiency/researchadmin/harmonisation/",
615
615
  "subject"=>"Materials Characterisation",
616
616
  "subjectScheme"=>"RCUK Research Classifications"}])
617
- expect(subject.agency).to eq("DataCite")
617
+ expect(subject.agency).to eq("datacite")
618
618
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
619
619
  end
620
620
 
@@ -640,7 +640,7 @@ describe Bolognese::Metadata, vcr: true do
640
640
  "funderIdentifier"=>"https://doi.org/10.13039/501100000780",
641
641
  "funderIdentifierType"=>"Crossref Funder ID",
642
642
  "funderName"=>"European Commission"}])
643
- expect(subject.agency).to eq("DataCite")
643
+ expect(subject.agency).to eq("datacite")
644
644
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
645
645
  end
646
646
 
@@ -660,7 +660,7 @@ describe Bolognese::Metadata, vcr: true do
660
660
  expect(subject.publisher).to eq("МОДЕЛИРОВАНИЕ, ОПТИМИЗАЦИЯ И ИНФОРМАЦИОННЫЕ ТЕХНОЛОГИИ")
661
661
  expect(subject.funding_references.length).to eq(1)
662
662
  expect(subject.funding_references.first).to eq("awardNumber"=>"проект № 170100728", "funderName"=>"РФФИ")
663
- expect(subject.agency).to eq("DataCite")
663
+ expect(subject.agency).to eq("datacite")
664
664
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
665
665
  end
666
666
 
@@ -681,7 +681,7 @@ describe Bolognese::Metadata, vcr: true do
681
681
  expect(subject.publication_year).to eq("2016")
682
682
  expect(subject.related_identifiers.length).to eq(3)
683
683
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.5438/0000-00ss", "relatedIdentifierType"=>"DOI", "relationType"=>"IsPartOf")
684
- expect(subject.agency).to eq("DataCite")
684
+ expect(subject.agency).to eq("datacite")
685
685
  end
686
686
 
687
687
  it "Schema 4.1 from string" do
@@ -711,7 +711,7 @@ describe Bolognese::Metadata, vcr: true do
711
711
  "rightsUri"=>"https://creativecommons.org/licenses/by-nd/2.0/legalcode",
712
712
  "schemeUri"=>"https://spdx.org/licenses/"}])
713
713
  expect(subject.publisher).to eq("Springer")
714
- expect(subject.agency).to eq("DataCite")
714
+ expect(subject.agency).to eq("datacite")
715
715
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
716
716
  end
717
717
 
@@ -741,7 +741,7 @@ describe Bolognese::Metadata, vcr: true do
741
741
  "rightsUri"=>"https://creativecommons.org/licenses/by-nd/2.0/legalcode",
742
742
  "schemeUri"=>"https://spdx.org/licenses/"}])
743
743
  expect(subject.publisher).to eq("Springer")
744
- expect(subject.agency).to eq("DataCite")
744
+ expect(subject.agency).to eq("datacite")
745
745
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4.0")
746
746
  end
747
747
 
@@ -770,7 +770,7 @@ describe Bolognese::Metadata, vcr: true do
770
770
  "rightsUri"=>"https://creativecommons.org/publicdomain/zero/1.0/legalcode",
771
771
  "schemeUri"=>"https://spdx.org/licenses/"}])
772
772
  expect(subject.publisher).to eq("Dryad Digital Repository")
773
- expect(subject.agency).to eq("DataCite")
773
+ expect(subject.agency).to eq("datacite")
774
774
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
775
775
  end
776
776
 
@@ -800,7 +800,7 @@ describe Bolognese::Metadata, vcr: true do
800
800
  "rightsUri"=>"https://creativecommons.org/licenses/by-nd/2.0/legalcode",
801
801
  "schemeUri"=>"https://spdx.org/licenses/"}])
802
802
  expect(subject.publisher).to eq("Springer")
803
- expect(subject.agency).to eq("DataCite")
803
+ expect(subject.agency).to eq("datacite")
804
804
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3.0")
805
805
  end
806
806
 
@@ -824,7 +824,7 @@ describe Bolognese::Metadata, vcr: true do
824
824
  expect(subject.related_identifiers.length).to eq(1)
825
825
  expect(subject.related_identifiers.last).to eq("relatedIdentifier"=>"10.5272/oldertestpub", "relatedIdentifierType"=>"DOI", "relationType"=>"IsPartOf")
826
826
  expect(subject.publisher).to eq("Springer")
827
- expect(subject.agency).to eq("DataCite")
827
+ expect(subject.agency).to eq("datacite")
828
828
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.2")
829
829
  end
830
830
 
@@ -858,7 +858,7 @@ describe Bolognese::Metadata, vcr: true do
858
858
  "rightsUri"=>"https://creativecommons.org/licenses/by-nd/2.0/legalcode",
859
859
  "schemeUri"=>"https://spdx.org/licenses/"}])
860
860
  expect(subject.publisher).to eq("Springer")
861
- expect(subject.agency).to eq("DataCite")
861
+ expect(subject.agency).to eq("datacite")
862
862
  end
863
863
 
864
864
  it "namespaced xml from string" do
@@ -875,7 +875,7 @@ describe Bolognese::Metadata, vcr: true do
875
875
  expect(subject.dates).to eq([{"date"=>"2018-07-18", "dateType"=>"Valid"}, {"date"=>"2018-07-18", "dateType"=>"Accepted"}, {"date"=>"2018", "dateType"=>"Issued"}])
876
876
  expect(subject.publication_year).to eq("2018")
877
877
  expect(subject.publisher).to eq("nanoHUB")
878
- expect(subject.agency).to eq("DataCite")
878
+ expect(subject.agency).to eq("datacite")
879
879
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.2")
880
880
  end
881
881
 
@@ -907,7 +907,7 @@ describe Bolognese::Metadata, vcr: true do
907
907
  expect(subject.titles).to eq([{"title"=>"CERES Level 3 Cloud Type Historgram Terra+Aqua HDF file - Edition4"}])
908
908
  expect(subject.publication_year).to eq("2016")
909
909
  expect(subject.publisher).to eq("NASA Langley Atmospheric Science Data Center DAAC")
910
- expect(subject.agency).to eq("DataCite")
910
+ expect(subject.agency).to eq("datacite")
911
911
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
912
912
  end
913
913
 
@@ -928,7 +928,7 @@ describe Bolognese::Metadata, vcr: true do
928
928
  expect(subject.dates).to eq([{"date"=>"1995-12", "dateType"=>"Collected"}, {"date"=>"1996", "dateType"=>"Issued"}])
929
929
  expect(subject.publication_year).to eq("1996")
930
930
  expect(subject.publisher).to eq("GESIS Data Archive")
931
- expect(subject.agency).to eq("DataCite")
931
+ expect(subject.agency).to eq("datacite")
932
932
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
933
933
  end
934
934
 
@@ -950,7 +950,7 @@ describe Bolognese::Metadata, vcr: true do
950
950
  expect(subject.descriptions[1]["description"]).to start_with("Aim of this paper is the presentation")
951
951
  expect(subject.subjects).to eq([{"subject"=>"PV Systems"}, {"subject"=>"Off-grid Applications"}])
952
952
  expect(subject.publisher).to eq("WIP-Munich")
953
- expect(subject.agency).to eq("DataCite")
953
+ expect(subject.agency).to eq("datacite")
954
954
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.2")
955
955
  end
956
956
 
@@ -981,7 +981,7 @@ describe Bolognese::Metadata, vcr: true do
981
981
  expect(subject.dates).to eq([{"date"=>"2017", "dateType"=>"Issued"}])
982
982
  expect(subject.publication_year).to eq("2017")
983
983
  expect(subject.publisher).to eq("Siemens AG")
984
- expect(subject.agency).to eq("DataCite")
984
+ expect(subject.agency).to eq("datacite")
985
985
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
986
986
  end
987
987
 
@@ -1021,7 +1021,7 @@ describe Bolognese::Metadata, vcr: true do
1021
1021
  expect(subject.dates).to eq([{"date"=>"2014-04-25", "dateType"=>"Available"}, {"date"=>"2015", "dateType"=>"Issued"}])
1022
1022
  expect(subject.publication_year).to eq("2015")
1023
1023
  expect(subject.publisher).to eq("Royal Netherlands Meteorological Institute (KNMI)")
1024
- expect(subject.agency).to eq("DataCite")
1024
+ expect(subject.agency).to eq("datacite")
1025
1025
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
1026
1026
  end
1027
1027
 
@@ -1031,7 +1031,7 @@ describe Bolognese::Metadata, vcr: true do
1031
1031
  expect(subject.valid?).to be false
1032
1032
  expect(subject.id).to eq("https://doi.org/10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
1033
1033
  expect(subject.doi).to eq("10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
1034
- expect(subject.agency).to eq("DataCite")
1034
+ expect(subject.agency).to eq("datacite")
1035
1035
  expect(subject.state).to eq("not_found")
1036
1036
  end
1037
1037
 
@@ -1047,7 +1047,7 @@ describe Bolognese::Metadata, vcr: true do
1047
1047
  expect(subject.dates).to eq([{"date"=>"2018-01-12", "dateType"=>"Issued"}])
1048
1048
  expect(subject.publication_year).to eq("2018")
1049
1049
  expect(subject.publisher).to eq("CaltechDATA")
1050
- expect(subject.agency).to eq("DataCite")
1050
+ expect(subject.agency).to eq("datacite")
1051
1051
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
1052
1052
  expect(subject.state).to eq("findable")
1053
1053
  end
@@ -1064,7 +1064,7 @@ describe Bolognese::Metadata, vcr: true do
1064
1064
  expect(subject.dates).to eq([{"date"=>"2018", "dateType"=>"Issued"}])
1065
1065
  expect(subject.publication_year).to eq("2018")
1066
1066
  expect(subject.publisher).to eq("F1000 Research Limited")
1067
- expect(subject.agency).to eq("DataCite")
1067
+ expect(subject.agency).to eq("datacite")
1068
1068
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
1069
1069
  expect(subject.state).to eq("findable")
1070
1070
  end
@@ -1083,7 +1083,7 @@ describe Bolognese::Metadata, vcr: true do
1083
1083
  expect(subject.titles).to eq([{"title"=>"Referee report. For: Gates - add article keywords to the metatags [version 2; referees: 1 approved]"}])
1084
1084
  expect(subject.publication_year).to eq("2018")
1085
1085
  expect(subject.publisher).to eq("Gates Open Research")
1086
- expect(subject.agency).to eq("DataCite")
1086
+ expect(subject.agency).to eq("datacite")
1087
1087
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
1088
1088
  end
1089
1089
 
@@ -1176,7 +1176,7 @@ describe Bolognese::Metadata, vcr: true do
1176
1176
  {"date"=>"2009-10-01/2014-01-23", "dateType"=>"Created"}])
1177
1177
  expect(subject.publication_year).to eq("2014")
1178
1178
  expect(subject.publisher).to eq("Deutsches Elektronen-Synchrotron, DESY, Hamburg")
1179
- expect(subject.agency).to eq("DataCite")
1179
+ expect(subject.agency).to eq("datacite")
1180
1180
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
1181
1181
  end
1182
1182
 
@@ -1203,7 +1203,7 @@ describe Bolognese::Metadata, vcr: true do
1203
1203
  expect(subject.publisher).to eq("МОДЕЛИРОВАНИЕ, ОПТИМИЗАЦИЯ И ИНФОРМАЦИОННЫЕ ТЕХНОЛОГИИ")
1204
1204
  expect(subject.funding_references.count).to eq(1)
1205
1205
  expect(subject.funding_references.first).to eq("awardNumber"=>"проект № 170100728", "funderName"=>"РФФИ")
1206
- expect(subject.agency).to eq("DataCite")
1206
+ expect(subject.agency).to eq("datacite")
1207
1207
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
1208
1208
  end
1209
1209
 
@@ -1300,7 +1300,7 @@ describe Bolognese::Metadata, vcr: true do
1300
1300
  expect(subject.titles).to eq([{"lang"=>"en", "title"=>"Meteo measurements at the Sand Motor"}])
1301
1301
  expect(subject.publication_year).to eq("2017")
1302
1302
  expect(subject.publisher).to eq("4TU.Centre for Research Data")
1303
- expect(subject.agency).to eq("DataCite")
1303
+ expect(subject.agency).to eq("datacite")
1304
1304
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
1305
1305
  expect(subject.geo_locations.first["geoLocationPlace"]).to eq("Zandmotor, sand suppletion area on the Dutch coast.")
1306
1306
  expect(subject.geo_locations.first["geoLocationPolygon"].first).to eq("polygonPoint"=>{"pointLatitude"=>"52.03913926329928", "pointLongitude"=>"4.1738852605822"})
@@ -147,7 +147,7 @@ describe Bolognese::Metadata, vcr: true do
147
147
  expect(subject.publication_year).to eq("2015")
148
148
  expect(subject.version_info).to eq("v0.3.2")
149
149
  expect(subject.publisher).to eq("Zenodo")
150
- expect(subject.agency).to eq("DataCite")
150
+ expect(subject.agency).to eq("datacite")
151
151
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
152
152
  expect(subject.datacite).to include("<version>v0.3.2</version>")
153
153
  end
@@ -173,7 +173,7 @@ describe Bolognese::Metadata, vcr: true do
173
173
  {"schemeUri"=>"http://www.oecd.org/science/inno/38235147.pdf",
174
174
  "subject"=>"FOS: Computer and information sciences",
175
175
  "subjectScheme"=>"Fields of Science and Technology (FOS)"}])
176
- expect(subject.agency).to eq("DataCite")
176
+ expect(subject.agency).to eq("datacite")
177
177
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
178
178
  expect(subject.datacite).to end_with("</resource>")
179
179
  end
@@ -199,7 +199,7 @@ describe Bolognese::Metadata, vcr: true do
199
199
  {"schemeUri"=>"http://www.oecd.org/science/inno/38235147.pdf",
200
200
  "subject"=>"FOS: Computer and information sciences",
201
201
  "subjectScheme"=>"Fields of Science and Technology (FOS)"}])
202
- expect(subject.agency).to eq("DataCite")
202
+ expect(subject.agency).to eq("datacite")
203
203
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
204
204
  expect(subject.datacite).to end_with("</resource>")
205
205
  end
@@ -224,7 +224,7 @@ describe Bolognese::Metadata, vcr: true do
224
224
  expect(subject.related_identifiers.last).to eq("relatedIdentifier" => "10.1371/journal.ppat.1000446",
225
225
  "relatedIdentifierType" => "DOI","relationType"=>"IsSupplementTo")
226
226
  expect(subject.publisher).to eq("Dryad")
227
- expect(subject.agency).to eq("DataCite")
227
+ expect(subject.agency).to eq("datacite")
228
228
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
229
229
 
230
230
  datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
@@ -249,7 +249,7 @@ describe Bolognese::Metadata, vcr: true do
249
249
  expect(subject.dates).to eq([{"date"=>"2014-10-17", "dateType"=>"Updated"}, {"date"=>"2016-03-14T17:02:02Z", "dateType"=>"Available"}, {"date"=>"2013", "dateType"=>"Issued"}])
250
250
  expect(subject.publication_year).to eq("2013")
251
251
  expect(subject.publisher).to eq("UC Merced")
252
- expect(subject.agency).to eq("DataCite")
252
+ expect(subject.agency).to eq("datacite")
253
253
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
254
254
 
255
255
  datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
@@ -273,7 +273,7 @@ describe Bolognese::Metadata, vcr: true do
273
273
  expect(subject.valid?).to be false
274
274
  expect(subject.id).to eq("https://doi.org/10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
275
275
  expect(subject.doi).to eq("10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
276
- expect(subject.agency).to eq("DataCite")
276
+ expect(subject.agency).to eq("datacite")
277
277
  expect(subject.state).to eq("not_found")
278
278
  datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
279
279
  expect(datacite["identifier"]).to eq("identifierType"=>"DOI", "__content__"=>"10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
@@ -53,7 +53,7 @@ describe Bolognese::Metadata, vcr: true do
53
53
  jats = Maremma.from_xml(subject.jats).fetch("element_citation", {})
54
54
  expect(jats.dig("publication_type")).to eq("chapter")
55
55
  expect(jats.dig("chapter_title")).to eq("Physical Examinations")
56
- expect(jats.dig("source")).to eq("Jaypee Brothers Medical Publishers (P) Ltd.")
56
+ expect(jats.dig("source")).to eq("Jaypee Brothers Medical Publishing")
57
57
  expect(jats.dig("person_group", "name")).to eq("surname"=>"Saha", "given_names"=>"Ashis")
58
58
  expect(jats.dig("year")).to eq("iso_8601_date"=>"2015", "__content__"=>"2015")
59
59
  expect(jats.dig("fpage")).to eq("27")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -908,6 +908,7 @@ files:
908
908
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book.yml
909
909
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_chapter.yml
910
910
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_chapter_with_RDF_for_container.yml
911
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_oup.yml
911
912
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/component.yml
912
913
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/dataset.yml
913
914
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/dataset_usda.yml