{** * templates/author/submission/peerReview.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 author's peer review table. * *}

{translate key="submission.peerReview"}

{assign var=start value="A"|ord} {section name="round" loop=$submission->getCurrentRound()} {assign var="round" value=$smarty.section.round.index+1} {assign var=authorFiles value=$submission->getAuthorFileRevisions($round)} {assign var=editorFiles value=$submission->getEditorFileRevisions($round)} {assign var="viewableFiles" value=$authorViewableFilesByRound[$round]}

{translate key="submission.round" round=$round}

{if !$smarty.section.round.last} {/if}
{translate key="submission.reviewVersion"} {assign var="reviewFile" value=$reviewFilesByRound[$round]} {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}
{translate key="submission.initiated"} {if $reviewEarliestNotificationByRound[$round]} {$reviewEarliestNotificationByRound[$round]|date_format:$dateFormatShort} {else} — {/if}
{translate key="submission.lastModified"} {if $reviewModifiedByRound[$round]} {$reviewModifiedByRound[$round]|date_format:$dateFormatShort} {else} — {/if}
{translate key="common.uploadedFile"} {foreach from=$viewableFiles item=reviewerFiles key=reviewer} {foreach from=$reviewerFiles item=viewableFilesForReviewer key=reviewId} {assign var="roundIndex" value=$reviewIndexesByRound[$round][$reviewId]} {assign var=thisReviewer value=$start+$roundIndex|chr} {foreach from=$viewableFilesForReviewer item=viewableFile} {translate key="user.role.reviewer"} {$thisReviewer|escape} getId()|to_array:$viewableFile->getFileId():$viewableFile->getRevision()}" class="file">{$viewableFile->getFileName()|escape}  {$viewableFile->getDateModified()|date_format:$dateFormatShort}
{/foreach} {/foreach} {foreachelse} {translate key="common.none"} {/foreach}
{translate key="submission.editorVersion"} {foreach from=$editorFiles item=editorFile key=key} getId()|to_array:$editorFile->getFileId():$editorFile->getRevision()}" class="file">{$editorFile->getFileName()|escape}  {$editorFile->getDateModified()|date_format:$dateFormatShort}
{foreachelse} {translate key="common.none"} {/foreach}
{translate key="submission.authorVersion"} {foreach from=$authorFiles item=authorFile key=key} getId()|to_array:$authorFile->getFileId():$authorFile->getRevision()}" class="file">{$authorFile->getFileName()|escape}  {$authorFile->getDateModified()|date_format:$dateFormatShort}
{foreachelse} {translate key="common.none"} {/foreach}
{if !$smarty.section.round.last}
{/if} {/section}