lib/berkeley_library/tind/mapping/tind_subfield_util.rb
# Mutilpe subfields in one field may have the same name
# Get all subfields on 'from subfield name'
# Change subfield names with 'to subfield name'
Mutilpe subfields in one field may have the same name
Get all subfields on 'from subfield name'
Change subfield names with 'to subfield name'
Mutilpe subfields in one field may have the same name Get all subfields on ' from subfield name ' Change subfield names with ' to subfield name '
def subfields_from_to(field, from, to)
          subfield_arr = subfields(field, from)
          subfield_arr.each { |sf| sf.code = to } if !subfield_arr.empty? && (from != to)
          subfield_arr
        end
def subfields_from_to ( field , from , to ) subfield_arr = subfields ( field , from ) subfield_arr . each { | sf | sf . code = to } if ! subfield_arr . empty? && ( from != to ) subfield_arr end
Mutilpe subfields in one field may have the same name
Get all subfields on 'from subfield name'
Change subfield names with 'to subfield name'
Mutilpe subfields in one field may have the same name Get all subfields on ' from subfield name ' Change subfield names with ' to subfield name '
field
<not_specific>
from
<not_specific>
to
<not_specific>