Sha256: 323b9a84865db3bc5e3c4a39def900a95557329c8b63cd1994976e547bf986e9

Contents?: true

Size: 847 Bytes

Versions: 7

Compression:

Stored size: 847 Bytes

Contents

module RelatonIetf
  module BibXMLParser
    include RelatonBib::BibXMLParser
    extend BibXMLParser

    FLAVOR = "IETF".freeze

    # @param attrs [Hash]
    # @return [RelatonIetf::IetfBibliographicItem]
    def bib_item(**attrs)
      unless attrs.delete(:is_relation)
        attrs[:fetched] = Date.today.to_s
        attrs[:place] = ["Fremont, CA"]
      end
      RelatonIetf::IetfBibliographicItem.new(**attrs)
    end

    # @param [RelatonBib::WorkGroup]
    # @return [RelatonIetf::Committee]
    def committee(wgr)
      Committee.new wgr
    end

    # @param reference [Nokogiri::XML::Element]
    # @return [Array<Hash>]
    def contributors(reference)
      [{ entity: new_org("Internet Engineering Task Force", "IETF"), role: [type: "publisher"] }] + super
      # persons(reference) + organizations(reference)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
relaton-ietf-1.9.13 lib/relaton_ietf/bibxml_parser.rb
relaton-ietf-1.9.12 lib/relaton_ietf/bibxml_parser.rb
relaton-ietf-1.9.11 lib/relaton_ietf/bibxml_parser.rb
relaton-ietf-1.9.10 lib/relaton_ietf/bibxml_parser.rb
relaton-ietf-1.9.9 lib/relaton_ietf/bibxml_parser.rb
relaton-ietf-1.9.8 lib/relaton_ietf/bibxml_parser.rb
relaton-ietf-1.9.7 lib/relaton_ietf/bibxml_parser.rb