lib/berkeley_library/tind/mapping/tind_subfield_util.rb
# From all subfield 6 gotten for repeated fields - with the same tag
# return the first subfield 6
From all subfield 6 gotten for repeated fields - with the same tag
return the first subfield 6
From all subfield 6 gotten for repeated fields - with the same tag return the first subfield 6
def the_first_subfield6(fields)
          values = subfield_6_values(fields)
          return nil if values.empty?
          logger.warn("#{f[0].tag} have multiple datafields with multiple subfield 6, the first subfield 6 is kept") if values.length > 1
          Util.subfield('6', values[0])
        end
def the_first_subfield6 ( fields ) values = subfield_6_values ( fields ) return nil if values . empty? logger . warn ( "#{f[0].tag} have multiple datafields with multiple subfield 6, the first subfield 6 is kept" ) if values . length > 1 Util . subfield ( '6' , values [ 0 ] ) end
From all subfield 6 gotten for repeated fields - with the same tag
return the first subfield 6
From all subfield 6 gotten for repeated fields - with the same tag return the first subfield 6
# keep it here, in case needed in future: this can make sure # 880 and regular fields having matching sequence number # subfield6_with_small_no(values) # new implementation: keep the first subfield 6 value
fields
<not_specific>