Sha256: 024ac8d3e81ab64b350153a1ec172eadfaf8e2b5b2446ad594926436cb7ff6c5

Contents?: true

Size: 889 Bytes

Versions: 4

Compression:

Stored size: 889 Bytes

Contents

module Sufia
  module GenericFile
    module Metadata
      extend ActiveSupport::Concern

      included do
        has_metadata "descMetadata", type: GenericFileRdfDatastream
        has_metadata "properties", type: PropertiesDatastream
        has_file_datastream "content", type: FileContentDatastream
        has_file_datastream "thumbnail"


        delegate_to :properties, [:relative_path, :depositor, :import_url], multiple: false
        delegate_to :descMetadata, [:date_uploaded, :date_modified], multiple: false 
        delegate_to :descMetadata, [:related_url, :based_near, :part_of, :creator,
                                    :contributor, :title, :tag, :description, :rights,
                                    :publisher, :date_created, :subject,
                                    :resource_type, :identifier, :language], multiple: true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sufia-3.4.0.rc3 sufia-models/lib/sufia/models/generic_file/metadata.rb
sufia-models-3.4.0.rc3 lib/sufia/models/generic_file/metadata.rb
sufia-3.4.0.rc2 sufia-models/lib/sufia/models/generic_file/metadata.rb
sufia-models-3.4.0.rc2 lib/sufia/models/generic_file/metadata.rb