Changes

Jump to navigation Jump to search
Line 114: Line 114:  
= Javascript library =
 
= Javascript library =
   −
The Javascript library can be used on websites and browser extensions. It is used in particular on the [https://world.openfoodfacts.org Open Food Facts website] to display personalized search results.
+
The Javascript library can be used on websites and browser extensions. It has functions to allow users to select their preferences and save them locally on the browser, and functions to match, filter and rank search results according to the saved preferences.
 +
 
 +
It is used in particular on the [https://world.openfoodfacts.org Open Food Facts website] to display personalized search results:
 +
 
 +
== Interface to select user preferences and save them locally on the browser ==
 +
 
 +
[[File:Personal-search-web-preferences.png]]
 +
 
 +
== Personalized search results filtered and ranked according to locally saved user preferences ==
 +
 
 +
[[File:Personal-search-web-results.png]]
 +
 
 +
== Links ==
    
* library to display, select and store user preferences on the browser using localstorage: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/html/js/product-preferences.js
 
* library to display, select and store user preferences on the browser using localstorage: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/html/js/product-preferences.js

Navigation menu