first commit
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
{**
|
||||
* templates/workflow/editorialLinkActions.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Show editorial link actions.
|
||||
*}
|
||||
|
||||
{if count($decisions) || count($recommendations)}
|
||||
{if array_intersect(array(\PKP\security\Role::ROLE_ID_MANAGER, \PKP\security\Role::ROLE_ID_SUB_EDITOR), (array)$userRoles)}
|
||||
<script>
|
||||
// Initialize JS handler.
|
||||
$(function() {ldelim}
|
||||
$('#editorialActions').pkpHandler(
|
||||
'$.pkp.controllers.EditorialActionsHandler',
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<div id="editorialActions" class="pkp_workflow_decisions">
|
||||
|
||||
{* Editors who can take a final decision *}
|
||||
{if $makeDecision && count($decisions)}
|
||||
{if $lastDecision}
|
||||
<div class="pkp_workflow_last_decision">
|
||||
{translate key=$lastDecision}
|
||||
{if $canRecordDecision}
|
||||
<button class="pkp_workflow_change_decision">
|
||||
{translate key="editor.submission.workflowDecision.changeDecision"}
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{if $canRecordDecision}
|
||||
<ul class="pkp_workflow_decisions_options{if $lastDecision} pkp_workflow_decisions_options_hidden{/if}">
|
||||
{if $stageId === $smarty.const.WORKFLOW_STAGE_ID_PRODUCTION}
|
||||
<li>
|
||||
<button
|
||||
class="pkp_button pkp_button_primary"
|
||||
onClick="pkp.eventBus.$emit('open-tab', 'publication')"
|
||||
>
|
||||
{translate key="editor.submission.schedulePublication"}
|
||||
</button>
|
||||
</li>
|
||||
{/if}
|
||||
{foreach from=$decisions item=decision}
|
||||
{capture assign="class"}{strip}
|
||||
{if in_array(get_class($decision), $primaryDecisions)}
|
||||
pkp_button_primary
|
||||
{/if}
|
||||
{if in_array(get_class($decision), $warnableDecisions)}
|
||||
pkp_button_offset
|
||||
{/if}
|
||||
{/strip}{/capture}
|
||||
{capture assign="url"}{$decision->getUrl(\APP\core\Application::get()->getRequest(), $currentContext, $submission, $reviewRoundId)}{/capture}
|
||||
<li>
|
||||
{if $decision->getDecision() === \APP\decision\Decision::PENDING_REVISIONS}
|
||||
<button class="pkp_button {$class}" data-decision="{$decision->getDecision()}" data-review-round-id="{$reviewRoundId}">
|
||||
{$decision->getLabel()}
|
||||
</button>
|
||||
{else}
|
||||
<a href={$url} class="pkp_button {$class}">
|
||||
{$decision->getLabel()}
|
||||
</a>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
{if $allRecommendations}
|
||||
<div class="pkp_workflow_recommendations">
|
||||
{translate key="editor.submission.allRecommendations.display" recommendations=$allRecommendations}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* Editors who can recommend a final decision *}
|
||||
{elseif $makeRecommendation && count($recommendations)}
|
||||
{if $lastRecommendation}
|
||||
<div class="pkp_workflow_last_decision">
|
||||
{translate key="editor.submission.recommendation.display" recommendation=$lastRecommendation}
|
||||
{if $canRecordDecision}
|
||||
<button class="pkp_workflow_change_decision">
|
||||
{translate key="editor.submission.changeRecommendation"}
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{if $canRecordDecision}
|
||||
<ul class="pkp_workflow_decisions_options{if $lastRecommendation} pkp_workflow_decisions_options_hidden{/if}">
|
||||
{foreach from=$recommendations item=recommendation}
|
||||
{capture assign="url"}{$recommendation->getUrl(\APP\core\Application::get()->getRequest(), $currentContext, $submission, $reviewRoundId)}{/capture}
|
||||
<li>
|
||||
{if $recommendation->getDecision() === \APP\decision\Decision::RECOMMEND_PENDING_REVISIONS}
|
||||
<button class="pkp_button" data-recommendation="{$recommendation->getDecision()}" data-review-round-id="{$reviewRoundId}">
|
||||
{$recommendation->getLabel()}
|
||||
</button>
|
||||
{else}
|
||||
<a href={$url} class="pkp_button">
|
||||
{$recommendation->getLabel()}
|
||||
</a>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<div class="pkp_no_workflow_decisions">
|
||||
{translate key="editor.submission.recommendation.noDecidingEditors"}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{elseif !$editorsAssigned && array_intersect(array(\PKP\security\Role::ROLE_ID_MANAGER, \PKP\security\Role::ROLE_ID_SUB_EDITOR), (array)$userRoles)}
|
||||
<div class="pkp_no_workflow_decisions">
|
||||
{translate key="editor.submission.decision.noDecisionsAvailable"}
|
||||
</div>
|
||||
{elseif $lastDecision}
|
||||
<div class="pkp_no_workflow_decisions">
|
||||
{translate key=$lastDecision}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,19 @@
|
||||
{**
|
||||
* templates/workflow/reviewHistory.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Review history for a particular review assignment.
|
||||
*}
|
||||
<div class="pkp_review_history">
|
||||
{foreach from=$dates key="localeKey" item="date"}
|
||||
{if $date}
|
||||
<div>
|
||||
<strong>{$date|date_format:$datetimeFormatShort}</strong>
|
||||
{translate key=$localeKey}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
@@ -0,0 +1,39 @@
|
||||
{**
|
||||
* templates/workflow/reviewRound.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Review round info for a particular round
|
||||
*}
|
||||
<div class="pkp_panel_wrapper">
|
||||
|
||||
{if $isLastReviewRound}
|
||||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="reviewRoundNotification_"|concat:$reviewRoundId requestOptions=$reviewRoundNotificationRequestOptions}
|
||||
{/if}
|
||||
|
||||
{* Editorial decision actions, if available *}
|
||||
<div class="pkp_workflow_sidebar">
|
||||
{if !$isAssignedAsAuthor}
|
||||
{capture assign=reviewDecisionsUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="workflow" op="editorDecisionActions" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId contextId="reviewRoundTab-"|concat:$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="reviewDecisionsDiv-"|concat:$reviewRoundId url=$reviewDecisionsUrl class="pkp_tab_actions" refreshOn="update:decisions"}
|
||||
{/if}
|
||||
{include file="controllers/tab/workflow/stageParticipants.tpl"}
|
||||
</div>
|
||||
|
||||
<div class="pkp_workflow_content">
|
||||
|
||||
{* Review files grid *}
|
||||
{capture assign=reviewFileSelectionGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.review.EditorReviewFilesGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="reviewFileSelection-round_"|concat:$reviewRoundId url=$reviewFileSelectionGridUrl}
|
||||
|
||||
{* Reviewer grid *}
|
||||
{capture assign=reviewersGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.users.reviewer.ReviewerGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="reviewersGrid-round_"|concat:$reviewRoundId url=$reviewersGridUrl}
|
||||
|
||||
{* Review revisions grid *}
|
||||
{capture assign=revisionsGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.review.WorkflowReviewRevisionsGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="revisionsGrid-round_"|concat:$reviewRoundId url=$revisionsGridUrl}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
{**
|
||||
* templates/workflow/submissionIdentification.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Show submission identification component
|
||||
*}
|
||||
|
||||
<span class="pkpWorkflow__identificationId">
|
||||
{{ submission.id }}
|
||||
</span>
|
||||
<span class="pkpWorkflow__identificationDivider">
|
||||
/
|
||||
</span>
|
||||
|
||||
|
||||
<span v-if="currentPublication.authorsStringShort" class="pkpWorkflow__identificationAuthor">
|
||||
{{ currentPublication.authorsStringShort }}
|
||||
</span>
|
||||
<span v-if="currentPublication.authorsStringShort" class="pkpWorkflow__identificationDivider">
|
||||
/
|
||||
</span>
|
||||
|
||||
|
||||
<span
|
||||
class="pkpWorkflow__identificationTitle"
|
||||
v-strip-unsafe-html="localizeSubmission(currentPublication.fullTitle, currentPublication.locale)"
|
||||
>
|
||||
</span>
|
||||
@@ -0,0 +1,40 @@
|
||||
{**
|
||||
* templates/workflow/submissionProgressBar.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Include the submission progress bar and the tab structure for the workflow.
|
||||
*}
|
||||
{* Calculate the selected tab index for the current stage *}
|
||||
{assign var=selectedTabIndex value=0}
|
||||
{foreach from=$workflowStages item=$stage}
|
||||
{if $stage.id < $currentStageId}
|
||||
{assign var=selectedTabIndex value=$selectedTabIndex+1}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Attach the JS file tab handler.
|
||||
$(function() {ldelim}
|
||||
$('#stageTabs').pkpHandler(
|
||||
'$.pkp.controllers.tab.workflow.WorkflowTabHandler',
|
||||
{ldelim}
|
||||
selected: {$selectedTabIndex},
|
||||
emptyLastTab: true
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
<div id="stageTabs" class="pkp_controllers_tab">
|
||||
<ul>
|
||||
{foreach from=$workflowStages item=$stage}
|
||||
<li class="pkp_workflow_{$stage.path} stageId{$stage.id}{if $stage.id === $currentStageId} initiated{/if}">
|
||||
<a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="tab.workflow.WorkflowTabHandler" op="fetchTab" submissionId=$submission->getId() stageId=$stage.id escape=false}">
|
||||
{translate key=$stage.translationKey}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user