[PURR][#2766]Update the name on publication page when user has updated it in user profile#1866
Open
kuang5 wants to merge 1 commit intohubzero:2.4-mainfrom
Open
[PURR][#2766]Update the name on publication page when user has updated it in user profile#1866kuang5 wants to merge 1 commit intohubzero:2.4-mainfrom
kuang5 wants to merge 1 commit intohubzero:2.4-mainfrom
Conversation
…d it in user profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PURR Ticket:
https://purr.purdue.edu/support/ticket/2766
Issue:
We found that a PURR user changed her last name at some time and the new name shows up properly on DataCite, but the new name doesn't show up on the PURR publication page. We want the name to be automatically updated on publication page if a publication author, as well as a PURR user, changed the name in the user profile. The new name shows in the dataset's record on DataCite because the author changed name some time before her last visit to PURR in 2024 and I have been updated the dataset record on DataCite in December 2025, where the update process takes the author's name from PURR user profile.
Code changes:
Make changes to the function getUnlinkedContributors() to use the surname that comes from the PURR user profile when an author is also a PURR user, so that the citation in "Cite this work" section will be constructed using the latest names from the author, as well as PURR user, if such user has changed the last name in the PURR user profile. Also make changes to the name setting in contributors view of publication component, so that it always display the author's name from user profile rather than that is provided by the submitter in the author section on publication page.
Testing steps:
I tested it on dev PURR and it works as expected.
Jerry