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
GNU Affero General Public License v3.0
632 stars 370 forks source link

Ingredients listed and joined by 'y' not separated when there is a * for the organic label #3738

Open AcuarioCat opened 4 years ago

AcuarioCat commented 4 years ago

What

Example: https://es.openfoodfacts.org/cgi/test_ingredients_analysis.pl?ingredients_text=seit%C3%A1n+40%25+%28harina+de+trigo%2C+calabac%C3%ADn%2C+zanahoria+y+agua%29%2C+verduras+52%25+%28calabaza%2C+cebolla%2C+calabac%C3%ADn%2C+aceite+de+oliva+virgen+y+sal%29+y+salsa+teriyaki+casera+8%25+%28tamari+%28habas+de+soja.+agua%2C+sal+y+sochu%29%2C+zumo+de+naranja%2C+zumo+de+lim%C3%B3n+y+az%C3%BAcar%29.+*Producto+ecol%C3%B3gico.&type=add&action=process&.submit=Submit

Part of

stephanegigandet commented 4 years ago

It seems to be because of the * for the organic label:

https://es.openfoodfacts.org/cgi/test_ingredients_analysis.pl?ingredients_text=zanahoria+y+agua%2C+zanahoria*+y+agua.+*+Producto+ecol%C3%B3gico.&type=add&action=process&.submit=Valider

AcuarioCat commented 4 years ago

I think it's more than that. This has no '*' and doesn't parse https://es.openfoodfacts.org/cgi/test_ingredients_analysis.pl?ingredients_text=Agua+carbonatada%2C+vino+tinto%2C+zumo+de+uva+y+lim%C3%B3n+a+partir+de+concentrado+%2815%25%29%2C+az%C3%BAcar+de+uva%2C+acidulante%3A+%C3%A1cido+c%C3%ADtrico%2C+edulcorantes%3A+E955+y+E954%2C+conservante%3A+E202%2C+estabilizantes+E414+y+E445%2C+colorante%3A+E163+y+aromas.+Contiene+sulfitos.&type=add&action=process&.submit=Submit

Queen-codes commented 1 year ago

Hi, @AcuarioCat and @teolemon, could you confirm if this is still an issue?

github-actions[bot] commented 6 months ago

This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts