diff --git a/config/Gemfile b/config/Gemfile index 63820fd..b4f0640 100644 --- a/config/Gemfile +++ b/config/Gemfile @@ -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 # # ================================= # diff --git a/config/initializers/_dmproadmap.rb b/config/initializers/_dmproadmap.rb index df7d00a..d991614 100644 --- a/config/initializers/_dmproadmap.rb +++ b/config/initializers/_dmproadmap.rb @@ -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