Skip to content

Commit

Permalink
pkp/pkp-lib#9927 add cover image to onix export data
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Jun 12, 2024
1 parent 8b6e959 commit 59eb9f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/importexport/onix30/filter/MonographONIX30XmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,17 @@ public function createProductNode($doc, $submission, $publicationFormat)
$textContentNode->appendChild($this->_buildTextNode($doc, 'ContentAudience', '00')); // Any audience
$textContentNode->appendChild($this->_buildTextNode($doc, 'Text', $abstract)); // Any audience

$supportingResourceNode = $doc->createElementNS($deployment->getNamespace(), 'SupportingResource');
$collateralDetailNode->appendChild($supportingResourceNode);
$supportingResourceNode->appendChild($this->_buildTextNode($doc, 'ResourceContentType', '01')); // Front cover
$supportingResourceNode->appendChild($this->_buildTextNode($doc, 'ContentAudience', '00')); // Any audience
$supportingResourceNode->appendChild($this->_buildTextNode($doc, 'ResourceMode', '03')); // A still image

$resourceVersionNode = $doc->createElementNS($deployment->getNamespace(), 'ResourceVersion');
$supportingResourceNode->appendChild($resourceVersionNode);
$resourceVersionNode->appendChild($this->_buildTextNode($doc, 'ResourceForm', '01')); // Linkable resource
$resourceVersionNode->appendChild($this->_buildTextNode($doc, 'ResourceLink', $publication->getLocalizedCoverImageUrl($context->getId())));

/* --- Publishing Detail --- */

$publishingDetailNode = $doc->createElementNS($deployment->getNamespace(), 'PublishingDetail');
Expand Down

0 comments on commit 59eb9f1

Please sign in to comment.