lib/traject/lbcc_format_classifier.rb
def lbcc_formats
        lambda do |record, accumulator|
          accumulator.concat Traject::Macros::LbccFormatClassifier.new(record).formats
        end
      end
# very opionated macro that just adds a grab bag of format/genre/types
# from our own custom vocabulary, all into one field.
# You may want to build your own from MarcFormatClassifier functions instead.
#
very opionated macro that just adds a grab bag of format/genre/types
from our own custom vocabulary, all into one field.
You may want to build your own from MarcFormatClassifier functions instead.
very opionated macro that just adds a grab bag of format / genre / types from our own custom vocabulary all into one field . You may want to build your own from MarcFormatClassifier functions instead .
def lbcc_formats
        lambda do |record, accumulator|
          accumulator.concat Traject::Macros::LbccFormatClassifier.new(record).formats
        end
      end
def lbcc_formats lambda do | record , accumulator | accumulator . concat Traject :: Macros :: LbccFormatClassifier . new ( record ) . formats end end
very opionated macro that just adds a grab bag of format/genre/types
from our own custom vocabulary, all into one field.
very opionated macro that just adds a grab bag of format / genre / types from our own custom vocabulary all into one field .