lib/berkeley_library/tind/mapping/additional_datafield_process.rb
# 1. Find all datafield with the tag,
#    if more than one found, combine repeated datafields which have a same tag into one
# 2. Find all 880 datafields with subfield6 referring to the tag,
#    if more than one found, combine repeated datafields with one subfield 6,
#    a related datafield will be modified to have the same sequence in subfield 6 as in this 880 subfield 6
1. Find all datafield with the tag,
if more than one found, combine repeated datafields which have a same tag into one
2. Find all 880 datafields with subfield6 referring to the tag,
if more than one found, combine repeated datafields with one subfield 6,
a related datafield will be modified to have the same sequence in subfield 6 as in this 880 subfield 6
1 . Find all datafield with the tag if more than one found combine repeated datafields which have a same tag into one 2 . Find all 880 datafields with subfield6 referring to the tag if more than one found combine repeated datafields with one subfield 6 a related datafield will be modified to have the same sequence in subfield 6 as in this 880 subfield 6
def remove_repeated_fields(tag, fields)
          repeated_fields = fields_on_tag(tag, fields)
          remove_repeated(repeated_fields, fields)
          repeated_880_fields = fields_880_on_subfield6_referredtag(tag, fields)
          remove_repeated(repeated_880_fields, fields)
          fields
        end
def remove_repeated_fields ( tag , fields ) repeated_fields = fields_on_tag ( tag , fields ) remove_repeated ( repeated_fields , fields ) repeated_880_fields = fields_880_on_subfield6_referredtag ( tag , fields ) remove_repeated ( repeated_880_fields , fields ) fields end
1.
1 .
tag
<not_specific>
fields
<not_specific>