unepwcmc/SAPI — pull request #218 by agnessa (2014-02-18 18:13:31+00:00)
Title: [#65555822] translated rank headers in auto complete

This translates the rank headers in the auto-complete response. Affects the Checklist as well as Species+ and Trade.

Took the opportunity to simplify the auto complete query, that involves changes to taxon_concepts_mview.

To test:
1. create some ranks in other languages
2. run rake db:migrate
3. run rebuild_taxon_concepts_mview()

In the mview we have now 3 boolean fields, which determine whether or not a given taxon should show in species+ / checklist / trade auto-complete. This is instead of checking for name status, cites status, ranks etc. For now we only check for species plus flag, because this branch is in the past, but when https://github.com/unepwcmc/SAPI/commit/1eb8486d63a6e5d8cf9929bdcb452a80b8fab506 gets merged, we can use the visibility param to decide which filter to use (all are indexed).