Module: Cul::Scv::Hydra::Solrizer::ScvModsFieldable::ClassMethods

Defined in:
lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb

Instance Method Summary collapse

Instance Method Details

#map_field(field_key, map_key) ⇒ Object



13
14
15
# File 'lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb', line 13

def map_field(field_key, map_key)
  value_mapper.map_field(field_key, map_key)
end

#map_value(field_key, value_key) ⇒ Object



17
18
19
# File 'lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb', line 17

def map_value(field_key, value_key)
  value_mapper.map_value(field_key, value_key)
end

#maps_field?(field_key) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb', line 21

def maps_field?(field_key)
  value_mapper.maps_field? field_key
end

#value_mapper(maps = nil) ⇒ Object



9
10
11
# File 'lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb', line 9

def value_mapper(maps=nil)
  @value_mapper ||= ValueMapper.new(maps)
end