unepwcmc/SAPI — pull request #37 by agnessa (2013-04-04 19:03:57+00:00)
Title: Download listings

This implements CSV exports of CITES listings filtered by:
- apppendix
- listed populations
- higher taxa

Only ranks below genus are included./ Current listing is displayed as 'original current listing' (does not include descendants listing). "Listed under" show the taxon from which the listing is inherited and the corresponding annotations.

Because some of the checklist queries were reused here, I took the opportunity to refactor them out on MTaxonConcept into query objects. I also created a function in GeoEntity, which recursively fetches all geo entities contained in a given set of geo entities (previously we were using only 1 level of geo entity nesting in queries)