lib/psulib_traject/processors/format.rb
def physical_description
      [].tap do |formats|
        Traject::MarcExtractor.cached('007').collect_matching_lines(record) do |field, _spec, _extractor|
          format = Traject::TranslationMap.new('formats_007').translate_array([field.value[0]])[0]
          formats << format if format
        end
      end
    end
# Check 007 formats, a record may have multiple 007s
Check 007 formats, a record may have multiple 007s
Check 007 formats a record may have multiple 007s
def physical_description
      [].tap do |formats|
        Traject::MarcExtractor.cached('007').collect_matching_lines(record) do |field, _spec, _extractor|
          format = Traject::TranslationMap.new('formats_007').translate_array([field.value[0]])[0]
          formats << format if format
        end
      end
    end
def physical_description [ ] . tap do | formats | Traject :: MarcExtractor . cached ( '007' ) . collect_matching_lines ( record ) do | field , _spec , _extractor | format = Traject :: TranslationMap . new ( 'formats_007' ) . translate_array ( [ field . value [ 0 ] ] ) [ 0 ] formats << format if format end end end
Check 007 formats, a record may have multiple 007s
Check 007 formats a record may have multiple 007s