{** * templates/author/completed.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. * * Show the details of completed submissions. * *}
{if $statViews}{/if} {iterate from=submissions item=submission} {assign var="articleId" value=$submission->getId()} {assign var="status" value=$submission->getSubmissionStatus()} {if $statViews} {/if} {/iterate} {if $submissions->wasEmpty()} {else} {/if}
 
{sort_heading key="common.id" sort="id"} {translate key="submission.date.mmdd"}
{sort_heading key="submissions.submit" sort="submitDate"}
{sort_heading key="submissions.sec" sort="section"} {sort_heading key="article.authors" sort="authors"} {sort_heading key="article.title" sort="title"}{sort_heading key="submission.views" sort="views"}{sort_heading key="common.status" sort="status"}
 
{$articleId|escape} {$submission->getDateSubmitted()|date_format:$dateFormatTrunc} {$submission->getSectionAbbrev()|escape} {$submission->getAuthorString(true)|truncate:40:"..."|escape} {$submission->getLocalizedTitle()|strip_tags|truncate:60:"..."} {if $status==STATUS_PUBLISHED} {assign var=viewCount value=0} {foreach from=$submission->getGalleys() item=galley} {assign var=thisCount value=$galley->getViews()} {assign var=viewCount value=$viewCount+$thisCount} {/foreach} {$viewCount|escape} {else} — {/if} {if $status==STATUS_ARCHIVED}{translate key="submissions.archived"} {elseif $status==STATUS_PUBLISHED}{print_issue_id articleId="$articleId"} {elseif $status==STATUS_DECLINED}{translate key="submissions.declined"} {/if}
 
{translate key="submissions.noSubmissions"}
 
{page_info iterator=$submissions} {page_links anchor="submissions" name="submissions" iterator=$submissions sort=$sort sortDirection=$sortDirection}