OZtree icon indicating copy to clipboard operation
OZtree copied to clipboard

Additional iNaturalist tab on leave's description

Open oolonek opened this issue 1 year ago • 4 comments

Related to https://github.com/OneZoom/OZtree/issues/863

This would also be great to acess :

  • The taxon's iNaturalist page e.g. for https://www.onezoom.org/life/@Aloe_ferox=608115 this would be https://www.inaturalist.org/taxa/124412-Aloe-ferox
  • Also a link to all observations of this given taxa could be a thing. Here https://www.inaturalist.org/observations?taxon_id=124412

oolonek avatar Jul 09 '24 17:07 oolonek

Yes, iNat would be nice. We would need to add the iNat ID to the mappings though, which might not be obvious (I assume we might get it from wikidata).

Are you interested in adding this @oolonek ? The identifier mapping code could probably do with some reworking. This should be a lot easier now that @davidebbo has rewritten the tree production code (and added unit tests etc).

hyanwong avatar Jul 09 '24 17:07 hyanwong

I assume we might get it from wikidata

Yes, it is there as P3151. So we'd need to add a new column to the ordered_leaves table.

davidebbo avatar Jul 09 '24 18:07 davidebbo

This will probably mainly be done in the https://github.com/OneZoom/tree-build/ repo, I think?

hyanwong avatar Jul 09 '24 18:07 hyanwong

Yes, I think the work is:

  • Add inat column to leaves table
  • Update tree-build to get the mapping and produce a .csv.mySQL that has it
  • Add logic to OZtree to consume this column and add a UI tab.

davidebbo avatar Jul 09 '24 18:07 davidebbo