{** * templates/frontend/objects/article_summary.tpl * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @brief View of an Article summary which is shown within a list of articles. * * @uses $article Article The article * @uses $authorUserGroups Traversible The set of author user groups * @uses $hasAccess bool Can this user access galleys for this context? The * context may be an issue or an article * @uses $showDatePublished bool Show the date this article was published? * @uses $hideGalleys bool Hide the article galleys for this article? * @uses $primaryGenreIds array List of file genre ids for primary file types * @uses $heading string HTML heading element, default: h2 *} {assign var=publication value=$article->getCurrentPublication()} {assign var=articlePath value=$publication->getData('urlPath')|default:$article->getId()} {if !$heading} {assign var="heading" value="h2"} {/if} {if (!$section.hideAuthor && $publication->getData('hideAuthor') == \APP\submission\Submission::AUTHOR_TOC_DEFAULT) || $publication->getData('hideAuthor') == \APP\submission\Submission::AUTHOR_TOC_SHOW} {assign var="showAuthor" value=true} {/if}
{if $publication->getLocalizedData('coverImage')}
{assign var="coverImage" value=$publication->getLocalizedData('coverImage')} {$coverImage.altText|escape|default:''}
{/if} <{$heading} class="title"> {if $currentContext} {$publication->getLocalizedTitle(null, 'html')|strip_unsafe_html} {assign var=localizedSubtitle value=$publication->getLocalizedSubtitle(null, 'html')|strip_unsafe_html} {if $localizedSubtitle} {$localizedSubtitle} {/if} {else} {$publication->getLocalizedFullTitle(null, 'html')|strip_unsafe_html} {$journal->getLocalizedName()|escape} {/if} {assign var=submissionPages value=$publication->getData('pages')} {assign var=submissionDatePublished value=$publication->getData('datePublished')} {if $showAuthor || $submissionPages || ($submissionDatePublished && $showDatePublished)}
{if $showAuthor}
{$publication->getAuthorString($authorUserGroups)|escape}
{/if} {* Page numbers for this article *} {if $submissionPages}
{$submissionPages|escape}
{/if} {if $showDatePublished && $submissionDatePublished}
{$submissionDatePublished|date_format:$dateFormatShort}
{/if}
{/if} {if !$hideGalleys} {/if} {call_hook name="Templates::Issue::Issue::Article"}