Skip to content

Commit

Permalink
pkp/pkp-lib#10173 make recordreference unique for pub format in ONIX …
Browse files Browse the repository at this point in the history
…export
  • Loading branch information
kaitlinnewson committed Nov 21, 2024
1 parent 4810a3a commit 164d593
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 164d593

Please sign in to comment.