lib/berkeley_library/tind/mapping/tind_field_util.rb
# tag - regular alma field
# referred tag - got tag from subfield6 value of a 880 field
# nil rule caused by nil referred tag - eg. 880 subfild6 has a value in wrong format
regular alma field
referred tag - got tag from subfield6 value of a 880 field
nil rule caused by nil referred tag - eg. 880 subfild6 has a value in wrong format
regular alma field referred tag - got tag from subfield6 value of a 880 field nil rule caused by nil referred tag - eg . 880 subfild6 has a value in wrong format
def map_to_tag_existed_in_fields?(field, fields, mapping_to_tag)
          existed_tags = if is_880_field?(field)
                           tags_from_fields(fields) { |f| tag_from_880_subfield6(f) }
                         else
                           tags_from_fields(fields, &:tag)
                         end
          existed_tags.include? mapping_to_tag
        end
def map_to_tag_existed_in_fields? ( field , fields , mapping_to_tag ) existed_tags = if is_880_field? ( field ) tags_from_fields ( fields ) { | f | tag_from_880_subfield6 ( f ) } else tags_from_fields ( fields , & :tag ) end existed_tags . include? mapping_to_tag end
tag - regular alma field
referred tag - got tag from subfield6 value of a 880 field
nil rule caused by nil referred tag - eg.
tag - regular alma field referred tag - got tag from subfield6 value of a 880 field nil rule caused by nil referred tag - eg .
field
<not_specific>
fields
<not_specific>
mapping_to_tag
<not_specific>