When checking the DOI metadata set on DataCite, I found that the first name and last name of publication contact who is invited author are missing.
Both PURR user and invited author that were added in publication workflow can be set as publication contact. However, the first name and last name of PURR user refer to properties that are different from those of the invited author in PURR database. The changes are to reference the right first name and right last name separately for PURR user and invited author when they are set as contact person of a publication.
Test:
Create a publication, add an author that is not a PURR user to the publication, as well as an existing PURR user to the publication.
On publication review page, click on the checkbox before the author name in contact setting box, and submit the publication, approve the publication.
Login on doi.test.datacite.org, find the published dataset, open the metadata xml and check whether the contact persons all have given name and family name set.
I tested it locally and the result passed.
[PURR][#2487]Fix issue that email address check not pass when submitting the dataset in publication workflow
When submitting an publication, we need to check whether the email address is empty for the publication contact. When the contact is an invited author, it's possible that the email address is not set in his or her profile. Because the invited author is not a PURR user, the PURR user_id for such kind of author is 0 in database. The change is to add checking for not only the email address but also the user_id to make the condition comprehensive. PURR user always has both none-zero user_id and valid email address, so we don't have to check the publication contact who is a PURR user when submitting a publication. I'm going to commit changes to hubzero git repository.
Test:
Create a file publication, add an invited author in author section, but without entering the email address
Click checkbox before the invited author on publication review page to set the author as contact of the publication
Submit the publication. The expected result is that it prompts that a valid email address is required for the contact who is invited author.
Following the prompt to edit the contact to add the email address and re-submit the publication. The expected result that the publication is successfully submitted.
I tested it locally and the result passed.
When checking the DOI metadata set on DataCite, I found that the first name and last name of publication contact who is invited author are missing.
Both PURR user and invited author that were added in publication workflow can be set as publication contact. However, the first name and last name of PURR user refer to properties that are different from those of the invited author in PURR database. The changes are to reference the right first name and right last name separately for PURR user and invited author when they are set as contact person of a publication.
Test:
I tested it locally and the result passed.
[PURR][#2487]Fix issue that email address check not pass when submitting the dataset in publication workflow When submitting an publication, we need to check whether the email address is empty for the publication contact. When the contact is an invited author, it's possible that the email address is not set in his or her profile. Because the invited author is not a PURR user, the PURR user_id for such kind of author is 0 in database. The change is to add checking for not only the email address but also the user_id to make the condition comprehensive. PURR user always has both none-zero user_id and valid email address, so we don't have to check the publication contact who is a PURR user when submitting a publication. I'm going to commit changes to hubzero git repository.
Test: