relaton-ogc 0.6.0 → 0.6.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_ogc/version.rb +1 -1
- data/lib/relaton_ogc/xml_parser.rb +5 -1
- 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: e3c06d93936ffdfe9d0ad5ec9c970c6ffe60c999668d6297aba52c2ed829da8d
|
4
|
+
data.tar.gz: eada0a4b60c798b5034e7f224942f19e34dec434761da0fb0c687441b6b5bea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4e9971ff827dd4c84833f6aabaf01fd85eac07f16edaa6d6a84ac4f4dfab2d66cb23a881b5e6f4ef17dc78f4ac8fa76795c8cfb22df07bf6b4bdc7346de295
|
7
|
+
data.tar.gz: d241a9c8e51ca9e57ddf057640c28549f155673cabef16645e31a96bc4abeb51fdce1a8b485a6ee2fdfa33bbade46a1be68132942d63b73d0e1d97dff027e4bf
|
data/lib/relaton_ogc/version.rb
CHANGED
@@ -9,7 +9,11 @@ module RelatonOgc
|
|
9
9
|
def from_xml(xml)
|
10
10
|
doc = Nokogiri::XML(xml)
|
11
11
|
isoitem = doc.at "/bibitem|/bibdata"
|
12
|
-
|
12
|
+
if isoitem
|
13
|
+
OgcBibliographicItem.new item_data(isoitem)
|
14
|
+
else
|
15
|
+
warn "[relato-ogc] can't find bibitem or bibdata element in the XML"
|
16
|
+
end
|
13
17
|
end
|
14
18
|
|
15
19
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.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: 2020-02-
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|