Class: Relaton::Render::Ogc::Fields
- Inherits:
-
Fields
- Object
- Fields
- Relaton::Render::Ogc::Fields
- Defined in:
- lib/relaton/render/fields.rb
Instance Method Summary collapse
Instance Method Details
#draftformat(num, hash) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/relaton/render/fields.rb', line 10 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 |
#name_fields_format(hash) ⇒ Object
5 6 7 8 |
# File 'lib/relaton/render/fields.rb', line 5 def name_fields_format(hash) super hash[:publisher_abbrev] = hash[:publisher_abbrev_raw]&.join("/") end |