+ {{ t('submission.list.changeLangDescription') }}
+
+
+
+
+
+
diff --git a/src/components/Container/WorkflowPage.vue b/src/components/Container/WorkflowPage.vue
index 528890d7e..93dbd3d55 100644
--- a/src/components/Container/WorkflowPage.vue
+++ b/src/components/Container/WorkflowPage.vue
@@ -1,5 +1,6 @@
@@ -722,6 +770,15 @@ export default {
}
}
+.pkpSubmission__localeNotSupported {
+ margin: 0 -2rem;
+ padding: 1rem;
+ background: @primary;
+ font-size: @font-sml;
+ color: #fff;
+ text-align: center;
+}
+
// Integrate the grids in the publication tab
.pkpWorkflow__contributors,
#representations-grid {
diff --git a/src/components/Container/WorkflowPageOMP.vue b/src/components/Container/WorkflowPageOMP.vue
index a7c24da38..4196ee3cc 100644
--- a/src/components/Container/WorkflowPageOMP.vue
+++ b/src/components/Container/WorkflowPageOMP.vue
@@ -72,9 +72,13 @@ export default {
/**
* Update the work type to be an edited volume
+ * Update authors' isVolumeEditor to bool if null
*/
setAsEditedVolume() {
this.updateWorkType(this.getConstant('WORK_TYPE_EDITED_VOLUME'));
+ this.workingPublication.authors.forEach(
+ (author) => (author.isVolumeEditor = !!author.isVolumeEditor),
+ );
},
/**
diff --git a/src/components/Form/FormPage.vue b/src/components/Form/FormPage.vue
index 66dd656b8..e59e0e334 100644
--- a/src/components/Form/FormPage.vue
+++ b/src/components/Form/FormPage.vue
@@ -207,6 +207,9 @@ export default {
if (typeof group.showWhen === 'string') {
return !!whenField.value;
}
+ if (Array.isArray(group.showWhen[1])) {
+ return group.showWhen[1].includes(whenField.value);
+ }
return whenField.value === group.showWhen[1];
},
diff --git a/src/docs/components/WorkflowPage/readme.md b/src/docs/components/WorkflowPage/readme.md
new file mode 100644
index 000000000..401f2c44e
--- /dev/null
+++ b/src/docs/components/WorkflowPage/readme.md
@@ -0,0 +1,38 @@
+## Data
+
+This is a root component. Learn about [page hydration](#/pages/pages).
+
+| Key | Description |
+| --- | --- |
+| `activityLogLabel` | Label for the activity log |
+| `canAccessPublication` | Can the current user access the publication details? Default: `false` |
+| `canEditPublication` | Can the current user edit the publication details? Default: `false` |
+| `components` | Key/value map of nested components, such as forms. |
+| `currentPublication` | The submission's current publication. |
+| `editorialHistoryUrl` | URL to get the activity log modal. |
+| `publicationFormIds` | Array containing all of the keys in `components` that match a publication form. These forms will be updated when changing versions. |
+| `publicationList` | Array containing the `id`, `datePublished`, `status` and `version` of every publication for this submission. |
+| `publicationTabsLabel` | Label for the publication details tabs. |
+| `publishLabel` | Label for the publish button. |
+| `publishUrl` | URL to get the publish modal. |
+| `representationsGridUrl` | URL to get the galley/publication formats grid. |
+| `schedulePublicationLabel` | Label for the schedule for publication button. |
+| `statusLabel` | Label for the working publication's current status. |
+| `submission` | Object containing details about this submission. |
+| `submissionApiUrl` | URL for the submissions REST API endpoint. |
+| `submissionLibraryLabel` | Label for the submission library button. |
+| `submissionLibraryUrl` | URL to get the submission library. |
+| `submissionSupportedLocales` | Array containing supported submission locale keys |
+| `supportsReferences` | Should the form for references be shown? |
+| `unpublishConfirmLabel` | Confirmation message before unpublishing a publication. |
+| `unpublishLabel` | Label for the unpublish button. |
+| `unscheduleConfirmLabel` | Confirmation message before scheduling for publication. |
+| `versionLabel` | Label for the current version. |
+| `versionConfirmMessage` | Confirmation message before creating a new version. |
+| `versionConfirmTitle` | Title of the confirmation modal before creating a new version. |
+| `workingPublication` | Object representing the working publication. This is the version that is currently being shown. |
+
+## Usage
+
+The `WorkflowPage` extends the [Page](#/component/Page) component. Use this app to show the submission workflow.
+