|
1 | 1 | {**
|
2 | 2 | * templates/frontend/objects/preprint_details.tpl
|
3 | 3 | *
|
4 |
| - * Copyright (c) 2014-2021 Simon Fraser University |
5 |
| - * Copyright (c) 2003-2021 John Willinsky |
| 4 | + * Copyright (c) 2014-2025 Simon Fraser University |
| 5 | + * Copyright (c) 2003-2025 John Willinsky |
6 | 6 | * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
7 | 7 | *
|
8 | 8 | * @brief View of an Preprint which displays all details about the preprint.
|
|
130 | 130 | <span class="name">
|
131 | 131 | {$author->getFullName()|escape}
|
132 | 132 | </span>
|
133 |
| - {if $author->getLocalizedData('affiliation')} |
| 133 | + {if count($author->getAffiliations()) > 0} |
134 | 134 | <span class="affiliation">
|
135 |
| - {$author->getLocalizedData('affiliation')|escape} |
| 135 | + {foreach name="affiliations" from=$author->getAffiliations() item="affiliation"} |
| 136 | + {$affiliation->getLocalizedName()|escape} |
| 137 | + {if $affiliation->getRor()}<a href="{$affiliation->getRor()|escape}">{$rorIdIcon}</a>{/if} |
| 138 | + {if !$smarty.foreach.affiliations.last}{translate key="common.commaListSeparator"}{/if} |
| 139 | + {/foreach} |
136 | 140 | </span>
|
137 | 141 | {/if}
|
138 | 142 | {if $author->getData('orcid')}
|
|
227 | 231 | {translate key="submission.authorBiography"}
|
228 | 232 | {/if}
|
229 | 233 | </h2>
|
| 234 | + <ul class="authors"> |
230 | 235 | {foreach from=$publication->getData('authors') item=author}
|
231 | 236 | {if $author->getLocalizedData('biography')}
|
232 |
| - <section class="sub_item"> |
233 |
| - <h3 class="label"> |
234 |
| - {if $author->getLocalizedData('affiliation')} |
| 237 | + <li class="sub_item"> |
| 238 | + <div class="label"> |
| 239 | + {if $author->getLocalizedAffiliationNamesAsString()} |
235 | 240 | {capture assign="authorName"}{$author->getFullName()|escape}{/capture}
|
236 |
| - {capture assign="authorAffiliation"}<span class="affiliation">{$author->getLocalizedData('affiliation')|escape}</span>{/capture} |
237 |
| - {translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliation} |
| 241 | + {capture assign="authorAffiliations"} {$author->getLocalizedAffiliationNamesAsString(null, ', ')|escape} {/capture} |
| 242 | + {translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliations} |
238 | 243 | {else}
|
239 | 244 | {$author->getFullName()|escape}
|
240 | 245 | {/if}
|
241 |
| - </h3> |
| 246 | + </div> |
242 | 247 | <div class="value">
|
243 | 248 | {$author->getLocalizedData('biography')|strip_unsafe_html}
|
244 | 249 | </div>
|
245 | 250 | </section>
|
246 | 251 | {/if}
|
247 | 252 | {/foreach}
|
248 |
| - </section> |
| 253 | + </ul> |
| 254 | + </section> |
249 | 255 | {/if}
|
250 | 256 |
|
251 | 257 | {* References *}
|
|
0 commit comments