{** * templates/sectionEditor/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 peer review table. * *}

{translate key="article.submission"}

{if $reviewFile} {else} {/if} {foreach from=$suppFiles item=suppFile} {if !$notFirstSuppFile} {assign var=notFirstSuppFile value=1} {/if} {foreachelse} {/foreach}
{translate key="article.authors"} {url|assign:"url" page="user" op="email" redirectUrl=$currentUrl to=$submission->getAuthorEmails() subject=$submission->getLocalizedTitle() articleId=$submission->getId()} {$submission->getAuthorString()|escape} {icon name="mail" url=$url}
{translate key="article.title"} {$submission->getLocalizedTitle()|strip_unsafe_html}
{translate key="section.section"} {$submission->getSectionTitle()|escape}
{translate key="user.role.editor"} {assign var=editAssignments value=$submission->getEditAssignments()} {foreach from=$editAssignments item=editAssignment} {assign var=emailString value=$editAssignment->getEditorFullName()|concat:" <":$editAssignment->getEditorEmail():">"} {url|assign:"url" page="user" op="email" redirectUrl=$currentUrl to=$emailString|to_array subject=$submission->getLocalizedTitle|strip_tags articleId=$submission->getId()} {$editAssignment->getEditorFullName()|escape} {icon name="mail" url=$url} {if !$editAssignment->getCanEdit() || !$editAssignment->getCanReview()} {if $editAssignment->getCanEdit()} ({translate key="submission.editing"}) {else} ({translate key="submission.review"}) {/if} {/if}
{foreachelse} {translate key="common.noneAssigned"} {/foreach}
{translate key="submission.reviewVersion"} getId()|to_array:$reviewFile->getFileId():$reviewFile->getRevision()}" class="file">{$reviewFile->getFileName()|escape}   {$reviewFile->getDateModified()|date_format:$dateFormatShort}{if $currentJournal->getSetting('showEnsuringLink')}    {translate key="reviewer.article.ensuringBlindReview"}{/if} {translate key="common.none"}
 
{translate key="editor.article.uploadReviewVersion"}
{translate key="article.suppFilesAbbrev"}
{if $suppFile->getFileId() > 0}getId()|to_array:$suppFile->getFileId():$suppFile->getRevision()}" class="file">{$suppFile->getFileName()|escape}   {$suppFile->getDateModified()|date_format:$dateFormatShort} {elseif $suppFile->getRemoteURL() != ''}{$suppFile->getRemoteURL()|truncate:20:"..."|escape}{/if}    getShowReviewers()==1} checked="checked"{/if}/>
{translate key="article.suppFilesAbbrev"} {translate key="common.none"}

{translate key="submission.peerReview"}

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

getId()}" class="action">{translate key="editor.article.selectReviewer"}     getId()}" class="action">{translate|escape key="sectionEditor.regrets.link"}
{assign var="start" value="A"|ord} {foreach from=$reviewAssignments item=reviewAssignment key=reviewKey} {assign var="reviewId" value=$reviewAssignment->getId()} {if not $reviewAssignment->getCancelled() and not $reviewAssignment->getDeclined()} {assign var="reviewIndex" value=$reviewIndexes[$reviewId]}

{translate key="user.role.reviewer"} {$reviewIndex+$start|chr}

{$reviewAssignment->getReviewerFullName()|escape}

{if not $reviewAssignment->getDateNotified()} getId()|to_array:$reviewAssignment->getId()}" class="action">{translate key="editor.article.clearReview"} {elseif $reviewAssignment->getDeclined() or not $reviewAssignment->getDateCompleted()} getId() reviewId=$reviewAssignment->getId()}" class="action">{translate key="editor.article.cancelReview"} {/if}
{if $reviewAssignment->getDateConfirmed() && !$reviewAssignment->getDeclined()} {if $currentJournal->getSetting('requireReviewerCompetingInterests')} {/if}{* requireReviewerCompetingInterests *} {if $reviewFormResponses[$reviewId]} {/if} {if !$reviewAssignment->getReviewFormId() || $reviewAssignment->getMostRecentPeerReviewComment()}{* Only display comments link if a comment is entered or this is a non-review form review *} {/if} {/if} {if (($reviewAssignment->getRecommendation() === null || $reviewAssignment->getRecommendation() === '') || !$reviewAssignment->getDateConfirmed()) && $reviewAssignment->getDateNotified() && !$reviewAssignment->getDeclined()} {/if} {if $reviewAssignment->getDateNotified() && !$reviewAssignment->getDeclined() && $rateReviewerOnQuality} {/if} {if $needsReviewFileNote} {/if}
{translate key="submission.reviewForm"} {if $reviewAssignment->getReviewFormId()} {assign var="reviewFormId" value=$reviewAssignment->getReviewFormId()} {$reviewFormTitles[$reviewFormId]} {else} {translate key="manager.reviewForms.noneChosen"} {/if} {if !$reviewAssignment->getDateCompleted()}     getId()|to_array:$reviewAssignment->getId()}"{if $reviewFormResponses[$reviewId]} onclick="return confirm('{translate|escape:"jsparam" key="editor.article.confirmChangeReviewForm"}')"{/if}>{translate key="editor.article.selectReviewForm"}{if $reviewAssignment->getReviewFormId()}    getId()|to_array:$reviewAssignment->getId()}"{if $reviewFormResponses[$reviewId]} onclick="return confirm('{translate|escape:"jsparam" key="editor.article.confirmChangeReviewForm"}')"{/if}>{translate key="editor.article.clearReviewForm"}{/if} {/if}
 
{translate key="submission.request"} {translate key="submission.underway"} {translate key="submission.due"} {translate key="submission.acknowledge"}
{url|assign:"reviewUrl" op="notifyReviewer" reviewId=$reviewAssignment->getId() articleId=$submission->getId()} {if $reviewAssignment->getDateNotified()} {$reviewAssignment->getDateNotified()|date_format:$dateFormatShort} {if !$reviewAssignment->getDateCompleted()} {icon name="mail" url=$reviewUrl} {/if} {elseif $reviewAssignment->getReviewFileId()} {icon name="mail" url=$reviewUrl} {else} {icon name="mail" disabled="disabled" url=$reviewUrl} {assign var=needsReviewFileNote value=1} {/if} {$reviewAssignment->getDateConfirmed()|date_format:$dateFormatShort|default:"—"} {if $reviewAssignment->getDeclined()} {translate key="sectionEditor.regrets"} {else} getSubmissionId()|to_array:$reviewAssignment->getId()}">{if $reviewAssignment->getDateDue()}{$reviewAssignment->getDateDue()|date_format:$dateFormatShort}{else}—{/if} {/if} {url|assign:"thankUrl" op="thankReviewer" reviewId=$reviewAssignment->getId() articleId=$submission->getId()} {if $reviewAssignment->getDateAcknowledged()} {$reviewAssignment->getDateAcknowledged()|date_format:$dateFormatShort} {elseif $reviewAssignment->getDateCompleted()} {icon name="mail" url=$thankUrl} {else} {icon name="mail" disabled="disabled" url=$thankUrl} {/if}
{translate key="reviewer.article.recommendation"} {if $reviewAssignment->getRecommendation() !== null && $reviewAssignment->getRecommendation() !== ''} {assign var="recommendation" value=$reviewAssignment->getRecommendation()} {translate key=$reviewerRecommendationOptions.$recommendation}   {$reviewAssignment->getDateCompleted()|date_format:$dateFormatShort} {else} {translate key="common.none"}     getId() reviewId=$reviewAssignment->getId()}" class="action">{translate key="reviewer.article.sendReminder"} {if $reviewAssignment->getDateReminded()}   {$reviewAssignment->getDateReminded()|date_format:$dateFormatShort} {if $reviewAssignment->getReminderWasAutomatic()}   {translate key="reviewer.article.automatic"} {/if} {/if} {/if}
{translate key="reviewer.competingInterests"} {$reviewAssignment->getCompetingInterests()|strip_unsafe_html|nl2br|default:"—"}
{translate key="submission.reviewFormResponse"} getId()|to_array:$reviewAssignment->getId()}');" class="icon">{icon name="comment"}
{translate key="submission.review"} {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="submission.comments.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"}
{translate key="reviewer.article.editorToEnter"} {if !$reviewAssignment->getDateConfirmed()} getId()|to_array:$reviewAssignment->getId() accept=1}" class="action">{translate key="reviewer.article.canDoReview"}    getId()|to_array:$reviewAssignment->getId() accept=0}" class="action">{translate key="reviewer.article.cannotDoReview"}
{/if}
{translate key="editor.article.uploadReviewForReviewer"}
{if $reviewAssignment->getDateConfirmed() && !$reviewAssignment->getDeclined()} getId() reviewId=$reviewAssignment->getId()}">{translate key="editor.article.recommendation"} {/if}
{translate key="editor.article.rateReviewer"}
   {if $reviewAssignment->getDateRated()}   {$reviewAssignment->getDateRated()|date_format:$dateFormatShort} {/if}
  {translate key="submission.review.mustUploadFileForReview"}
{/if} {/foreach}