Class: Relaton::Render::Jis::Fields

Inherits:
Fields
  • Object
show all
Defined in:
lib/relaton/render-jis/fields.rb

Instance Method Summary collapse

Instance Method Details

#edition_fields_format(hash) ⇒ Object



7
8
9
10
# File 'lib/relaton/render-jis/fields.rb', line 7

def edition_fields_format(hash)
  super
  hash[:version] = versionformat(hash[:edition_raw], hash)
end

#versionformat(edn, context) ⇒ Object



12
13
14
15
# File 'lib/relaton/render-jis/fields.rb', line 12

def versionformat(edn, context)
  edn && !edn.empty? or return
  @r.i18n.select(context).populate("version_cardinal", { "var1" => edn })
end