cioos-siooc / metadata-entry-form

CIOOS Metadata entry form
GNU Affero General Public License v3.0
2 stars 3 forks source link

Separate first name, last name fields in contacts #189

Closed n-a-t-e closed 2 years ago

n-a-t-e commented 2 years ago

There are some issues with automatically parsing a full name into "lastname, firstname" in the citation. For example, when there's a space in the last name it leads to a citation with only part of the last name.

Eg: Vincent van Gogh should read in a citation as "van Gogh, V." instead of "Gogh, V."

We can provide separate last name and first names fields and then in the XML they would be combined with a comma.

The ISO XML would change from this:

<cit:name>
     <gco:CharacterString>Vincent van Gogh</gco:CharacterString>
</cit:name>

To this:

<cit:name>
     <gco:CharacterString>van Gogh, Vincent</gco:CharacterString>
</cit:name>

And then CKAN would see the comma in the name and then be able to parse the full last name

n-a-t-e commented 2 years ago

Citation-js actually handles that example well, but it doesn't handle last names with multiple words that all have their first characters capitalized.