Skip to content

Commit

Permalink
pkp/pkp-lib#7135 multiple author affiliations
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Feb 7, 2025
1 parent 7518cdb commit 3b063e1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{assign var="hasAffiliations" value=false}

{foreach from=$authors item=author}
{if $author->getLocalizedAffiliation()}
{if count($author->getAffiliations()) > 0}
{assign var="hasAffiliations" value=true}
{break}
{/if}
Expand Down Expand Up @@ -157,11 +157,14 @@
<div class="collapse metadata" id="authorAffiliations">
{foreach from=$authors item=author}
<div>
<strong>{$author->getFullName()|escape}</strong><br>
{$author->getLocalizedAffiliation()|escape}
{if $author->getData('rorId')}
<a class="article__rorImage" href="{$author->getData('rorId')|escape}">{$rorIdIcon}</a>
{/if}
<strong>{$author->getFullName()|escape}</strong><br>
{foreach name="affiliations" from=$author->getAffiliations() item="affiliation"}
{$affiliation->getLocalizedName()|escape}
{if $affiliation->getRor()}
<a class="article__rorImage" href="{$affiliation->getRor()|escape}">{$rorIdIcon}</a>
{/if}
{if !$smarty.foreach.affiliations.last}{translate key="common.commaListSeparator"}{/if}
{/foreach}
<br><br>
</div>
{/foreach}
Expand Down

0 comments on commit 3b063e1

Please sign in to comment.