# Produces:
# -----------------------------
# curation_center
# funder
# complete <-- child of curation_center
#
# institution_[1..2]
# school_[1..2]
# project_[1..2]
# Import organisation_types.yml so that we can dynamically generate organisations
<% organisation_types = YAML::load(ERB.new(File.read('./test/fixtures/organisation_types.yml')).result) %>
curation_center:
name: 'Curation Centre'
abbreviation: 'cc'
organisation_type: organisation
contact_email: 'admin@example.org'
funder:
name: 'Grant Funder'
abbreviation: 'funder'
organisation_type: funder
contact_email: 'admin@example-funder.org'
# We unfortunatley cannot tab this out nicely because YAML is expecting the values in
# the first column
<% organisation_types.each do |lbl, obj| %>
<% unless ['funder', 'organisation'].include?(lbl) %>
<% 2.times do |n| %>
<%= lbl %>_<%= n + 1 %>:
name: <%= "#{obj['name']} #{n}" %>
domain: <%= "www.#{lbl}-#{n + 1}.org" %>
organisation_type: <%= "#{lbl}" %>
<% end %>
<% end %>
<% end %>
complete:
name: 'Organisation with all attributes'
abbreviation: 'complete'
target_url: 'http:\/\/www.complete-org.org'
organisation_type: organisation
domain: 'www.complete-org.org'
wayfless_entity: ''
stylesheet_file_id: 'complete-org.css'
is_other: false
sort_name: 'complete'
banner_text: 'Complete organisation banner text'
region_id: eu
language_id: en-UK
logo_uid: '2016/08/30/1234abcd-complete-org.gif'
logo_name: 'complete-org.gif'
contact_email: 'admin@example.org'