{** * templates/sectionEditor/submission/rounds.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 displaying past rounds for a submission. * *}

{translate|escape key="sectionEditor.regrets.regretsAndCancels"}

{foreach from=$cancelsAndRegrets item=cancelOrRegret name=cancelsAndRegrets} {foreachelse} {/foreach}
 
{translate key="user.name"} {translate key="submission.request"} {translate key="sectionEditor.regrets.result"} {translate key="submissions.reviewRound"}
 
{$cancelOrRegret->getReviewerFullName()|escape} {if $cancelOrRegret->getDateNotified()} {$cancelOrRegret->getDateNotified()|date_format:$dateFormatTrunc} {else} — {/if} {if $cancelOrRegret->getDeclined()} {translate key="sectionEditor.regrets"} {else} {translate key="common.cancelled"} {/if} {$cancelOrRegret->getRound()}
 
{translate key="common.none}
 
{section name=round loop=$numRounds-1} {assign var=round value=$smarty.section.round.index} {assign var=roundPlusOne value=$round+1} {assign var=roundAssignments value=$reviewAssignments[$roundPlusOne]} {assign var=roundDecisions value=$editorDecisions[$roundPlusOne]}

{translate key="sectionEditor.regrets.reviewRound" round=$roundPlusOne}

{translate key="submission.reviewVersion"} {assign var="reviewFile" value=$reviewFilesByRound[$roundPlusOne]} {if $reviewFile} getId()|to_array:$reviewFile->getFileId():$reviewFile->getRevision()}" class="file">{$reviewFile->getFileName()|escape}  {$reviewFile->getDateModified()|date_format:$dateFormatShort} {else} {translate key="common.none"} {/if}
{assign var="start" value="A"|ord} {assign var=reviewKey value=0} {foreach from=$roundAssignments item=reviewAssignment} {assign var="reviewId" value=$reviewAssignment->getId()} {if !$reviewAssignment->getCancelled()}

{translate key="user.role.reviewer"} {$reviewKey+$start|chr} {$reviewAssignment->getReviewerFullName()|escape}

{if $reviewFormResponses[$reviewId]} {/if}
{translate key="reviewer.article.schedule"} {translate key="submission.request"} {translate key="submission.underway"} {translate key="submission.due"} {translate key="submission.acknowledge"}
  {if $reviewAssignment->getDateNotified()} {$reviewAssignment->getDateNotified()|date_format:$dateFormatTrunc} {else} — {/if} {if $reviewAssignment->getDateConfirmed()} {$reviewAssignment->getDateConfirmed()|date_format:$dateFormatTrunc} {else} — {/if} {if $reviewAssignment->getDateDue()} {$reviewAssignment->getDateDue()|date_format:$dateFormatTrunc} {else} — {/if} {if $reviewAssignment->getDateAcknowledged()} {$reviewAssignment->getDateAcknowledged()|date_format:$dateFormatTrunc} {else} — {/if}
{translate key="submission.recommendation"} {if $reviewAssignment->getRecommendation() !== null && $reviewAssignment->getRecommendation() !== ''} {assign var="recommendation" value=$reviewAssignment->getRecommendation()} {translate key=$reviewerRecommendationOptions.$recommendation} {else} {translate key="common.none"} {/if}
{translate key="submission.reviewFormResponse"} getId()|to_array:$reviewAssignment->getId()}');" class="icon">{icon name="letter"}
{translate key="reviewer.article.reviewerComments"} {if $reviewAssignment->getMostRecentPeerReviewComment()} {assign var="comment" value=$reviewAssignment->getMostRecentPeerReviewComment()} getId()|to_array:$reviewAssignment->getId() anchor=$comment->getId()}');" class="icon">{icon name="comment"} {$comment->getDatePosted()|date_format:$dateFormatShort} {else} getId()|to_array:$reviewAssignment->getId()}');" class="icon">{icon name="comment"}{translate key="common.noComments"} {/if}
{translate key="reviewer.article.uploadedFile"} {foreach from=$reviewAssignment->getReviewerFileRevisions() item=reviewerFile key=key} {foreachelse} {/foreach}
getId()|to_array:$reviewerFile->getFileId():$reviewerFile->getRevision()}" class="file">{$reviewerFile->getFileName()|escape}  {$reviewerFile->getDateModified()|date_format:$dateFormatShort} {translate key="editor.article.showAuthor"} getViewable()} checked="checked"{/if} />
{translate key="common.none"}
{/if} {assign var=reviewKey value=$reviewKey+1} {/foreach}

{translate key="sectionEditor.regrets.decisionRound" round=$roundPlusOne}

{assign var=authorFiles value=$submission->getAuthorFileRevisions($roundPlusOne)} {assign var=editorFiles value=$submission->getEditorFileRevisions($roundPlusOne)} {foreach from=$authorFiles item=authorFile key=key} {if !$authorRevisionExists} {assign var="authorRevisionExists" value=true} {/if} {foreachelse} {/foreach} {foreach from=$editorFiles item=editorFile key=key} {if !$editorRevisionExists} {assign var="editorRevisionExists" value=true} {/if} {foreachelse} {/foreach}
{translate key="editor.article.decision"} {foreach from=$roundDecisions item=editorDecision key=decisionKey} {if $decisionKey neq 0} | {/if} {assign var="decision" value=$editorDecision.decision} {translate key=$editorDecisionOptions.$decision} {$editorDecision.dateDecided|date_format:$dateFormatShort} {foreachelse} {translate key="common.none"} {/foreach}
{translate key="submission.notifyAuthor"} {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}
{translate key="submission.authorVersion"}getId()|to_array:$authorFile->getFileId():$authorFile->getRevision()}" class="file">{$authorFile->getFileName()|escape}  {$authorFile->getDateModified()|date_format:$dateFormatShort}
{translate key="submission.authorVersion"} {translate key="common.none"}
{translate key="submission.editorVersion"}getId()|to_array:$editorFile->getFileId():$editorFile->getRevision()}" class="file">{$editorFile->getFileName()|escape}  {$editorFile->getDateModified()|date_format:$dateFormatShort}
{translate key="submission.editorVersion"} {translate key="common.none"}
{/section}