relaton-bib 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_bib/version.rb +1 -1
- data/lib/relaton_bib/xml_parser.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2a973e714b86a5a78367ea697af8ba3eaa2861e571e3b035ec6ff411febc121
|
4
|
+
data.tar.gz: dabc25e318c346add35e69e383fa00762c5589e684983d708785a00d48a5d60e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6690ae53c5056fd830923eb85b5c04f1b652a5bb46c7024ae9f5ecf6f97cebd1d58d57a8069191b349dae9f50a050abdc8eb78375baa7e2f3e23ac1a8ec6290a
|
7
|
+
data.tar.gz: a8fa5e09f9630117c05e3594796f5eb04a8f54c7af344a709a264c8e9be45ce951ec1fc9f25b971193d64e824368babef489c29509bd2356a4c627d8ac384c47
|
data/lib/relaton_bib/version.rb
CHANGED
@@ -401,21 +401,25 @@ module RelatonBib
|
|
401
401
|
def localities(rel)
|
402
402
|
rel.xpath("./locality|./localityStack").map do |lc|
|
403
403
|
if lc.name == "locality"
|
404
|
-
|
404
|
+
locality lc
|
405
405
|
else
|
406
406
|
LocalityStack.new(lc.xpath("./locality").map { |l| locality l })
|
407
407
|
end
|
408
408
|
end
|
409
409
|
end
|
410
410
|
|
411
|
+
#
|
412
|
+
# Create Locality object from Nokogiri::XML::Element
|
413
|
+
#
|
411
414
|
# @param loc [Nokogiri::XML::Element]
|
415
|
+
# @param klass [RelatonBib::Locality.class, RelatonBib::LocalityStack.class]
|
416
|
+
#
|
412
417
|
# @return [RelatonBib::Locality]
|
413
418
|
def locality(loc, klass = Locality)
|
414
|
-
ref_to = (rt = loc.at("./referenceTo")) && LocalizedString.new(rt.text)
|
415
419
|
klass.new(
|
416
420
|
loc[:type],
|
417
|
-
|
418
|
-
|
421
|
+
loc.at("./referenceFrom")&.text,
|
422
|
+
loc.at("./referenceTo")&.text,
|
419
423
|
)
|
420
424
|
end
|
421
425
|
|
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.11.
|
4
|
+
version: 1.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|