lib/berkeley_library/tind/mapping/tind_subfield_util.rb
# return subfields of specific code
# Datafield returned from Alma may have mutiple subfields with the same code
return subfields of specific code
Datafield returned from Alma may have mutiple subfields with the same code
return subfields of specific code Datafield returned from Alma may have mutiple subfields with the same code
def subfields(field, code)
          sf = []
          field.each do |s|
            next unless s.code == code
            captilize_subfield(s) if code == '3'
            sf << s
          end
          sf
        end
def subfields ( field , code ) sf = [ ] field . each do | s | next unless s . code == code captilize_subfield ( s ) if code == '3' sf << s end sf end
return subfields of specific code
Datafield returned from Alma may have mutiple subfields with the same code
return subfields of specific code Datafield returned from Alma may have mutiple subfields with the same code
field
<not_specific>
code
<not_specific>