Sha256: f00846c0fd1a0c68d181306f63d91ee5e6055170df6988b825f0597b9078becc

Contents?: true

Size: 1.09 KB

Versions: 56

Compression:

Stored size: 1.09 KB

Contents

module CurationConcerns
  module RequiredMetadata
    extend ActiveSupport::Concern

    included do
      property :depositor, predicate: ::RDF::URI.new('http://id.loc.gov/vocabulary/relators/dpt'), multiple: false do |index|
        index.as :symbol, :stored_searchable
      end

      property :title, predicate: ::RDF::Vocab::DC.title do |index|
        index.as :stored_searchable, :facetable
      end

      # We reserve date_uploaded for the original creation date of the record.
      # For example, when migrating data from a fedora3 repo to fedora4,
      # fedora's system created date will reflect the date when the record
      # was created in fedora4, but the date_uploaded will preserve the
      # original creation date from the old repository.
      property :date_uploaded, predicate: ::RDF::Vocab::DC.dateSubmitted, multiple: false do |index|
        index.type :date
        index.as :stored_sortable
      end

      property :date_modified, predicate: ::RDF::Vocab::DC.modified, multiple: false do |index|
        index.type :date
        index.as :stored_sortable
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
curation_concerns-1.7.8 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.7 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.6 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.5 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.4 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.3 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.2 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.1 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.0 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.7.0.beta1 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.6.3 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.6.2 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.6.1 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.6.0 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.5.0 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.4.0 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.3.3 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.3.2 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.3.1 app/models/concerns/curation_concerns/required_metadata.rb
curation_concerns-1.3.0 app/models/concerns/curation_concerns/required_metadata.rb