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.0.0.pre.1 lib/ddr/models/has_multires_image.rb
ddr-models-1.16.1 lib/ddr/models/has_multires_image.rb
ddr-models-1.16.0 lib/ddr/models/has_multires_image.rb
ddr-models-1.15.0 lib/ddr/models/has_multires_image.rb
ddr-models-1.14.2 lib/ddr/models/has_multires_image.rb
ddr-models-1.14.1 lib/ddr/models/has_multires_image.rb
ddr-models-1.14.0 lib/ddr/models/has_multires_image.rb