lib/psulib_traject/processors/record_type.rb
def thesis_or_book
        if record['008'] && record['008'].value[24..27].include?('m')
          'Thesis/Dissertation'
        else
          book
        end
      end
# If decided that it is a Thesis/Dissertation, it is NOT a Book
If decided that it is a Thesis/Dissertation, it is NOT a Book
If decided that it is a Thesis / Dissertation it is NOT a Book
def thesis_or_book
        if record['008'] && record['008'].value[24..27].include?('m')
          'Thesis/Dissertation'
        else
          book
        end
      end
def thesis_or_book if record [ '008' ] && record [ '008' ] . value [ 24 .. 27 ] . include? ( 'm' ) 'Thesis/Dissertation' else book end end
If decided that it is a Thesis/Dissertation, it is NOT a Book
If decided that it is a Thesis / Dissertation it is NOT a Book