Skip to content

Commit

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

0 comments on commit 938db77

Please sign in to comment.