{** * templates/issue/view.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. * * View issue -- This displays the issue TOC or title page, as appropriate, * *without* header or footer HTML (see viewPage.tpl) *} {if $subscriptionRequired && $showGalleyLinks && $showToc}
{translate key= {translate key="reader.openAccess"}  {translate key= {if $purchaseArticleEnabled} {translate key="reader.subscriptionOrFeeAccess"} {else} {translate key="reader.subscriptionAccess"} {/if}
{/if} {if !$showToc && $issue} {if $issueId} {url|assign:"currentUrl" page="issue" op="view" path=$issueId|to_array:"showToc"} {else} {url|assign:"currentUrl" page="issue" op="current" path="showToc"} {/if}
{if $coverPagePath}
{$coverPageAltText|escape}
{/if}
{$issue->getLocalizedCoverPageDescription()|strip_unsafe_html|nl2br}
{elseif $issue}
{$issue->getLocalizedDescription()|strip_unsafe_html|nl2br}
{if $issueGalleys}

{translate key="issue.fullIssue"}

{if (!$subscriptionRequired || $issue->getAccessStatus() == $smarty.const.ISSUE_ACCESS_OPEN || $subscribedUser || $subscribedDomain || ($subscriptionExpiryPartial && $issueExpiryPartial))} {assign var=hasAccess value=1} {else} {assign var=hasAccess value=0} {/if}
{translate key="issue.viewIssueDescription"} {if $hasAccess || ($subscriptionRequired && $showGalleyLinks)} {foreach from=$issueGalleys item=issueGalley} {if $issueGalley->isPdfGalley()} getBestIssueId()|to_array:$issueGalley->getBestGalleyId($currentJournal)}" class="file">{$issueGalley->getGalleyLabel()|escape} {else} getBestIssueId()|to_array:$issueGalley->getBestGalleyId($currentJournal)}" class="file">{$issueGalley->getGalleyLabel()|escape} {/if} {if $subscriptionRequired && $showGalleyLinks && $restrictOnlyPdf} {if $issue->getAccessStatus() == $smarty.const.ISSUE_ACCESS_OPEN || !$issueGalley->isPdfGalley()} {else} {/if} {/if} {/foreach} {if $subscriptionRequired && $showGalleyLinks && !$restrictOnlyPdf} {if $issue->getAccessStatus() == $smarty.const.ISSUE_ACCESS_OPEN} {else} {/if} {/if} {/if}

{/if}

{translate key="issue.toc"}

{include file="issue/issue.tpl"} {else} {translate key="current.noCurrentIssueDesc"} {/if}