From 8f63bbf1c2f066eef01540590fa5753d814fd6db Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Thu, 9 May 2024 08:33:20 -0700 Subject: [PATCH] WIP: Bug fixes --- classes/orcid/OrcidWork.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(