Module: Kiba::Extend::Transforms::Marc::FieldLinkable
- Included in:
- ExtractBaseNameData, ExtractSubfieldsFromField
- Defined in:
- lib/kiba/extend/transforms/marc/field_linkable.rb
Overview
Mix-in module providing methods for dealing with identifying and extracting data from linked transliterated and vernacular (e.g. 880) fields in MARC data
Instance Method Summary collapse
Instance Method Details
#select_fields(record, tags) ⇒ Array<MARC::ControlField,MARC::DataField>
16 17 18 19 20 21 22 |
# File 'lib/kiba/extend/transforms/marc/field_linkable.rb', line 16 def select_fields(record, ) all = candidate_fields(record, ) .map { |field| add_linkage_data(field) } preferred(all) .map { |fldhsh| update_tag(fldhsh) } .map { |fldhsh| fldhsh[:datafield] } end |