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 d0d9575 commit f5ba558
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
17 changes: 4 additions & 13 deletions OrcidProfilePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,6 @@ public function register($category, $path, $mainContextId = null)
return $success;
}

/**
* Get page handler path for this plugin.
*
* @return string Path to plugin's page handler
*/
public function getHandlerPath()
{
return "{$this->getPluginPath()}/pages";
}


/**
* @param $hookName
Expand Down Expand Up @@ -839,13 +829,14 @@ public function manage($args, $request)

$templateMgr = TemplateManager::getManager();
$templateMgr->registerPlugin('function', 'plugin_url', [$this, 'smartyPluginUrl']);
$apiOptions = [

$templateMgr->assign('orcidApiUrls', [
ORCID_API_URL_PUBLIC => 'plugins.generic.orcidProfile.manager.settings.orcidProfileAPIPath.public',
ORCID_API_URL_PUBLIC_SANDBOX => 'plugins.generic.orcidProfile.manager.settings.orcidProfileAPIPath.publicSandbox',
ORCID_API_URL_MEMBER => 'plugins.generic.orcidProfile.manager.settings.orcidProfileAPIPath.member',
ORCID_API_URL_MEMBER_SANDBOX => 'plugins.generic.orcidProfile.manager.settings.orcidProfileAPIPath.memberSandbox'
];
$templateMgr->assign('orcidApiUrls', $apiOptions);
]);

$templateMgr->assign('logLevelOptions', [
'ERROR' => 'plugins.generic.orcidProfile.manager.settings.logLevel.error',
'ALL' => 'plugins.generic.orcidProfile.manager.settings.logLevel.all'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

namespace APP\plugins\generic\orcidProfile\classes\form;

use APP\core\Application;
use PKP\form\Form;
use APP\plugins\generic\orcidProfile\classes\OrcidValidator;
use APP\template\TemplateManager;


class OrcidProfileSettingsForm extends Form {
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions pages/OrcidHandler.inc.php → pages/OrcidHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* @brief Pass off internal ORCID API requests to ORCID
*/

namespace APP\plugins\generic\orcidProfile\pages;


use APP\core\Application;
use APP\facades\Repo;
use APP\handler\Handler;
Expand Down

0 comments on commit f5ba558

Please sign in to comment.