{** * templates/sectionEditor/submission/editorDecision.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Subtemplate defining the editor decision table. * *}

{translate key="submission.editorDecision"}

{translate key="editor.article.selectDecision"}
{if not $allowRecommendation}  {translate key="editor.article.cannotRecord"}{/if}
{translate key="editor.article.decision"} {foreach from=$submission->getDecisions($round) item=editorDecision key=decisionKey} {if $decisionKey neq 0} | {/if} {assign var="decision" value=$editorDecision.decision} {translate key=$editorDecisionOptions.$decision}  {if $editorDecision.dateDecided != 0}{$editorDecision.dateDecided|date_format:$dateFormatShort}{/if} {foreachelse} {translate key="common.none"} {/foreach}
{translate key="submission.notifyAuthor"} {url|assign:"notifyAuthorUrl" op="emailEditorDecisionComment" articleId=$submission->getId()} {if $decision == SUBMISSION_EDITOR_DECISION_DECLINE} {* The last decision was a decline; notify the user that sending this message will archive the submission. *} {translate|escape:"quotes"|assign:"confirmString" key="editor.submissionReview.emailWillArchive"} {icon name="mail" url=$notifyAuthorUrl onclick="return confirm('$confirmString')"} {else} {icon name="mail" url=$notifyAuthorUrl} {/if}      {translate key="submission.editorAuthorRecord"} {if $submission->getMostRecentEditorDecisionComment()} {assign var="comment" value=$submission->getMostRecentEditorDecisionComment()} getId() anchor=$comment->getId()}');" class="icon">{icon name="comment"}  {$comment->getDatePosted()|date_format:$dateFormatShort} {else} getId()}');" class="icon">{icon name="comment"}{translate key="common.noComments"} {/if}
{assign var=authorFiles value=$submission->getAuthorFileRevisions($round)} {assign var=editorFiles value=$submission->getEditorFileRevisions($round)} {assign var="authorRevisionExists" value=false} {foreach from=$authorFiles item=authorFile} {assign var="authorRevisionExists" value=true} {/foreach} {assign var="editorRevisionExists" value=false} {foreach from=$editorFiles item=editorFile} {assign var="editorRevisionExists" value=true} {/foreach} {if $reviewFile} {assign var="reviewVersionExists" value=1} {/if} {if $lastDecision == SUBMISSION_EDITOR_DECISION_RESUBMIT} {elseif $lastDecision == SUBMISSION_EDITOR_DECISION_ACCEPT} {/if} {if $reviewFile} {/if} {assign var="firstItem" value=true} {foreach from=$authorFiles item=authorFile key=key} {if $firstItem} {assign var="firstItem" value=false} {/if} {foreachelse} {/foreach} {assign var="firstItem" value=true} {foreach from=$editorFiles item=editorFile key=key} {if $firstItem} {assign var="firstItem" value=false} {/if} {foreachelse} {/foreach}
  {translate key="editor.article.resubmitFileForPeerReview"}
  {if !($editorRevisionExists or $authorRevisionExists or $reviewVersionExists) or !$submission->getMostRecentEditorDecisionComment()}{assign var=copyeditingUnavailable value=1}{else}{assign var=copyeditingUnavailable value=0}{/if} {if $copyeditingUnavailable}
{translate key="editor.submissionReview.cannotSendToCopyediting"} {/if}
{translate key="submission.reviewVersion"} {if $lastDecision == SUBMISSION_EDITOR_DECISION_ACCEPT || $lastDecision == SUBMISSION_EDITOR_DECISION_RESUBMIT} {/if} getId()|to_array:$reviewFile->getFileId():$reviewFile->getRevision()}" class="file">{$reviewFile->getFileName()|escape}   {$reviewFile->getDateModified()|date_format:$dateFormatShort} {if $copyeditFile && $copyeditFile->getSourceFileId() == $reviewFile->getFileId()}     {translate key="submission.sent"}  {$copyeditFile->getDateUploaded()|date_format:$dateFormatShort} {/if}
{translate key="submission.authorVersion"} {if $lastDecision == SUBMISSION_EDITOR_DECISION_ACCEPT || $lastDecision == SUBMISSION_EDITOR_DECISION_RESUBMIT} {/if}getId()|to_array:$authorFile->getFileId():$authorFile->getRevision()}" class="file">{$authorFile->getFileName()|escape}   {$authorFile->getDateModified()|date_format:$dateFormatShort} {if $copyeditFile && ($copyeditFile->getSourceFileId() == $authorFile->getFileId() && $copyeditFile->getSourceRevision() == $authorFile->getRevision())}     {translate key="submission.sent"}  {$copyeditFile->getDateUploaded()|date_format:$dateFormatShort} {/if}
{translate key="submission.authorVersion"} {translate key="common.none"}
{translate key="submission.editorVersion"} {if $lastDecision == SUBMISSION_EDITOR_DECISION_ACCEPT || $lastDecision == SUBMISSION_EDITOR_DECISION_RESUBMIT} {/if}getId()|to_array:$editorFile->getFileId():$editorFile->getRevision()}" class="file">{$editorFile->getFileName()|escape}   {$editorFile->getDateModified()|date_format:$dateFormatShort}     {if $copyeditFile && ($copyeditFile->getSourceFileId() == $editorFile->getFileId() && $copyeditFile->getSourceRevision() == $editorFile->getRevision())} {translate key="submission.sent"}  {$copyeditFile->getDateUploaded()|date_format:$dateFormatShort}     {/if} getId()|to_array:$editorFile->getFileId():$editorFile->getRevision()}" class="action">{translate key="common.delete"}
{translate key="submission.editorVersion"} {translate key="common.none"}