diff --git a/db/madmp_seeds.rb b/db/madmp_seeds.rb index 5ecea37..97fc8a4 100644 --- a/db/madmp_seeds.rb +++ b/db/madmp_seeds.rb @@ -37,8 +37,8 @@ # ------------------------------------------------------- templates = [ { - title: "Science Europe modèle structuré", - description: "Modèle basé sur Science Europe, s'appuyant sur les schémas de base", + title: "Science Europe : modèle structuré standard", + description: "Modèle basé sur Science Europe, s'appuyant sur les schémas standards", published: true, org: Org.find_by(abbreviation: "Science Europe"), locale: "fr_FR", @@ -48,8 +48,30 @@ links: { "funder": [], "sample_plan": [] } }, { - title: "Science Europe structured template", - description: "Science Europe structured template", + title: "Science Europe: standard structured template", + description: "Science Europe structured template based on standard schemas", + published: true, + org: Org.find_by(abbreviation: "Science Europe"), + locale: "en_GB", + is_default: true, + version: 0, + visibility: Template.visibilities[:organisationally_visible], + links: { "funder": [], "sample_plan": [] } + }, + { + title: "Science Europe : modèle structuré basique", + description: "Modèle basé sur Science Europe, s'appuyant sur des schémas basiques", + published: true, + org: Org.find_by(abbreviation: "Science Europe"), + locale: "fr_FR", + is_default: true, + version: 0, + visibility: Template.visibilities[:organisationally_visible], + links: { "funder": [], "sample_plan": [] } + }, + { + title: "Science Europe: basic structured template", + description: "Science Europe structured template based on some basic schemas", published: true, org: Org.find_by(abbreviation: "Science Europe"), locale: "en_GB", @@ -66,34 +88,54 @@ # Create 1 phase for "Science Europe modèle structuré" phases = [ { - title: "DMP détaillé", + title: "PGD structuré", number: 1, modifiable: true, - template: Template.find_by(title: "Science Europe modèle structuré") + template: Template.find_by(title: "Science Europe : modèle structuré standard") }, { - title: "Detailed DMP", + title: "Structured DMP", number: 1, modifiable: true, - template: Template.find_by(title: "Science Europe structured template") + template: Template.find_by(title: "Science Europe: standard structured template") + }, + { + title: "PGD structuré simplifié", + number: 1, + modifiable: true, + template: Template.find_by(title: "Science Europe : modèle structuré basique") + }, + { + title: "Basic structured DMP", + number: 1, + modifiable: true, + template: Template.find_by(title: "Science Europe: basic structured template") } ] phases.map { |p| Phase.create!(p) } -se_detailed_phase_fr = Phase.find_by( - title: "DMP détaillé", - template: Template.find_by(title: "Science Europe modèle structuré") +se_standard_phase_fr = Phase.find_by( + title: "PGD structuré", + template: Template.find_by(title: "Science Europe : modèle structuré standard") ) -se_detailed_phase_en = Phase.find_by( - title: "Detailed DMP", - template: Template.find_by(title: "Science Europe structured template") +se_standard_phase_en = Phase.find_by( + title: "Structured DMP", + template: Template.find_by(title: "Science Europe: standard structured template") +) +se_basic_phase_fr = Phase.find_by( + title: "PGD structuré simplifié", + template: Template.find_by(title: "Science Europe : modèle structuré basique") +) +se_basic_phase_en = Phase.find_by( + title: "Basic structured DMP", + template: Template.find_by(title: "Science Europe: basic structured template") ) # Create sections for SE detailed phase # ------------------------------------------------------- sections = [ - # Sections for Modèle structuré Science Europe Phase + # Sections for Modèle structuré standard Science Europe Phase #################################################### ##################### FRENCH ####################### #################################################### @@ -101,43 +143,43 @@ title: "Description des données et collecte des données et/ou réutilisation de données existantes", number: 1, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, { title: "Documentation et métadonnées", number: 2, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, { title: "Exigences légales et éthiques, code de conduite", number: 3, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, { title: "Traitement et analyse des données", number: 4, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, { title: "Stockage et sauvegarde des données pendant le processus de recherche", number: 5, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, { title: "Partage et conservation des données", number: 6, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, { title: "Ressources allouées pour la gestion", number: 7, modifiable: false, - phase: se_detailed_phase_fr + phase: se_standard_phase_fr }, #################################################### ##################### ENGLISH ###################### @@ -146,43 +188,134 @@ title: "Data description and collection or re-use of existing data", number: 1, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en }, { title: "Documentation and metadata", number: 2, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en }, { title: "Legal and ethical requirements, codes of conduct", number: 3, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en }, { title: "Data processing and analysis", number: 4, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en }, { title: "Storage and backup during the research process", number: 5, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en }, { title: "Data sharing and long-term preservation", number: 6, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en }, { title: "Resources for data management", number: 7, modifiable: false, - phase: se_detailed_phase_en + phase: se_standard_phase_en + }, + # Sections for Modèle structuré basique Science Europe Phase + #################################################### + ##################### FRENCH ####################### + #################################################### + { + title: "Description des données et collecte des données et/ou réutilisation de données existantes", + number: 1, + modifiable: false, + phase: se_basic_phase_fr + }, + { + title: "Documentation et métadonnées", + number: 2, + modifiable: false, + phase: se_basic_phase_fr + }, + { + title: "Exigences légales et éthiques, code de conduite", + number: 3, + modifiable: false, + phase: se_basic_phase_fr + }, + { + title: "Traitement et analyse des données", + number: 4, + modifiable: false, + phase: se_basic_phase_fr + }, + { + title: "Stockage et sauvegarde des données pendant le processus de recherche", + number: 5, + modifiable: false, + phase: se_basic_phase_fr + }, + { + title: "Partage et conservation des données", + number: 6, + modifiable: false, + phase: se_basic_phase_fr + }, + { + title: "Ressources allouées pour la gestion", + number: 7, + modifiable: false, + phase: se_basic_phase_fr + }, + #################################################### + ##################### ENGLISH ###################### + #################################################### + { + title: "Data description and collection or re-use of existing data", + number: 1, + modifiable: false, + phase: se_basic_phase_en + }, + { + title: "Documentation and metadata", + number: 2, + modifiable: false, + phase: se_basic_phase_en + }, + { + title: "Legal and ethical requirements, codes of conduct", + number: 3, + modifiable: false, + phase: se_basic_phase_en + }, + { + title: "Data processing and analysis", + number: 4, + modifiable: false, + phase: se_basic_phase_en + }, + { + title: "Storage and backup during the research process", + number: 5, + modifiable: false, + phase: se_basic_phase_en + }, + { + title: "Data sharing and long-term preservation", + number: 6, + modifiable: false, + phase: se_basic_phase_en + }, + { + title: "Resources for data management", + number: 7, + modifiable: false, + phase: se_basic_phase_en } ] sections.map { |s| Section.create!(s) } @@ -192,7 +325,7 @@ # Create questions for the section of SE detailed phase # ------------------------------------------------------- questions = [ - # Questions for "Sections for Modèle structuré Science Europe" Phase, + # Questions for "Sections for Modèle structuré standard Science Europe" Phase, #################################################### ##################### FRENCH ####################### #################################################### @@ -201,7 +334,7 @@ number: 1, section: Section.find_by( title: "Description des données et collecte des données et/ou réutilisation de données existantes", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "ResearchOutputDescriptionStandard"), @@ -213,7 +346,7 @@ number: 2, section: Section.find_by( title: "Description des données et collecte des données et/ou réutilisation de données existantes", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataReuseStandard"), @@ -224,7 +357,7 @@ number: 3, section: Section.find_by( title: "Description des données et collecte des données et/ou réutilisation de données existantes", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataCollectionStandard"), @@ -236,7 +369,7 @@ number: 1, section: Section.find_by( title: "Documentation et métadonnées", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DocumentationQualityStandard"), @@ -248,7 +381,7 @@ number: 1, section: Section.find_by( title: "Exigences légales et éthiques, code de conduite", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "PersonalDataIssuesStandard"), @@ -260,7 +393,7 @@ number: 2, section: Section.find_by( title: "Exigences légales et éthiques, code de conduite", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "LegalIssuesStandard"), @@ -272,7 +405,7 @@ number: 3, section: Section.find_by( title: "Exigences légales et éthiques, code de conduite", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "EthicalIssuesStandard"), @@ -283,7 +416,7 @@ number: 1, section: Section.find_by( title: "Traitement et analyse des données", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataProcessingStandard"), @@ -294,7 +427,7 @@ number: 1, section: Section.find_by( title: "Stockage et sauvegarde des données pendant le processus de recherche", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataStorageStandard"), @@ -306,7 +439,7 @@ number: 1, section: Section.find_by( title: "Partage et conservation des données", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataSharingStandard"), @@ -318,7 +451,7 @@ number: 2, section: Section.find_by( title: "Partage et conservation des données", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataPreservationStandard"), @@ -329,7 +462,7 @@ number: 1, section: Section.find_by( title: "Ressources allouées pour la gestion", - phase: se_detailed_phase_fr + phase: se_standard_phase_fr ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "BudgetStandard"), @@ -343,7 +476,7 @@ number: 1, section: Section.find_by( title: "Data description and collection or re-use of existing data", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "ResearchOutputDescriptionStandard"), @@ -355,7 +488,7 @@ number: 2, section: Section.find_by( title: "Data description and collection or re-use of existing data", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataReuseStandard"), @@ -366,7 +499,7 @@ number: 3, section: Section.find_by( title: "Data description and collection or re-use of existing data", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataCollectionStandard"), @@ -378,7 +511,7 @@ number: 1, section: Section.find_by( title: "Documentation and metadata", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DocumentationQualityStandard"), @@ -390,7 +523,7 @@ number: 1, section: Section.find_by( title: "Legal and ethical requirements, codes of conduct", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "PersonalDataIssuesStandard"), @@ -402,7 +535,7 @@ number: 2, section: Section.find_by( title: "Legal and ethical requirements, codes of conduct", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "LegalIssuesStandard"), @@ -414,7 +547,7 @@ number: 3, section: Section.find_by( title: "Legal and ethical requirements, codes of conduct", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "EthicalIssuesStandard"), @@ -425,7 +558,7 @@ number: 1, section: Section.find_by( title: "Data processing and analysis", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataProcessingStandard"), @@ -436,7 +569,7 @@ number: 1, section: Section.find_by( title: "Storage and backup during the research process", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataStorageStandard"), @@ -448,7 +581,7 @@ number: 1, section: Section.find_by( title: "Data sharing and long-term preservation", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataSharingStandard"), @@ -460,7 +593,7 @@ number: 2, section: Section.find_by( title: "Data sharing and long-term preservation", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "DataPreservationStandard"), @@ -471,12 +604,297 @@ number: 1, section: Section.find_by( title: "Resources for data management", - phase: se_detailed_phase_en + phase: se_standard_phase_en ), question_format: structured, madmp_schema: MadmpSchema.find_by(name: "BudgetStandard"), modifiable: false - } + }, + # Questions for "Sections for Modèle structuré basique Science Europe" Phase, + #################################################### + ##################### FRENCH ####################### + #################################################### + { + text: "Description générale du produit de recherche", + number: 1, + section: Section.find_by( + title: "Description des données et collecte des données et/ou réutilisation de données existantes", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "ResearchOutputDescriptionStandard"), + modifiable: false, + themes: [Theme.find_by(title: "Data description")] + }, + { + text: "Est-ce que des données existantes seront réutilisées", + number: 2, + section: Section.find_by( + title: "Description des données et collecte des données et/ou réutilisation de données existantes", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataReuseBasic"), + modifiable: false + }, + { + text: "Comment seront produites/collectées les nouvelles données", + number: 3, + section: Section.find_by( + title: "Description des données et collecte des données et/ou réutilisation de données existantes", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataCollectionBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Data collection")] + }, + { + text: "Comment seront organisées et documentées les données? Quelles seront les méthodes utilisées pour assurer leur qualité scientifique", + number: 1, + section: Section.find_by( + title: "Documentation et métadonnées", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DocumentationQualityBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Metadata & documentation")] + }, + { + text: "Quelles seront les mesures appliquées pour assurer la protection des données personnelles ?", + number: 1, + section: Section.find_by( + title: "Exigences légales et éthiques, code de conduite", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "PersonalDataIssuesBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Ethics & privacy")] + }, + { + text: "Quelles sont les contraintes juridiques (sensibilité des données autres qu'à caractère personnel, confidentialité, ...) à prendre en compte pour le partage et le stockage des données ?", + number: 2, + section: Section.find_by( + title: "Exigences légales et éthiques, code de conduite", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "LegalIssuesBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Intellectual Property Rights")] + }, + { + text: "Quels sont les aspects éthiques à prendre en compte lors de la collecte des données ?", + number: 3, + section: Section.find_by( + title: "Exigences légales et éthiques, code de conduite", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "EthicalIssuesBasic"), + modifiable: false + }, + { + text: "Comment et avec quels moyens seront traitées les données ?", + number: 1, + section: Section.find_by( + title: "Traitement et analyse des données", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataProcessingBasic"), + modifiable: false + }, + { + text: "Comment les données seront-elles stockées et sauvegardées tout au long du projet ?", + number: 1, + section: Section.find_by( + title: "Stockage et sauvegarde des données pendant le processus de recherche", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataStorageBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Storage & security")] + }, + { + text: "Comment les données seront-elles partagées ?", + number: 1, + section: Section.find_by( + title: "Partage et conservation des données", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataSharingBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Data sharing"), Theme.find_by(title: "Data repository") ] + }, + { + text: "Comment les données seront-elles conservées à long terme ?", + number: 2, + section: Section.find_by( + title: "Partage et conservation des données", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataPreservationBasic"), + modifiable: false + }, + { + text: "Décrire la répartition des rôles et reponsabilités parmi les contributeurs ainsi que les côuts induits pour la gestion des données ?", + number: 1, + section: Section.find_by( + title: "Ressources allouées pour la gestion", + phase: se_basic_phase_fr + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "BudgetStandard"), + modifiable: false + }, + #################################################### + ##################### ENGLISH ###################### + #################################################### + { + text: "Research output description", + number: 1, + section: Section.find_by( + title: "Data description and collection or re-use of existing data", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "ResearchOutputDescriptionStandard"), + modifiable: false, + themes: [Theme.find_by(title: "Data description")] + }, + { + text: "Will existing data be reused?", + number: 2, + section: Section.find_by( + title: "Data description and collection or re-use of existing data", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataReuseBasic"), + modifiable: false + }, + { + text: "How will new data be collected or produced?", + number: 3, + section: Section.find_by( + title: "Data description and collection or re-use of existing data", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataCollectionBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Data collection")] + }, + { + text: "How will data be organised and documented? What methods will be used to ensure their scientific quality?", + number: 1, + section: Section.find_by( + title: "Documentation and metadata", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DocumentationQualityBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Metadata & documentation")] + }, + { + text: "If personal data are processed, how will compliance with legislation on personal data and on security be ensured?", + number: 1, + section: Section.find_by( + title: "Legal and ethical requirements, codes of conduct", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "PersonalDataIssuesBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Ethics & privacy")] + }, + { + text: "How will other legal issues, such as intellectual property rights and ownership, be managed? What legislation is applicable?", + number: 2, + section: Section.find_by( + title: "Legal and ethical requirements, codes of conduct", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "LegalIssuesBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Intellectual Property Rights")] + }, + { + text: "What ethical issues and codes of conduct are there, and how will they be taken into account?", + number: 3, + section: Section.find_by( + title: "Legal and ethical requirements, codes of conduct", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "EthicalIssuesBasic"), + modifiable: false + }, + { + text: "How and with what resources will the data be processed / analyzed?", + number: 1, + section: Section.find_by( + title: "Data processing and analysis", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataProcessingBasic"), + modifiable: false + }, + { + text: "How will data be stored and backed up during the research?", + number: 1, + section: Section.find_by( + title: "Storage and backup during the research process", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataStorageBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Storage & security")] + }, + { + text: "How will data ba shared?", + number: 1, + section: Section.find_by( + title: "Data sharing and long-term preservation", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataSharingBasic"), + modifiable: false, + themes: [Theme.find_by(title: "Data sharing"), Theme.find_by(title: "Data repository")] + }, + { + text: "How will data be log-term preservation? Which data?", + number: 2, + section: Section.find_by( + title: "Data sharing and long-term preservation", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "DataPreservationBasic"), + modifiable: false + }, + { + text: "Outline the roles and responsibilities for data management/stewardship activities and the dedicated costs", + number: 1, + section: Section.find_by( + title: "Resources for data management", + phase: se_basic_phase_en + ), + question_format: structured, + madmp_schema: MadmpSchema.find_by(name: "BudgetStandard"), + modifiable: false + }, ] questions.map { |q| Question.create!(q) } # questions.each do |q|