{** * templates/author/submission/management.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 submission management table. * *}

{translate key="article.submission"}

{assign var="editAssignments" value=$submission->getEditAssignments()} {if $submission->getCommentsToEditor()} {/if} {if $publishedArticle} {/if}
{translate key="article.authors"} {$submission->getAuthorString(false)|escape}
{translate key="article.title"} {$submission->getLocalizedTitle()|strip_unsafe_html}
{translate key="submission.originalFile"} {if $submissionFile} getId()|to_array:$submissionFile->getFileId():$submissionFile->getRevision()}" class="file">{$submissionFile->getFileName()|escape}  {$submissionFile->getDateModified()|date_format:$dateFormatShort} {else} {translate key="common.none"} {/if}
{translate key="article.suppFilesAbbrev"} {foreach name="suppFiles" from=$suppFiles item=suppFile} getId()|to_array:$suppFile->getId()}{else}{url op="downloadFile" path=$submission->getId()|to_array:$suppFile->getFileId()}{/if}" class="file">{$suppFile->getFileName()|escape}  {$suppFile->getDateModified()|date_format:$dateFormatShort}
{foreachelse} {translate key="common.none"} {/foreach}
{if $submission->getStatus() != STATUS_PUBLISHED && $submission->getStatus() != STATUS_ARCHIVED} getId()}" class="action">{translate key="submission.addSuppFile"} {else}   {/if}
{translate key="submission.submitter"} {assign var="submitter" value=$submission->getUser()} {assign var=emailString value=$submitter->getFullName()|concat:" <":$submitter->getEmail():">"} {url|assign:"url" page="user" op="email" to=$emailString|to_array redirectUrl=$currentUrl subject=$submission->getLocalizedTitle()|strip_tags articleId=$submission->getId()} {$submitter->getFullName()|escape} {icon name="mail" url=$url}
{translate key="common.dateSubmitted"} {$submission->getDateSubmitted()|date_format:$datetimeFormatLong}
{translate key="section.section"} {$submission->getSectionTitle()|escape}
{translate key="user.role.editor"} {foreach from=$editAssignments item=editAssignment} {assign var=emailString value=$editAssignment->getEditorFullName()|concat:" <":$editAssignment->getEditorEmail():">"} {url|assign:"url" page="user" op="email" to=$emailString|to_array redirectUrl=$currentUrl 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="article.commentsToEditor"} {$submission->getCommentsToEditor()|strip_unsafe_html|nl2br}
{translate key="submission.abstractViews"} {$publishedArticle->getViews()}