iso-bib-item 0.4.1 → 0.4.2

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: 851d7eeda20441447ee2a82966d8c0bd57677d009361d52a0875538a56deb56d
4
- data.tar.gz: 4bbc5a4c779795d8b1fbb7a251d48dd0934d9ee1f4775c1ec82a4719e780c3d8
3
+ metadata.gz: 96383163b355abde118e93a48314f7327dfcef8a7db1cef4b9d337215603abf4
4
+ data.tar.gz: acf207d7085d86cb08c0141676a6422db82a1cd952de58cbf16b744dc94cb1f1
5
5
  SHA512:
6
- metadata.gz: c6fd6f005183cbeb54120ea58a491456ca3402f1ad460706e88e5df54853a0fc749bd5ab756608da81b26ee01e0e6d8502166262550d618e31f091ba3f3559a0
7
- data.tar.gz: 373808606b09e65fc2f317e06cf114aacffa5a6faaa0aab98747156fad54afa60fc4953a52847f105267aece743fd3621ede69c4837679561e59cab0ba65a1de
6
+ metadata.gz: 7d9fca95ab51c0e0f4ce481f22bafd509e0904bdd62a95faac19c6638b7f9301f4b6a15d0b4e384b13ef2c4523d008f829f2767727095f936cac69df8eaa0b3f
7
+ data.tar.gz: '068aeb767e3adff4f0c07d8202626b534590960ac2aed160e9bebe260e8a939ea283b4abaae85ad694549baace82c732e01aaa258742295ed50a176c83c0a78d'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iso-bib-item (0.4.1)
4
+ iso-bib-item (0.4.2)
5
5
  isoics (~> 0.1.6)
6
6
  nokogiri (~> 1.8.4)
7
7
  ruby_deep_clone (~> 0.8.0)
@@ -295,6 +295,7 @@ module IsoBibItem
295
295
 
296
296
  def render_xml(builder, **opts)
297
297
  builder.send(:bibitem, xml_attrs(type)) do
298
+ builder.fetched fetched
298
299
  title.each { |t| t.to_xml builder }
299
300
  link.each { |s| s.to_xml builder }
300
301
  # docidentifier.to_xml builder
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module IsoBibItem
4
- VERSION = '0.4.1'.freeze
4
+ VERSION = '0.4.2'.freeze
5
5
  end
@@ -188,7 +188,7 @@ module IsoBibItem
188
188
  def fetch_relations(doc)
189
189
  doc.xpath('/bibitem/relation').map do |r|
190
190
  DocumentRelation.new(type: r[:type],
191
- identifier: r.at('bibitem/formattedref').text)
191
+ identifier: r&.at('./bibitem/formattedref | ./bibitem/docidentifier')&.text)
192
192
  end
193
193
  end
194
194
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso-bib-item
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-17 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler