Skip to content

Commit

Permalink
pkp#229 OrcidProfilePlugin-705
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Jan 29, 2023
1 parent f4d5054 commit 8ddadd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OrcidProfilePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public function register($category, $path, $mainContextId = null)
});

Hook::add('Mailer::Mailables', [$this, 'addMailable']);

Hook::add('Form::config::before', [$this, 'addOrcidFormFields']);
}

return $success;
Expand Down Expand Up @@ -526,7 +528,7 @@ public function handleUserPublicProfileDisplay($hookName, $params)
*/
public function authorFormFilter($output, $templateMgr)
{
if (preg_match('/<input[^>]+name="submissionId"[^>]*>/', $output, $matches, PREG_OFFSET_CAPTURE)) {
/*if (preg_match('/<input[^>]+name="submissionId"[^>]*>/', $output, $matches, PREG_OFFSET_CAPTURE)) {
$match = $matches[0][0];
$offset = $matches[0][1];
$templateMgr->assign('orcidIcon', $this->getIcon());
Expand All @@ -536,7 +538,7 @@ public function authorFormFilter($output, $templateMgr)
$output = $newOutput;
$templateMgr->unregisterFilter('output', [$this, 'authorFormFilter']);
}
return $output;
return $output;*/
}

/**
Expand Down

0 comments on commit 8ddadd6

Please sign in to comment.