Issue 16301
Generate JSON files for country lists in the R stage
16301
Reporter: trobertson
Assignee: omeyn
Type: Task
Summary: Generate JSON files for country lists in the R stage
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2014-09-08 15:03:39.824
Updated: 2014-09-16 14:53:40.378
Resolved: 2014-09-16 14:53:40.339
Description: After generating the images, we need to produce a 2 JSON files (same format) where one lists the countries with data, and the other countries that publish data. The HTML template generation already does this work to produce the country listing on http://analytics.gbif-uat.org/ (e.g. about a country tab).
Files called countries_publish.json and countries_about.json with a structure of:
{code}
[
{iso: "AR", name: "Argentina"},
{iso: "FR", name: "France"}
]
{code}
These are needed by Drupal to generate the same tables that you see on the analytics site referenced above]]>
Author: trobertson@gbif.org
Created: 2014-09-08 15:05:25.665
Updated: 2014-09-08 15:05:25.665
See https://github.com/gbif/analytics/blob/master/R/createHtml.R#L14