Sha256: f01a681bb11d529f75c5e2c180e6e16c054aff4232c42addda30f493b20261a5

Contents?: true

Size: 593 Bytes

Versions: 67

Compression:

Stored size: 593 Bytes

Contents

module Ddr
  module Models
    module HasMultiresImage
      extend ActiveSupport::Concern

      included do
        has_file_datastream name: Ddr::Datastreams::MULTIRES_IMAGE,
                            label: "Multi-resolution image derivative for this object",
                            control_group: 'E'

        include FileManagement unless include?(FileManagement)
      end

      def multires_image_file_path
        URI.parse(datastreams[Ddr::Datastreams::MULTIRES_IMAGE].dsLocation).path if datastreams[Ddr::Datastreams::MULTIRES_IMAGE].dsLocation
      end

    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
ddr-models-2.6.2 lib/ddr/models/has_multires_image.rb
ddr-models-2.6.1 lib/ddr/models/has_multires_image.rb
ddr-models-2.6.0 lib/ddr/models/has_multires_image.rb
ddr-models-2.6.0.rc4 lib/ddr/models/has_multires_image.rb
ddr-models-2.6.0.rc3 lib/ddr/models/has_multires_image.rb
ddr-models-2.6.0.rc2 lib/ddr/models/has_multires_image.rb
ddr-models-2.6.0.rc1 lib/ddr/models/has_multires_image.rb
ddr-models-2.5.3 lib/ddr/models/has_multires_image.rb
ddr-models-2.5.2 lib/ddr/models/has_multires_image.rb
ddr-models-2.5.1 lib/ddr/models/has_multires_image.rb
ddr-models-2.5.0 lib/ddr/models/has_multires_image.rb
ddr-models-2.5.0.rc1 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.16 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.15 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.14 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.13 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.12 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.11 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.10 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.9 lib/ddr/models/has_multires_image.rb