OZtree icon indicating copy to clipboard operation
OZtree copied to clipboard

Add API to get details of ancestors of a node

Open hyanwong opened this issue 3 years ago • 1 comments

Something like this probably exists already in order to populate the "where am I" popup bar, but I have reimplemented something for Chris Haughton and Tiziana

hyanwong avatar Nov 11 '22 13:11 hyanwong

Something like this probably exists already in order to populate the "where am I" popup bar

This happens entirely in the client, as it already has the details to hand: https://github.com/OneZoom/OZtree/blob/bfcc84f67a3ea3ba7864d345486483606468e798/OZprivate/rawJS/OZTreeModule/src/controller/controller_loc.js

We also have the highly-related common_ancestor_of_otts:

https://github.com/OneZoom/OZtree/blob/main/modules/pinpoint.py#L6-L41

Remove the filters at the end of the query and it'll return the full path to the root.

lentinj avatar May 02 '23 10:05 lentinj