Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ About
-----
This plugin for OJS 3 provides an import/export plugin to generate metadata information for articles
and issues for indexing in CrossRef. Details on the XML format and data requirements is available at:
http://www.crossref.org/schema
https://www.crossref.org/documentation/schema-library/

License
-------
Expand Down
4 changes: 3 additions & 1 deletion filter/ArticleCrossrefXmlFilter.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ public function createJournalArticleNode($doc, $submission)
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'given_name', htmlspecialchars(ucfirst($givenNames[$locale]), ENT_COMPAT, 'UTF-8')));
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'surname', htmlspecialchars(ucfirst($familyNames[$locale]), ENT_COMPAT, 'UTF-8')));
$hasAltName = false;

if ($author->getData('affiliation')) {
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'affiliation', htmlspecialchars(ucfirst($author->getLocalizedAffiliation()), ENT_COMPAT, 'UTF-8')));
}
if ($author->getData('orcid')) {
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'ORCID', $author->getData('orcid')));
}
Expand Down
2 changes: 1 addition & 1 deletion filter/IssueCrossrefXmlFilter.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function createJournalIssueNode($doc, $issue) {
$journalVolumeNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'volume', htmlspecialchars($issue->getVolume(), ENT_COMPAT, 'UTF-8')));
$journalIssueNode->appendChild($journalVolumeNode);
}
if ($issue->getNumber() && $issue->getShowNumber()) {
if ($issue->getNumber()) {
$journalIssueNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'issue', htmlspecialchars($issue->getNumber(), ENT_COMPAT, 'UTF-8')));
}
if ($issue->getDatePublished() && $issue->getStoredPubId('doi')) {
Expand Down