bolognese 0.8.10 → 0.8.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bolognese/datacite.rb +1 -1
- data/lib/bolognese/metadata.rb +17 -0
- data/lib/bolognese/version.rb +1 -1
- data/spec/datacite_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9385c4cd78ed7a379e2ba3fb158897165d1bbf5e
|
4
|
+
data.tar.gz: 498d94f9145253b28c7174512d0411f66d1baf3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d247e561259eafc5a4563b709c80fb4099b3b7431b6649270c369b5f933ffea3ca12490db12c05a7bfba2da9023998aba85558cdd2ba8a5179eff8d71181de
|
7
|
+
data.tar.gz: 30c346a1f04313b7ae44acf311a94a4261964bb81b03855e4a020faeeba9f514f00ca6885b3fa077f2a5186d6a0bf013f8889e9aadab9bd04901e2c361eb03f0
|
data/Gemfile.lock
CHANGED
data/lib/bolognese/datacite.rb
CHANGED
data/lib/bolognese/metadata.rb
CHANGED
@@ -177,6 +177,23 @@ module Bolognese
|
|
177
177
|
"book-set" => nil
|
178
178
|
}
|
179
179
|
|
180
|
+
DC_TO_RIS_TRANSLATIONS = {
|
181
|
+
"Audiovisual" => "MPCT",
|
182
|
+
"Collection" => nil,
|
183
|
+
"Dataset" => "DATA",
|
184
|
+
"Event" => nil,
|
185
|
+
"Image" => "FIGURE",
|
186
|
+
"InteractiveResource" => nil,
|
187
|
+
"Model" => nil,
|
188
|
+
"PhysicalObject" => nil,
|
189
|
+
"Service" => nil,
|
190
|
+
"Software" => "COMP",
|
191
|
+
"Sound" => "SOUND",
|
192
|
+
"Text" => "RPRT",
|
193
|
+
"Workflow" => nil,
|
194
|
+
"Other" => nil
|
195
|
+
}
|
196
|
+
|
180
197
|
CP_TO_RIS_TRANSLATIONS = {
|
181
198
|
"post-weblog" => "BLOG",
|
182
199
|
"dataset" => "DATA",
|
data/lib/bolognese/version.rb
CHANGED
data/spec/datacite_spec.rb
CHANGED
@@ -316,7 +316,7 @@ describe Bolognese::Datacite, vcr: true do
|
|
316
316
|
subject = Bolognese::Datacite.new(id: id)
|
317
317
|
expect(subject.valid?).to be true
|
318
318
|
ris = subject.ris.split("\r\n")
|
319
|
-
expect(ris[0]).to eq("TY -
|
319
|
+
expect(ris[0]).to eq("TY - RPRT")
|
320
320
|
expect(ris[1]).to eq("T1 - Eating your own Dog Food")
|
321
321
|
expect(ris[2]).to eq("T2 - DataCite")
|
322
322
|
expect(ris[3]).to eq("AU - Fenner, Martin")
|