@@ -129,10 +172,29 @@
{$author->getFullName()|escape}
+ {if isset($pubLocaleData.opts.author)}
+
+ {/if}
- {if $author->getLocalizedData('affiliation')}
+ {if $author->getData('affiliation')}
- {$author->getLocalizedData('affiliation')|escape}
+
+ {$authorAffiliations=$author->getData('affiliation')}
+ {$first=true}
+ {foreach from=$pubLocaleData.localeOrder item=$localeKey}
+ {if !isset($authorAffiliations[$localeKey])}{continue}{/if}
+
+ {$authorAffiliations[$localeKey]|strip_unsafe_html}
+
+ {if !isset($pubLocaleData.opts.author)}{break}{/if}
+ {$first=false}
+ {/foreach}
+
{/if}
{if $author->getData('orcid')}
@@ -169,25 +231,69 @@
{/if}
{* Keywords *}
- {if !empty($publication->getLocalizedData('keywords'))}
-
-
- {capture assign=translatedKeywords}{translate key="preprint.subject"}{/capture}
- {translate key="semicolon" label=$translatedKeywords}
-
-
- {foreach name="keywords" from=$publication->getLocalizedData('keywords') item="keyword"}
- {$keyword|escape}{if !$smarty.foreach.keywords.last}{translate key="common.commaListSeparator"}{/if}
+ {if $publication->getData('keywords')}
+
+
+ {capture assign=translatedKeywords}{translate key="common.keywords"}{/capture}
+ {translate key="semicolon" label=$translatedKeywords}
+
+
+ {$publicationKeywords=$publication->getData('keywords')}
+ {$first=true}
+ {foreach from=$pubLocaleData.localeOrder item=$localeKey}
+ {if !isset($publicationKeywords[$localeKey])}{continue}{/if}
+
+ {foreach from=$publicationKeywords[$localeKey] item="keyword"}
+ {$keyword|escape}{if !$keyword@last}{translate key="common.commaListSeparator"}{/if}
+ {/foreach}
+
+ {if !isset($pubLocaleData.opts.keywords)}{break}{/if}
+ {$first=false}
{/foreach}
-
-
+ {if isset($pubLocaleData.opts.keywords)}
+
+ {/if}
+
+
{/if}
{* Abstract *}
- {if $publication->getLocalizedData('abstract')}
-
- {translate key="common.abstract"}
- {$publication->getLocalizedData('abstract')|strip_unsafe_html}
+ {if $publication->getData('abstract')}
+
+
+ {translate key="common.abstract"}
+ {if isset($pubLocaleData.opts.abstract)}
+
+ {/if}
+
+ {$publicationAbstracts=$publication->getData('abstract')}
+ {$first=true}
+ {foreach from=$pubLocaleData.localeOrder item=$localeKey}
+ {if !isset($publicationAbstracts[$localeKey])}{continue}{/if}
+
+ {$publicationAbstracts[$localeKey]|strip_unsafe_html}
+
+ {if !isset($pubLocaleData.opts.abstract)}{break}{/if}
+ {$first=false}
+ {/foreach}
{/if}