{** * templates/frontend/pages/searchAuthorIndex.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. * * Index of published submissions by author. * *} {strip} {assign var="pageTitle" value="search.authorIndex"} {include file="frontend/components/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->getLocalizedFamilyName()|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=authorGivenName value=$author->getLocalizedGivenName()} {assign var=authorFamilyName value=$author->getLocalizedFamilyName()} {assign var=authorName value=$author->getFullName(false, true)} {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 !empty($firstLetter)}{* If the author list wasn't empty *}
{page_info iterator=$authors}    {page_links anchor="authors" iterator=$authors name="authors" searchInitial=$searchInitial} {else} {/if}
{include file="frontend/components/footer.tpl"}