Skip to content

Commit fe812f5

Browse files
authoredFeb 6, 2025
Merge pull request #25 from bozana/7135
pkp/pkp-lib#7135 Multiple author affiliations (Ror)
2 parents 1189965 + 6b0f9d3 commit fe812f5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎GoogleScholarPlugin.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* @file plugins/generic/googleScholar/GoogleScholarPlugin.php
55
*
6-
* Copyright (c) 2014-2020 Simon Fraser University
7-
* Copyright (c) 2003-2020 John Willinsky
6+
* Copyright (c) 2014-2025 Simon Fraser University
7+
* Copyright (c) 2003-2025 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
99
*
1010
* @class GoogleScholarPlugin
@@ -24,7 +24,6 @@
2424
use PKP\citation\CitationDAO;
2525
use PKP\core\PKPApplication;
2626
use PKP\db\DAORegistry;
27-
use PKP\i18n\LocaleConversion;
2827
use PKP\plugins\GenericPlugin;
2928
use PKP\plugins\Hook;
3029

@@ -116,8 +115,11 @@ public function submissionView($hookName, $args)
116115
$authors = $publication->getData('authors');
117116
foreach ($authors as $i => $author) {
118117
$templateMgr->addHeader('googleScholarAuthor' . $i, '<meta name="citation_author" content="' . htmlspecialchars($author->getFullName(false, false, $publicationLocale)) . '"/>');
119-
if ($affiliation = $author->getLocalizedData('affiliation', $publicationLocale)) {
120-
$templateMgr->addHeader('googleScholarAuthor' . $i . 'Affiliation', '<meta name="citation_author_institution" content="' . htmlspecialchars($affiliation) . '"/>');
118+
foreach($author->getAffiliations() as $affiliation) {
119+
$templateMgr->addHeader(
120+
'googleScholarAuthor' . $i . 'Affiliation' . $affiliation->getId(),
121+
'<meta name="citation_author_institution" content="' . htmlspecialchars($affiliation->getLocalizedName($publicationLocale)) . '"/>'
122+
);
121123
}
122124
}
123125

0 commit comments

Comments
 (0)