NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 27 forks source link

Author name is mixed up in citation and under the title of data package if it's an organization #2548

Open justinkadi opened 1 week ago

justinkadi commented 1 week ago

Describe the bug When a data package has an author/creator name that is an organization instead of a normal First/Last name, the order of the words can get mixed up in the Citation and underneath the title of the data package.

To Reproduce 2 Examples where the Creator name is different in the Creator section and underneath the title: Fresh Eyes on Ice Citizen Scientists Alaska Department of Fish and Game

Expected behavior We expect the author name to have words in the correct order for these organizations.

Screenshots

Screen Shot 2024-10-11 at 11 13 56 AM Screen Shot 2024-10-11 at 11 14 21 AM Screen Shot 2024-10-11 at 11 14 50 AM Screen Shot 2024-10-11 at 11 15 05 AM
robyngit commented 3 days ago

The issue is that we're identifying the short, lower case words as "non-dropping particles" in a last name. In the first example, we parse the organization name as:

{
    "family": "Scientists",
    "non-dropping-particle": "on",
    "given": "Fresh Eyes Ice Citizen"
}

Since it's difficult to differentiate an organization name from a human name, and we're not following the standard APA format of "Last Name, First Initial" anyways, I think we should not bother trying to parse the author names when they're given as a single string.