Implement tested sample image from TOL-10M with EOL page

#3

This PR adds functionality to:

  • Split the Open-Ended classification tab's first row into an image upload panel and a panel to display an example image of the resulting predicted taxon from TOL-10M
  • Adds a "More Information" section to give the EOL Page ID for the predicted taxon, if available. Data is taken from components/metadata.csv. If a rank higher than 'species' is selected for prediction, but the page ID for that exact taxon is not found in the examples (with all blank lower ranks), an example with a more specific set of lower ranks within the predicted taxon is shared, which corresponds with the sample image.

For example, an exact match between predicted taxon and sample from components/metadata.csv for an image where "Family" is the chosen rank:

Check out the EOL entry for Fungi Ascomycota Pezizomycetes Pezizales Sarcoscyphaceae to learn more: https://eol.org/pages/6073.

For the same image where "Order" is the chosen rank:

Check out an example EOL entry within Fungi Ascomycota Pezizomycetes Pezizales to learn more: Fungi Ascomycota Pezizomycetes Pezizales Chorioactidaceae Chorioactis geaster https://eol.org/pages/10656193.

Since "Fungi Ascomycota Pezizomycetes Pezizales __ __ __"is not part of components/metadata.csv (blank Family, Genus, Species; i.e. no exact EOL Page ID for Pezizales).

This contingent functionality could be removed with a more robust/comprehensive set of taxon examples across all ranks.

@egrace479 I've tested this in a private space, and it appears to be functioning as expected.

thompsonmj changed pull request status to open
egrace479 changed pull request status to merged

Sign up or log in to comment