function enterReviewerRecommendation($args)
 {
     $articleId = Request::getUserVar('articleId');
     list($journal, $submission) = SubmissionEditHandler::validate($articleId, SECTION_EDITOR_ACCESS_REVIEW);
     $reviewId = Request::getUserVar('reviewId');
     $recommendation = Request::getUserVar('recommendation');
     if ($recommendation != null) {
         SectionEditorAction::setReviewerRecommendation($articleId, $reviewId, $recommendation, SUBMISSION_REVIEWER_RECOMMENDATION_ACCEPT);
         Request::redirect(null, null, 'submissionReview', $articleId);
     } else {
         parent::setupTemplate(true, $articleId, 'review');
         $templateMgr =& TemplateManager::getManager();
         $templateMgr->assign('articleId', $articleId);
         $templateMgr->assign('reviewId', $reviewId);
         import('submission.reviewAssignment.ReviewAssignment');
         $templateMgr->assign_by_ref('reviewerRecommendationOptions', ReviewAssignment::getReviewerRecommendationOptions());
         $templateMgr->display('sectionEditor/reviewerRecommendation.tpl');
     }
 }
 /**
  * Enter a reviewer recommendation on behalf of a reviewer
  * @param $args array
  * @param $request PKPRequest
  */
 function enterReviewerRecommendation($args, &$request)
 {
     $articleId = $request->getUserVar('articleId');
     $this->validate($articleId, SECTION_EDITOR_ACCESS_REVIEW);
     $submission =& $this->submission;
     $reviewId = $request->getUserVar('reviewId');
     $recommendation = $request->getUserVar('recommendation');
     if ($recommendation != null) {
         SectionEditorAction::setReviewerRecommendation($this->submission, $reviewId, $recommendation, SUBMISSION_REVIEWER_RECOMMENDATION_ACCEPT, $request);
         $request->redirect(null, null, 'submissionReview', $articleId);
     } else {
         $this->setupTemplate(true, $articleId, 'review');
         $templateMgr =& TemplateManager::getManager();
         $templateMgr->assign('articleId', $articleId);
         $templateMgr->assign('reviewId', $reviewId);
         import('classes.submission.reviewAssignment.ReviewAssignment');
         $templateMgr->assign_by_ref('reviewerRecommendationOptions', ReviewAssignment::getReviewerRecommendationOptions());
         $templateMgr->display('sectionEditor/reviewerRecommendation.tpl');
     }
 }