diff --git a/GoogleScholarPlugin.php b/GoogleScholarPlugin.php index 344c497..75283ce 100644 --- a/GoogleScholarPlugin.php +++ b/GoogleScholarPlugin.php @@ -3,8 +3,8 @@ /** * @file plugins/generic/googleScholar/GoogleScholarPlugin.php * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * Copyright (c) 2014-2024 Simon Fraser University + * Copyright (c) 2003-2024 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class GoogleScholarPlugin @@ -115,8 +115,13 @@ public function submissionView($hookName, $args) $authors = $publication->getData('authors'); foreach ($authors as $i => $author) { $templateMgr->addHeader('googleScholarAuthor' . $i, ''); - if ($affiliation = $author->getLocalizedData('affiliation', $publicationLocale)) { - $templateMgr->addHeader('googleScholarAuthor' . $i . 'Affiliation', ''); + foreach($author->getLocalizedAffiliations($publicationLocale) as $affiliation) { + if (!empty($affiliation['name'])) { + $templateMgr->addHeader( + 'googleScholarAuthor' . $i . 'Affiliation' . $affiliation['id'], + '' + ); + } } }