Changes

Jump to navigation Jump to search
1,201 bytes added ,  13:37, 31 March 2022
+ section Nutrition facts not specified
Line 50: Line 50:  
A complete wiki page is dedicated to [[products quantities]].
 
A complete wiki page is dedicated to [[products quantities]].
   −
In the database, the technical name for this field is <code>quantity</code>.
+
In the database, the technical name for this field is <code>quantity</code>. If the system recognizes the product's quantity, it stores it as a numeric value in the <code>product_quantity</code> field: e.g. <code>quantity</code> = <code>10 * 9.8 ml</code> will lead to <code>product_quantity</code> = <code>98</code>.
    
See [https://world.openfoodfacts.org/data-quality/quantity-not-recognized quantities that are not recognized].
 
See [https://world.openfoodfacts.org/data-quality/quantity-not-recognized quantities that are not recognized].
Line 130: Line 130:     
== Countries where sold ==
 
== Countries where sold ==
This field contains all the countries where the product is sold. If the field contains France, the product will be listed on the https://fr.openfoodfacts.org/ website.
+
This field contains all the countries where the product is widely available (not including stores specialising in foreign products). If the field contains France, the product will be listed on the https://fr.openfoodfacts.org/ website.
    
The list of all existing countries can be found here: https://world.openfoodfacts.org/countries
 
The list of all existing countries can be found here: https://world.openfoodfacts.org/countries
Line 136: Line 136:  
In 2021, the [https://en.wikipedia.org/wiki/List_of_sovereign_states United Nation recognize 193 countries] but Open Food Facts also recognize other territories, such as overseas regions/territories such as French Guiana, Guadeloupe, French Polynesia, etc. This field is taxonomized ([https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/countries.txt source code]). Though, Open Food Facts accepts all values and some people or some bogus tools enter other values, which leads to have bad values.
 
In 2021, the [https://en.wikipedia.org/wiki/List_of_sovereign_states United Nation recognize 193 countries] but Open Food Facts also recognize other territories, such as overseas regions/territories such as French Guiana, Guadeloupe, French Polynesia, etc. This field is taxonomized ([https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/countries.txt source code]). Though, Open Food Facts accepts all values and some people or some bogus tools enter other values, which leads to have bad values.
   −
In the database, this field is called <code>countries</code>. This field allows to compute the <code>countries_tags</code> field, the normalized version of countries, which allows to show the name of a country in the desired language, thanks to countries taxonomy. Eg: when <code>Italy</code> is entered from a page in english (say,  world.openfoodfacts.org), <code>countries_tags</code> becomes <code>en:italy</code>.
+
The users or third party apps should enter:
 +
 
 +
* either the name of the country under the same locale as the web site:
 +
** on fr.openfoodfacts.org (French locale) you should enter <code>Belgique</code>,
 +
** while on world.openfoodfacts.org (English locale) you should enter <code>Belgium</code>
 +
* either the name of the country with the locale as a prefix; e. g. <code>en:Belgium</code> or <code>fr:Belgique</code>.
 +
 
 +
In the database, this field is called <code>countries</code>.
 +
 
 +
This field allows to compute the <code>countries_tags</code> field, the normalized version of countries, which allows to show the name of a country in the desired language, thanks to countries taxonomy. Eg: when <code>Italy</code> is entered from a page in english (say,  world.openfoodfacts.org), <code>countries_tags</code> becomes <code>en:italy</code>.
    
== Ingredients ==
 
== Ingredients ==
Line 188: Line 197:     
In the database and in Product Opener software, the technical name for this field is <code>expiration_date</code>.
 
In the database and in Product Opener software, the technical name for this field is <code>expiration_date</code>.
 +
 +
== Nutrition facts not specified ==
 +
Sometimes nutrition facts are not specified on the packaging or on a document given with the product. In this case, and only in this case, you have to fill the checkbox called <code>Nutrition facts are not specified on the product</code>.
 +
 +
It's often (if not always) the case for [https://world.openfoodfacts.org/category/aromatic-herbs aromatic herbs].
 +
 +
In the database, the technical name for this field is <code>no_nutrition_data</code>.
    
== Serving size ==
 
== Serving size ==

Navigation menu