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.4.8 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.7 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.6 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.5 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.4 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.3 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.2 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.1 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0.rc6 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0.rc5 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0.rc4 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0.rc3 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0.rc2 lib/ddr/models/has_multires_image.rb
ddr-models-2.4.0.rc1 lib/ddr/models/has_multires_image.rb
ddr-models-2.3.2 lib/ddr/models/has_multires_image.rb
ddr-models-2.3.1 lib/ddr/models/has_multires_image.rb
ddr-models-2.3.0 lib/ddr/models/has_multires_image.rb
ddr-models-2.2.0 lib/ddr/models/has_multires_image.rb
ddr-models-2.1.3 lib/ddr/models/has_multires_image.rb