{** * templates/issue/issue.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. * * Issue * *} {foreach name=sections from=$publishedArticles item=section key=sectionId} {if $section.title}

{$section.title|escape}

{/if} {foreach from=$section.articles item=article} {assign var=articlePath value=$article->getBestArticleId($currentJournal)} {assign var=articleId value=$article->getId()} {if $article->getLocalizedFileName() && $article->getLocalizedShowCoverPage() && !$article->getHideCoverPageToc($locale)} {assign var=showCoverPage value=true} {else} {assign var=showCoverPage value=false} {/if} {if $article->getLocalizedAbstract() == ""} {assign var=hasAbstract value=0} {else} {assign var=hasAbstract value=1} {/if} {if (!$subscriptionRequired || $article->getAccessStatus() == $smarty.const.ARTICLE_ACCESS_OPEN || $subscribedUser || $subscribedDomain || ($subscriptionExpiryPartial && $articleExpiryPartial.$articleId))} {assign var=hasAccess value=1} {else} {assign var=hasAccess value=0} {/if} {call_hook name="Templates::Issue::Issue::ArticleCoverImage"}
{if $showCoverPage} {/if}
{if !$hasAccess || $hasAbstract} {$article->getLocalizedTitle()|strip_unsafe_html} {else} {$article->getLocalizedTitle()|strip_unsafe_html} {/if}
{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW} {foreach from=$article->getAuthors() item=author name=authorList} {$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if} {/foreach} {else}   {/if}
{if $hasAccess || ($subscriptionRequired && $showGalleyLinks)} {foreach from=$article->getGalleys() item=galley name=galleyList} getBestGalleyId($currentJournal)}" {if $galley->getRemoteURL()}target="_blank" {/if}class="file">{$galley->getGalleyLabel()|escape} {if $subscriptionRequired && $showGalleyLinks && $restrictOnlyPdf} {if $article->getAccessStatus() == $smarty.const.ARTICLE_ACCESS_OPEN || !$galley->isPdfGalley()} {else} {/if} {/if} {/foreach} {if $subscriptionRequired && $showGalleyLinks && !$restrictOnlyPdf} {if $article->getAccessStatus() == $smarty.const.ARTICLE_ACCESS_OPEN} {else} {/if} {/if} {/if}
{$article->getPages()|escape}
{call_hook name="Templates::Issue::Issue::Article"} {/foreach} {if !$smarty.foreach.sections.last}
{/if} {/foreach}