Class: RelatonIec::XMLParser
- Inherits:
-
RelatonIsoBib::XMLParser
- Object
- RelatonIsoBib::XMLParser
- RelatonIec::XMLParser
- Defined in:
- lib/relaton_iec/xml_parser.rb
Class Method Summary collapse
-
.item_data(isoitem) ⇒ Object
Override RelatonIsoBib::XMLParser.item_data method.
Class Method Details
.item_data(isoitem) ⇒ Object
Override RelatonIsoBib::XMLParser.item_data method.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/relaton_iec/xml_parser.rb', line 7 def item_data(isoitem) # rubocop:disable Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/MethodLength,Metrics/PerceivedComplexity data = super ext = isoitem.at "./ext" return data unless ext data[:function] = ext.at("./function")&.text data[:updates_document_type] = ext.at("./updates-document-type")&.text aci = ext.at("./accessibility-color-inside") data[:accessibility_color_inside] = aci.text == "true" if aci cp = ext.at("./cen-processing") data[:cen_processing] = cp.text == "true" if cp data[:secretary] = ext.at("./secretary")&.text data[:interest_to_committees] = ext.at("./interest-to-committees")&.text data end |