Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jan 21, 2025
1 parent 42cc2e9 commit 9f1a18b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CrossrefExportDeployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/

namespace APP\plugins\generic\crossref;

use APP\issue\Issue;
use APP\journal\Journal;
use PKP\plugins\Plugin;
Expand Down
4 changes: 2 additions & 2 deletions filter/ArticleCrossrefXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function createJournalArticleNode($doc, $submission)
if ($subtitle = $publication->getLocalizedSubTitle($lang, 'html')) {
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle'));
$node->appendChild($doc->createTextNode($subtitle));
}
}
$journalArticleNode->appendChild($titlesNode);
$languageCounter++;
if ($languageCounter > 20) {
Expand Down Expand Up @@ -201,7 +201,7 @@ public function createJournalArticleNode($doc, $submission)

// abstract
$abstracts = $publication->getData('abstract') ?: [];
foreach($abstracts as $lang => $abstract) {
foreach ($abstracts as $lang => $abstract) {
$abstractNode = $doc->createElementNS($deployment->getJATSNamespace(), 'jats:abstract');
$abstractNode->setAttributeNS($deployment->getXMLNamespace(), 'xml:lang', str_replace(['_', '@'], '-', $lang));
$abstractNode->appendChild($node = $doc->createElementNS($deployment->getJATSNamespace(), 'jats:p', htmlspecialchars(html_entity_decode(strip_tags($abstract), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8')));
Expand Down

0 comments on commit 9f1a18b

Please sign in to comment.