diff --git a/classes/template/TemplateManager.php b/classes/template/TemplateManager.php index d8ea8f03e18..73759d57397 100644 --- a/classes/template/TemplateManager.php +++ b/classes/template/TemplateManager.php @@ -21,6 +21,7 @@ use APP\core\Application; use APP\core\PageRouter; use APP\file\PublicFileManager; +use PKP\config\Config; use PKP\core\PKPSessionGuard; use PKP\facades\Locale; use PKP\i18n\LocaleMetadata; @@ -135,7 +136,14 @@ public function setupBackendPage() 'url' => $router->url($request, null, 'manageIssues'), 'isCurrent' => $request->getRequestedPage() === 'manageIssues', ]; - $index = array_search('submissions', array_keys($menu)); + $index = false; + if(Config::getVar('features', 'enable_new_submission_listing')) { + $index = array_search('dashboards', array_keys($menu)); + } else { + $index = array_search('submissions', array_keys($menu)); + } + + if ($index === false || count($menu) <= $index + 1) { $menu['issues'] = $issuesLink; } else { diff --git a/registry/uiLocaleKeysBackend.json b/registry/uiLocaleKeysBackend.json index e0aa11c7913..5ef2b976a68 100644 --- a/registry/uiLocaleKeysBackend.json +++ b/registry/uiLocaleKeysBackend.json @@ -1,5 +1,6 @@ [ "article.article", + "common.abstract", "common.attachFiles", "common.cancel", "common.clearSearch", @@ -17,6 +18,7 @@ "common.filtersClear", "common.inParenthesis", "common.insertContent", + "common.keywords", "common.lastActivity", "common.loaded", "common.loading", @@ -43,6 +45,7 @@ "common.selectWithName", "common.showingXofX", "common.status", + "common.subtitle", "common.type", "common.unknownError", "common.upload", @@ -51,6 +54,104 @@ "common.view", "common.viewWithName", "common.yes", + "dashboard.acceptOrDeclineRequestDate", + "dashboard.action", + "dashboard.applyFilters", + "dashboard.assignEditor", + "dashboard.assignReviewers", + "dashboard.clearFilters", + "dashboard.completeReviewByDate", + "dashboard.dashboards", + "dashboard.deadlineForComplitingReviewHasPassed", + "dashboard.deadlineForRespondingAcceptOrDecline", + "dashboard.mySubmissions", + "dashboard.newReviewRoundToBeCreated", + "dashboard.reviewAssignment.action.cancelReviewer", + "dashboard.reviewAssignment.action.editDueDate", + "dashboard.reviewAssignment.action.resendReviewRequest", + "dashboard.reviewAssignment.action.unassignReviewer", + "dashboard.reviewAssignment.action.viewDetails", + "dashboard.reviewAssignment.action.viewRecommendation", + "dashboard.reviewAssignment.action.viewUnreadRecommendation", + "dashboard.reviewAssignment.statusAccepted.description", + "dashboard.reviewAssignment.statusAccepted.title", + "dashboard.reviewAssignment.statusAwaitingResponse.description", + "dashboard.reviewAssignment.statusAwaitingResponse.title", + "dashboard.reviewAssignment.statusCancelled.description", + "dashboard.reviewAssignment.statusCancelled.title", + "dashboard.reviewAssignment.statusComplete.description", + "dashboard.reviewAssignment.statusComplete.title", + "dashboard.reviewAssignment.statusDeclined.description", + "dashboard.reviewAssignment.statusDeclined.title", + "dashboard.reviewAssignment.statusReceived.description", + "dashboard.reviewAssignment.statusReceived.title", + "dashboard.reviewAssignment.statusRequestResend.description", + "dashboard.reviewAssignment.statusRequestResend.title", + "dashboard.reviewAssignment.statusResponseOverdue.description", + "dashboard.reviewAssignment.statusResponseOverdue.title", + "dashboard.reviewAssignment.statusReviewOverdue.description", + "dashboard.reviewAssignment.statusReviewOverdue.title", + "dashboard.reviewAssignments", + "dashboard.reviewUpdateCounts", + "dashboard.reviewersAssigned", + "dashboard.revisionRequested", + "dashboard.revisionRequestedFromAuthor", + "dashboard.revisionsRequestedFromAuthorNextRound", + "dashboard.revisionsSubmittedByAuthor", + "dashboard.stage.copyediting", + "dashboard.stage.deskReview", + "dashboard.stage.production", + "dashboard.stage.published", + "dashboard.stage.review", + "dashboard.stage.reviewWithRound", + "dashboard.stage.scheduledForPublication", + "dashboard.startNewSubmission", + "dashboard.submitRevisions", + "dashboard.summary.acceptAndSkipReview", + "dashboard.summary.acceptReview", + "dashboard.summary.acceptSubmission", + "dashboard.summary.accessReviewForm", + "dashboard.summary.assignToIssue", + "dashboard.summary.cancelReviewRound", + "dashboard.summary.copyeditedFiles", + "dashboard.summary.daysInCopyediting", + "dashboard.summary.daysInProduction", + "dashboard.summary.daysInReview", + "dashboard.summary.daysInSubmission", + "dashboard.summary.daysSinceSubmission", + "dashboard.summary.decline", + "dashboard.summary.declineSubmission", + "dashboard.summary.deskReviewFiles", + "dashboard.summary.deskReviewFilesDescription", + "dashboard.summary.draftFiles", + "dashboard.summary.draftFilesDescription", + "dashboard.summary.editorsAssigned", + "dashboard.summary.filesForReview", + "dashboard.summary.filesForReviewDescription", + "dashboard.summary.galleys", + "dashboard.summary.issueNo", + "dashboard.summary.journalName", + "dashboard.summary.notAssigned", + "dashboard.summary.preview", + "dashboard.summary.productionReadyFiles", + "dashboard.summary.productionReadyFilesDescription", + "dashboard.summary.requestRevisions", + "dashboard.summary.reviewer", + "dashboard.summary.reviewerStatus", + "dashboard.summary.reviewers", + "dashboard.summary.revisionsSubmitted", + "dashboard.summary.revisionsSubmittedDescription", + "dashboard.summary.scheduleForProduction", + "dashboard.summary.sendSubmissionForReview", + "dashboard.summary.sendToProduction", + "dashboard.summary.submissionLanguage", + "dashboard.summary.submittedOn", + "dashboard.summary.unschedule", + "dashboard.summary.uploadFile", + "dashboard.summary.uploadRevisions", + "dashboard.summary.viewActivityLog", + "dashboard.summary.viewSubmissionInDetail", + "dashboard.viewSummary", "doi.manager.versions.countStatement", "doi.manager.versions.modalTitle", "doi.manager.versions.view", @@ -60,10 +161,12 @@ "editor.review.unassignReviewer", "editor.submission.addStageParticipant", "editor.submission.decision.requestRevisions", + "editor.submission.schedulePublication", "editor.submission.search", - "editor.submission.viewSummary", "editor.submissionArchive.confirmDelete", "editor.submissionReview.editReview", + "editor.submissionReview.uploadAttachment", + "editor.submissionReview.uploadFile", "form.dataHasChanged", "form.errorA11y", "form.errorGoTo", @@ -132,7 +235,9 @@ "manager.dois.update.failedCreation", "manager.dois.update.partialFailure", "manager.dois.update.success", + "metadata.property.displayName.doi", "navigation.backTo", + "publication.contributors", "publication.jats.autoCreatedMessage", "publication.jats.confirmDeleteFileButton", "publication.jats.confirmDeleteFileMessage", @@ -141,6 +246,8 @@ "publication.selectIssue", "publication.status.published", "publication.status.unpublished", + "publication.unschedule", + "publication.unschedule.confirm", "publication.version", "reviewer.article.decision.accept", "reviewer.article.decision.decline", @@ -150,6 +257,7 @@ "reviewer.article.decision.seeComments", "reviewer.article.recommendation", "reviewer.submission.acceptedOn", + "reviewer.submission.declineReview", "reviewer.submission.responseDueDate", "reviewer.submission.reviewDueDate", "reviewer.submission.reviewRequestDate", @@ -187,31 +295,6 @@ "submission.list.infoCenter", "submission.list.responseDue", "submission.list.reviewAssignment", - "submission.list.reviewAssignment.action.cancelReviewer", - "submission.list.reviewAssignment.action.editDueDate", - "submission.list.reviewAssignment.action.resendReviewRequest", - "submission.list.reviewAssignment.action.unassignReviewer", - "submission.list.reviewAssignment.action.viewDetails", - "submission.list.reviewAssignment.action.viewRecommendation", - "submission.list.reviewAssignment.action.viewUnreadRecommendation", - "submission.list.reviewAssignment.statusAccepted.description", - "submission.list.reviewAssignment.statusAccepted.title", - "submission.list.reviewAssignment.statusAwaitingResponse.description", - "submission.list.reviewAssignment.statusAwaitingResponse.title", - "submission.list.reviewAssignment.statusCancelled.description", - "submission.list.reviewAssignment.statusCancelled.title", - "submission.list.reviewAssignment.statusComplete.description", - "submission.list.reviewAssignment.statusComplete.title", - "submission.list.reviewAssignment.statusDeclined.description", - "submission.list.reviewAssignment.statusDeclined.title", - "submission.list.reviewAssignment.statusReceived.description", - "submission.list.reviewAssignment.statusReceived.title", - "submission.list.reviewAssignment.statusRequestResend.description", - "submission.list.reviewAssignment.statusRequestResend.title", - "submission.list.reviewAssignment.statusResponseOverdue.description", - "submission.list.reviewAssignment.statusResponseOverdue.title", - "submission.list.reviewAssignment.statusReviewOverdue.description", - "submission.list.reviewAssignment.statusReviewOverdue.title", "submission.list.reviewCancelled", "submission.list.reviewComplete", "submission.list.reviewDue", @@ -220,6 +303,9 @@ "submission.list.revisionsSubmitted", "submission.submit.newSubmissionSingle", "submission.upload.percentComplete", + "submissions.declined", "submissions.incomplete", + "todo", + "todo incomplete", "validator.required" ]