Skip to content

Commit 148c417

Browse files
authored
Merge pull request #2116 from kaitlinnewson/11795-3_5_0
pkp/pkp-lib#11795 fix retrieval of press publisher name
2 parents b79e41f + 2fc88ed commit 148c417

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

classes/sushi/TR.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function getReportItems(): array
280280
$item = [
281281
'Title' => $itemTitle,
282282
'Platform' => $this->platformName,
283-
'Publisher' => $this->context->getData('publisherInstitution'),
283+
'Publisher' => $this->context->getData('publisher'),
284284
];
285285
$item['Item_ID'][] = [
286286
'Type' => 'Proprietary',
@@ -376,7 +376,7 @@ public function getReportItems(): array
376376
$item = [
377377
'Title' => $itemTitle,
378378
'Platform' => $this->platformName,
379-
'Publisher' => $this->context->getData('publisherInstitution'),
379+
'Publisher' => $this->context->getData('publisher'),
380380
];
381381
$item['Item_ID'][] = [
382382
'Type' => 'Proprietary',
@@ -579,7 +579,7 @@ public function getTSVReportItems(): array
579579
// construct the result row
580580
$resultRow = [
581581
$itemTitle, // Title
582-
$this->context->getData('publisherInstitution'), // Publisher
582+
$this->context->getData('publisher'), // Publisher
583583
'', // Publisher ID
584584
$this->platformName, // Platform
585585
$doi ?? '', // DOI
@@ -686,7 +686,7 @@ public function getTSVReportItems(): array
686686
// construct the result row
687687
$resultRow = [
688688
$itemTitle, // Title
689-
$this->context->getData('publisherInstitution'), // Publisher
689+
$this->context->getData('publisher'), // Publisher
690690
'', // Publisher ID
691691
$this->platformName, // Platform
692692
$doi ?? '', // DOI

plugins/metadata/dc11/filter/Dc11SchemaPublicationFormatAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ public function extractMetadataFromDataObject(&$publicationFormat)
108108
$this->_addLocalizedElements($dc11Description, 'dc:description', $publication->getData('abstract'));
109109

110110
// Publisher
111-
$publisherInstitution = $press->getSetting('publisherInstitution');
112-
if (!empty($publisherInstitution)) {
113-
$publishers = [$press->getPrimaryLocale() => $publisherInstitution];
111+
$publisher = $press->getSetting('publisher');
112+
if (!empty($publisher)) {
113+
$publishers = [$press->getPrimaryLocale() => $publisher];
114114
} else {
115115
$publishers = $press->getName(null); // Default
116116
}

0 commit comments

Comments
 (0)