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
12 13 14 15 16 17 18 19 |
# File 'lib/relaton/render/fields.rb', line 12 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
7 8 9 10 |
# File 'lib/relaton/render/fields.rb', line 7 def name_fields_format(hash) super hash[:publisher_abbrev] = hash[:publisher_abbrev_raw]&.join("/") end |