Skip to content

Commit

Permalink
pkp/pkp-lib#7495 Fix displaying issues, update locale keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jun 12, 2024
1 parent 6d4b694 commit b8d8779
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 27 deletions.
10 changes: 9 additions & 1 deletion classes/template/TemplateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
138 changes: 112 additions & 26 deletions registry/uiLocaleKeysBackend.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
"article.article",
"common.abstract",
"common.attachFiles",
"common.cancel",
"common.clearSearch",
Expand All @@ -17,6 +18,7 @@
"common.filtersClear",
"common.inParenthesis",
"common.insertContent",
"common.keywords",
"common.lastActivity",
"common.loaded",
"common.loading",
Expand All @@ -43,6 +45,7 @@
"common.selectWithName",
"common.showingXofX",
"common.status",
"common.subtitle",
"common.type",
"common.unknownError",
"common.upload",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -220,6 +303,9 @@
"submission.list.revisionsSubmitted",
"submission.submit.newSubmissionSingle",
"submission.upload.percentComplete",
"submissions.declined",
"submissions.incomplete",
"todo",
"todo incomplete",
"validator.required"
]

0 comments on commit b8d8779

Please sign in to comment.