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 Feb 7, 2023
1 parent d032a9c commit 36199ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions OrcidProfilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* @brief ORCID Profile plugin class
*/


namespace APP\plugins\generic\orcidProfile;


define('ORCID_URL', 'https://orcid.org/');
define('ORCID_URL_SANDBOX', 'https://sandbox.orcid.org/');
define('ORCID_API_URL_PUBLIC', 'https://pub.orcid.org/');
Expand Down
4 changes: 2 additions & 2 deletions emailTemplates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
* Email templates XML file.
-->
<emails>
<email key="ORCID_COLLECT_AUTHOR_ID" subject="emails.orcidCollectAuthorId.subject" body="emails.orcidCollectAuthorId.body"/>
<email key="ORCID_REQUEST_AUTHOR_AUTHORIZATION" subject="emails.orcidRequestAuthorAuthorization.subject" body="emails.orcidRequestAuthorAuthorization.body"/>
<email key="ORCID_COLLECT_AUTHOR_ID" name="plugins.generic.orcidProfile.orcidCollectAuthorId.name" subject="emails.orcidCollectAuthorId.subject" body="emails.orcidCollectAuthorId.body"/>
<email key="ORCID_REQUEST_AUTHOR_AUTHORIZATION" name="plugins.generic.orcidProfile.orcidRequestAuthorAuthorization.name" subject="emails.orcidRequestAuthorAuthorization.subject" body="emails.orcidRequestAuthorAuthorization.body"/>
</emails>
4 changes: 1 addition & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@
*
*/

require_once('OrcidProfilePlugin.php');

return new OrcidProfilePlugin();
return new \APP\plugins\generic\orcidProfile\OrcidProfilePlugin();
4 changes: 2 additions & 2 deletions locale/en_US/emails.po
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ msgid "emailTemplate.variable.orcidAboutUrl"
msgstr "URL to the page about ORCID"

msgid "plugins.generic.orcidProfile.orcidRequestAuthorAuthorization.name"
msgstr ""
msgstr "orcidRequestAuthorAuthorization"

msgid "plugins.generic.orcidProfile.orcidCollectAuthorId.name"
msgstr ""
msgstr "orcidCollectAuthorId"

0 comments on commit 36199ca

Please sign in to comment.