Skip to content

Expose authors from citation in API #351

Description

@MortenHofft

The dataset pages currently have a highlighted list of people in the top. This list of people is generated in the portal UI project.

Example https://www.gbif.org/dataset/75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d
shows Dutrève Bruno * Robert Solène * Thomas Milon * Anaïs Just

And then we have the citation string in the bottom which reads

citation: {
  text: Bruno D, Solène R (2016). INPN - Données flore des CBN agrégées par la FCBN. Version 1.2. UMS PatriNat (OFB-CNRS-MNHN), Paris. Occurrence dataset https://doi.org/10.15468/omae84 accessed via GBIF.org on 2021-04-27.
}

This part comes from the API

We want them to be the same
The ones in the top is wrong and the citation string is correct.
See discussion around this gbif/portal-feedback#3398

Could we expose the list of authors in the order they should appear in the citation object? Something like:

citation: {
  // the text is already there
  text: Bruno D, Solène R (2016). INPN - Données flore des CBN agrégées par la FCBN. Version 1.2. UMS PatriNat (OFB-CNRS-MNHN), Paris. Occurrence dataset https://doi.org/10.15468/omae84 accessed via GBIF.org on 2021-04-27.
  // this next part is the suggestion
  people: [
    "Bruno D", "Solène R" // possible as objects along with the contact Key from the API and their roles?
  ]
}

Or even better

citation: {
  text: Bruno D, Solène R (2016). INPN - Données flore des CBN agrégées par la FCBN. Version 1.2. UMS PatriNat (OFB-CNRS-MNHN), Paris. Occurrence dataset https://doi.org/10.15468/omae84 accessed via GBIF.org on 2021-04-27.
  people: [
    {
       abbreviatedName: "Bruno D",
       roles: ["ORIGINATOR", "METADATA_AUTHOR"],
       keys: [123], // in case we want to link to the contact
       firstName: "Dutrève", 
       lastName: "Bruno",
       userId: [] // could be  retrieved via keys if needed
    },
    ...
  ]
}

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions