relaton-iso-bib 0.8.0 → 0.8.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_iso_bib/version.rb +1 -1
- data/lib/relaton_iso_bib/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: a3acae9aa049444f9d5a9eb512612b1d085e888e6a8bd32088a2d5137e68fe26
|
4
|
+
data.tar.gz: 94fc512c1479bf2fff43fd50af5162c4519e96f697f86103c75c9ea50f804b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcf76383c923649831cb0b390aa679c45da075d57b77c7c3e6cbe5cb18d1df768028134da6c96bd8518d86a50b5a69c7f3eb5ed89644dae5d7052a212f45dd0b
|
7
|
+
data.tar.gz: 3ca5df2eba1b03ad1c2b8bc264e660df2f10f4196ab52d2e641fe9aa89e442877adb03c86eb939de49e8e8e27b1b5fdc35d8bce26a9515f8f58f5a1057a767a8
|
@@ -10,7 +10,11 @@ module RelatonIsoBib
|
|
10
10
|
doc = Nokogiri::XML(xml)
|
11
11
|
doc.remove_namespaces!
|
12
12
|
isoitem = doc.at "/bibitem|/bibdata"
|
13
|
-
|
13
|
+
if isoitem
|
14
|
+
IsoBibliographicItem.new item_data(isoitem)
|
15
|
+
else
|
16
|
+
warn "[relato-bib] can't find bibitem or bibdata element in the XML"
|
17
|
+
end
|
14
18
|
end
|
15
19
|
|
16
20
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iso-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.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: pry-byebug
|