Sha256: 627dd5e0cbd2fe6971f694159dc24ae2a9b44a55d1c2bae13a9e55a2e7069c65

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

require 'hydra/works/version'
require 'hydra/pcdm'
require 'hydra/derivatives'

module Hydra
  module Works
    extend ActiveSupport::Autoload

    module Vocab
      extend ActiveSupport::Autoload
      eager_autoload do
        autoload :WorksTerms
      end
    end

    autoload_under 'models/concerns/file_set' do
      autoload :Derivatives
      autoload :MimeTypes
      autoload :ContainedFiles
      autoload :VersionedContent
      autoload :VirusCheck
    end

    autoload :Characterization
    autoload :NotFileSetValidator
    autoload :NotCollectionValidator

    autoload_under 'models' do
      autoload :Collection
      autoload :FileSet
      autoload :Work
    end

    autoload_under 'models/concerns' do
      autoload :CollectionBehavior
      autoload :FileSetBehavior
      autoload :WorkBehavior
    end

    autoload_under 'services' do
      autoload :VirusCheckerService
      autoload :AddFileToFileSet
      autoload :UploadFileToFileSet
      autoload :PersistDerivative
      autoload :CharacterizationService
    end

    ActiveFedora::WithMetadata::DefaultMetadataClassFactory.file_metadata_schemas +=
      [
        Characterization::AudioSchema,
        Characterization::BaseSchema,
        Characterization::DocumentSchema,
        Characterization::ImageSchema,
        Characterization::VideoSchema
      ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydra-works-0.10.0 lib/hydra/works.rb