Skip to content

Commit 966efca

Browse files
committed
Changes in this commit:
- removed _dmproadmap.rb file - added _dmproadmap.rb file contents to application.rb file - changed test to staging in database.yml.sample
1 parent e1bcc2d commit 966efca

3 files changed

Lines changed: 244 additions & 264 deletions

File tree

config/application.rb

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,249 @@ class Application < Rails::Application
7373
env.export_concurrent = false
7474
end
7575

76+
#_dmproadmap.rb settings
77+
# --------------------- #
78+
# ORGANISATION SETTINGS #
79+
# --------------------- #
80+
81+
# Your organisation name, used in various places throught the application
82+
config.x.organisation.name = 'Curation Center'
83+
# Your organisation's abbreviation
84+
config.x.organisation.abbreviation = 'CC'
85+
# Your organisation's homepage, used in some of the public facing pages
86+
config.x.organisation.url = 'https://github.com/DMPRoadmap/roadmap/wiki'
87+
# Your organisation's legal (official) name - used in the copyright portion of the footer
88+
config.x.organisation.copywrite_name = 'Curation Centre (CC)'
89+
# This email is used as the 'from' address for emails generated by the application
90+
config.x.organisation.email = 'tester@example.org'
91+
# This email is used as the 'from' address for the feedback_complete email to users
92+
config.x.organisation.do_not_reply_email 'do-not-reply@cc_curation_centre.org'
93+
# This email is used in email communications
94+
config.x.organisation.helpdesk_email = 'help@example.org'
95+
# Your organisation's telephone number - used on the contact us page
96+
config.x.organisation.telephone = '+1-123-123-1234'
97+
# Your organisation's address - used on the contact us page
98+
# rubocop:disable Naming/VariableNumber
99+
config.x.organisation.address = {
100+
line_1: 'Princess Elisabeth Station',
101+
line_2: '123 Freezing Cold Street',
102+
line_3: 'Suite 123',
103+
line_4: 'Polar Vortex, ABC-345',
104+
country: 'Antarctica'
105+
}
106+
# rubocop:enable Naming/VariableNumber
107+
108+
# The Google maps link to your organisation's location - used to display the
109+
# Google map on the contact us page.
110+
# To find your organisation's Google maps URL, open maps.google.com, search for
111+
# your orgnaisation and then click the menu link to the left of the search box,
112+
# once the menu opens, click the 'share or embed' link and the 'embed' tab on
113+
# the dialog window that opens. DO NOT place the entire <iframe> tag below, just
114+
# the address!
115+
config.x.organisation.google_maps_link = 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d29046286.09795864!2d-34.22768319424708!3d-63.61874004304689!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xb57520cc078b16a9!2sPrincess%20Elisabeth%20Station!5e0!3m2!1sen!2sus!4v1587495708129!5m2!1sen!2sus'
116+
117+
# Uncomment the following line if you want to redirect your users to an
118+
# organisational contact/help page instead of using the built-in contact_us form
119+
# config.x.organisation.contact_us_url = "https://example.org/contact
120+
121+
# -------------------- #
122+
# APPLICATION SETTINGS #
123+
# -------------------- #
124+
125+
# Used throughout the system via ApplicationService.application_name
126+
config.x.application.name = 'DMPRoadmap'
127+
# Used as the default domain when 'archiving' (aka anonymizing) a user account
128+
# for example `jane.doe@uni.edu` becomes `1234@removed_accounts-example.org`
129+
config.x.application.archived_accounts_email_suffix = '@removed_accounts-example.org'
130+
# Available CSV separators, the default is ','
131+
config.x.application.csv_separators = [',', '|', '#']
132+
# The largest page size allowed in requests to the API (all versions)
133+
config.x.application.api_max_page_size = 100
134+
# The link to the API documentation - used in emails about the API
135+
config.x.application.api_documentation_urls = {
136+
v0: 'https://github.com/DMPRoadmap/roadmap/wiki/API-V0-Documentation',
137+
v1: 'https://github.com/DMPRoadmap/roadmap/wiki/API-V1-Documentation'
138+
}
139+
# The links that appear on the home page. Add any number of links
140+
config.x.application.welcome_links = [
141+
{
142+
title: 'Digital Curation Centre',
143+
url: 'https://dcc.ac.uk/'
144+
}, {
145+
title: 'UC3: University of California Curation Center',
146+
url: 'https://www.cdlib.org/uc3/'
147+
}, {
148+
title: 'UK funder requirements for Data Management Plans',
149+
url: 'http://www.dcc.ac.uk/resources/data-management-plans/funders-requirements'
150+
}, {
151+
title: 'US funder requirements for Data Management Plans',
152+
url: 'https://dmptool.org/guidance'
153+
}, {
154+
title: 'DCC Checklist for a Data Management Plan',
155+
url: 'https://dmponline.dcc.ac.uk/files/DMP_Checklist_2013.pdf'
156+
}
157+
]
158+
# The default user email preferences used when a new account is created
159+
config.x.application.preferences = {
160+
email: {
161+
users: {
162+
new_comment: false,
163+
admin_privileges: true,
164+
added_as_coowner: true,
165+
feedback_requested: true,
166+
feedback_provided: true
167+
},
168+
owners_and_coowners: {
169+
visibility_changed: true
170+
}
171+
}
172+
}
173+
# Setting to only take orgs from local and not allow on-the-fly creation
174+
config.x.application.restrict_orgs = false
175+
# Setting to display phone number in contributor form
176+
config.x.application.display_contributor_phone_number = false
177+
178+
# Setting require contributor requirement of contributor name and email
179+
config.x.application.require_contributor_name = false
180+
config.x.application.require_contributor_email = false
181+
182+
# Defines if Guidances/Comments in toggleable & if it's opened by default
183+
config.x.application.guidance_comments_toggleable = true
184+
config.x.application.guidance_comments_opened_by_default = true
185+
186+
# ------------------- #
187+
# SHIBBOLETH SETTINGS #
188+
# ------------------- #
189+
190+
# Enable shibboleth as an alternative authentication method
191+
# Requires server configuration and omniauth shibboleth provider configuration
192+
# See config/initializers/devise.rb
193+
config.x.shibboleth.enabled = true
194+
195+
# Relative path to Shibboleth SSO Logouts
196+
config.x.shibboleth.login_url = '/Shibboleth.sso/Login'
197+
config.x.shibboleth.logout_url = '/Shibboleth.sso/Logout?return='
198+
199+
# If this value is set to true your users will be presented with a list of orgs that have a
200+
# shibboleth identifier in the orgs_identifiers table. If it is set to false (default), the user
201+
# will be driven out to your federation's discovery service
202+
#
203+
# A super admin will also be able to associate orgs with their shibboleth entityIds if this is set to true
204+
config.x.shibboleth.use_filtered_discovery_service = false
205+
206+
# ------- #
207+
# LOCALES #
208+
# ------- #
209+
210+
# The default locale (use the i18n format!)
211+
config.x.locales.default = 'en-GB'
212+
# The character that separates a locale's ISO code for i18n. (e.g. `en-GB` or `en`)
213+
# Changing this value is not recommended!
214+
config.x.locales.i18n_join_character = '-'
215+
# The character that separates a locale's ISO code for Gettext. (e.g. `en_GB` or `en`)
216+
# Changing this value is not recommended!
217+
config.x.locales.gettext_join_character = '_'
218+
219+
# ---------- #
220+
# THRESHOLDS #
221+
# ---------- #
222+
223+
# Determines the number of links a funder is allowed to add to their template
224+
config.x.max_number_links_funder = 5
225+
# Determines the number of links a funder can add for sample plans for their template
226+
config.x.max_number_links_sample_plan = 5
227+
# Determines the maximum number of themes to display per column when an org admin
228+
# updates a template question or guidance
229+
config.x.max_number_themes_per_column = 5
230+
# default results per page
231+
config.x.results_per_page = 10
232+
233+
# ------------- #
234+
# PLAN DEFAULTS #
235+
# ------------- #
236+
237+
# The default visibility a plan receives when it is created.
238+
# options: 'privately_visible', 'organisationally_visible' and 'publicly_visibile'
239+
config.x.plans.default_visibility = 'privately_visible'
240+
241+
# The percentage of answers that have been filled out that determine if a plan
242+
# will be marked as complete. Plan completion has implications on whether or
243+
# not plan visibility settings are editable by the user and whether or not the
244+
# plan can be submitted for feedback
245+
config.x.plans.default_percentage_answered = 50
246+
247+
# Whether or not Super adminis can read all of the user's plans regardless of
248+
# the plans visibility and whether or not the plan has been shared
249+
config.x.plans.org_admins_read_all = true
250+
# Whether or not Organisational administrators can read all of the user's plans
251+
# regardless of the plans visibility and whether or not the plan has been shared
252+
config.x.plans.super_admins_read_all = true
253+
254+
# Check download of a plan coversheet tickbox
255+
config.x.plans.download_coversheet_tickbox_checked = false
256+
257+
# ---------------------------------------------------- #
258+
# CACHING - all values are in seconds (86400 == 1 Day) #
259+
# ---------------------------------------------------- #
260+
261+
# Determines how long to cache results for OrgSelection::SearchService
262+
config.x.cache.org_selection_expiration = 86_400
263+
# Determines how long to cache results for the ResearchProjectsController
264+
config.x.cache.research_projects_expiration = 86_400
265+
266+
# ---------------- #
267+
# Google Analytics #
268+
# ---------------- #
269+
# this is the abbreviation for the installation's root org as set in the org table
270+
config.x.google_analytics.tracker_root = ''
271+
272+
# ------------------------------------------------------------------------ #
273+
# reCAPTCHA - recaptcha appears on the create account and contact us forms #
274+
# ------------------------------------------------------------------------ #
275+
config.x.recaptcha.enabled = false
276+
277+
# --------------------------------------------------- #
278+
# Machine Actionable / Networked DMP Features (maDMP) #
279+
# --------------------------------------------------- #
280+
# Enable/disable functionality on the Project Details tab
281+
config.x.madmp.enable_ethical_issues = true
282+
config.x.madmp.enable_research_domain = true
283+
284+
# This flag will enable/disable the entire Research Outputs tab. The others below will
285+
# just enable/disable specific functionality on the Research Outputs tab
286+
config.x.madmp.enable_research_outputs = true
287+
config.x.madmp.enable_license_selection = true
288+
config.x.madmp.enable_metadata_standard_selection = true
289+
config.x.madmp.enable_repository_selection = true
290+
291+
# The following flags will allow the system to include the question and answer in the JSON output
292+
# - questions with a theme equal to 'Preservation'
293+
config.x.madmp.extract_preservation_statements_from_themed_questions = false
294+
# - questions with a theme equal to 'Data Collection'
295+
config.x.madmp.extract_data_quality_statements_from_themed_questions = false
296+
# - questions with a theme equal to 'Ethics & privacy' or 'Storage & security'
297+
config.x.madmp.extract_security_privacy_statements_from_themed_questions = false
298+
299+
# Specify a list of the preferred licenses types. These licenses will appear in a select
300+
# box on the 'Research Outputs' tab when editing a plan along with the option to select
301+
# 'other'. When 'other' is selected, the user is presented with the full list of licenses.
302+
#
303+
# The licenses will appear in the order you specify here.
304+
#
305+
# Note that the values you enter must match the :identifier field of the licenses table.
306+
# You can use the `%{latest}` markup in place of version numbers if desired.
307+
config.x.madmp.preferred_licenses = [
308+
'CC-BY-%{latest}',
309+
'CC-BY-SA-%{latest}',
310+
'CC-BY-NC-%{latest}',
311+
'CC-BY-NC-SA-%{latest}',
312+
'CC-BY-ND-%{latest}',
313+
'CC-BY-NC-ND-%{latest}',
314+
'CC0-%{latest}'
315+
]
316+
# Link to external guidance about selecting one of the preferred licenses. A default
317+
# URL will be displayed if none is provided here. See app/views/research_outputs/licenses/_form
318+
config.x.madmp.preferred_licenses_guidance_url = 'https://creativecommons.org/about/cclicenses/'
76319
end
77320

78321
end

config/database.yml.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ defaults: &defaults
1111
development:
1212
<<: *defaults
1313

14-
test:
14+
staging:
1515
<<: *defaults

0 commit comments

Comments
 (0)