1,082
edits
(updated design for subdomains per country) |
|||
Line 1: | Line 1: | ||
== Design == | == Design == | ||
=== Sub-sites for countries === | |||
==== Old design (before January 10th 2014) ==== | |||
One sub-domain per language. | |||
e.g. | |||
* fr.openfoodfacts.org -> products with French as main language | |||
* en.openfoodfacts.org -> products with English as main language | |||
==== Current design (after January 10th 2014) ==== | |||
One sub-domain per country + one "world" sub-domain. | |||
e.g. | |||
* fr.openfoodfacts.org -> products distributed in France | |||
* us.openfoodfacts.org -> products distributed in the United States | |||
* world.openfoodfacts.org -> all products | |||
==== Transition from languages sub-domains to countries sub-domaines ==== | |||
===== Assigning countries to products - done Jan 10th 2014 ===== | |||
* a new field was added for countries in November 2013 | |||
** auto-populated using the ip address of the creator of products | |||
* for all existing products without a country, added one country - Jan 10th 2014 | |||
** using the place of purchase field if specified and recognized (countries + some popular cities) | |||
** using the ip address of the creator of the product | |||
===== world + country sub-domains - in progress since Jan 10th 2014 ===== | |||
* sub-domains map to countries instead of languages - done Jan 10th 2014 | |||
* redirect en.openfoodfacts.org to world.openfoodfacts.org | |||
* fix links pointing to [language].openfoodfacts.org instead of [country].openfoodfacts.org | |||
* generate list of countries with number of products to put on first page of openfoodfacts.org | |||
===== lists of tags (e.g. brands, categories, labels etc.) per country ===== | |||
* compute lists | |||
* display lists | |||
===== nutrition facts stats per category and per domain ===== | |||
* compute data | |||
* display data | |||
===== number of products per-country for each tag ===== | |||
e.g. for a given category or brand, list the number of products per country | |||
* compute data | |||
* display data in a list | |||
* display data on a map | |||
** e.g. using GeoJSON + Leaflet | |||
*** https://p2pu.org/en/groups/online-maps-with-leaflet/content/geojson-in-leafletjs/ | |||
=== Taxonomies === | === Taxonomies === |