lib/traject/extract_contributors.rb
def data_for(field)
    strings = field.subfields.map do |subfield|
      next unless relevant_subfield?(field.tag, subfield)

      subfield.value.strip
    end.compact

    {
      type: model_name_for(field),
      name: Traject::Macros::Marc21.trim_punctuation(strings.join(" ")),
    }
  end
# For wax cylinder recordings, we want to capture
# contributor data from fields 100, 110, 700, and 710
# of the MARC record.
For wax cylinder recordings, we want to capture
contributor data from fields 100, 110, 700, and 710
of the MARC record.
For wax cylinder recordings we want to capture contributor data from fields 100 110 700 and 710 of the MARC record .
def data_for(field)
    strings = field.subfields.map do |subfield|
      next unless relevant_subfield?(field.tag, subfield)
      subfield.value.strip
    end.compact
    {
      type: model_name_for(field),
      name: Traject::Macros::Marc21.trim_punctuation(strings.join(" ")),
    }
  end
def data_for ( field ) strings = field . subfields . map do | subfield | next unless relevant_subfield? ( field . tag , subfield ) subfield . value . strip end . compact { type : model_name_for ( field ) , name : Traject :: Macros :: Marc21 . trim_punctuation ( strings . join ( " " ) ) , } end
For wax cylinder recordings, we want to capture
contributor data from fields 100, 110, 700, and 710
of the MARC record.
For wax cylinder recordings we want to capture contributor data from fields 100 110 700 and 710 of the MARC record .
field