Skip to content

Conversation

@hyanwong
Copy link
Member

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 hyanwong force-pushed the ascending-ancestors branch 2 times, most recently from 802e375 to e266ca5 Compare November 11, 2022 16:51
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 hyanwong force-pushed the ascending-ancestors branch from e266ca5 to fbd727a Compare November 11, 2022 19:47
@lentinj
Copy link
Collaborator

lentinj commented May 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants