Skip to content

Commit

Permalink
Merge pull request #40 from bozana/9959-3_4_0
Browse files Browse the repository at this point in the history
pkp/pkp-lib#9959 use createTextNode for preprint subtitle in order to…
  • Loading branch information
bozana authored May 22, 2024
2 parents f7cb5d9 + 2bf424e commit 8443853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filter/PreprintCrossrefXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ public function createPostedContentNode($doc, $publication, $submission)
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'title'));
$node->appendChild($doc->createTextNode($publication->getLocalizedTitle($submission->getLocale(), 'html')));
if ($subtitle = $publication->getLocalizedSubTitle($submission->getLocale(), 'html')) {
$titlesNode->appendChild($doc->createElementNS($deployment->getNamespace(), 'subtitle', $subtitle));
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle'));
$node->appendChild($doc->createTextNode($subtitle));
}
$postedContentNode->appendChild($titlesNode);

Expand Down

0 comments on commit 8443853

Please sign in to comment.