{** * templates/article/article.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. * * Article View. *} {strip} {if $galley} {assign var=pubObject value=$galley} {else} {assign var=pubObject value=$article} {/if} {include file="article/header.tpl"} {/strip} {if $galley} {if $galley->isHTMLGalley()} {$galley->getHTMLContents()} {elseif $galley->isPdfGalley()} {include file="article/pdfViewer.tpl"} {/if} {else}
{if is_a($article, 'PublishedArticle')}{assign var=galleys value=$article->getGalleys()}{/if} {if $galleys && $subscriptionRequired && $showGalleyLinks}
{translate key= {translate key="reader.openAccess"}  {translate key= {if $purchaseArticleEnabled} {translate key="reader.subscriptionOrFeeAccess"} {else} {translate key="reader.subscriptionAccess"} {/if}
{/if}
{if $coverPagePath}
{$coverPageAltText|escape}
{/if} {call_hook name="Templates::Article::Article::ArticleCoverImage"}

{$article->getLocalizedTitle()|strip_unsafe_html}

{$article->getAuthorString()|escape}

{if $article->getLocalizedAbstract()}

{translate key="article.abstract"}


{$article->getLocalizedAbstract()|strip_unsafe_html|nl2br}

{/if} {if $article->getLocalizedSubject()}

{translate key="article.subject"}


{$article->getLocalizedSubject()|escape}

{/if} {if (!$subscriptionRequired || $article->getAccessStatus() == $smarty.const.ARTICLE_ACCESS_OPEN || $subscribedUser || $subscribedDomain)} {assign var=hasAccess value=1} {else} {assign var=hasAccess value=0} {/if} {if $galleys}

{translate key="reader.fullText"}

{if $hasAccess || ($subscriptionRequired && $showGalleyLinks)} {foreach from=$article->getGalleys() item=galley name=galleyList} getBestArticleId($currentJournal)|to_array:$galley->getBestGalleyId($currentJournal)}" class="file" {if $galley->getRemoteURL()}target="_blank"{else}target="_parent"{/if}>{$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} {else}  {translate key="reader.subscribersOnly"} {/if}
{/if} {if $citationFactory->getCount()}

{translate key="submission.citations"}


{iterate from=citationFactory item=citation}

{$citation->getRawCitation()|strip_unsafe_html}

{/iterate}

{/if} {/if} {foreach from=$pubIdPlugins item=pubIdPlugin} {if $issue->getPublished()} {assign var=pubId value=$pubIdPlugin->getPubId($pubObject)} {else} {assign var=pubId value=$pubIdPlugin->getPubId($pubObject, true)}{* Preview rather than assign a pubId *} {/if} {if $pubId}

{$pubIdPlugin->getPubIdDisplayType()|escape}: {if $pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}{$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}{else}{$pubId|escape}{/if} {/if} {/foreach} {call_hook name="Templates::Article::MoreInfo"} {include file="article/comments.tpl"} {include file="article/footer.tpl"}