Sha256: 11d8820aef76b8e4be249b3894fc721603eea01093e726dd72ad9a0214efd429

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 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')
      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.1.3 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.1.2 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.1.1 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.1.0 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.0.2 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.0.1 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.0.0 lib/hydra/derivatives/runners/full_text_extract.rb