class RelatonOgc::XMLParser
Private Class Methods
bib_item(item_hash)
click to toggle source
override RelatonIsoBib::IsoBibliographicItem.bib_item method @param item_hash [Hash] @return [RelatonOgc::OgcBibliographicItem]
# File lib/relaton_ogc/xml_parser.rb, line 11 def bib_item(item_hash) OgcBibliographicItem.new(**item_hash) end
fetch_editorialgroup(ext)
click to toggle source
@TODO Organization doesn't recreated @param ext [Nokogiri::XML::Element] @return [RelatonIsoBib::EditorialGroup]
# File lib/relaton_ogc/xml_parser.rb, line 30 def fetch_editorialgroup(ext) eg = ext.at("./editorialgroup") return unless eg committe = eg&.at("committee")&.text sc = iso_subgroup eg&.at("subcommittee") wg = iso_subgroup eg&.at("workgroup") EditorialGroup.new( committee: committe, subcommittee: sc, workgroup: wg, ) end