16 import(
'lib.pkp.pages.workflow.PKPWorkflowHandler');
19 import(
'classes.workflow.EditorDecisionActionsManager');
26 parent::__construct();
29 array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT),
31 'access',
'index',
'submission',
32 'editorDecisionActions',
38 'submissionProgressBar',
61 parent::setupIndex($request);
66 $submissionContext = $request->getContext();
67 if ($submission->getContextId() !== $submissionContext->getId()) {
68 $submissionContext =
Services::get(
'context')->get($submission->getContextId());
71 $supportedFormLocales = $submissionContext->getSupportedFormLocales();
73 $locales = array_map(
function($localeKey) use ($localeNames) {
74 return [
'key' => $localeKey,
'label' => $localeNames[$localeKey]];
75 }, $supportedFormLocales);
77 $latestPublication = $submission->getLatestPublication();
79 $submissionApiUrl = $request->getDispatcher()->url($request, ROUTE_API, $submissionContext->getData(
'urlPath'),
'submissions/' . $submission->getId());
80 $latestPublicationApiUrl = $request->getDispatcher()->url($request, ROUTE_API, $submissionContext->getData(
'urlPath'),
'submissions/' . $submission->getId() .
'/publications/' . $latestPublication->getId());
81 $temporaryFileApiUrl = $request->getDispatcher()->url($request, ROUTE_API, $submissionContext->getData(
'urlPath'),
'temporaryFiles');
83 $chaptersGridUrl = $request->getDispatcher()->url(
87 'grid.users.chapter.ChapterGridHandler',
91 'submissionId' => $submission->getId(),
92 'publicationId' =>
'__publicationId__',
96 import(
'classes.file.PublicFileManager');
98 $baseUrl = $request->getBaseUrl() .
'/' . $publicFileManager->getContextFilesPath($submissionContext->getId());
104 $templateMgr->setConstants([
106 'FORM_CATALOG_ENTRY',
107 'WORK_TYPE_AUTHORED_WORK',
108 'WORK_TYPE_EDITED_VOLUME',
111 $components = $templateMgr->getState(
'components');
112 $components[FORM_AUDIENCE] = $audienceForm->getConfig();
113 $components[FORM_CATALOG_ENTRY] = $catalogEntryForm->getConfig();
114 $components[FORM_PUBLICATION_DATES] = $publicationDatesForm->getConfig();
116 $publicationFormIds = $templateMgr->getState(
'publicationFormIds');
117 $publicationFormIds[] = FORM_CATALOG_ENTRY;
119 $templateMgr->setState([
120 'components' => $components,
121 'chaptersGridUrl' => $chaptersGridUrl,
122 'publicationFormIds' => $publicationFormIds,
123 'editedVolumeLabel' => __(
'submission.workflowType.editedVolume.label'),
124 'monographLabel' => __(
'common.publication'),
127 $templateMgr->assign([
128 'pageComponent' =>
'WorkflowPage',
143 case WORKFLOW_STAGE_ID_SUBMISSION:
144 return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_SUBMISSION;
145 case WORKFLOW_STAGE_ID_INTERNAL_REVIEW:
146 return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_INTERNAL_REVIEW;
147 case WORKFLOW_STAGE_ID_EXTERNAL_REVIEW:
148 return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_EXTERNAL_REVIEW;
149 case WORKFLOW_STAGE_ID_EDITING:
150 return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_EDITING;
151 case WORKFLOW_STAGE_ID_PRODUCTION:
152 return NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_PRODUCTION;
161 return $request->getDispatcher()->url(
165 'grid.catalogEntry.PublicationFormatGridHandler',
169 'submissionId' => $submission->getId(),
170 'publicationId' =>
'__publicationId__',