Skip to content

Commit

Permalink
#65 Fallback if full-text doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Dec 15, 2021
1 parent 8de1372 commit 1f000a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JatsParserPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ public function addCitationsFormFields(string $hookName, FormComponent $form): v
$publication = Services::get('publication')->get($publicationId);
if (!$publication) return;

$submissionFileIds = array_unique($publication->getData('jatsParser::fullTextFileId'));
$submissionFileIds = array_unique($publication->getData('jatsParser::fullTextFileId') ?? []);
if (empty($submissionFileIds)) return;

$submissionFileDao = DAORegistry::getDAO('SubmissionFileDAO');
Expand Down

0 comments on commit 1f000a5

Please sign in to comment.