@@ -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}
From 56dc94230a1ed7b6de2ef84f44619195d1ef6d79 Mon Sep 17 00:00:00 2001
From: jyhein <124268211+jyhein@users.noreply.github.com>
Date: Wed, 23 Oct 2024 14:47:24 +0300
Subject: [PATCH 2/2] Submodule update ##jyhein/main##
---
lib/pkp | 2 +-
lib/ui-library | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pkp b/lib/pkp
index f28675c115..270bb11cc0 160000
--- a/lib/pkp
+++ b/lib/pkp
@@ -1 +1 @@
-Subproject commit f28675c1152856bf8c289d5f98ae580bfc59829c
+Subproject commit 270bb11cc060202ef27a29094e59f2e08c5db8cc
diff --git a/lib/ui-library b/lib/ui-library
index 5b972e8d67..1058975480 160000
--- a/lib/ui-library
+++ b/lib/ui-library
@@ -1 +1 @@
-Subproject commit 5b972e8d6788333543426246bea37ba2c907085b
+Subproject commit 105897548065472f9aec5c9d6dd1854e7865f688