diff --git a/parsers/aPlusPlus/AuthorParser.inc.php b/parsers/aPlusPlus/AuthorParser.inc.php index d001e02..99d0f7b 100644 --- a/parsers/aPlusPlus/AuthorParser.inc.php +++ b/parsers/aPlusPlus/AuthorParser.inc.php @@ -65,7 +65,9 @@ private function _processAuthor(\Publication $publication, \DOMNode $authorNode) $authorDao = \DAORegistry::getDAO('AuthorDAO'); $author = $authorDao->newDataObject(); $author->setData('givenName', $firstName, $this->getLocale()); - $author->setData('familyName', $lastName, $this->getLocale()); + if ($lastName) { + $author->setData('familyName', $lastName, $this->getLocale()); + } //$author->setData('preferredPublicName', "", $this->getLocale()); $author->setData('email', $this->selectText('Contact/Email', $authorNode) ?: $this->getConfiguration()->getEmail()); $author->setData('url', $this->selectText('Contact/URL', $authorNode)); diff --git a/parsers/jats/AuthorParser.inc.php b/parsers/jats/AuthorParser.inc.php index bc43434..5f23a0a 100644 --- a/parsers/jats/AuthorParser.inc.php +++ b/parsers/jats/AuthorParser.inc.php @@ -69,7 +69,9 @@ private function _processAuthor(\Publication $publication, \DOMNode $authorNode) $authorDao = \DAORegistry::getDAO('AuthorDAO'); $author = $authorDao->newDataObject(); $author->setData('givenName', $firstName, $this->getLocale()); - $author->setData('familyName', $lastName, $this->getLocale()); + if ($lastName) { + $author->setData('familyName', $lastName, $this->getLocale()); + } //$author->setData('preferredPublicName', "", $this->getLocale()); $author->setData('email', $email ?: $this->getConfiguration()->getEmail()); $author->setData('affiliation', $affiliation, $this->getLocale());