lib/relaton_iho/xml_parser.rb in relaton-iho-1.7.0 vs lib/relaton_iho/xml_parser.rb in relaton-iho-1.7.1
- old
+ new
@@ -16,14 +16,14 @@
end
# @param item_hash [Hash]
# @return [RelatonIho::IhoBibliographicItem]
def bib_item(item_hash)
- IhoBibliographicItem.new item_hash
+ IhoBibliographicItem.new **item_hash
end
- # @param ext [Nokogiri::XML::Element]
+ # @param ext [Nokogiri::XML::Element, nil]
# @return [RelatonIho::EditorialGroupCollection, nil]
def fetch_editorialgroup(ext)
return unless ext
egs = ext.xpath("editorialgroup").map do |eg|
@@ -33,10 +33,10 @@
EditorialGroup.new grps
end
EditorialGroupCollection.new egs if egs.any?
end
- # @param ext [Nokogiri::XML::Element. nil]
+ # @param ihgrp [Nokogiri::XML::Element, nil]
# @return [RelatonIho::Committee, RelatonIho::Commission,
# RelatonIho::Workgroup, nil]
def iho_group(ihgrp)
return unless ihgrp