lib/berkeley_library/tind/mapping/tind_marc.rb
# return mapped tind datafields
# keep the order of different mapping
return mapped tind datafields
keep the order of different mapping
return mapped tind datafields keep the order of different mapping
def tindfields_group
          fields_from_normal = tindfields_from_normal(@field_catalog.data_fields_group[:normal])
          fields_from_leader = TindFieldFromLeader.new(@source_marc_record).to_datafields
          temp_fields = fields_from_normal.concat fields_from_leader
          temp_fields.concat tindfields_from_control(temp_fields)
          temp_fields.concat tindfields_with_pre_existed_field(@field_catalog.data_fields_group[:pre_tag], temp_fields)
          temp_fields.concat tindfields_with_pre_existed_subfield(@field_catalog.data_fields_group[:pre_tag_subfield], temp_fields)
          temp_fields
        end
def tindfields_group fields_from_normal = tindfields_from_normal ( @field_catalog . data_fields_group [ :normal ] ) fields_from_leader = TindFieldFromLeader . new ( @source_marc_record ) . to_datafields temp_fields = fields_from_normal . concat fields_from_leader temp_fields . concat tindfields_from_control ( temp_fields ) temp_fields . concat tindfields_with_pre_existed_field ( @field_catalog . data_fields_group [ :pre_tag ] , temp_fields ) temp_fields . concat tindfields_with_pre_existed_subfield ( @field_catalog . data_fields_group [ :pre_tag_subfield ] , temp_fields ) temp_fields end
return mapped tind datafields
keep the order of different mapping
return mapped tind datafields keep the order of different mapping