unepwcmc/SAPI — pull request #376 by lucidstack (2014-09-14 22:54:50+00:00)
Title: Admin filter by taxon and geo_entity

This PR adds extra conditions in the `document_search.rb`file to allow searches by `TaxonConcept` and `GeoEntity` (restricted to `[GeoEntityType::COUNTRY, GeoEntityType::TERRITORY]`).

Two new select2 fields are added to the `documents/index.html.erb` template, and `documents.js.coffee` is completed with configuration for the geo entity select2 field.