diff --git a/.gitignore b/.gitignore
index f7648bc0d..35b1eceb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@ yarn-error.log
/.vscode
/.docker
.DS_Store
+config/app.php
diff --git a/app/Livewire/Planning/Criteria/Criteria.php b/app/Livewire/Planning/Criteria/Criteria.php
index 1cdea523e..c3c23204a 100644
--- a/app/Livewire/Planning/Criteria/Criteria.php
+++ b/app/Livewire/Planning/Criteria/Criteria.php
@@ -5,6 +5,9 @@
use Illuminate\Validation\Rule;
use Livewire\Component;
use App\Models\Project as ProjectModel;
+use App\Models\Project\Conducting\StudySelection\PapersSelection as PapersSelectionModel;
+use App\Models\Member as MemberModel;
+use App\Models\EvaluationCriteria as EvaluationCriteriaModel;
use App\Models\Criteria as CriteriaModel;
use App\Utils\ActivityLogHelper as Log;
use App\Utils\ToastHelper;
@@ -189,15 +192,66 @@ public function selectRule($rule, $type)
'rule' => $rule,
])->count();
+ // Check if there are any criteria of the same type
+ $projectCriterias = CriteriaModel::where([
+ 'id_project' => $this->currentProject->id_project,
+ 'type' => $type,
+ ])->count();
+
+ // If there are no criteria of the same type, show a error toast message
+ if ($projectCriterias === 0){
+ $this->toast(
+ message: __('project/planning.criteria.livewire.toasts.no_criteria'),
+ type: 'error'
+ );
+ return;
+ }
+
if ($selectedCount === 0) {
CriteriaModel::where($where)
->first()->update(['pre_selected' => 1]);
}
break;
}
+
+ $this->resetPaperEvaluations();
$this->updateCriterias();
}
+ private function resetPaperEvaluations()
+ {
+
+ // Get all members related to the current project
+ $members = MemberModel::where('id_project', $this->currentProject->id_project)
+ ->pluck('id_members'); // Retrieve all member IDs for the project
+
+ // Get all evaluation records related to the members of the current project
+ $papersSelection = PapersSelectionModel::whereIn('id_member', $members)
+ ->where('id_status', '!=', 3) // Exclude already "not evaluated" papers
+ ->get();
+
+ // Delete inclusion and exclusion criteria selected in the evaluation_criteria table
+ EvaluationCriteriaModel::whereIn('id_member', $members)
+ ->whereIn('id_paper', $papersSelection->pluck('id_paper')) // Filter by affected papers
+ ->delete();
+
+ // Check if there are evaluation records made by members,
+ // if none exist, there is nothing to do
+ if ($papersSelection->count() === 0) {
+ return;
+ }
+
+ // Update the selection status to "not evaluated"
+ foreach ($papersSelection as $paperSelection) {
+ $paperSelection->update(['id_status' => 3]);
+ }
+
+ $this->toast(
+ message: __('project/planning.criteria.livewire.toasts.reset_paper_evaluations'),
+ type: 'success'
+ );
+ }
+
/**
* Update the items.
*/
@@ -306,10 +360,15 @@ public function submit()
);
$this->selectRule($updatedOrCreated->rule, $this->type['value']);
+
$this->toast(
message: $toastMessage,
type: 'success'
);
+
+ // Reset the evaluations case already existed any evaluation made before the creation or editing of any criteria
+ $this->resetPaperEvaluations();
+
} catch (\Exception $e) {
$this->toast(
message: $e->getMessage(),
@@ -360,6 +419,10 @@ public function delete(string $criteriaId)
message: $this->translate('deleted'),
type: 'success'
);
+
+ // Reset the evaluations case already existed any evaluation made before the delete of any criteria
+ $this->resetPaperEvaluations();
+
$this->updateCriterias();
} catch (\Exception $e) {
$this->toast(
diff --git a/lang/en/project/create.php b/lang/en/project/create.php
index a4bc1b43d..88be8c5ea 100644
--- a/lang/en/project/create.php
+++ b/lang/en/project/create.php
@@ -3,16 +3,16 @@
return [
'create_project' => 'Create Project',
-
+
'title' => 'Title',
'enter_title' => 'Enter the title',
-
+
'description' => 'Description',
'enter_description' => 'Enter the description',
-
+
'objectives' => 'Objectives',
'enter_objectives' => 'Enter the objectives',
-
+
'copy_planning' => 'Copy Planning',
'none' => 'None',
'option1' => 'Option 1',
@@ -22,5 +22,7 @@
'option5' => 'Option 5',
'noProjects' => 'User does not have any created projects yet',
+ 'systematic-review' => 'Systematic Review',
+
'create' => 'Create'
];
diff --git a/lang/en/project/export.php b/lang/en/project/export.php
index 157d90f4f..5bbc12f0e 100644
--- a/lang/en/project/export.php
+++ b/lang/en/project/export.php
@@ -23,6 +23,13 @@
This feature simplifies the creation, organization, and editing of project-related documents by integrating system information in a practical and efficient way.
',
+ 'content-options'=> [
+ 'planning' => 'Planning',
+ 'import-studies' => 'Import Studies',
+ 'study-selection'=> 'Study Selection',
+ 'quality-assessment' => 'Quality Assessment',
+ 'snowballing' => 'Snowballing',
+ ],
'enter_description' => 'Select options to generate the latex content...',
],
'bibtex' => [
@@ -62,7 +69,12 @@
Ensure that your project information is complete to guarantee the correct export of references.
',
- 'enter_description' => 'Select options to generate the references...',
+ 'content-options'=> [
+ 'study-selection' => 'Study Selection',
+ 'quality-assessment' => 'Quality Assessment',
+ 'snowballing' => 'Snowballing',
+ ],
+ 'enter_description' => 'Select options to generate the references...',
],
],
'button' => [
diff --git a/lang/en/project/planning.php b/lang/en/project/planning.php
index 2506b264c..a9967c06f 100644
--- a/lang/en/project/planning.php
+++ b/lang/en/project/planning.php
@@ -396,6 +396,7 @@
'form' => [
'description' => 'Generic search string',
'enter-description' => 'Enter search string description',
+ 'no-database'=> 'No database found for this project.',
'add' => 'Add Search String',
'update' => 'Update Search String',
'placeholder' => 'Enter the search string',
@@ -534,6 +535,8 @@
'deleted' => 'Criteria deleted',
],
'toasts' => [
+ 'reset_paper_evaluations' => 'All paper evaluations have been reset to "Not Evaluated".',
+ 'no_criteria'=> 'No criteria found.',
'added' => 'Criteria added successfully',
'deleted' => 'Criteria deleted successfully',
'updated' => 'Criteria updated successfully',
@@ -833,6 +836,9 @@
',
],
+ 'type-selection'=> [
+ 'title' => 'Select a Type',
+ ],
'id' => 'ID',
'dont-use' => 'Do not use special characters',
'description' => 'Description',
@@ -856,6 +862,10 @@
',
],
+ 'question-selection'=> [
+ 'title' => 'Select a Question',
+
+ ],
'question' => 'Question',
'option' => 'Option',
'add-option' => 'Add Option',
diff --git a/lang/en/project/reporting.php b/lang/en/project/reporting.php
index 950eea2ea..283a36da2 100644
--- a/lang/en/project/reporting.php
+++ b/lang/en/project/reporting.php
@@ -13,6 +13,97 @@
'snowballing' => 'Snowballing',
],
+ 'overview'=> [
+ 'systematic-mapping-study' => [
+ 'title' => 'Systematic Mapping Study on Domain-Specific Language Development Tools Funnel',
+ 'database' => [
+ 'title' => 'Database',
+ 'content'=>'Search in Digital Libraries',
+ ],
+ 'imported-studies' => 'Imported Studies',
+ 'duplicates' => [
+ 'title'=> 'Duplicates',
+ 'content'=>'Duplicates Removal',
+ ],
+ 'studies' => 'Studies',
+ 'study-selection' => [
+ 'title'=> 'Study Selection',
+ 'content'=>'I/E Removed',
+ ],
+ 'studies-I/E-included'=> 'Studies I/E Included',
+ 'quality-assessment' => [
+ 'title' => 'Quality Assessment',
+ 'content'=> 'QA rejected',
+ ],
+ 'studies-accepted' => [
+ 'title' => '#Avaiable Data Extraction',
+ 'content'=>'Studies accepted',
+ ],
+ 'not-duplicate' => 'Not Duplicates',
+ 'status-selection' => 'Status Selection',
+ 'status-quality'=> 'Status Quality',
+ 'status-extration' => 'Status Extraction',
+ ],
+ 'stages-systematic-review'=>'Stages of Systematic Literature Review or Systematic Mapping Study',
+ 'project-activities-overtime'=> 'Project Activities Over Time',
+ 'total-activities'=> 'Atividades Totais',
+ 'project'=> 'Project',
+ ],
+ 'imported-studies'=> [
+ 'papers-database'=> [
+ 'title'=> 'Papers by Database',
+ 'content'=> 'Papers',
+ ],
+ 'number-papers-year' => [
+ 'title'=> 'Number of Papers by Year',
+ 'year'=> 'Year',
+ 'number-of-papers'=> 'Number of Papers',
+ ],
+ ],
+
+ 'study-selection'=> [
+ 'papers-per-selection' => [
+ 'title'=> 'Papers per Status Selection',
+ 'content'=> 'Papers',
+ ],
+ 'criteria-marked-user'=> [
+ 'title'=> 'Criteria Marked by User',
+ 'criteria-identified-study-selection' => 'Criteria Identified in Study Selection',
+ 'number-times' => 'Number of Times',
+ 'criteria' => 'Criteria',
+ 'user' => 'User',
+ 'value' => 'Value',
+ ],
+ 'number-papers-user-status-selection' => [
+ 'title'=> 'Number of Papers by User and Status Selection',
+ 'users' => 'Users',
+ 'number-papers' => 'Number of Papers',
+ ],
+ ],
+ 'quality-assessment'=> [
+ 'papers-status-quality'=> [
+ 'title'=> 'Papers per Status Quality',
+ 'content'=> 'Papers',
+ ],
+ 'papers-general-score'=> [
+ 'title'=> 'Papers per General Score',
+ 'content'=> 'Papers',
+ ],
+ 'number-papers-user-status-quality'=> [
+ 'title' => 'Number of Papers per User and Status Quality',
+ 'users'=> 'User',
+ 'number-papers' => 'Number of Papers',
+ ]
+ ],
+
+ 'data-extraction'=> [
+ 'data-extraction-wordcloud'=> 'Data Extraction Wordcloud',
+ 'data-extraction-answer-packed-bubble'=> 'Data Extraction Answers - Packed Bubble',
+ 'comparasion-answers-question'=> [
+ 'title'=> 'Comparison of Answers per Question',
+ 'content'=> 'Answers',
+ ]
+ ],
'reliability' =>[
'selection' =>[
'title' => 'Reliability Study Selection (Peer Review)',
@@ -25,12 +116,18 @@
'agreement'=>[
'title' => 'Simple Agreement',
'content'=>'',
+ 'title-modal' => 'Simple Agreement Analysis',
+ 'agreement-percentual'=> 'Agreement Percentual (%)',
],
'kappa'=>[
'title' => 'Method Kappa (Peer Review)',
'content'=>'',
+ 'title-modal' => 'Kappa Analysis',
+ 'kappa-value' => 'Kappa Value',
],
'pesquisador'=>'Researcher',
'peer-review'=>'Peer Review',
+ 'study-selection'=> 'Study Selection',
+ 'quality-assessment'=> 'Quality Assessment',
]
];
diff --git a/lang/pt_BR/project/create.php b/lang/pt_BR/project/create.php
index 9b7475190..72641dc38 100644
--- a/lang/pt_BR/project/create.php
+++ b/lang/pt_BR/project/create.php
@@ -3,16 +3,16 @@
return [
'create_project' => 'Criar Projeto',
-
+
'title' => 'Titulo',
'enter_title' => 'Digite o titulo',
-
+
'description' => 'Descrição',
'enter_description' => 'Digite a descrição',
-
+
'objectives' => 'Objetivos',
'enter_objectives' => 'Digite os objetivos',
-
+
'copy_planning' => 'Copiar Planejamento',
'none' => 'Nenhum',
'option1' => 'Opção 1',
@@ -22,5 +22,6 @@
'option5' => 'Opção 5',
'noProjects' => 'Usuário ainda não possui projetos criados',
+ 'systematic-review'=> 'Revisão Sistemática',
'create' => 'Criar'
];
diff --git a/lang/pt_BR/project/export.php b/lang/pt_BR/project/export.php
index bcefc9574..7df76fcb1 100644
--- a/lang/pt_BR/project/export.php
+++ b/lang/pt_BR/project/export.php
@@ -23,6 +23,14 @@
Este recurso facilita a criação, organização e edição de documentos relacionados ao projeto, integrando as informações do sistema de maneira prática e eficiente.
',
+ 'content-options'=> [
+ 'planning' => 'Planejamento',
+ 'import-studies' => 'Importar Estudos',
+ 'study-selection'=> 'Seleção de Estudos',
+ 'quality-assessment' => 'Avaliação de Qualidade',
+ 'snowballing' => 'Snowballing',
+ ],
+ 'enter_description' => 'Selecione as opções para gerar o conteúdo latex...',
],
'bibtex' => [
'title' => 'Referências BibTex',
@@ -61,6 +69,11 @@
Certifique-se de que as informações do seu projeto estejam completas para garantir a exportação correta das referências.
',
+ 'content-options'=> [
+ 'study-selection' => 'Seleção de Estudos',
+ 'quality-assessment' => 'Avaliação de Qualidade',
+ 'snowballing' => 'Snowballing',
+ ],
'enter_description' => 'Selecione as opções para gerar as referências...',
],
],
diff --git a/lang/pt_BR/project/planning.php b/lang/pt_BR/project/planning.php
index 8238e9138..363eb6af5 100644
--- a/lang/pt_BR/project/planning.php
+++ b/lang/pt_BR/project/planning.php
@@ -397,6 +397,7 @@
'form' => [
'description' => 'String de Busca Genérica',
'enter-description' => 'Digite a string de busca genérica',
+ 'no-database'=> 'Sem base de dados encontrados neste projeto.',
'add' => 'Adicionar String de Busca',
'update' => 'Atualizar String de Busca',
'placeholder' => 'Digite a string de busca',
@@ -514,7 +515,7 @@
'all' => 'Todos',
'any' => 'Qualquer',
'at-least' => 'Pelo menos',
- 'empty' => 'No criteria found',
+ 'empty' => 'Sem critérios cadastrados',
'actions' => 'Ações',
],
'livewire' => [
@@ -534,6 +535,7 @@
'deleted' => 'Critério excluído',
],
'toasts' => [
+ 'no_criteria'=> 'Nenhum critério encontrado.',
'added' => 'Critério adicionado com sucesso.',
'deleted' => 'Critério deletado com sucesso.',
'updated' => 'Critério atualizado com sucesso.',
@@ -831,6 +833,10 @@
',
],
+ 'type-selection'=> [
+ 'title' => 'Selecione um tipo',
+
+ ],
'id' => 'ID',
'dont-use' => 'Não utilize caracteres especiais',
'description' => 'Descrição',
@@ -852,6 +858,10 @@
Descrição: Base de Dados - Tipo de dado: Lista de Escolha Única. (Lista: ACM, IEEE, Scopus)
',
],
+ 'question-selection'=> [
+ 'title' => 'Selecione uma pergunta',
+
+ ],
'question' => 'Pergunta',
'option' => 'Opção',
'add-option' => 'Adicionar Opção',
diff --git a/lang/pt_BR/project/reporting.php b/lang/pt_BR/project/reporting.php
index 74c58a979..27c0cfd12 100644
--- a/lang/pt_BR/project/reporting.php
+++ b/lang/pt_BR/project/reporting.php
@@ -12,6 +12,99 @@
'data_extraction' => 'Extração de Dados',
'snowballing' => 'Snowballing',
],
+
+ 'overview'=> [
+ 'systematic-mapping-study' => [
+ 'title' => 'Estudo de Mapeamento Sistemático sobre Ferramentas de Desenvolvimento de Linguagem específicas de domínio funil',
+ 'database' => [
+ 'title' => 'Banco de Dados',
+ 'content'=>'Busca em bibliotecas digitais',
+ ],
+ 'imported-studies' => 'Estudos Importados',
+ 'duplicates' => [
+ 'title'=> 'Duplicados',
+ 'content'=>'Duplicados Removidos',
+ ],
+ 'studies' => 'Estudos',
+ 'study-selection' => [
+ 'title'=> 'Seleção de Estudos',
+ 'content'=>'I/E Removidos',
+ ],
+ 'studies-I/E-included'=> 'Estudos I/E Incluídos',
+ 'quality-assessment' => [
+ 'title' => 'Avaliação de Qualidade',
+ 'content'=> 'QA Rejeitados',
+ ],
+ 'studies-accepted' => [
+ 'title' => '#Extração de Dados Disponível',
+ 'content'=>'Estudos Aceitos',
+ ],
+ 'not-duplicate' => 'Não Duplicados',
+ 'status-selection' => 'Seleção de Status',
+ 'status-quality'=> 'Status de Qualidade',
+ 'status-extration' => 'Status de Extração',
+ ],
+ 'stages-systematic-review'=>'Etapas da Revisão Sistemática da literatura ou estudo de mapeamento sistemático',
+ 'project-activities-overtime'=> 'Atividades do projeto ao longo do tempo',
+ 'total-activities'=> 'Atividades Totais',
+ 'project'=> 'Projeto',
+ ],
+ 'imported-studies'=> [
+ 'papers-database'=> [
+ 'title'=> 'Estudos por Banco de Dados',
+ 'content'=> 'Estudos',
+ ],
+ 'number-papers-year' => [
+ 'title'=> 'Número de Estudos por Ano',
+ 'year'=> 'Ano',
+ 'number-of-papers'=> 'Número de Estudos',
+ ],
+ ],
+ 'study-selection'=> [
+ 'papers-per-selection' => [
+ 'title'=> 'Estudos por Status de Seleção',
+ 'content'=> 'Estudos',
+ ],
+ 'criteria-marked-user'=> [
+ 'title'=> 'Critérios Assinalados por Usuário',
+ 'criteria-identified-study-selection' => 'Critérios Assinalados na Seleção de Estudos',
+ 'number-times' => 'Número de Vezes',
+ 'criteria' => 'Critério',
+ 'user' => 'Usuário',
+ 'value' => 'Valor',
+ ],
+ 'number-papers-user-status-selection' => [
+ 'title'=> 'Número de Estudos por Usuário e Status de Seleção',
+ 'users' => 'Usuários',
+ 'number-papers' => 'Número de Estudos',
+ 'accepted'=> 'Aceitos',
+ ],
+ ],
+ 'quality-assessment'=> [
+ 'papers-status-quality'=> [
+ 'title'=> 'Estudos por Status de Qualidade',
+ 'content'=> 'Estudos',
+ ],
+ 'papers-general-score'=> [
+ 'title'=> 'Estudos por Pontuação Geral',
+ 'content'=> 'Estudos',
+ ],
+ 'number-papers-user-status-quality'=> [
+ 'title' => 'Número de Estudos por Usuário e Status de Qualidade',
+ 'users'=> 'Usuários',
+ 'number-papers' => 'Número de Estudos',
+ ]
+ ],
+
+ 'data-extraction'=> [
+ 'data-extraction-wordcloud'=> 'Nuvem de Palavras da Extração de Dados',
+ 'data-extraction-answer-packed-bubble'=> 'Respostas de Extração de Dados - Packed Bubble',
+ 'comparasion-answers-question'=> [
+ 'title'=> 'Comparação de Respostas por Questão',
+ 'content'=> 'Respostas',
+ ]
+ ],
+
'reliability' =>[
'selection' =>[
'title' => 'Concordância Seleção de Estudos (Avaliação por pares)',
@@ -24,12 +117,18 @@
'agreement'=>[
'title' => 'Concordância Simples',
'content'=>'',
+ 'title-modal' => 'Análise Concordância Simples',
+ 'agreement-percentual'=> 'Percentual de Concordância (%)',
],
'kappa'=>[
'title' => 'Método Kappa',
'content'=>'',
+ 'title-modal' => 'Análise Kappa nas Etapas',
+ 'kappa-value' => 'Valor de Kappa',
],
'pesquisador'=>'Pesquisador',
'peer-review'=>'Avaliação por Pares (Revisor)',
+ 'study-selection'=> 'Seleção de Estudos',
+ 'quality-assessment'=> 'Avaliação de Qualidade',
]
];
diff --git a/resources/views/livewire/export/bibtex.blade.php b/resources/views/livewire/export/bibtex.blade.php
index 2f850c395..55b5d95c9 100644
--- a/resources/views/livewire/export/bibtex.blade.php
+++ b/resources/views/livewire/export/bibtex.blade.php
@@ -18,7 +18,7 @@
wire:model="selectedOption"
wire:change="generateBibtex"
>
- Study Selection
+ {{ __("project/export.header.bibtex.content-options.study-selection") }}
- Quality Assessment
+ {{ __("project/export.header.bibtex.content-options.quality-assessment") }}
- Snowballing
+ {{ __("project/export.header.bibtex.content-options.snowballing") }}
@empty
- {{ __("No databases found for this project.") }}
+ {{ __("project/planning.search-string.form.no-database") }}
@endforelse
@error("description")
diff --git a/resources/views/livewire/reporting/data-extraction.blade.php b/resources/views/livewire/reporting/data-extraction.blade.php
index a02bad8e7..655e2b1ce 100644
--- a/resources/views/livewire/reporting/data-extraction.blade.php
+++ b/resources/views/livewire/reporting/data-extraction.blade.php
@@ -50,8 +50,8 @@
name: 'Occurrences'
}],
title: {
- text: 'Data Extraction Wordcloud',
- align: 'left'
+ text: '{{ __('project/reporting.data-extraction.data-extraction-wordcloud') }}',
+ align: 'center'
},
tooltip: {
headerFormat: '{point.key} '
@@ -66,7 +66,7 @@
height: '65%'
},
title: {
- text: 'Respostas de Extração de Dados - Packed Bubble',
+ text: '{{ __('project/reporting.data-extraction.data-extraction-answer-packed-bubble') }}',
align: 'left'
},
tooltip: {
@@ -106,7 +106,7 @@
type: 'line'
},
title: {
- text: 'Comparação de Respostas por Questão',
+ text: '{{ __('project/reporting.data-extraction.comparasion-answers-question.title') }}',
align: 'left'
},
xAxis: {
@@ -120,7 +120,7 @@
min: 0
},
series: [{
- name: 'Respostas',
+ name: '{{ __('project/reporting.data-extraction.comparasion-answers-question.content') }}',
data: radarChartData.data,
pointPlacement: 'on'
}]
diff --git a/resources/views/livewire/reporting/import-studies.blade.php b/resources/views/livewire/reporting/import-studies.blade.php
index 93726668a..1455d5111 100644
--- a/resources/views/livewire/reporting/import-studies.blade.php
+++ b/resources/views/livewire/reporting/import-studies.blade.php
@@ -28,7 +28,7 @@
type: 'pie'
},
title: {
- text: 'Papers per Database'
+ text: '{{ __('project/reporting.imported-studies.papers-database.title') }}'
},
tooltip: {
pointFormat: '{series.name}: {point.percentage:.1f}% ({point.y})'
@@ -47,7 +47,7 @@
}
},
series: [{
- name: 'Papers',
+ name: '{{ __('project/reporting.imported-studies.papers-database.content') }}',
colorByPoint: true,
data: @json($papersPerDatabase) // Dados do Livewire convertidos para JSON
}]
@@ -74,20 +74,20 @@
type: 'column'
},
title: {
- text: 'Number of Papers by Year',
+ text: '{{ __('project/reporting.imported-studies.number-papers-year.title') }}',
align: 'left'
},
xAxis: {
categories: years, // Usamos os anos como categorias no eixo X
title: {
- text: 'Year'
+ text: '{{ __('project/reporting.imported-studies.number-papers-year.year') }}'
}
},
yAxis: {
allowDecimals: false,
min: 0,
title: {
- text: 'Number of Papers'
+ text: '{{ __('project/reporting.imported-studies.number-papers-year.number-of-papers') }}'
}
},
plotOptions: {
diff --git a/resources/views/livewire/reporting/overview.blade.php b/resources/views/livewire/reporting/overview.blade.php
index b78c7e20f..e31b69cec 100644
--- a/resources/views/livewire/reporting/overview.blade.php
+++ b/resources/views/livewire/reporting/overview.blade.php
@@ -33,7 +33,7 @@
type: 'funnel'
},
title: {
- text: 'Systematic mapping study on domain-specific language development tools Funnel'
+ text: '{{ __('project/reporting.overview.systematic-mapping-study.title') }}'
},
plotOptions: {
series: {
@@ -52,13 +52,13 @@
enabled: false
},
series: [{
- "name": "Studies",
+ "name": "{{ __('project/reporting.overview.systematic-mapping-study.studies') }}",
"data": [
- ["Imported Studies", {{$importedStudiesCount}}],
- ["Not Duplicate", {{ $notDuplicateStudiesCount }}],
- ["Status Selection", {{$studiesSelectionCount}}],
- ["Status Quality", {{$studiesQualityCount}}],
- ["Status Extraction", {{$studiesExtractionCount}}]
+ ["{{ __('project/reporting.overview.systematic-mapping-study.imported-studies') }}", {{$importedStudiesCount}}],
+ ["{{ __('project/reporting.overview.systematic-mapping-study.not-duplicate') }}", {{ $notDuplicateStudiesCount }}],
+ ["{{ __('project/reporting.overview.systematic-mapping-study.status-selection') }}", {{$studiesSelectionCount}}],
+ ["{{ __('project/reporting.overview.systematic-mapping-study.status-quality') }}", {{$studiesQualityCount}}],
+ ["{{ __('project/reporting.overview.systematic-mapping-study.status-extration') }}", {{$studiesExtractionCount}}]
]
}],
responsive: {
@@ -91,7 +91,7 @@
// Criando a série para o gráfico de linha
const seriesData = [
{
- name: 'Project',
+ name: '{{ __('project/reporting.overview.project') }}',
data: projectTotalActivities // Dados das atividades totais do projeto por data
}
];
@@ -110,14 +110,14 @@
type: 'line'
},
title: {
- text: 'Project Activities Over Time'
+ text: '{{ __('project/reporting.overview.project-activities-overtime') }}'
},
xAxis: {
categories: dates // Datas no eixo X
},
yAxis: {
title: {
- text: 'Total Activities'
+ text: '{{ __('project/reporting.overview.total-activities') }}'
}
},
plotOptions: {
@@ -138,7 +138,7 @@
height: 575
},
title: {
- text: 'Stages of the systematic literature review or systematic mapping study',
+ text: '{{ __('project/reporting.overview.stages-systematic-review') }}',
style: {
fontSize: '18px' // Tamanho da fonte do título
}
@@ -165,23 +165,23 @@
],
nodes: [{
id: 'Search in Digital Libraries',
- title: 'Search in Digital Libraries',
- name: 'Databases',
+ title: '{{ __('project/reporting.overview.systematic-mapping-study.database.content') }}',
+ name: '{{ __('project/reporting.overview.systematic-mapping-study.database.title') }}',
color: '#D0D0D0'
}, {
id: 'Duplicates Removal',
- title: '{{ $duplicateStudiesCount }} Duplicates Removal',
- name: 'Duplicates',
+ title: '{{ $duplicateStudiesCount }} {{ __('project/reporting.overview.systematic-mapping-study.duplicates.content') }}',
+ name: '{{ __('project/reporting.overview.systematic-mapping-study.duplicates.title') }}',
color: '#F7C5C5'
}, {
id: 'Inclusion/Exclusion Criteria',
- title: '{{$studiesSelectionRejectedCount}} I/E removed',
- name: 'Study Selection',
+ title: '{{$studiesSelectionRejectedCount}} {{ __('project/reporting.overview.systematic-mapping-study.study-selection.content') }}',
+ name: '{{ __('project/reporting.overview.systematic-mapping-study.study-selection.title') }}',
color: '#F8E8A2'
}, {
id: 'QA Assessment',
- title: '{{$studiesQualityRejectedCount}} QA rejected',
- name: 'Quality Assessment',
+ title: '{{$studiesQualityRejectedCount}} {{ __('project/reporting.overview.systematic-mapping-study.quality-assessment.content') }}',
+ name: '{{ __('project/reporting.overview.systematic-mapping-study.quality-assessment.title') }}',
color: '#D5FAD9'
}, {
id: 'Data Extraction',
@@ -190,20 +190,20 @@
color: '#D5FAD9'
}, {
id: 'imported studies',
- name: '{{$importedStudiesCount}} imported studies',
+ name: '{{$importedStudiesCount}} {{ __('project/reporting.overview.systematic-mapping-study.imported-studies') }}',
color: '#ffffff'
}, {
id: 'studies included',
- name: '{{$notDuplicateStudiesCount }} studies',
+ name: '{{$notDuplicateStudiesCount }} {{ __('project/reporting.overview.systematic-mapping-study.studies') }}',
color: '#ffffff'
}, {
id: 'I/E studies',
- name: '{{$studiesSelectionCount}} studies I/E included',
+ name: '{{$studiesSelectionCount}} {{ __('project/reporting.overview.systematic-mapping-study.studies-I/E-included') }}',
color: '#ffffff'
}, {
id: 'DE studies',
- name: '{{$studiesQualityCount}} studies accepted',
- title: '#Avaiable Data Extraction',
+ name: '{{$studiesQualityCount}} {{ __('project/reporting.overview.systematic-mapping-study.studies-accepted.content') }}',
+ title: '{{ __('project/reporting.overview.systematic-mapping-study.studies-accepted.title') }}',
color: '#ffffff'
}],
dataLabels: {
diff --git a/resources/views/livewire/reporting/quality-assessment.blade.php b/resources/views/livewire/reporting/quality-assessment.blade.php
index 168968008..b52ea7f00 100644
--- a/resources/views/livewire/reporting/quality-assessment.blade.php
+++ b/resources/views/livewire/reporting/quality-assessment.blade.php
@@ -41,7 +41,7 @@
type: 'pie'
},
title: {
- text: 'Papers per Status Quality'
+ text: '{{ __('project/reporting.quality-assessment.papers-status-quality.title') }}'
},
tooltip: {
pointFormat: '{series.name}: {point.percentage:.1f}% ({point.y})'
@@ -60,7 +60,7 @@
}
},
series: [{
- name: 'Papers',
+ name: '{{ __('project/reporting.quality-assessment.papers-status-quality.content') }}',
colorByPoint: true,
data: papersPerStatus // Dados dinâmicos
}]
@@ -74,7 +74,7 @@
type: 'pie'
},
title: {
- text: 'Papers per General Score'
+ text: '{{ __('project/reporting.quality-assessment.papers-general-score.title') }}'
},
tooltip: {
pointFormat: '{series.name}: {point.percentage:.1f}% ({point.y})'
@@ -93,7 +93,7 @@
}
},
series: [{
- name: 'Papers',
+ name: '{{ __('project/reporting.quality-assessment.papers-general-score.content') }}',
colorByPoint: true,
data: @json($papersByGeneralScore) // Dados gerados pela consulta
}]
@@ -129,18 +129,18 @@
type: 'bar'
},
title: {
- text: 'Número de Papers por Usuário e Status Quality'
+ text: '{{ __('project/reporting.quality-assessment.number-papers-user-status-quality.title') }}'
},
xAxis: {
categories: users,
title: {
- text: 'Usuários'
+ text: '{{ __('project/reporting.quality-assessment.number-papers-user-status-quality.users') }}'
}
},
yAxis: {
min: 0,
title: {
- text: 'Número de Papers'
+ text: '{{ __('project/reporting.quality-assessment.number-papers-user-status-quality.number-papers') }}'
}
},
legend: {
diff --git a/resources/views/livewire/reporting/reliability.blade.php b/resources/views/livewire/reporting/reliability.blade.php
index 5f860fdbf..ccc5e8343 100644
--- a/resources/views/livewire/reporting/reliability.blade.php
+++ b/resources/views/livewire/reporting/reliability.blade.php
@@ -65,17 +65,17 @@ function renderConcordanceChart() {
type: 'bar'
},
title: {
- text: 'Análise Concordância nas Etapas',
+ text: '{{ __('project/reporting.reliability.agreement.title-modal') }}',
align: 'left'
},
xAxis: {
- categories: ['Study Selection', 'Quality Assessment'] // Cada barra com sua própria categoria
+ categories: ['{{ __('project/reporting.reliability.study-selection') }}', '{{ __('project/reporting.reliability.quality-assessment') }}'] // Cada barra com sua própria categoria
},
yAxis: {
min: 0,
max: 100,
title: {
- text: 'Percentual de Concordância (%)'
+ text: '{{ __('project/reporting.reliability.agreement.agreement-percentual') }}'
}
},
plotOptions: {
@@ -91,12 +91,12 @@ function renderConcordanceChart() {
},
series: [
{
- name: 'Study Selection', // Nome da primeira série
+ name: '{{ __('project/reporting.reliability.study-selection') }}', // Nome da primeira série
data: [studySelectionAgreement, null], // Valor para Study Selection
color: '#7cb5ec'
},
{
- name: 'Quality Assessment', // Nome da segunda série
+ name: '{{ __('project/reporting.reliability.quality-assessment') }}', // Nome da segunda série
data: [null, qualityAssessmentAgreement], // Valor para Quality Assessment
color: '#90ed7d'
}
@@ -111,17 +111,17 @@ function renderKappaChart() {
type: 'bar'
},
title: {
- text: 'Análise Kappa nas Etapas',
+ text: '{{ __('project/reporting.reliability.kappa.title-modal') }}',
align: 'left'
},
xAxis: {
- categories: ['Study Selection', 'Quality Assessment']
+ categories: ['{{ __('project/reporting.reliability.study-selection') }}', '{{ __('project/reporting.reliability.quality-assessment') }}']
},
yAxis: {
min: 0,
max: 1, // O valor de Kappa varia de -1 a 1, então o limite superior é 1
title: {
- text: 'Valor de Kappa'
+ text: '{{ __('project/reporting.reliability.kappa.kappa-value') }}'
}
},
plotOptions: {
@@ -137,12 +137,12 @@ function renderKappaChart() {
},
series: [
{
- name: 'Study Selection',
+ name: '{{ __('project/reporting.reliability.study-selection') }}',
data: [studySelectionKappa, null], // Valor calculado para Study Selection
color: '#7cb5ec'
},
{
- name: 'Quality Assessment',
+ name: '{{ __('project/reporting.reliability.quality-assessment') }}',
data: [null, qualityAssessmentKappa], // Valor calculado para Quality Assessment
color: '#90ed7d'
}
diff --git a/resources/views/livewire/reporting/study-selection.blade.php b/resources/views/livewire/reporting/study-selection.blade.php
index 6e7e4f2fe..75841c92c 100644
--- a/resources/views/livewire/reporting/study-selection.blade.php
+++ b/resources/views/livewire/reporting/study-selection.blade.php
@@ -36,7 +36,7 @@
type: 'pie'
},
title: {
- text: 'Papers per Status Selection'
+ text: '{{ __('project/reporting.study-selection.papers-per-selection.title') }}'
},
tooltip: {
pointFormat: '{series.name}: {point.percentage:.1f}% ({point.y})'
@@ -55,7 +55,7 @@
}
},
series: [{
- name: 'Papers',
+ name: '{{ __('project/reporting.study-selection.papers-per-selection.content') }}',
colorByPoint: true,
data: papersPerStatus // Dados dinâmicos
}]
@@ -84,18 +84,18 @@
type: 'column'
},
title: {
- text: 'Critérios assinalados por Usuário'
+ text: '{{ __('project/reporting.study-selection.criteria-marked-user.title') }}'
},
xAxis: {
categories: criterias,
title: {
- text: 'Critérios Assinalados na Seleção de Estudos'
+ text: '{{ __('project/reporting.study-selection.criteria-marked-user.criteria-identified-study-selection') }}'
}
},
yAxis: {
min: 0,
title: {
- text: 'Quantidade de vezes'
+ text: '{{ __('project/reporting.study-selection.criteria-marked-user.number-times') }}'
}
},
plotOptions: {
@@ -114,9 +114,9 @@
const criteriaId = criterias[this.point.index]; // Critério atual
const criteriaName = criteriaData[criteriaId].criteria_name; // Pegue o nome do critério
- return `Critério: ${criteriaId} - ${criteriaName} ` +
- `Usuário: ${this.series.name} ` +
- `Valor: ${this.y}`;
+ return `{{ __('project/reporting.study-selection.criteria-marked-user.criteria') }}: ${criteriaId} - ${criteriaName} ` +
+ `{{ __('project/reporting.study-selection.criteria-marked-user.user') }}: ${this.series.name} ` +
+ `{{ __('project/reporting.study-selection.criteria-marked-user.value') }}: ${this.y}`;
}
},
series: series // Dados formatados dos usuários e suas contagens
@@ -150,18 +150,18 @@
type: 'bar'
},
title: {
- text: 'Número de Papers por Usuário e Status Selection'
+ text: '{{ __('project/reporting.study-selection.number-papers-user-status-selection.title') }}'
},
xAxis: {
categories: users,
title: {
- text: 'Usuários'
+ text: '{{ __('project/reporting.study-selection.number-papers-user-status-selection.users') }}'
}
},
yAxis: {
min: 0,
title: {
- text: 'Número de Papers'
+ text: '{{ __('project/reporting.study-selection.number-papers-user-status-selection.number-papers') }}'
}
},
legend: {
diff --git a/resources/views/projects/create.blade.php b/resources/views/projects/create.blade.php
index 21836bd83..9c055dfc8 100644
--- a/resources/views/projects/create.blade.php
+++ b/resources/views/projects/create.blade.php
@@ -4,13 +4,13 @@
@include('layouts.navbars.auth.topnav', ['title' => __('project/create.create_project')])
-
Create Project
+
{{ __('project/create.create_project') }}