lib/psulib_traject/holdings.rb
# assuming each 949 has only one subfield a, w and l
assuming each 949 has only one subfield a, w and l
assuming each 949 has only one subfield a w and l
def extract_holdings
        Traject::MarcExtractor.cached('949').collect_matching_lines(record) do |field, _spec, _extractor|
          CallNumber.new(
            value: field['a'],
            classification: field['w'],
            location: field['l'],
            item_type: field['t'],
            leader: record.leader
          )
        end
      end
def extract_holdings Traject :: MarcExtractor . cached ( '949' ) . collect_matching_lines ( record ) do | field , _spec , _extractor | CallNumber . new ( value : field [ 'a' ] , classification : field [ 'w' ] , location : field [ 'l' ] , item_type : field [ 't' ] , leader : record . leader ) end end
assuming each 949 has only one subfield a, w and l
assuming each 949 has only one subfield a w and l