globalbioticinteractions / globalbioticinteractions.github.io

source files for GloBI website
https://globalbioticinteractions.org
MIT License
8 stars 14 forks source link

stable URLs #16

Closed kueda closed 9 years ago

kueda commented 9 years ago

When I search for an interaction I expect a URL for the results that I can share, maybe something like http://www.globalbioticinteractions.org/#taxon=Patiria+miniata&interaction=preys_on

jhpoelen commented 9 years ago

@kueda thanks for suggesting this . . . is it correct to assume that both http://globalbioticinteractions.org and http://globalbioticinteractions.org/browse should have this kind of features?

In order to be consistent with the GloBI api, I imagine something like:

http://www.globalbioticinteractions.org/?sourceTaxon=Patiria%20miniata&interactionType=preysOn

Today, I learned that @danielabar has built a prototype with a similar link feature: http://danielabar.github.io/globi-proto/#/main?name=Patiria%20miniata&interaction=preysOn

Is this similar to what you were looking for as far as linking goes?

kueda commented 9 years ago

Basically. States in web applications should have stable URLs, particularly if they're interesting enough to share with others. I was specifically thinking about http://www.globalbioticinteractions.org b/c I wanted to show someone an interaction there and realized I couldn't link to it.

jhpoelen commented 9 years ago

I made an attempt to implement this (see attached). Please re-open / submit pull request if you have another way of doing this. Hope you can more easily share interactions now! screen shot 2015-02-25 at 8 45 58 pm

kueda commented 9 years ago

Cool, seems to be working: http://www.globalbioticinteractions.org/#sourceTaxon=Larus%20occidentalis&interactionType=preysOn. Thanks!