Skip to content

A plugin to pull ORCID information into a PKP user profile

License

Notifications You must be signed in to change notification settings

withanage/orcidProfile

This branch is 8 commits behind pkp/orcidProfile:stable-3_3_0.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f38eb7 · Nov 17, 2023
Sep 5, 2020
Nov 28, 2021
Sep 5, 2020
Nov 15, 2021
Mar 12, 2023
Nov 17, 2023
Jul 3, 2023
Nov 15, 2021
Feb 27, 2020
Nov 14, 2023
Jul 8, 2023
Feb 27, 2020
Aug 28, 2021
Oct 31, 2023

Repository files navigation

Build Status

Table of Contents

ORCID Profile Plugin

NOTE: Please ensure you're using the correct branch. See the Releases area for packaged downloads. We recommend using the Plugin Gallery to install the plugin. For OJS 2.x, see the ojs-dev-2_4 branch.

Plugin for adding and verifying ORCID iD in PKP user profiles and author metadata.

Copyright © 2015-2019 University of Pittsburgh Copyright © 2014-2020 Simon Fraser University Copyright © 2003-2020 John Willinsky

Licensed under GPLv3. See LICENSE.txt for details.

User Documentation

Features:

  • Enable site-wide configuration of ORCID API settings using config.inc.php
  • Support ORCID API Version 2.1 (store only https ORCID Ids)
  • Allow journal managers to send e-mails requesting authors for ORCID authorization on submission or later.
  • Automated e-mail based authorization requests to authors when submission enters to production stage.
  • Display ORCID access status and expiration date in Author metadata
  • Support of template based detailed success/failure messages for ORCID authorization redirects.
  • Extra configurable (in plugin settings) ORCID log file in OJS_FILES_DIR/orcid.log for API communication. NOTE: Make sure that the files folder is not publicly accessible

Extra functionalities for ORCID Member organizations

  • Extra e-mail template ORCID_REQUEST_AUTHOR_AUTHORIZATION for requesting API access tokens.
  • Updated template text, e-mail templates for English and German locales.
  • Member API Email-Template activated upon selection of ORCID member API
  • Support for synchronizing submission meta data to authorized records in follwing stage changes:
    • Assign a submission to an already published issue
    • Publish a new issue
    • Author grants permission after the publication of the issue

Technical Workflow description

The included authorization link will have the access scope /activities/update. An author can authorize access to his/her ORCID record to allow the adding of the submission to the record. See https://members.orcid.org/api/oauth/orcid-scopes for more information.

Installation

Use the Plugin Gallery from within your PKP application to install the plugin. For further information refer to PKP|DOCS.

Setting a custom redirect URI

In case your Orcid redirect URI does not correspond to your journal base Url (e.g. you may use a centralized redirect server if you have one institutional Orcid account but are running multiple journals on different domains) you may add a variable to the OJS config.inc.php file to overwrite the default redirect base Url as in the follwoing example

[orcid]
orcid_redirect_base_url = "https://my_orcid_redirect.url/"

Debugging/Testing

Settings

  • Navigate to OJS Folder.
  • if a file called cypress.env.json does not exist, create one.
  • Add the following variables to the root JSON element, according to your server setting
"orcid": {
	"url": "https://sandbox.orcid.org",
	"apiPath": "https://api.sandbox.orcid.org",
 	"api Type": "Member Sandbox"
	"clientId": "APP-T0XXXXXXXXXXX",
	"clientSecret": "288455445-a3e4-454-9783-454545555",
	"email": "coauthor@mailinator.com",
	"emailPassword": "Password"
  },

Run all tests

Navigate to OJS folder

  • npx cypress run --config integrationFolder=plugins/generic/orcidProfile/cypress/tests/functional

Run Plugin setup

  • npx cypress run --config integrationFolder=plugins/generic/orcidProfile/cypress/tests/functional/ --spec plugins/generic/orcidProfile/cypress/tests/functional/01-Orcid-Setup.spec.js

Run Authorization

  • npx cypress run --config integrationFolder=plugins/generic/orcidProfile/cypress/tests/functional/ --spec plugins/generic/orcidProfile/cypress/tests/functional/02-Orcid-API.spec.js

Debug

  • Navigate to OJS Folder
  • Navigate to cypress folder
  • check logs and screenshots for errors

About

A plugin to pull ORCID information into a PKP user profile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 87.5%
  • Smarty 11.3%
  • Other 1.2%