NESCent / FossilCalibrations

Fossil calibrations database
http://fossilcalibrations.org
BSD 2-Clause "Simplified" License
14 stars 4 forks source link

(1) Show as result opens multiple results #51

Closed Ksepka closed 10 years ago

Ksepka commented 10 years ago

For the most part, "show as results works perfectly.The issue of when there is only (1) result but "show as result" then spits everything back in some cases.

For example: https://fossils.ibang.com/Browse.php?node=NCBI:7711&lineage=full&members=sparse&levels=2

Craniata — (39) show as search results Clicking "show as results" here will display the 39 intended results.

However: Chordata — (1) show as search result Clicking "show as results" here will display many results instead of the intended single result.

and for: Olfactores — (1) show as search result Clicking "show as results" here will display no results instead of the intended single result.

jimallman commented 10 years ago

Hm, it appears I'm mixing different types here, when they should be handled differently. I'll look into this, but here's a breakdown:

Craniata is the typical case, a subclade of the target node (Chordata). This shows its calibrated members as search results, which is the intended behavior.

Chordata is a calibrated node that's directly associated with the target node (Chordata), so it should be listed above instead of "There are no calibrations directly attached to Chordata."

Olfactores is a calibrated node that's "loose" within the target node (ie, it's not an NCBI taxon and it's not part of any NCBI-defined subclade). In this case, the "show as search result" link should find and show just this calibration.