Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocompletion for categories, labels, countries #7

Open
teolemon opened this issue Nov 2, 2020 · 0 comments
Open

Add autocompletion for categories, labels, countries #7

teolemon opened this issue Nov 2, 2020 · 0 comments

Comments

@teolemon
Copy link
Contributor

teolemon commented Nov 2, 2020

Add autocompletion for categories, labels, countries

Rationale:
it's often difficult to guess the exact name to filter with, and if just one S is missing, or CAPSLOCK is enabled, there is no match.

Proposed solution
Use the Open Food Facts autosuggest APIs and JQUERY to let the user find categories. The API is multilingual by default, so nothing more to do.
https://world.openfoodfacts.org/cgi/suggest.pl?tagtype=categories&term=ca
https://world.openfoodfacts.org/cgi/suggest.pl?tagtype=labels&term=ca
https://world.openfoodfacts.org/cgi/suggest.pl?tagtype=countries&term=ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant