{** * templates/frontend/objects/article_details.tpl * * Copyright (c) 2014-2018 Simon Fraser University * Copyright (c) 2003-2018 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @brief View of an Article which displays all details about the article. * Expected to be primary object on the page. * * Many journals will want to add custom data to this object, either through * plugins which attach to hooks on the page or by editing the template * themselves. In order to facilitate this, a flexible layout markup pattern has * been implemented. If followed, plugins and other content can provide markup * in a way that will render consistently with other items on the page. This * pattern is used in the .main_entry column and the .entry_details column. It * consists of the following: * * *
* *
Abstract
*
Value
*
* * All styling should be applied by class name, so that titles may use heading * elements (eg,

) or any element required. * * *
*
*
DOI
*
12345678
*
*
*
Published Date
*
2015-01-01
*
*
* * *
*
Whatever you'd like
*
* * Core components are produced manually below, but can also be added via * plugins using the hooks provided: * * Templates::Article::Main * Templates::Article::Details * * @uses $article Article This article * @uses $issue Issue The issue this article is assigned to * @uses $section Section The journal section this article is assigned to * @uses $primaryGalleys array List of article galleys that are not supplementary or dependent * @uses $supplementaryGalleys array List of article galleys that are supplementary * @uses $keywords array List of keywords assigned to this article * @uses $pubIdPlugins Array of pubId plugins which this article may be assigned * @uses $copyright string Copyright notice. Only assigned if statement should * be included with published articles. * @uses $copyrightHolder string Name of copyright holder * @uses $copyrightYear string Year of copyright * @uses $licenseUrl string URL to license. Only assigned if license should be * included with published articles. * @uses $ccLicenseBadge string An image and text with details about the license *}

{$article->getLocalizedTitle()|escape}

{if $article->getLocalizedSubtitle()}

{$article->getLocalizedSubtitle()|escape}

{/if}
{if $article->getAuthors()}
    {foreach from=$article->getAuthors() item=author}
  • {$author->getFullName()|escape} {if $author->getLocalizedAffiliation()} {$author->getLocalizedAffiliation()|escape} {/if} {if $author->getOrcid()} {$orcidIcon} {$author->getOrcid()|escape} {/if}
  • {/foreach}
{/if} {* DOI (requires plugin) *} {foreach from=$pubIdPlugins item=pubIdPlugin} {if $pubIdPlugin->getPubIdType() != 'doi'} {php}continue;{/php} {/if} {assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())} {if $pubId} {assign var="doiUrl" value=$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}
{capture assign=translatedDOI}{translate key="plugins.pubIds.doi.readerDisplayName"}{/capture} {translate key="semicolon" label=$translatedDOI} {$doiUrl}
{/if} {/foreach} {* Keywords *} {if !empty($keywords[$currentLocale])}
{capture assign=translatedKeywords}{translate key="article.subject"}{/capture} {translate key="semicolon" label=$translatedKeywords} {foreach from=$keywords item=keyword} {foreach name=keywords from=$keyword item=keywordItem} {$keywordItem|escape}{if !$smarty.foreach.keywords.last}, {/if} {/foreach} {/foreach}
{/if} {* Abstract *} {if $article->getLocalizedAbstract()}

{translate key="article.abstract"}

{$article->getLocalizedAbstract()|strip_unsafe_html}
{/if} {call_hook name="Templates::Article::Main"} {* Author biographies *} {assign var="hasBiographies" value=0} {foreach from=$article->getAuthors() item=author} {if $author->getLocalizedBiography()} {assign var="hasBiographies" value=$hasBiographies+1} {/if} {/foreach} {if $hasBiographies}

{if $hasBiographies > 1} {translate key="submission.authorBiographies"} {else} {translate key="submission.authorBiography"} {/if}

{foreach from=$article->getAuthors() item=author} {if $author->getLocalizedBiography()}
{if $author->getLocalizedAffiliation()} {capture assign="authorName"}{$author->getFullName()|escape}{/capture} {capture assign="authorAffiliation"}{$author->getLocalizedAffiliation()|escape}{/capture} {translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliation} {else} {$author->getFullName()|escape} {/if}
{$author->getLocalizedBiography()|strip_unsafe_html}
{/if} {/foreach}
{/if} {* References *} {if $parsedCitations->getCount() || $article->getCitations()}

{translate key="submission.citations"}

{if $parsedCitations->getCount()} {iterate from=parsedCitations item=parsedCitation}

{$parsedCitation->getCitationWithLinks()|strip_unsafe_html} {call_hook name="Templates::Article::Details::Reference" citation=$parsedCitation}

{/iterate} {elseif $article->getCitations()} {$article->getCitations()|nl2br} {/if}
{/if}
{* Article/Issue cover image *} {if $article->getLocalizedCoverImage() || $issue->getLocalizedCoverImage()}
{if $article->getLocalizedCoverImage()} getLocalizedCoverImageAltText()} alt="{$article->getLocalizedCoverImageAltText()|escape}"{/if}> {else} getBestIssueId()}"> getLocalizedCoverImageAltText()} alt="{$issue->getLocalizedCoverImageAltText()|escape}"{/if}> {/if}
{/if} {* Article Galleys *} {if $primaryGalleys}
{/if} {if $supplementaryGalleys}
{/if} {if $article->getDatePublished()}
{translate key="submissions.published"}
{$article->getDatePublished()|date_format:$dateFormatShort}
{/if} {* How to cite *} {if $citation}
{translate key="submission.howToCite"}
{$citation}
{/if} {* Issue article appears in *}
{if $section}
{translate key="section.section"}
{$section->getLocalizedTitle()|escape}
{/if}
{* PubIds (requires plugins) *} {foreach from=$pubIdPlugins item=pubIdPlugin} {if $pubIdPlugin->getPubIdType() == 'doi'} {php}continue;{/php} {/if} {assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())} {if $pubId}
{$pubIdPlugin->getPubIdDisplayType()|escape}
{if $pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape} {$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape} {else} {$pubId|escape} {/if}
{/if} {/foreach} {* Licensing info *} {if $copyright || $licenseUrl} {/if} {call_hook name="Templates::Article::Details"}