Skip to content

Commit

Permalink
pkp/pkp-lib#9926 submissionBestId in onix export data
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson authored and asmecher committed Jun 18, 2024
1 parent 0fdd6be commit 68bf69e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,13 @@ function createProductNode($doc, $submission, $publicationFormat) {

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

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

if ($publication->getData('urlPath') != '') {
$websiteUrlId = $publication->getData('urlPath');
$submissionBestId = $publication->getData('urlPath');
}

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

/* --- Publishing Dates --- */

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

$supplierWebsiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteRole', '29')); // 29 -> Web page for full content
$supplierWebsiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteLink', $request->url($context->getPath(), 'catalog', 'book', $websiteUrlId)));

$supplierWebsiteNode->appendChild($this->_buildTextNode($doc, 'WebsiteLink', $request->url($context->getPath(), 'catalog', 'book', $submissionBestId)));
unset($supplierNode);
unset($supplierWebsiteNode);

Expand Down

0 comments on commit 68bf69e

Please sign in to comment.