Sha256: ce1f512d826b6e1dca31070ed092aa8fe1bd564eb0fa7d9b4970e362aa05765d

Contents?: true

Size: 550 Bytes

Versions: 17

Compression:

Stored size: 550 Bytes

Contents

module Relaton
  module Render
    module Ogc
      class Fields < ::Relaton::Render::Fields
        def name_fields_format(hash)
          super
          hash[:publisher_abbrev] = hash[:publisher_abbrev_raw]&.join("/")
        end

        def draftformat(num, hash)
          return nil unless hash[:publisher] == "Open Geospatial Consortium"
          return nil unless num[:status]
          return nil if %w(approved published deprecated retired)
            .include?(num[:status])

          "(Draft)"
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
metanorma-ogc-2.6.6 lib/relaton/render/fields.rb
metanorma-ogc-2.6.5 lib/relaton/render/fields.rb
metanorma-ogc-2.6.4 lib/relaton/render/fields.rb
metanorma-ogc-2.6.3 lib/relaton/render/fields.rb
metanorma-ogc-2.6.2 lib/relaton/render/fields.rb
metanorma-ogc-2.6.1 lib/relaton/render/fields.rb
metanorma-ogc-2.6.0 lib/relaton/render/fields.rb
metanorma-ogc-2.5.14 lib/relaton/render/fields.rb
metanorma-ogc-2.5.13 lib/relaton/render/fields.rb
metanorma-ogc-2.5.12 lib/relaton/render/fields.rb
metanorma-ogc-2.5.10 lib/relaton/render/fields.rb
metanorma-ogc-2.5.9 lib/relaton/render/fields.rb
metanorma-ogc-2.5.8 lib/relaton/render/fields.rb
metanorma-ogc-2.5.7 lib/relaton/render/fields.rb
metanorma-ogc-2.5.6 lib/relaton/render/fields.rb
metanorma-ogc-2.5.5 lib/relaton/render/fields.rb
metanorma-ogc-2.5.4 lib/relaton/render/fields.rb