Skip to content
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

pkp/pkp-lib#10792 update ORCiD branding #10829

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

taslangraham
Copy link
Contributor

@taslangraham taslangraham commented Jan 21, 2025

For #10792

@taslangraham taslangraham marked this pull request as ready for review January 21, 2025 16:37
@taslangraham taslangraham changed the title pkp/pkp-lib#10792 WIP:update brand guideline pkp/pkp-lib#10792 update ORCiD branding Jan 21, 2025
@@ -24,8 +24,8 @@
<span class="date_start">{translate key="common.fromUntil" from=$mastheadUser['dateStart'] until=""}</span>
<span class="name">
{$mastheadUser['user']->getFullName()|escape}
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken')}
<span class="orcid">
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken') && $mastheadUser['user']->hasVerifiedOrcid()}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should remove the check for the orcidAccessToken as the addition of hasVerifiedOrcid covers this better.

@@ -30,7 +30,7 @@
</span>
<span class="name">
{$mastheadUser['user']->getFullName()|escape}
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken')}
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken') && $mastheadUser['user']->hasVerifiedOrcid()}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should remove the check for the orcidAccessToken as the addition of hasVerifiedOrcid covers this better.

return null;
}

return $this->hasVerifiedOrcid() ? $this->getOrcid() : $this->getOrcid() . ' (' . __('orcid.unauthenticated') . ')';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't really have a strong opinion on it, but did you consider having the parenthesis as part of the locale string instead of direct formatting here? I don't know if there would be any circumstances where other languages would have issues with this formatting, but just wanted to throw it out there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't quite remember why I decided to format it in PHP, but I've found existing strings with parenthesis in the locale files so I've moved these to the locale string.

@taslangraham taslangraham force-pushed the i10792-main branch 2 times, most recently from b27797f to e28dd00 Compare January 24, 2025 15:50
@taslangraham taslangraham merged commit 3f903cb into pkp:main Jan 24, 2025
1 check passed
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