openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
655 stars 384 forks source link

For moderators, Show the presence of a CIQUAL/Agribalyse match in the panel for ingredient analysis #9534

Closed teolemon closed 7 months ago

teolemon commented 10 months ago

Problem

Proposed solution

Part of

stephanegigandet commented 7 months ago

This in the panel "Details of the analysis of the ingredients":

image

We should show which ingredients have a Ciqual code or a ciqual proxy code.

The corresponding data is in the "ingredients" structure of each product, that you can see by adding ?fields=ingredients to the URL of a product page: https://world.openfoodfacts.org/product/7622210449283?fields=ingredients

image

Related code is in Display.pm display_ingredients_analysis_details() function

himanshisrestha commented 7 months ago

I would love to work on this

himanshisrestha commented 7 months ago

@teolemon and @stephanegigandet How can I navigate to the ingredient analysis panel from my local machine

himanshisrestha commented 7 months ago

Also, ciqual_proxy_food_code and ciqual_food_code both to be displayed which ever is applicable for the particular ingredient?

stephanegigandet commented 7 months ago

@teolemon and @stephanegigandet How can I navigate to the ingredient analysis panel from my local machine

Just view any product page, and in the ingredients section, click on "Details of the ingredients analysis"

image