From 86c0b69a6a694c8247806df67f79fa10e1759dbf Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Thu, 16 Nov 2023 14:08:16 -0800 Subject: [PATCH] pkp/pkp-lib#9374 Make author bio multilingual --- JatsTemplatePlugin.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/JatsTemplatePlugin.inc.php b/JatsTemplatePlugin.inc.php index 837e6ef..9f4ab74 100644 --- a/JatsTemplatePlugin.inc.php +++ b/JatsTemplatePlugin.inc.php @@ -181,8 +181,12 @@ function toXml(&$record, $format = null) { $config->set('Cache.SerializerPath', 'cache'); $purifier = new HTMLPurifier($config); } - $response .= (($bio = $author->getLocalizedBiography()) != '' ? "\t\t\t\t\t" . $purifier->purify($bio) . '\n' : '') . - "\t\t\t\t\n"; + + foreach ($author->getData('biography') as $locale => $bio) { + $response .= "\t\t\t\t\t" . $purifier->purify($bio) . "\n"; + } + + $response .= "\t\t\t\t\n"; } $response .= "\t\t\t\n"; foreach ($affiliations as $affiliationToken => $affiliation) {