{** * templates/article/googlescholar.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. * * Metadata elements for articles based on preferred types for Google Scholar * *} {if $currentJournal->getSetting('onlineIssn')}{assign var="issn" value=$currentJournal->getSetting('onlineIssn')} {elseif $currentJournal->getSetting('printIssn')}{assign var="issn" value=$currentJournal->getSetting('printIssn')} {elseif $currentJournal->getSetting('issn')}{assign var="issn" value=$currentJournal->getSetting('issn')} {/if} {if $issn} {/if} {foreach name="authors" from=$article->getAuthors() item=author} getMiddleName()|escape}{/if} {$author->getLastName()|escape}"/> {if $author->getLocalizedAffiliation() != ""} {/if} {/foreach} {** * Google Scholar date: Use article publication date, falling back on issue * year and issue publication date in sequence. Bug #6480. *} {if is_a($article, 'PublishedArticle') && $article->getDatePublished()} {elseif $issue && $issue->getYear()} {elseif $issue && $issue->getDatePublished()} {/if} {if $issue} {/if} {if $article->getPages()} {if $article->getStartingPage()} {/if} {if $article->getEndingPage()} {/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} {/if} {/foreach} getBestArticleId($currentJournal)}"/> {if $article->getLanguage()} {/if} {if $article->getSubject(null)}{foreach from=$article->getSubject(null) key=metaLocale item=metaValue} {foreach from=$metaValue|explode:"; " item=gsKeyword} {if $gsKeyword} {/if} {/foreach} {/foreach}{/if} {if is_a($article, 'PublishedArticle')} {foreach from=$article->getGalleys() item=gs_galley} {if $gs_galley->getFileType()=="application/pdf"} getBestArticleId($currentJournal)|to_array:$gs_galley->getBestGalleyId($currentJournal)}"/> {else} getBestArticleId($currentJournal)|to_array:$gs_galley->getBestGalleyId($currentJournal)}"/> {/if} {/foreach} {/if}