{** * googlescholar.tpl * * Copyright (c) 2003-2011 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 * * $Id$ *} {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} getAuthors() item=author}{$author->getLastName()|escape}, {$author->getFirstName()|escape}{if $author->getMiddleName() != ""} {$author->getMiddleName()|escape}{/if}{if !$smarty.foreach.authors.last}; {/if}{/foreach}"/> {** * Google Scholar date: Use article publication date, falling back on issue * publication date and issue year in sequence. *} {if $article->getDatePublished()} {elseif $issue->getDatePublished()} {elseif $issue->getYear()} {/if} {if $article->getPages()} {/if} {if $article->getDOI() && $article->getDOI() != '§'} {/if} 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} {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}