lib/berkeley_library/tind/mapping/additional_datafield_process.rb
# Marc with tag in 'Config.no_duplicated_tags' are not supposed to have the same multiple subfields
# but sometime, sourc data error happens
# solution:
# taking the first subfield 6
# taking the first other subfield when there are multiple same subfields
# if 880 and regular field having unmatching subfield 6 in sequnce number, they will go to log file
# A user will check the log and correct data in Alma or TIND accordingly
Marc with tag in 'Config.no_duplicated_tags' are not supposed to have the same multiple subfields
but sometime, sourc data error happens
solution:
taking the first subfield 6
taking the first other subfield when there are multiple same subfields
if 880 and regular field having unmatching subfield 6 in sequnce number, they will go to log file
A user will check the log and correct data in Alma or TIND accordingly
Marc with tag in ' Config . no_duplicated_tags ' are not supposed to have the same multiple subfields but sometime sourc data error happens solution : taking the first subfield 6 taking the first other subfield when there are multiple same subfields if 880 and regular field having unmatching subfield 6 in sequnce number they will go to log file A user will check the log and correct data in Alma or TIND accordingly
def combined_subfields(fields)
          sf_arr = []
          subfield_6 = the_first_subfield6(fields)
          sf_arr << subfield_6 if subfield_6
          identical_subfields = no_duplicated_first_subfields(fields)
          sf_arr.concat identical_subfields
          sf_arr
        end
def combined_subfields ( fields ) sf_arr = [ ] subfield_6 = the_first_subfield6 ( fields ) sf_arr << subfield_6 if subfield_6 identical_subfields = no_duplicated_first_subfields ( fields ) sf_arr . concat identical_subfields sf_arr end
Marc with tag in 'Config.no_duplicated_tags' are not supposed to have the same multiple subfields
but sometime, sourc data error happens
solution:
taking the first subfield 6
taking the first other subfield when there are multiple same subfields
if 880 and regular field having unmatching subfield 6 in sequnce number, they will go to log file
A user will check the log and correct data in Alma or TIND accordingly
Marc with tag in ' Config . no_duplicated_tags ' are not supposed to have the same multiple subfields but sometime sourc data error happens solution : taking the first subfield 6 taking the first other subfield when there are multiple same subfields if 880 and regular field having unmatching subfield 6 in sequnce number they will go to log file A user will check the log and correct data in Alma or TIND accordingly
fields
<not_specific>