newfs / gobotany-app

Deployable code for the Go Botany application
9 stars 8 forks source link

Primary navigation missing current location on species page #287

Closed sidkoul closed 11 years ago

sidkoul commented 11 years ago

When the user arrives at a species page via the dkey, simplekey, or fullkey, the primary navigation is missing the indicator that informs them which section of the site they are in. For example, compare the following pages:

Arisaema triphyllum (Jack-in-the-pulpit) a species included in the simple key (i.e. simple_key=TRUE):

Allium sativum (garlic) a species included in the full key (simple_key=FALSE):

sidkoul commented 11 years ago

I should note that during use of the applications, the primary navigation does indicate to the user which section of the site they are in. It's only on the species page that the indicator is missing.

sidkoul commented 11 years ago

Questions for Elizabeth (and botanists):

  1. Is this assumption true? When the user searches for and navigates to a species page, the primary navigation will only indicate to the user that they are in the simplekey or fullkey. The Dkey indicator in the primary navigation turns on when the user has navigated to the species page via the dichotomous key.
  2. Can we update the fullkey banner/disclaimer? Right now, it's specific to the full key and can be confusing for dkey users. e.g. http://gobotany-dev.herokuapp.com/species/allium/sativum/?key=dichotomous
jnga commented 11 years ago

This is now fixed. Some notes about the species pages breadcrumbs and content:

Only one instance of each species page appears in our search engine's results. That is, we do not list three Acer rubrum species pages, one for each of the three keys in which it appears--rather, we list just one Acer rubrum species page.

When navigating to a species page from our search results, or from the "species list" page (/list/), we show a default breadcrumb trail as follows: if the species is included in the Simple Key, the default breadcrumb is the Simple Key. Otherwise, the plant is a Full Key plant and we show the Full Key breadcrumb. When navigating to a species page from the D. Key, a D. Key breadcrumb is shown, and likewise for the other two keys.

The "Information from Flora Novae Angliae" section that appears atop the species page when navigating to it from the D. Key will, for the other keys and search results, appear at the bottom of the page. This is currently coded and ready, but is turned off at the moment because a production refresh of the site would make that information "live." Whenever it is OK to do so, we can turn it on.

We have not yet incorporated the D. Key into our search engine's results, but will soon (#195). Given that the species page will include the info from the Flora no matter which key is used to reach it, it seems reasonable to continue to list just one species page per species in our search results.