From 24874a019b0e85f7a11e1649bbaec0b3125cae01 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Tue, 18 Jun 2024 13:55:23 -0300 Subject: [PATCH] pkp/pkp-lib#9784 get unlocalized authorship metadata in onix export --- .../importexport/onix30/filter/MonographONIX30XmlFilter.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/importexport/onix30/filter/MonographONIX30XmlFilter.inc.php b/plugins/importexport/onix30/filter/MonographONIX30XmlFilter.inc.php index 7ca4c146054..08a626a5bbd 100644 --- a/plugins/importexport/onix30/filter/MonographONIX30XmlFilter.inc.php +++ b/plugins/importexport/onix30/filter/MonographONIX30XmlFilter.inc.php @@ -322,7 +322,7 @@ function createProductNode($doc, $submission, $publicationFormat) { $userGroupOnixMap = array('AU' => 'A01', 'VE' => 'B01', 'CA' => 'A01', 'Trans' => 'B06', 'PE' => 'B21'); // From List17, ContributorRole types. - $role = array_key_exists($userGroup->getLocalizedAbbrev(), $userGroupOnixMap) ? $userGroupOnixMap[$userGroup->getLocalizedAbbrev()] : 'Z99'; // Z99 - unknown contributor type. + $role = array_key_exists($userGroup->getAbbrev($publication->getData('locale')), $userGroupOnixMap) ? $userGroupOnixMap[$userGroup->getAbbrev($publication->getData('locale'))] : 'Z99'; // Z99 - unknown contributor type. $contributorNode->appendChild($this->_buildTextNode($doc, 'ContributorRole', $role)); $contributorNode->appendChild($this->_buildTextNode($doc, 'PersonName', $author->getFullName(false)));