Sha256: d1505a7ebb64f1277d0e0a30d1e684dbcc2661bc1abeb564439b0f2561d27fd9

Contents?: true

Size: 1.55 KB

Versions: 10

Compression:

Stored size: 1.55 KB

Contents

require 'active_fedora'

module Ddr
  module Datastreams
    extend ActiveSupport::Autoload

    ADMIN_METADATA    = "adminMetadata"
    CAPTION           = "caption"
    CONTENT           = "content"
    DC                = "DC"
    DESC_METADATA     = "descMetadata"
    EXTRACTED_TEXT    = "extractedText"
    FITS              = "fits".freeze
    INTERMEDIATE_FILE = "intermediateFile".freeze
    MULTIRES_IMAGE    = "multiresImage"
    RELS_EXT          = "RELS-EXT"
    STREAMABLE_MEDIA  = "streamableMedia"
    STRUCT_METADATA   = "structMetadata"
    THUMBNAIL         = "thumbnail"

    SAVE = "save.repo_file"
    DELETE = "delete.repo_file"

    CHECKSUM_TYPE_MD5 = "MD5"
    CHECKSUM_TYPE_SHA1 = "SHA-1"
    CHECKSUM_TYPE_SHA256 = "SHA-256"
    CHECKSUM_TYPE_SHA384 = "SHA-384"
    CHECKSUM_TYPE_SHA512 = "SHA-512"

    CHECKSUM_TYPES = [ CHECKSUM_TYPE_MD5, CHECKSUM_TYPE_SHA1, CHECKSUM_TYPE_SHA256, CHECKSUM_TYPE_SHA384, CHECKSUM_TYPE_SHA512 ]

    autoload :AdministrativeMetadataDatastream
    autoload :CaptionDatastream
    autoload :ContentDatastream
    autoload :DatastreamBehavior
    autoload :DeleteExternalFiles
    autoload :DescriptiveMetadataDatastream
    autoload :ExternalFileDatastream
    autoload :FitsDatastream
    autoload :IntermediateFileDatastream
    autoload :MetadataDatastream
    autoload :MultiresImageDatastream
    autoload :PlainTextDatastream
    autoload :StreamableMediaDatastream
    autoload :StructuralMetadataDatastream

    mattr_accessor :update_derivatives_on_changed do
      [ CONTENT, INTERMEDIATE_FILE ]
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ddr-models-2.11.0 lib/ddr/datastreams.rb
ddr-models-2.10.2 lib/ddr/datastreams.rb
ddr-models-2.10.1 lib/ddr/datastreams.rb
ddr-models-2.10.0 lib/ddr/datastreams.rb
ddr-models-2.10.0.rc2 lib/ddr/datastreams.rb
ddr-models-2.10.0.rc1 lib/ddr/datastreams.rb
ddr-models-2.9.2 lib/ddr/datastreams.rb
ddr-models-2.9.1 lib/ddr/datastreams.rb
ddr-models-2.9.0 lib/ddr/datastreams.rb
ddr-models-2.9.0.rc1 lib/ddr/datastreams.rb