Skip to content

[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
kuang5:kuang_local_hub_03182026
Open

[PURR][#2766]Update the name on publication page when user has updated it in user profile#1866
kuang5 wants to merge 1 commit intohubzero:2.4-mainfrom
kuang5:kuang_local_hub_03182026

Conversation

@kuang5
Copy link
Contributor

@kuang5 kuang5 commented Mar 18, 2026

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:

  1. Prepare a publication, set you as the author, then submit and approve it. Check the names in authors section and in the "Cite this work" section on publication page that your current last name displays over there.
  2. Change your last name in your user profile to a new one and save the changes. Go back to the publication page and check whether the last name in the authors section and in the "Cite this work" display the new last name that you just set.

I tested it on dev PURR and it works as expected.

Jerry

@kuang5 kuang5 requested review from dbenham and nkissebe as code owners March 18, 2026 20:02
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.

1 participant