Sha256: a523e3346c57dad0f3abbad164c82167b9d5581eb6bad1636d751ca6dd2c69c3

Contents?: true

Size: 605 Bytes

Versions: 3

Compression:

Stored size: 605 Bytes

Contents

class Document < GenericWork
  has_metadata "descMetadata", type: DocumentDatastream

  self.human_readable_short_description = "Deposit any text-based document (other than an article)."

  def self.valid_types
    [ 'Book',
      'Book Chapter',
      'Document',
      'Report',
      'Pamphlet',
      'Brochure',
      'Manuscript',
      'Letter',
      'Newsletter',
      'Press Release',
      'White Paper' ]
  end

  attribute :type, datastream: :descMetadata,
    multiple: false,
    validates: { inclusion: { in: Document.valid_types,
                              allow_blank: true } }

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
curate-0.5.1 app/repository_models/document.rb
curate-0.5.0 app/repository_models/document.rb
curate-0.4.2 app/repository_models/document.rb