Skip to content

Commit

Permalink
I10670 (pkp#4583)
Browse files Browse the repository at this point in the history
* pkp/pkp-ib#10670 Update urls for new dashboard and workflow page
  • Loading branch information
jardakotesovec authored Jan 14, 2025
1 parent 319f8b0 commit b065b61
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/payment/ojs/OJSPaymentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function createQueuedPayment($request, $type, $userId, $assocId, $amount,
if ($submission->getData('submissionProgress')) {
$payment->setRequestUrl($dispatcher->url($request, Application::ROUTE_PAGE, null, 'submission', null, null, ['id' => $assocId]));
} else {
$payment->setRequestUrl($dispatcher->url($request, Application::ROUTE_PAGE, null, 'authorDashboard', 'submission', [$submission->getId()]));
$payment->setRequestUrl($dispatcher->url($request, Application::ROUTE_PAGE, null, 'dashboard', 'mySubmissions', null, ['workflowSubmissionId' => $submission->getId()]));
}
break;
case self::PAYMENT_TYPE_MEMBERSHIP: // Deprecated
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/toc/TocGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function initialize($request, $template = null)
new LinkAction(
'workflow',
new RedirectAction(
$dispatcher->url($request, PKPApplication::ROUTE_PAGE, null, 'workflow', 'access', [$this->getId()])
$dispatcher->url($request, PKPApplication::ROUTE_PAGE, null, 'dashboard', 'editorial', null, ['workflowSubmissionId' => $this->getId()])
),
__('submission.submission'),
'information'
Expand Down
1 change: 1 addition & 0 deletions pages/dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

switch ($op) {
case 'index':
return new APP\pages\dashboard\DashboardHandlerNext();
case 'editorial':
return new APP\pages\dashboard\DashboardHandlerNext(PKP\pages\dashboard\DashboardPage::EditorialDashboard);
case 'mySubmissions':
Expand Down
2 changes: 1 addition & 1 deletion plugins/reports/articles/ArticleReportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function display($args, $request)
'keywords' => join(', ', $keywords[Locale::getLocale()] ?? $keywords[$submission->getData('locale')] ?? []),
'agencies' => join(', ', $agencies[Locale::getLocale()] ?? $agencies[$submission->getData('locale')] ?? []),
'status' => $submission->getData('status') == PKPSubmission::STATUS_QUEUED ? $this->getStageLabel($submission->getData('stageId')) : __($statusMap[$submission->getData('status')]),
'url' => $request->url(null, 'workflow', 'access', $submission->getId()),
'url' => $request->url(null, 'dashboard', 'editorial', null, ['workflowSubmissionId' => $submission->getId()]),
'doi' => $publication->getDoi(),
'dateSubmitted' => $submission->getData('dateSubmitted'),
'lastModified' => $submission->getData('lastModified'),
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{* Indicate if this is only a preview *}
{if $publication->getData('status') !== PKP\submission\PKPSubmission::STATUS_PUBLISHED}
<div class="cmp_notification notice">
{capture assign="submissionUrl"}{url page="workflow" op="access" path=$article->getId()}{/capture}
{capture assign="submissionUrl"}{url page="dashboard" op="editorial" workflowSubmissionId=$article->getId()}{/capture}
{translate key="submission.viewingPreview" url=$submissionUrl}
</div>
{* Notification that this is an old version *}
Expand Down

0 comments on commit b065b61

Please sign in to comment.