Skip to content

Placeholder Work Types

Dan Brubaker Horst edited this page Aug 21, 2013 · 2 revisions

You can use placeholder work types to show the work types you intend to implement but haven't gotten around to supporting yet. This can make an implementation of curate that only supports one or two types of works look more impressive.

placeholder-work-types

There is no interface for adding placholder work types. You have to code them directly into your rails app. The above example was created from the following app/models/classify_concern.rb.

require Curate::Engine.root.join('app/models/classify_concern')
class ClassifyConcern
 VALID_CURATION_CONCERN_CLASS_NAMES = [
   'SeniorThesis'
 ]
 UPCOMING_CONCERNS = [
   ['Article', 'Deposit your preprint or open access articles.'],
   ['Dataset', 'Store research data.'],
   ['Image', 'Deposite photographs or generated images.'],
    ['Video', 'Upload your video files.']
  ]
end
Clone this wiki locally