GoMexSI / gomexsi-web

Explore Species Interactions in Gulf of Mexico with the GoMexSI webapp
http://gomexsi.tamucc.edu
3 stars 2 forks source link

Exploration Mode: Predator not showing prey #92

Closed reedhewitt closed 10 years ago

reedhewitt commented 10 years ago

In the Exploration Mode data query, search for Bagre marinus. Then click on the predator Sphyrna mokarran. The results for Sphyrna mokarran do not show any predators or prey. If Sphyrna mokarran is a predator of Bagre marinus, then Bagre marinus should be listed as prey of Sphyrna mokarran.

I don't know if this is an error in the UI or a problem with the data coming back from the query.

jhpoelen commented 10 years ago

Thanks for reporting this. I can confirm that this is a data issue - I have reproduced the issue and will try to solve it as soon as I can.

jhpoelen commented 10 years ago

Root cause was found. Fishbase classification for Sphyrna mokarran did not mention taxonomic rank for lookup using EOL API. This lead to an invalid taxon name index, which caused this bug. I implemented a workaround that assumes that taxonRank is Species whenever the taxonRank is not mentioned and the canonical name has more than one word in it.

The changes should appear in the next couple of days. Please re-open the issue if the issue still occurs after that.

Thank you for reporting this!

@jhammock I sent you a separate offline message about this.