-
{{ texts.heading }}
-
{{ texts.description }}
+
+
+ {{ message.heading }}
+
+
{{ message.body }}
-
diff --git a/src/pages/workflow/composables/useWorkflowConfig/useWorkflowConfigOPS.js b/src/pages/workflow/composables/useWorkflowConfig/useWorkflowConfigOPS.js
index 4b56a47fa..db57cfe0b 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/useWorkflowConfigOPS.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/useWorkflowConfigOPS.js
@@ -1,4 +1,8 @@
import {DashboardPageTypes} from '@/pages/dashboard/dashboardPageStore';
+import {deepMerge} from '@/utils/deepMerge';
+
+import * as ConfigAuthorOJS from './workflowConfigAuthorOJS';
+import * as ConfigEditorialOJS from './workflowConfigEditorialOJS';
import * as ConfigAuthorOPS from './workflowConfigAuthorOPS';
import * as ConfigEditorialOPS from './workflowConfigEditorialOPS';
@@ -9,9 +13,9 @@ export function useWorkflowConfigOPS({dashboardPage}) {
let Configs = null;
if (dashboardPage === DashboardPageTypes.EDITORIAL_DASHBOARD) {
- Configs = ConfigEditorialOPS;
+ Configs = deepMerge(deepMerge({}, ConfigEditorialOJS), ConfigEditorialOPS);
} else {
- Configs = ConfigAuthorOPS;
+ Configs = deepMerge(deepMerge({}, ConfigAuthorOJS), ConfigAuthorOPS);
}
function _getItems(
diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOJS.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOJS.js
index da38a4ae3..90cd20bfe 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOJS.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOJS.js
@@ -2,8 +2,11 @@ import {useLocalize} from '@/composables/useLocalize';
import {Actions} from '../useWorkflowActions';
import {useSubmission} from '@/composables/useSubmission';
-const {hasSubmissionPassedStage, getOpenReviewAssignmentsForRound} =
- useSubmission();
+const {
+ hasSubmissionPassedStage,
+ getOpenReviewAssignmentsForRound,
+ hasNotSubmissionStartedStage,
+} = useSubmission();
const {t} = useLocalize();
@@ -31,13 +34,18 @@ export function getHeaderItems({
export const WorkflowConfig = {
common: {
- getPrimaryItems: ({submission, permissions, selectedStageId}) => {
+ getPrimaryItems: ({
+ submission,
+ permissions,
+ selectedStageId,
+ selectedReviewRound,
+ }) => {
if (!permissions.accessibleStages.includes(selectedStageId)) {
return {
shouldContinue: false,
items: [
{
- component: 'PrimaryBasicMetadata',
+ component: 'WorkflowPrimaryBasicMetadata',
props: {
body: t('user.authorization.accessibleWorkflowStage'),
},
@@ -46,17 +54,33 @@ export const WorkflowConfig = {
};
}
+ const items = [];
+
+ items.push({
+ component: 'WorkflowChangeSubmissionLanguage',
+ props: {
+ submission,
+ canChangeSubmissionLanguage: false,
+ },
+ });
+
+ const shouldContinue = !hasNotSubmissionStartedStage(
+ submission,
+ selectedStageId,
+ );
+
+ items.push({
+ component: 'WorkflowSubmissionStatus',
+ props: {
+ submission,
+ selectedStageId,
+ selectedReviewRoundId: selectedReviewRound?.id,
+ },
+ });
+
return {
- shouldContinue: true,
- items: [
- {
- component: 'WorkflowChangeSubmissionLanguage',
- props: {
- submission,
- canChangeSubmissionLanguage: false,
- },
- },
- ],
+ shouldContinue,
+ items,
};
},
},
@@ -94,38 +118,6 @@ export const WorkflowConfig = {
[pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (!selectedReviewRound) {
- return [
- {
- component: 'WorkflowPrimaryBasicMetadata',
- props: {body: t('editor.review.notInitiated')},
- },
- ];
- }
- const {getCurrentReviewRound} = useSubmission();
-
- const currentReviewRound = getCurrentReviewRound(
- submission,
- selectedStageId,
- );
-
- if (selectedReviewRound.round < currentReviewRound.round) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t(
- 'editor.submission.workflowDecision.submission.reviewRound',
- ),
- },
- });
- }
-
- if (selectedReviewRound.id === currentReviewRound.id) {
- items.push({
- component: 'WorkflowReviewRoundStatus',
- props: {reviewRound: selectedReviewRound},
- });
- }
items.push({
component: 'WorkflowListingEmails',
@@ -172,20 +164,6 @@ export const WorkflowConfig = {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (
- hasSubmissionPassedStage(
- submission,
- pkp.const.WORKFLOW_STAGE_ID_EDITING,
- )
- ) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.production'),
- },
- });
- }
-
items.push({
component: 'DiscussionManager',
props: {
@@ -209,14 +187,6 @@ export const WorkflowConfig = {
[pkp.const.WORKFLOW_STAGE_ID_PRODUCTION]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (submission.status === pkp.const.STATUS_PUBLISHED) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.published'),
- },
- });
- }
items.push({
component: 'DiscussionManager',
diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOMP.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOMP.js
index ff3a7974e..5019eac46 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOMP.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOMP.js
@@ -5,8 +5,6 @@ import {useSubmission} from '@/composables/useSubmission';
const {hasSubmissionPassedStage, getOpenReviewAssignmentsForRound} =
useSubmission();
-const {t} = useLocalize();
-
export function getHeaderItems({
submission,
selectedPublication,
@@ -65,39 +63,6 @@ export const WorkflowConfig = {
[pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (!selectedReviewRound) {
- return [
- {
- component: 'WorkflowPrimaryBasicMetadata',
- props: {body: t('editor.review.notInitiated')},
- },
- ];
- }
- const {getCurrentReviewRound} = useSubmission();
-
- const currentReviewRound = getCurrentReviewRound(
- submission,
- selectedStageId,
- );
-
- if (selectedReviewRound.round < currentReviewRound.round) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t(
- 'editor.submission.workflowDecision.submission.reviewRound',
- ),
- },
- });
- }
-
- if (selectedReviewRound.id === currentReviewRound.id) {
- items.push({
- component: 'WorkflowReviewRoundStatus',
- props: {reviewRound: selectedReviewRound},
- });
- }
-
if (
getOpenReviewAssignmentsForRound(
submission.reviewAssignments,
@@ -138,20 +103,6 @@ export const WorkflowConfig = {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (
- hasSubmissionPassedStage(
- submission,
- pkp.const.WORKFLOW_STAGE_ID_EDITING,
- )
- ) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.production'),
- },
- });
- }
-
items.push({
component: 'DiscussionManager',
props: {
@@ -173,16 +124,8 @@ export const WorkflowConfig = {
},
},
[pkp.const.WORKFLOW_STAGE_ID_PRODUCTION]: {
- getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
+ getPrimaryItems: ({submission, selectedStageId}) => {
const items = [];
- if (submission.status === pkp.const.STATUS_PUBLISHED) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.published'),
- },
- });
- }
items.push({
component: 'WorkflowNotificationDisplay',
@@ -203,44 +146,6 @@ export const WorkflowConfig = {
};
export const PublicationConfig = {
- titleAbstract: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'titleAbstract',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- contributors: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'ContributorManager',
- props: {
- submission: submission,
- publication: selectedPublication,
- },
- },
- ];
- },
- },
chapters: {
getPrimaryItems: ({
submission,
@@ -259,60 +164,4 @@ export const PublicationConfig = {
];
},
},
-
- metadata: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'metadata',
- submission,
- publication: selectedPublication,
- noFieldsMessage: 'No metadata fields are currently enabled.',
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- citations: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'reference',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- galleys: {
- getPrimaryItems: ({submission, selectedPublication, permissions}) => {
- return [
- {
- component: 'GalleyManager',
- props: {
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
};
diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOPS.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOPS.js
index 3f821e3dc..81d6a2335 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOPS.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigAuthorOPS.js
@@ -27,20 +27,6 @@ export const WorkflowConfig = {};
export const PublicationConfig = {
common: {
- getPrimaryItems: ({
- submission,
- selectedPublicationId,
- selectedPublication,
- }) => {
- const items = [];
- if (selectedPublication.status === pkp.const.STATUS_PUBLISHED) {
- items.push({
- component: 'WorkflowPublicationEditDisabled',
- props: {},
- });
- }
- return {items, shouldContinue: true};
- },
getPublicationControlsLeft: ({
submission,
selectedPublicationId,
@@ -65,99 +51,6 @@ export const PublicationConfig = {
return items;
},
},
- titleAbstract: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'titleAbstract',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- contributors: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'ContributorManager',
- props: {
- submission: submission,
- publication: selectedPublication,
- },
- },
- ];
- },
- },
- metadata: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'metadata',
- submission,
- publication: selectedPublication,
- noFieldsMessage: 'No metadata fields are currently enabled.',
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- citations: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'reference',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- galleys: {
- getPrimaryItems: ({submission, selectedPublication, permissions}) => {
- return [
- {
- component: 'GalleyManager',
- props: {
- submission,
- publication: selectedPublication,
- canEditPublication: permissions.canEditPublication,
- },
- },
- ];
- },
- },
discussions: {
getPrimaryItems: ({submission, selectedPublication, permissions}) => {
return [
diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js
index f328e5cf3..c6e462e7a 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js
@@ -9,6 +9,7 @@ const {
getActiveStage,
getStageById,
isDecisionAvailable,
+ hasNotSubmissionStartedStage,
} = useSubmission();
const {t} = useLocalize();
@@ -63,13 +64,18 @@ export function getHeaderItems({
export const WorkflowConfig = {
common: {
- getPrimaryItems: ({submission, permissions, selectedStageId}) => {
+ getPrimaryItems: ({
+ submission,
+ permissions,
+ selectedStageId,
+ selectedReviewRound,
+ }) => {
if (!permissions.accessibleStages.includes(selectedStageId)) {
return {
shouldContinue: false,
items: [
{
- component: 'PrimaryBasicMetadata',
+ component: 'WorkflowPrimaryBasicMetadata',
props: {
body: t('user.authorization.accessibleWorkflowStage'),
},
@@ -78,17 +84,33 @@ export const WorkflowConfig = {
};
}
+ const items = [];
+
+ items.push({
+ component: 'WorkflowChangeSubmissionLanguage',
+ props: {
+ submission,
+ canChangeSubmissionLanguage: false,
+ },
+ });
+
+ const shouldContinue = !hasNotSubmissionStartedStage(
+ submission,
+ selectedStageId,
+ );
+
+ items.push({
+ component: 'WorkflowSubmissionStatus',
+ props: {
+ submission,
+ selectedStageId,
+ selectedReviewRoundId: selectedReviewRound?.id,
+ },
+ });
+
return {
- shouldContinue: true,
- items: [
- {
- component: 'WorkflowChangeSubmissionLanguage',
- props: {
- submission,
- canChangeSubmissionLanguage: false,
- },
- },
- ],
+ shouldContinue,
+ items,
};
},
},
@@ -96,15 +118,6 @@ export const WorkflowConfig = {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (
- hasSubmissionPassedStage(
- submission,
- pkp.const.WORKFLOW_STAGE_ID_SUBMISSION,
- )
- ) {
- items.push({component: 'SubmissionStatus', props: {submission}});
- }
-
items.push({
component: 'FileManager',
props: {
@@ -202,38 +215,6 @@ export const WorkflowConfig = {
[pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (!selectedReviewRound) {
- return [
- {
- component: 'WorkflowPrimaryBasicMetadata',
- props: {body: t('editor.review.notInitiated')},
- },
- ];
- }
- const {getCurrentReviewRound} = useSubmission();
-
- const currentReviewRound = getCurrentReviewRound(
- submission,
- selectedStageId,
- );
-
- if (selectedReviewRound.round < currentReviewRound.round) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t(
- 'editor.submission.workflowDecision.submission.reviewRound',
- ),
- },
- });
- }
-
- if (selectedReviewRound.id === currentReviewRound.id) {
- items.push({
- component: 'WorkflowReviewRoundStatus',
- props: {reviewRound: selectedReviewRound},
- });
- }
items.push({
component: 'FileManager',
@@ -437,20 +418,6 @@ export const WorkflowConfig = {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (
- hasSubmissionPassedStage(
- submission,
- pkp.const.WORKFLOW_STAGE_ID_EDITING,
- )
- ) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.production'),
- },
- });
- }
-
items.push({
component: 'WorkflowNotificationDisplay',
props: {submission: submission},
@@ -536,15 +503,6 @@ export const WorkflowConfig = {
[pkp.const.WORKFLOW_STAGE_ID_PRODUCTION]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (submission.status === pkp.const.STATUS_PUBLISHED) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.published'),
- },
- });
- }
-
items.push({
component: 'WorkflowNotificationDisplay',
props: {submission: submission},
diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOMP.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOMP.js
index e760e6306..3582047ba 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOMP.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOMP.js
@@ -140,38 +140,6 @@ export const WorkflowConfig = {
[pkp.const.WORKFLOW_STAGE_ID_INTERNAL_REVIEW]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (!selectedReviewRound) {
- return [
- {
- component: 'WorkflowPrimaryBasicMetadata',
- props: {body: t('editor.review.notInitiated')},
- },
- ];
- }
- const {getCurrentReviewRound} = useSubmission();
-
- const currentReviewRound = getCurrentReviewRound(
- submission,
- selectedStageId,
- );
-
- if (selectedReviewRound.round < currentReviewRound.round) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t(
- 'editor.submission.workflowDecision.submission.reviewRound',
- ),
- },
- });
- }
-
- if (selectedReviewRound.id === currentReviewRound.id) {
- items.push({
- component: 'WorkflowReviewRoundStatus',
- props: {reviewRound: selectedReviewRound},
- });
- }
items.push({
component: 'FileManager',
@@ -499,45 +467,6 @@ export const PublicationConfig = {
return {items, shouldContinue: true};
},
},
- titleAbstract: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'titleAbstract',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- contributors: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'ContributorManager',
- props: {
- submission: submission,
- publication: selectedPublication,
- canEditPublication: permissions.canEditPublication,
- },
- },
- ];
- },
- },
chapters: {
getPrimaryItems: ({
submission,
@@ -557,68 +486,6 @@ export const PublicationConfig = {
},
},
- metadata: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'metadata',
- submission,
- publication: selectedPublication,
- noFieldsMessage: 'No metadata fields are currently enabled.',
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
-
- citations: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'reference',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- identifiers: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'identifier',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
publicationFormats: {
getPrimaryItems: ({
submission,
@@ -658,25 +525,4 @@ export const PublicationConfig = {
];
},
},
-
- license: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'permissionDisclosure',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
};
diff --git a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOPS.js b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOPS.js
index 5284300f1..ed635faf0 100644
--- a/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOPS.js
+++ b/src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOPS.js
@@ -51,47 +51,9 @@ export function getHeaderItems({
}
export const WorkflowConfig = {
- common: {
- getPrimaryItems: ({submission, permissions, selectedStageId}) => {
- if (!permissions.accessibleStages.includes(selectedStageId)) {
- return {
- shouldContinue: false,
- items: [
- {
- component: 'PrimaryBasicMetadata',
- props: {
- body: t('user.authorization.accessibleWorkflowStage'),
- },
- },
- ],
- };
- }
-
- return {
- shouldContinue: true,
- items: [
- {
- component: 'WorkflowChangeSubmissionLanguage',
- props: {
- submission,
- canChangeSubmissionLanguage: false,
- },
- },
- ],
- };
- },
- },
[pkp.const.WORKFLOW_STAGE_ID_PRODUCTION]: {
getPrimaryItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
- if (submission.status === pkp.const.STATUS_PUBLISHED) {
- items.push({
- component: 'WorkflowPrimaryBasicMetadata',
- props: {
- body: t('editor.submission.workflowDecision.submission.published'),
- },
- });
- }
items.push({
component: 'WorkflowNotificationDisplay',
@@ -108,18 +70,6 @@ export const WorkflowConfig = {
return items;
},
- getSecondaryItems: ({submission, selectedReviewRound, selectedStageId}) => {
- const items = [];
- items.push({
- component: 'ParticipantManager',
- props: {
- submission,
- submissionStageId: selectedStageId,
- },
- });
-
- return items;
- },
getActionItems: ({submission, selectedStageId, selectedReviewRound}) => {
const items = [];
@@ -175,20 +125,6 @@ export const WorkflowConfig = {
export const PublicationConfig = {
common: {
- getPrimaryItems: ({
- submission,
- selectedPublicationId,
- selectedPublication,
- }) => {
- const items = [];
- if (selectedPublication.status === pkp.const.STATUS_PUBLISHED) {
- items.push({
- component: 'WorkflowPublicationEditDisabled',
- props: {},
- });
- }
- return {items, shouldContinue: true};
- },
getPublicationControlsLeft: ({
submission,
selectedPublicationId,
@@ -313,140 +249,6 @@ export const PublicationConfig = {
return {items, shouldContinue: true};
},
},
- titleAbstract: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'titleAbstract',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- contributors: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'ContributorManager',
- props: {
- submission: submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- metadata: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'metadata',
- submission,
- publication: selectedPublication,
- noFieldsMessage: 'No metadata fields are currently enabled.',
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- citations: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'reference',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- identifiers: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'identifier',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- galleys: {
- getPrimaryItems: ({submission, selectedPublication, permissions}) => {
- return [
- {
- component: 'GalleyManager',
- props: {
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
- license: {
- getPrimaryItems: ({
- submission,
- selectedPublication,
- pageInitConfig,
- permissions,
- }) => {
- return [
- {
- component: 'WorkflowPublicationForm',
- props: {
- formName: 'permissionDisclosure',
- submission,
- publication: selectedPublication,
- canEdit: permissions.canEditPublication,
- },
- },
- ];
- },
- },
preprintEntry: {
getPrimaryItems: ({
submission,
diff --git a/src/pages/workflow/workflowStoreOJS.js b/src/pages/workflow/workflowStoreOJS.js
index 4bb9b1a03..9103a4f14 100644
--- a/src/pages/workflow/workflowStoreOJS.js
+++ b/src/pages/workflow/workflowStoreOJS.js
@@ -41,7 +41,6 @@ import WorkflowPublicationJats from './components/publication/WorkflowPublicatio
import WorkflowPublicationVersionControl from './components/publication/WorkflowPublicationVersionControl.vue';
import WorkflowChangeSubmissionLanguage from './components/publication/WorkflowChangeSubmissionLanguage.vue';
import WorkflowPrimaryBasicMetadata from './components/primary/WorkflowPrimaryBasicMetadata.vue';
-import WorkflowReviewRoundStatus from './components/primary/WorkflowReviewRoundStatus.vue';
import WorkflowSubmissionStatus from './components/primary/WorkflowSubmissionStatus.vue';
import WorkflowPublicationEditDisabled from './components/publication/WorkflowPublicationEditDisabled.vue';
@@ -207,7 +206,6 @@ export const useWorkflowStore = defineComponentStore('workflow', (props) => {
WorkflowListingEmails,
WorkflowPaymentDropdown,
WorkflowPrimaryBasicMetadata,
- WorkflowReviewRoundStatus,
WorkflowPublicationForm,
WorkflowPublicationJats,
WorkflowPublicationVersionControl,
diff --git a/src/pages/workflow/workflowStoreOMP.js b/src/pages/workflow/workflowStoreOMP.js
index 5614e05d2..62d4da1b5 100644
--- a/src/pages/workflow/workflowStoreOMP.js
+++ b/src/pages/workflow/workflowStoreOMP.js
@@ -44,7 +44,6 @@ import WorkflowPublicationForm from './components/publication/WorkflowPublicatio
import WorkflowPublicationVersionControl from './components/publication/WorkflowPublicationVersionControl.vue';
import WorkflowChangeSubmissionLanguage from './components/publication/WorkflowChangeSubmissionLanguage.vue';
import WorkflowPrimaryBasicMetadata from './components/primary/WorkflowPrimaryBasicMetadata.vue';
-import WorkflowReviewRoundStatus from './components/primary/WorkflowReviewRoundStatus.vue';
import WorkflowSubmissionStatus from './components/primary/WorkflowSubmissionStatus.vue';
import WorkflowPublicationEditDisabled from './components/publication/WorkflowPublicationEditDisabled.vue';
@@ -212,7 +211,6 @@ export const useWorkflowStore = defineComponentStore('workflow', (props) => {
WorkflowNotificationDisplay,
WorkflowListingEmails,
WorkflowPrimaryBasicMetadata,
- WorkflowReviewRoundStatus,
WorkflowPublicationForm,
WorkflowPublicationVersionControl,
WorkflowChangeSubmissionLanguage,