Sha256: 91e54d9a56f98ca75ec5aefd97cd729fbec34d514733b2336aa910f2d00d0e40

Contents?: true

Size: 382 Bytes

Versions: 7

Compression:

Stored size: 382 Bytes

Contents

module Hydra::Derivatives
  class FullTextExtract < ImageDerivatives
    # Adds format: 'txt' as the default to each of the directives
    def self.transform_directives(options)
      options.each do |directive|
        directive.reverse_merge!(format: 'txt', binary: false)
      end
      options
    end

    def self.processor_class
      Processors::FullText
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hydra-derivatives-3.7.0 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.6.1 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.6.0 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.5.0 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.4.2 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.4.1 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.4.0 lib/hydra/derivatives/runners/full_text_extract.rb