|
123 | 123 | {$author->getFullName()|escape} |
124 | 124 | </p> |
125 | 125 |
|
126 | | - {if $author->getLocalizedData('affiliation')} |
| 126 | + {if count($author->getAffiliations()) > 0} |
127 | 127 | <div class="text-sm/6 text-slate-900 dark:text-slate-400 flex space-x-1 items-center"> |
128 | 128 | <svg xmlns="http://www.w3.org/2000/svg" |
129 | 129 | viewBox="0 0 24 24" class="w-4 h-4" |
|
133 | 133 | <path d="M9 22V12h6v10M2 10.6L12 2l10 8.6"/> |
134 | 134 | </svg> |
135 | 135 | <div> |
136 | | - {$author->getLocalizedData('affiliation')|escape} |
137 | | - {if $author->getData('rorId')} |
138 | | - <a href="{$author->getData('rorId')|escape}">{$rorIdIcon}</a> |
139 | | - {/if} |
| 136 | + <span class="affiliation"> |
| 137 | + {foreach name="affiliations" from=$author->getAffiliations() item="affiliation"} |
| 138 | + <span>{$affiliation->getLocalizedName()|escape}</span> |
| 139 | + {if $affiliation->getRor()}<a href="{$affiliation->getRor()|escape}">{$rorIdIcon}</a>{/if} |
| 140 | + {if !$smarty.foreach.affiliations.last}{translate key="common.commaListSeparator"}{/if} |
| 141 | + {/foreach} |
| 142 | + </span> |
140 | 143 | </div> |
141 | 144 | </div> |
142 | 145 | {/if} |
143 | 146 |
|
144 | 147 | {assign var=authorUserGroup value=$userGroupsById[$author->getData('userGroupId')]} |
145 | | - {if $authorUserGroup->getShowTitle()} |
| 148 | + {if $authorUserGroup->showTitle} |
146 | 149 | <div class="text-sm/6 text-slate-900 dark:text-slate-400 flex space-x-1 items-center"> |
147 | 150 | <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" |
148 | 151 | viewBox="0 0 24 24" |
|
154 | 157 | <circle cx="12" cy="12" r="10"/> |
155 | 158 | </svg> |
156 | 159 | <div class="userGroup"> |
157 | | - {$authorUserGroup->getLocalizedName()|escape} |
| 160 | + {$authorUserGroup->getLocalizedData('name')|escape} |
158 | 161 | </div> |
159 | 162 | </div> |
160 | 163 | {/if} |
161 | 164 |
|
162 | 165 | {if $author->getData('orcid')} |
163 | 166 | <div class="text-sm/6 text-slate-900 dark:text-slate-400 flex space-x-1 items-center"> |
164 | | - {if $author->getData('orcidAccessToken')} |
| 167 | + {if $author->hasVerifiedOrcid()} |
165 | 168 | {$orcidIcon} |
166 | 169 | {else} |
167 | 170 | {include file="frontend/components/ui/material_icon_orcid.tpl"} |
168 | 171 | {/if} |
169 | 172 | <a href="{$author->getData('orcid')|escape}" target="_blank" class="break-words text-{$activeTheme->getOption('baseColour')}-400 "> |
170 | | - {$author->getData('orcid')|escape} |
| 173 | + {$author->getOrcidDisplayValue()|escape} |
171 | 174 | </a> |
172 | 175 | </div> |
173 | 176 | {/if} |
|
264 | 267 | {if $author->getLocalizedData('biography')} |
265 | 268 | <li class="sub_item"> |
266 | 269 | <div class="label text-sm/6 font-semibold text-slate-900 dark:text-slate-300"> |
267 | | - {if $author->getLocalizedData('affiliation')} |
| 270 | + {if $author->getLocalizedAffiliationNamesAsString()} |
268 | 271 | {capture assign="authorName"}{$author->getFullName()|escape}{/capture} |
269 | | - {capture assign="authorAffiliation"} {$author->getLocalizedData('affiliation')|escape} {/capture} |
270 | | - {translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliation} |
| 272 | + {capture assign="authorAffiliations"} {$author->getLocalizedAffiliationNamesAsString(null, ', ')|escape} {/capture} |
| 273 | + {translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliations} |
271 | 274 | {else} |
272 | 275 | {$author->getFullName()|escape} |
273 | 276 | {/if} |
|
512 | 515 | </dd> |
513 | 516 | </div> |
514 | 517 | {/if} |
515 | | - |
516 | | - {call_hook name="Templates::Article::Details"} |
517 | | - </dl> |
| 518 | + </dl> |
518 | 519 | </div> |
519 | 520 |
|
| 521 | + {call_hook name="Templates::Article::Details"} |
| 522 | + |
520 | 523 | </div> |
521 | 524 |
|
522 | 525 | </div><!-- .row --> |
|
0 commit comments