Sha256: 422191d4d352a46a8742c160de0423b2c862fe082499056edf817a3dc7c21500
Contents?: true
Size: 549 Bytes
Versions: 10
Compression:
Stored size: 549 Bytes
Contents
module Relaton module Render module IHO class Fields < ::Relaton::Render::Fields def edition_fields_format(hash) super hash[:publisher_raw]&.any? do |p| ["IHO", "International Hydrographic Organization"] .include?(p[:nonpersonal]) end or hash[:edition] = nil end def misc_fields_format(hash) super hash[:standardidentifier].map! do |x| x.sub(/^IHO /, "") end hash end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems