Skip to content

Commit 68bf69e

Browse files
kaitlinnewsonasmecher
authored andcommitted
pkp/pkp-lib#9926 submissionBestId in onix export data
1 parent 0fdd6be commit 68bf69e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

plugins/importexport/onix30/filter/MonographONIX30XmlFilter.inc.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ function createProductNode($doc, $submission, $publicationFormat) {
520520

521521
$websiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteRole', '29')); // 29 -> Web page for full content
522522

523-
$websiteUrlId = $publication->getData('submissionId');
523+
$submissionBestId = $publication->getData('submissionId');
524524

525525
if ($publication->getData('urlPath') != '') {
526-
$websiteUrlId = $publication->getData('urlPath');
526+
$submissionBestId = $publication->getData('urlPath');
527527
}
528528

529-
$websiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteLink', $request->url($context->getPath(), 'catalog', 'book', $websiteUrlId)));
529+
$websiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteLink', $request->url($context->getPath(), 'catalog', 'book', $submissionBestId)));
530530

531531
/* --- Publishing Dates --- */
532532

@@ -690,8 +690,7 @@ function createProductNode($doc, $submission, $publicationFormat) {
690690
$supplierNode->appendChild($supplierWebsiteNode);
691691

692692
$supplierWebsiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteRole', '29')); // 29 -> Web page for full content
693-
$supplierWebsiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteLink', $request->url($context->getPath(), 'catalog', 'book', $websiteUrlId)));
694-
693+
$supplierWebsiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteLink', $request->url($context->getPath(), 'catalog', 'book', $submissionBestId)));
695694
unset($supplierNode);
696695
unset($supplierWebsiteNode);
697696

0 commit comments

Comments
 (0)