relaton-bib 1.19.3 → 1.19.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 999dde6e3d1bb1df421041946e460c0bbea4032b69833aa8215912f972af65fb
|
4
|
+
data.tar.gz: de8d307b656e2ecbbac2ef6b50d49eb7d053cae4d84b71838d4d9bc50023f478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37fda9565921654b8d3a939b77aa3e6e9ef9884ed763504993468c7cb8fac7f07c063c20676114baae892b2720cf37dec277c6f920aab088bbd94198273d2926
|
7
|
+
data.tar.gz: 38cc5aa0b08a19c8e6d7ef93e82c8b95be9e604afb8dcfae3a437bd310c6fcd73c8b1096456d5b64f812d4fc0dc5c85b57fdc196bae4eb3dec4431b62605cf77
|
@@ -229,7 +229,7 @@ module RelatonBib
|
|
229
229
|
OrgIdentifier.new(a[:type], a[:id])
|
230
230
|
end
|
231
231
|
org[:subdivision] = RelatonBib.array(org[:subdivision]).map do |sd|
|
232
|
-
LocalizedString.new sd
|
232
|
+
LocalizedString.new sd.is_a?(Hash) ? sd[:content] : sd
|
233
233
|
end
|
234
234
|
org[:contact] = contacts_hash_to_bib(org)
|
235
235
|
org[:logo] = Image.new(**org[:logo][:image]) if org[:logo]
|
data/lib/relaton_bib/version.rb
CHANGED
@@ -289,13 +289,17 @@ module RelatonBib
|
|
289
289
|
# @return [Array<RelatonBib::DocumentIdentifier>]
|
290
290
|
def fetch_docid(item)
|
291
291
|
item.xpath("./docidentifier").map do |id|
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
292
|
+
args = id.to_h.transform_keys(&:to_sym)
|
293
|
+
args[:id] = id.text
|
294
|
+
args[:primary] = id[:primary] == "true" ? true : nil
|
295
|
+
create_docid(**args)
|
296
296
|
end
|
297
297
|
end
|
298
298
|
|
299
|
+
def create_docid(**args)
|
300
|
+
DocumentIdentifier.new(**args)
|
301
|
+
end
|
302
|
+
|
299
303
|
# @param item [Nokogiri::XML::Element]
|
300
304
|
# @return [RelatonBib::TypedTitleStringCollection]
|
301
305
|
def fetch_titles(item)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|