lib/marc_cleanup/bib_rubymarc_fixes.rb
### Perform multiple field replacements on a record;
###   input is a hash with field strings as keys
###   and replacement fields as values
Perform multiple field replacements on a record;
input is a hash with field strings as keys
and replacement fields as values
Perform multiple field replacements on a record ; input is a hash with field strings as keys and replacement fields as values
def replace_fields(field_hash:, record:)
    field_hash.each do |field_string, replacement_field|
      record = replace_field(field_string: field_string,
                             replacement_field: replacement_field,
                             record: record)
    end
    record
  end
def replace_fields ( field_hash : , record : ) field_hash . each do | field_string , replacement_field | record = replace_field ( field_string : field_string , replacement_field : replacement_field , record : record ) end record end
Perform multiple field replacements on a record;
input is a hash with field strings as keys
and replacement fields as values
Perform multiple field replacements on a record ; input is a hash with field strings as keys and replacement fields as values
field_hash
record