-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Far nodes with OTT are chosen for URL over near nodes without OTT #907
Comments
There's 2 related problems to this: Firstly, there's the problem of deciding what you're looking at. The current algorithm isn't great, and could do with replacing (#547). We fudge around this by selecting any with an OTT, assuming you're more likely to be looking at a node with an OTT. Secondly, we'd need to decide how to represent them in the URL. Presumably there is no latin name or OTT in your case, and this falls through, because we can't make a URL for it: OZtree/OZprivate/rawJS/OZTreeModule/src/navigation/pinpoint.js Lines 133 to 140 in 7453fdb
It could generate an OZid / metacode URL instead (the primary key in the leaf/node table), but these aren't going to be permanent anyway. Do we have anything to use in the URL? The current pinpoint forms we support are documented here, if that's useful: OZtree/OZprivate/rawJS/OZTreeModule/src/navigation/pinpoint.js Lines 5 to 23 in 7453fdb
|
There is no OTT, but there is definitely a latin name (taxon name). Doing some quick debugging, I never see If it worked with a taxon name and no OTT, we wouldn't have a problem at all, since they all have that (at least in the extinct tree). |
Ah, in that case I'm pretty sure the problem is here: OZtree/OZprivate/rawJS/OZTreeModule/src/navigation/setup_page.js Lines 95 to 98 in 7453fdb
We really need a replacement for |
Ah, I see, thanks for tracking it down! I think we need to carefully evaluate all the options in OneZoom/tree-build#103 before investing too much time in fixing all the various issues when there are no OTTs. If we go with an alternative approach, it becomes a much lower pri issue. |
Normally, zooming in on a node or searching for it results in the URL changing to that node (e.g.
@Panthera_leo=563151
), allowing it to be shared. This does not happen when there is no OTT.The text was updated successfully, but these errors were encountered: