Skip to content

Additional fixes and text changes for the about page Stable 3 1 2#77

Open
nils-stefan-weiher wants to merge 15 commits into
pkp:stable-3_1_2from
UB-Heidelberg:stable-3_1_2
Open

Additional fixes and text changes for the about page Stable 3 1 2#77
nils-stefan-weiher wants to merge 15 commits into
pkp:stable-3_1_2from
UB-Heidelberg:stable-3_1_2

Conversation

@nils-stefan-weiher

@nils-stefan-weiher nils-stefan-weiher commented Sep 11, 2019

Copy link
Copy Markdown

Hi everyone,

I had some time to work on several Issues with the ORCID plugin in OJS 3.1.2.

In this pull request the ORCID icon display problems should be addressed for multiple authors.
Collected here in this issue: https://github.com/pkp/pkp-lib/issues/4935.

Also additional checks during the ORCID authorization should not write empty ORCID Ids to the database, should address the following: https://github.com/pkp/pkp-lib/issues/4852

The about page got the correct text and locale keys for english and german locales, should fix the following issue:
https://github.com/pkp/pkp-lib/issues/5007

I also added code to distinguish betweend sandbox ORCID ids in the user profile display, but not yet for the article page or the contributor form: pkp/pkp-lib#4893

Other issues would be addressed in the future, as we are in the progress of updating our OJS instances to 3.1.2 and the plugin may be used more.

Regards,

Nils Weiher

@asmecher asmecher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @isgrim, just a couple of small tweaks to recommend. There are a bunch of functions missing their code self-documentation so that would be a welcome addition as well, if you like. Let me know once you've had a chance to look these comments over and push up any changes, and I'll merge and forward-port to master! I haven't tested the changes, just reviewed the code by eye. Thanks!

$response = json_decode($result, true);
$orcid = $response['orcid'];
if (!$orcid) {
// error during authorization

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend using the fatalError function in this case, especially since we're not using e.g. a template to format a user-facing error page in the standard OJS layout. Alternately, we're starting to make more use of Exceptions; that would be OK as well.

Comment thread templates/orcidAbout.tpl
<h3>{translate key="plugins.generic.orcidProfile.about.howAndWhy.title"}</h3>
<div class="description">
{translate key="plugins.generic.orcidProfile.about.howAndWhy"}
{$contextName}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs |escape Smarty filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants