lib/psulib_traject/processors/format.rb
# Check 949t formats, a record may have multiple 949s with different 949ts
Check 949t formats, a record may have multiple 949s with different 949ts
Check 949t formats a record may have multiple 949s with different 949ts
def field949t
      [].tap do |formats|
        Traject::MarcExtractor.cached('949t').collect_matching_lines(record) do |field, spec, extractor|
          field_949t = extractor.collect_subfields(field, spec).first
          format = Traject::TranslationMap.new('formats_949t').translate_array([field_949t])[0]
          formats << format if format
        end
      end
    end
def field949t [ ] . tap do | formats | Traject :: MarcExtractor . cached ( '949t' ) . collect_matching_lines ( record ) do | field , spec , extractor | field_949t = extractor . collect_subfields ( field , spec ) . first format = Traject :: TranslationMap . new ( 'formats_949t' ) . translate_array ( [ field_949t ] ) [ 0 ] formats << format if format end end end
Check 949t formats, a record may have multiple 949s with different 949ts
Check 949t formats a record may have multiple 949s with different 949ts