diff --git a/classes/orcid/OrcidWork.php b/classes/orcid/OrcidWork.php index ccbf1a27914..74b27469a3e 100644 --- a/classes/orcid/OrcidWork.php +++ b/classes/orcid/OrcidWork.php @@ -94,10 +94,10 @@ protected function getOrcidPublicationType(): string protected function getBibtexCitation(Submission $submission): string { $request = Application::get()->getRequest(); - PluginRegistry::loadCategory('generic'); - /** @var CitationStyleLanguagePlugin $citationPlugin */ - $citationPlugin = PluginRegistry::getPlugin('generic', 'citationstylelanguageplugin'); try { + PluginRegistry::loadCategory('generic'); + /** @var CitationStyleLanguagePlugin $citationPlugin */ + $citationPlugin = PluginRegistry::getPlugin('generic', 'citationstylelanguageplugin'); return trim( strip_tags( $citationPlugin->getCitation(