Skip to content

Commit

Permalink
Merge pull request pkp#1771 from kaitlinnewson/10173-3_4_0
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10173 make recordreference unique for pub format in ONIX …
  • Loading branch information
bozana authored Dec 2, 2024
2 parents 894c38c + 164d593 commit 6db1dae
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ public function createProductNode($doc, $submission, $publicationFormat, $identi
$productNode = $doc->createElementNS($deployment->getNamespace(), 'Product');

$request = Application::get()->getRequest();
$productNode->appendChild($this->_buildTextNode($doc, 'RecordReference', $request->url($context->getPath(), 'monograph', 'view', [$submission->getId()])));

// Create the RecordReference
$host = $request->getServerHost(null, false);
$path = $context->getPath();
$pubId = $publicationFormat->getId();
$recordReference = $host . '.' . $path . '.' . $pubId;

$productNode->appendChild($this->_buildTextNode($doc, 'RecordReference', $recordReference));
$productNode->appendChild($this->_buildTextNode($doc, 'NotificationType', '03'));
$productNode->appendChild($this->_buildTextNode($doc, 'RecordSourceType', '04')); // Bibliographic agency

Expand Down

0 comments on commit 6db1dae

Please sign in to comment.