require "edition"
require "attachable_with_metadata"

class PersonEdition < Edition
  include AttachableWithMetadata

  # type (Staff / Trainer / Member / Start-up / Artist):  applied by tag
  field    :honorific_prefix, type: String
  field    :honorific_suffix, type: String
  field    :affiliation,      type: String
  # name: uses artefact name
  field    :role,             type: String
  field    :team,             type: String
  field    :description,      type: String
  field    :url,              type: String
  field    :telephone,        type: String
  field    :email,            type: String
  field    :twitter,          type: String
  field    :linkedin,         type: String
  field    :github,           type: String
  field    :node,             type: String
  
  attaches_with_metadata :image

  GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:description]

  @fields_to_clone = [
    :honorific_prefix, :honorific_suffix, :affiliation, :role, :description, :url, 
    :telephone, :email, :twitter, :linkedin, :github, :node
  ]
  
  def whole_body
    description
  end

  def rendering_app
    "www"
  end


end

require "edition"
require "attachable_with_metadata"

class PersonEdition < Edition
  include AttachableWithMetadata

  # type (Staff / Trainer / Member / Start-up / Artist):  applied by tag
  field    :honorific_prefix, type: String
  field    :honorific_suffix, type: String
  field    :affiliation,      type: String
  # name: uses artefact name
  field    :role,             type: String
  field    :description,      type: String
  field    :url,              type: String
  field    :telephone,        type: String
  field    :email,            type: String
  field    :twitter,          type: String
  field    :linkedin,         type: String
  field    :github,           type: String
  field    :node,             type: String
  
  attaches_with_metadata :image

  GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:description]

  @fields_to_clone = [
    :honorific_prefix, :honorific_suffix, :affiliation, :role, :description, :url, 
    :telephone, :email, :twitter, :linkedin, :github, :node
  ]
  
  def whole_body
    description
  end

  def rendering_app
    "www"
  end


end

Revert "Add team to PersonEdition"
Revert "Add team to PersonEdition"

This reverts commit 96043a66ff73d51b44f1cefcd9fee1d1ce4b5169.
