Skip to content

Commit

Permalink
bug fixed: display papers of included&excluded when validation
Browse files Browse the repository at this point in the history
  • Loading branch information
YUE YU committed Jul 30, 2024
1 parent c39fcca commit 8b48763
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions relis_app/controllers/Screening.php
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ public function screen_validation_result()
//'screening_decision'=>$papers[$value['paper_id']]['screening_status'],
'validation_descision' => $value['screening_decision']
);
if ($screenings[$key]['validation_descision'] == screening_validation_source_paper_status()) {
if ($screenings[$key]['validation_descision'] == screening_validation_source_paper_status() or screening_validation_source_paper_status() == 'all') {
$nbr_matched++;
$screenings[$key]['matched'] = 'Yes';
} else {
Expand Down Expand Up @@ -2026,7 +2026,13 @@ public function validate_screen_set($data = array())
} else {
$data['assign_to_connected'] = False;
}
$papers = $this->get_papers_to_screen($paper_source, $paper_source_status, '', 'Validation');
if ($paper_source_status == 'all'){
$papers_included = $this->get_papers_to_screen($paper_source, 'Included', '', 'Validation');
$papers_excluded = $this->get_papers_to_screen($paper_source, 'Excluded', '', 'Validation');
$papers = array_merge($papers_included, $papers_excluded);
}else{
$papers = $this->get_papers_to_screen($paper_source, $paper_source_status, '', 'Validation');
}
// print_test($papers['assigned']);
$data['paper_source'] = $paper_source;
$paper_list[0] = array('Key', 'Title');
Expand Down

0 comments on commit 8b48763

Please sign in to comment.