Sha256: ba90c53bf3a62c4d45e24314d91b9028d44a2ed1db7cd34cc2f1f32be11480b5

Contents?: true

Size: 620 Bytes

Versions: 9

Compression:

Stored size: 620 Bytes

Contents

module RelatonItu
  class ItuBibliographicItem < RelatonBib::BibliographicItem
    TYPES = %w[
      recommendation recommendation-supplement recommendation-amendment
      recommendation-corrigendum recommendation-errata recommendation-annex
      focus-group implementers-guide technical-paper technical-report
      joint-itu-iso-iec
    ].freeze

    # @params structuredidentifier [RelatonItu::StructuredIdentifier]
    def initialize(**args)
      if args[:doctype] && !TYPES.include?(args[:doctype])
        warn "[relaton-itu] WARNING: invalid doctype: #{args[:doctype]}"
      end
      super
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
relaton-itu-1.7.2 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.7.1 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.7.0 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.6.0 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.6.pre1 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.5.0 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.5.pre lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.4.0 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.3.0 lib/relaton_itu/itu_bibliographic_item.rb