Skip to content

Commit

Permalink
WIP: Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed May 9, 2024
1 parent fcfc223 commit 8f63bbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/orcid/OrcidWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8f63bbf

Please sign in to comment.