lib/berkeley_library/tind/mapping/match_tind_field.rb
# return regular fields without matched 880 fields
# return 880 fields without matched regular fields
return regular fields without matched 880 fields
return 880 fields without matched regular fields
return regular fields without matched 880 fields return 880 fields without matched regular fields
def un_matched_fields_880(fields, mms_id)
          unmached_fields = []
          str_arr_from_880 = subfield6_values_from_880_fields(fields)
          str_arr_from_regular = subfield6_values_from_regular_fields(fields)
          fields_tobe_validated = fields_need_880_validation(fields)
          fields_880_tobe_validated = fields_tobe_validated.select { |f| is_880_field?(f) }
          fields_regular_tobe_validated = fields_tobe_validated.reject { |f| is_880_field?(f) }
          unmached_fields.concat un_matched_fields(fields_880_tobe_validated, str_arr_from_regular)
          unmached_fields.concat un_matched_fields(fields_regular_tobe_validated, str_arr_from_880)
          log_warning(unmached_fields, mms_id)
        end
def un_matched_fields_880 ( fields , mms_id ) unmached_fields = [ ] str_arr_from_880 = subfield6_values_from_880_fields ( fields ) str_arr_from_regular = subfield6_values_from_regular_fields ( fields ) fields_tobe_validated = fields_need_880_validation ( fields ) fields_880_tobe_validated = fields_tobe_validated . select { | f | is_880_field? ( f ) } fields_regular_tobe_validated = fields_tobe_validated . reject { | f | is_880_field? ( f ) } unmached_fields . concat un_matched_fields ( fields_880_tobe_validated , str_arr_from_regular ) unmached_fields . concat un_matched_fields ( fields_regular_tobe_validated , str_arr_from_880 ) log_warning ( unmached_fields , mms_id ) end
return regular fields without matched 880 fields
return 880 fields without matched regular fields
return regular fields without matched 880 fields return 880 fields without matched regular fields
fields
<not_specific>
mms_id
<not_specific>