{** * templates/search/authorIndex.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. * * Index of published articles by author. * *} {strip} {assign var="pageTitle" value="search.authorIndex"} {include file="common/header.tpl"} {/strip}

{foreach from=$alphaList item=letter}{if $letter == $searchInitial}{$letter|escape}{else}{$letter|escape}{/if} {/foreach}{if $searchInitial==''}{translate key="common.all"}{else}{translate key="common.all"}{/if}

{iterate from=authors item=author} {assign var=lastFirstLetter value=$firstLetter} {assign var=firstLetter value=$author->getLastName()|String_substr:0:1} {if $lastFirstLetter|lower != $firstLetter|lower}

{$firstLetter|escape}

{/if} {assign var=lastAuthorName value=$authorName} {assign var=lastAuthorCountry value=$authorCountry} {assign var=authorAffiliation value=$author->getLocalizedAffiliation()} {assign var=authorCountry value=$author->getCountry()} {assign var=authorFirstName value=$author->getFirstName()} {assign var=authorMiddleName value=$author->getMiddleName()} {assign var=authorLastName value=$author->getLastName()} {assign var=authorName value="$authorLastName, $authorFirstName"} {if $authorMiddleName != ''}{assign var=authorName value="$authorName $authorMiddleName"}{/if} {strip} {$authorName|escape} {if $authorAffiliation}, {$authorAffiliation|escape}{/if} {if $lastAuthorName == $authorName && $lastAuthorCountry != $authorCountry} {* Disambiguate with country if necessary (i.e. if names are the same otherwise) *} {if $authorCountry} ({$author->getCountryLocalized()}){/if} {/if} {/strip}
{/iterate} {if !$authors->wasEmpty()}
{page_info iterator=$authors}    {page_links anchor="authors" iterator=$authors name="authors" searchInitial=$searchInitial} {else} {/if}
{include file="common/footer.tpl"}