bolognese 0.9.81 → 0.9.82
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_utils.rb +3 -3
- data/lib/bolognese/metadata.rb +1 -1
- data/lib/bolognese/version.rb +1 -1
- data/spec/writers/crosscite_writer_spec.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfab5330f0ed1e74c60ee18061665e3136abc0fafd9f5fca3eaba979830010ca
|
4
|
+
data.tar.gz: 67110135d26ff28e76c89f9c46e50f97a0e7e14f31b982fe45a1373dd4466990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e0d7b164f75198bcf5f8ed9b2b96fef5aafc5fd759b34c348437d36c41eefe1aac15752c3bc4b7c556b95b0d3e22c1d7a7fd4bbc0a6a0809dbaf7e1d5f650e
|
7
|
+
data.tar.gz: 0528fc884d41d5454985bd52b157533e30d3c60d4173dbae4952cae825a65cbac3798fdfebe2c6c5c31ff8fdb5446f432955b769248a0e56a112fc6534189375
|
data/Gemfile.lock
CHANGED
@@ -90,7 +90,7 @@ module Bolognese
|
|
90
90
|
xml.publicationYear(publication_year)
|
91
91
|
end
|
92
92
|
|
93
|
-
def
|
93
|
+
def res_type
|
94
94
|
{ "resource_type_general" => Metadata::SO_TO_DC_TRANSLATIONS[type] || "Other",
|
95
95
|
"__content__" => additional_type || type }
|
96
96
|
end
|
@@ -98,8 +98,8 @@ module Bolognese
|
|
98
98
|
def insert_resource_type(xml)
|
99
99
|
return xml unless type.present?
|
100
100
|
|
101
|
-
xml.resourceType(
|
102
|
-
'resourceTypeGeneral' =>
|
101
|
+
xml.resourceType(res_type["__content__"],
|
102
|
+
'resourceTypeGeneral' => res_type["resource_type_general"])
|
103
103
|
end
|
104
104
|
|
105
105
|
def insert_alternate_identifiers(xml)
|
data/lib/bolognese/metadata.rb
CHANGED
data/lib/bolognese/version.rb
CHANGED
@@ -12,7 +12,6 @@ describe Bolognese::Metadata, vcr: true do
|
|
12
12
|
expect(crosscite.fetch("references").length).to eq(26)
|
13
13
|
expect(crosscite.fetch("references").first).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.1038/nature02100", "title"=>"APL regulates vascular tissue identity in Arabidopsis")
|
14
14
|
expect(crosscite.fetch("license")).to eq("id"=>"http://creativecommons.org/licenses/by/3.0")
|
15
|
-
expect(crosscite.fetch("schema_version")).to eq("http://datacite.org/schema/kernel-4")
|
16
15
|
end
|
17
16
|
|
18
17
|
it "with ORCID ID" do
|