addRoleAssignment( array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array( 'access', 'index', 'submission', 'editorDecisionActions', // Submission & review 'externalReview', // review 'editorial', 'production', 'submissionHeader', 'submissionProgressBar', ) ); } // // Protected helper methods // /** * Return the editor assignment notification type based on stage id. * @param $stageId int * @return int */ protected function getEditorAssignmentNotificationTypeByStageId($stageId) { switch ($stageId) { case WORKFLOW_STAGE_ID_SUBMISSION: return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_SUBMISSION; case WORKFLOW_STAGE_ID_EXTERNAL_REVIEW: return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_EXTERNAL_REVIEW; case WORKFLOW_STAGE_ID_EDITING: return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_EDITING; case WORKFLOW_STAGE_ID_PRODUCTION: return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_PRODUCTION; } return null; } /** * @see PKPWorkflowHandler::isSubmissionReady() */ protected function isSubmissionReady($submission) { $publishedArticleDao = DAORegistry::getDAO('PublishedArticleDAO'); return $publishedArticleDao->getByArticleId($submission->getId())?true:false; } } ?>