17 define(
'SUBMISSION_EDITOR_DECISION_INTERNAL_REVIEW', 1);
20 define(
'SUBMISSION_EDITOR_DECISION_ACCEPT', 2);
21 define(
'SUBMISSION_EDITOR_DECISION_DECLINE', 6);
24 define(
'SUBMISSION_EDITOR_DECISION_EXTERNAL_REVIEW', 3);
25 define(
'SUBMISSION_EDITOR_DECISION_PENDING_REVISIONS', 4);
26 define(
'SUBMISSION_EDITOR_DECISION_RESUBMIT', 5);
27 define(
'SUBMISSION_EDITOR_DECISION_NEW_ROUND', 16);
30 define(
'SUBMISSION_EDITOR_RECOMMEND_EXTERNAL_REVIEW', 15);
33 define(
'SUBMISSION_EDITOR_DECISION_SEND_TO_PRODUCTION', 7);
36 import(
'lib.pkp.classes.workflow.PKPEditorDecisionActionsManager');
54 $actionLabels = array();
55 foreach($decisions as $decision) {
56 if ($allDecisionsData[$decision][
'title']) {
57 $actionLabels[$decision] = $allDecisionsData[$decision][
'title'];
75 $editorDecisions = $editDecisionDao->getEditorDecisions($reviewRound->getSubmissionId(), $reviewRound->getStageId(), $reviewRound->getRound());
77 if (empty($decisions)) {
80 $takenDecision =
false;
81 foreach ($editorDecisions as $decision) {
82 if (in_array($decision[
'decision'], $decisions)) {
83 $takenDecision =
true;
88 return $takenDecision;
96 case WORKFLOW_STAGE_ID_INTERNAL_REVIEW:
99 return parent::getStageDecisions($request, $stageId, $makeDecision);
109 $recommendationOptions = parent::getRecommendationOptions($stageId);
110 if ($stageId == WORKFLOW_STAGE_ID_INTERNAL_REVIEW) {
111 $recommendationOptions[SUBMISSION_EDITOR_RECOMMEND_EXTERNAL_REVIEW] =
'editor.submission.decision.sendExternalReview';
113 return $recommendationOptions;
123 $decisions = parent::_submissionStageDecisions($stageId, $makeDecision);
124 $decisions[SUBMISSION_EDITOR_DECISION_INTERNAL_REVIEW] = array(
125 'name' =>
'internalReview',
126 'operation' =>
'internalReview',
127 'title' =>
'editor.submission.decision.sendInternalReview',
140 $decisions = array();
143 SUBMISSION_EDITOR_DECISION_PENDING_REVISIONS => array(
144 'operation' =>
'sendReviewsInReview',
145 'name' =>
'requestRevisions',
146 'title' =>
'editor.submission.decision.requestRevisions',
148 SUBMISSION_EDITOR_DECISION_RESUBMIT => array(
149 'name' =>
'resubmit',
150 'title' =>
'editor.submission.decision.resubmit',
152 SUBMISSION_EDITOR_DECISION_NEW_ROUND => array(
153 'name' =>
'newround',
154 'title' =>
'editor.submission.decision.newRound',
156 SUBMISSION_EDITOR_DECISION_EXTERNAL_REVIEW => array(
157 'operation' =>
'promoteInReview',
158 'name' =>
'externalReview',
159 'title' =>
'editor.submission.decision.sendExternalReview',
160 'toStage' =>
'workflow.review.externalReview',
162 SUBMISSION_EDITOR_DECISION_ACCEPT => array(
163 'operation' =>
'promoteInReview',
165 'title' =>
'editor.submission.decision.accept',
166 'toStage' =>
'submission.copyediting',
168 SUBMISSION_EDITOR_DECISION_DECLINE => array(
169 'operation' =>
'sendReviewsInReview',
171 'title' =>
'editor.submission.decision.decline',
188 unset($decisions[SUBMISSION_EDITOR_DECISION_EXTERNAL_REVIEW]);
197 return parent::getStageNotifications() + array(
198 NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_INTERNAL_REVIEW