-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
orcidProfile plugin option for email is unimplemented #112
Comments
pkp/pkp-lib#4998: Enable editorialAction hook only if email option is enabled.
I haven't actually tested this patch, and I fear that it will not work as expected if We probably need something like:
|
pkp/pkp-lib#4998: find current context if main context id is missing
Merged and cherry-picked the additional commit; thanks, @ctgraham! |
Hi @asmecher, I think there is an s missing in "sendMailToAuthorOnPublication"? |
New PR filed. Thanks, @ohilbig01 ! |
pkp/pkp-lib#4998: Correct optional mail sending variable name
Thanks, @ohilbig01 and @ctgraham -- merged and cherry-picked to |
Thanks @ohilbig01 and @ctgraham . That was a real big oversight from me. |
Hi, Noticed a potential problem with this same hook. The setting says "Send e-mail to request ORCID authorization from article authors on publication of a new issue" But the setting enables this hook here: https://github.com/pkp/orcidProfile/blob/master/OrcidProfilePlugin.inc.php#L75 It is attached to this function https://github.com/pkp/orcidProfile/blob/master/OrcidProfilePlugin.inc.php#L716-L726 which does not check what kind of decision is done. So the hook fires on every editorial decision I think. Meaning it could fire multiple times during the workflow. Explaining a recent forum post here: https://forum.pkp.sfu.ca/t/limit-orcid-plugin-notifications/57170 I already discussed this with @withanage and my suggestion is:
After that ORCIDs are collected and emails sent in three cases:
|
@ajnyga, do you want to write up a PR for this fix, or are you looking for someone else to pick it up? |
Sounds like a plan to me. Looks good here. |
@ajnyga, the PRs above were merged -- is this issue ready to be closed? |
Describe the bug
The orcidProfile plugin settings form offers an option "Send e-mail to request ORCID authorization from article authors on publication of a new issue", but this setting is not referenced anywhere in the code, so mail is always sent on publication.
Reported: https://forum.pkp.sfu.ca/t/ojs-3-1-2-1-orcid-collect-letters-cannot-be-disabled/55206
To Reproduce
Steps to reproduce the behavior:
What application are you using?
OJS or OMP version 3.1.2
Additional information
orcidProfile/templates/settingsForm.tpl
Lines 48 to 50 in 65b4c3b
vs.
orcidProfile/OrcidProfilePlugin.inc.php
Lines 705 to 723 in 65b4c3b
The text was updated successfully, but these errors were encountered: