Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ gem "httparty"
# Autoload dotenv in Rails. (https://github.com/bkeepers/dotenv)
gem "dotenv-rails"

gem 'activerecord_json_validator'

# ================================= #
# ENVIRONMENT SPECIFIC DEPENDENCIES #
# ================================= #
Expand Down
43 changes: 43 additions & 0 deletions config/initializers/_dmproadmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,50 @@ class Application < Rails::Application
# ------------------------------------------------------------------------ #
config.x.recaptcha.enabled = false

# --------------------------------------------------- #
# Machine Actionable / Networked DMP Features (maDMP) #
# --------------------------------------------------- #
# Enable/disable functionality on the Project Details tab
config.x.madmp.enable_ethical_issues = true
config.x.madmp.enable_research_domain = true

# This flag will enable/disable the entire Research Outputs tab. The others below will
# just enable/disable specific functionality on the Research Outputs tab
config.x.madmp.enable_research_outputs = true
config.x.madmp.enable_license_selection = true
config.x.madmp.enable_metadata_standard_selection = true
config.x.madmp.enable_repository_selection = true

# The following flags will allow the system to include the question and answer in the JSON output
# - questions with a theme equal to 'Preservation'
config.x.madmp.extract_preservation_statements_from_themed_questions = true
# - questions with a theme equal to 'Data Collection'
config.x.madmp.extract_data_quality_statements_from_themed_questions = true
# - questions with a theme equal to 'Ethics & privacy' or 'Storage & security'
config.x.madmp.extract_security_privacy_statements_from_themed_questions = true

# Specify a list of the preferred licenses types. These licenses will appear in a select
# box on the 'Research Outputs' tab when editing a plan along with the option to select
# 'other'. When 'other' is selected, the user is presented with the full list of licenses.
#
# The licenses will appear in the order you specify here.
#
# Note that the values you enter must match the :identifier field of the licenses table.
# You can use the `%{latest}` markup in place of version numbers if desired.
config.x.madmp.preferred_licenses = [
'CC-BY-%{latest}',
'CC-BY-SA-%{latest}',
'CC-BY-NC-%{latest}',
'CC-BY-NC-SA-%{latest}',
'CC-BY-ND-%{latest}',
'CC-BY-NC-ND-%{latest}',
'CC0-%{latest}'
]
# Link to external guidance about selecting one of the preferred licenses. A default
# URL will be displayed if none is provided here. See app/views/research_outputs/licenses/_form
config.x.madmp.preferred_licenses_guidance_url = 'https://creativecommons.org/about/cclicenses/'
end

end

# rubocop:enable Layout/LineLength