{** * templates/user/index.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. * * User index. * *} {strip} {assign var="pageTitle" value="user.userHome"} {include file="common/header.tpl"} {/strip} {if $isSiteAdmin} {assign var="hasRole" value=1} getRolePath()}">{translate key=$isSiteAdmin->getRoleName()} {call_hook name="Templates::User::Index::Site"} {/if}
{if !$currentJournal}

{translate key="user.myJournals"}

{/if} {foreach from=$userJournals item=journal}
{assign var="hasRole" value=1} {if !$currentJournal}

{$journal->getLocalizedTitle()|escape}

{else}

{$journal->getLocalizedTitle()|escape}

{/if} {assign var="journalId" value=$journal->getId()} {assign var="journalPath" value=$journal->getPath()} {if $isValid.JournalManager.$journalId} {/if} {if $isValid.SubscriptionManager.$journalId} {/if} {if $isValid.Editor.$journalId || $isValid.SectionEditor.$journalId || $isValid.LayoutEditor.$journalId || $isValid.Copyeditor.$journalId || $isValid.Proofreader.$journalId} {/if} {if $isValid.Editor.$journalId} {assign var="editorSubmissionsCount" value=$submissionsCount.Editor.$journalId} {/if} {if $isValid.SectionEditor.$journalId} {assign var="sectionEditorSubmissionsCount" value=$submissionsCount.SectionEditor.$journalId} {/if} {if $isValid.LayoutEditor.$journalId} {assign var="layoutEditorSubmissionsCount" value=$submissionsCount.LayoutEditor.$journalId} {/if} {if $isValid.Copyeditor.$journalId} {assign var="copyeditorSubmissionsCount" value=$submissionsCount.Copyeditor.$journalId} {/if} {if $isValid.Proofreader.$journalId} {assign var="proofreaderSubmissionsCount" value=$submissionsCount.Proofreader.$journalId} {/if} {if $isValid.Author.$journalId || $isValid.Reviewer.$journalId} {/if} {if $isValid.Author.$journalId} {assign var="authorSubmissionsCount" value=$submissionsCount.Author.$journalId} {* This is for all non-pending items*} {/if} {if $isValid.Reviewer.$journalId} {assign var="reviewerSubmissionsCount" value=$submissionsCount.Reviewer.$journalId} {/if} {* Add a row to the bottom of each table to ensure all have same width*}
{translate key="user.role.manager"} {if $setupIncomplete.$journalId}[{translate key="manager.setup"}]{/if}
{translate key="user.role.subscriptionManager"}
 
{translate key="user.role.editor"} {if $editorSubmissionsCount[0]} {$editorSubmissionsCount[0]} {translate key="common.queue.short.submissionsUnassigned"} {else}0 {translate key="common.queue.short.submissionsUnassigned"}{/if} {if $editorSubmissionsCount[1]} {$editorSubmissionsCount[1]} {translate key="common.queue.short.submissionsInReview"} {else}0 {translate key="common.queue.short.submissionsInReview"}{/if} {if $editorSubmissionsCount[2]} {$editorSubmissionsCount[2]} {translate key="common.queue.short.submissionsInEditing"} {else}0 {translate key="common.queue.short.submissionsInEditing"}{/if} [{translate key="editor.issues.createIssue"}] [{translate key="editor.notifyUsers"}]
{translate key="user.role.sectionEditor"} {if $sectionEditorSubmissionsCount[0]} {$sectionEditorSubmissionsCount[0]} {translate key="common.queue.short.submissionsInReview"} {else}0 {translate key="common.queue.short.submissionsInReview"}{/if} {if $sectionEditorSubmissionsCount[1]} {$sectionEditorSubmissionsCount[1]} {translate key="common.queue.short.submissionsInEditing"} {else}0 {translate key="common.queue.short.submissionsInEditing"}{/if}
{translate key="user.role.layoutEditor"} {if $layoutEditorSubmissionsCount[0]} {$layoutEditorSubmissionsCount[0]} {translate key="common.queue.short.submissionsInEditing"} {else}0 {translate key="common.queue.short.submissionsInEditing"}{/if}
{translate key="user.role.copyeditor"} {if $copyeditorSubmissionsCount[0]} {$copyeditorSubmissionsCount[0]} {translate key="common.queue.short.submissionsInEditing"} {else}0 {translate key="common.queue.short.submissionsInEditing"}{/if}
{translate key="user.role.proofreader"} {if $proofreaderSubmissionsCount[0]} {$proofreaderSubmissionsCount[0]} {translate key="common.queue.short.submissionsInEditing"} {else}0 {translate key="common.queue.short.submissionsInEditing"}{/if}
 
{translate key="user.role.author"} {if $authorSubmissionsCount[0]} {$authorSubmissionsCount[0]} {translate key="common.queue.short.active"} {else}0 {translate key="common.queue.short.active"}{/if} {if $authorSubmissionsCount[1]} {$authorSubmissionsCount[1]} {translate key="common.queue.short.completed"} {else}0 {translate key="common.queue.short.completed"}{/if} [{translate key="author.submit"}]
{translate key="user.role.reviewer"} {if $reviewerSubmissionsCount[0]} {$reviewerSubmissionsCount[0]} {translate key="common.queue.short.active"} {else}0 {translate key="common.queue.short.active"}{/if}
{call_hook name="Templates::User::Index::Journal" journal=$journal}
{/foreach}
{if !$hasRole} {if $currentJournal}

{translate key="user.noRoles.noRolesForJournal"}

{else}{* $currentJournal *}

{translate key="user.noRoles.chooseJournal"}

{/if}{* $currentJournal *} {/if}{* !$hasRole *}

{translate key="user.myAccount"}

{include file="common/footer.tpl"}