') +
@@ -173,6 +174,7 @@ function displayFolksonomyPropertyValues() {
'' +
'' +
' ' +
+ ' ' +
'' +
' ' +
'Example: color ' +
@@ -188,6 +190,7 @@ function displayFolksonomyPropertyValues() {
'' +
'' +
'' +
+ '' +
'');
@@ -324,10 +327,11 @@ function displayFolksonomyPropertyValues() {
while (index--) {
content += (' ' +
' ' +
+ '🛈 ' +
'' + d[index].k + ' ' +
'' + d[index].v + ' ' +
''+
- 'save '+
+ 'Save '+
'Edit '+
'Delete '+
' ' +
@@ -358,12 +362,12 @@ function displayProductsWithProperty(_property, _value) {
*/
//$("#main_column p").remove(); // remove Invalid address.
$("#main_column").append('' +
- 'Property: '+ _property + (_value ? ": "+ _value : '') + ' ' +
- 'You should find a dedicated documentation ' +
- ' about this property on Open Food Facts wiki
' +
- 'List of products using this property:
' +
- '' +
- '');
+ 'Folksonomy property: '+ _property + (_value ? ": "+ _value : '') + ' ' +
+ 'You should find a dedicated documentation ' +
+ ' about this property on Open Food Facts wiki
' +
+ 'List of products using this property:
' +
+ '' +
+ '');
//$("#main_column h1").remove(); // remove Error
console.log("FEUS - displayProductsWithProperty(_property) - GET " + feAPI + "/products?k=" + _property + (_value ? "&v="+ _value : ''));
@@ -376,8 +380,8 @@ function displayProductsWithProperty(_property, _value) {
content +=
'' +
'' +
- 'Code ' +
- 'Values ' +
+ 'Product barcode ' +
+ 'Corresponding value ' +
' ' +
'';
while (index--) {
@@ -407,20 +411,26 @@ function displayAllProperties() {
*/
// TODO: add owner filter?
//$("#main_column p").remove(); // remove Invalid address.
+
+ // Display emptye table
$("#main_column").append(String('Properties ' +
- 'List of all properties.
' +
- '' +
- '' +
- ' ' +
- 'Property ' +
- 'Count ' +
- 'Values ' +
- 'Documentation ' +
- ' ' +
- '') +
- ' ' +
- '
');
+ "Open Food Facts allows anyone to reuse contributed properties or create new ones " +
+ "(see the Folksonomy Engine project ). " +
+ "Here's the list of all contributed properties.
" +
+ '' +
+ '' +
+ ' ' +
+ 'Property ' +
+ 'Documentation ' +
+ 'Count ' +
+ 'Values ' +
+ ' ' +
+ '') +
+ ' ' +
+ '
');
//$("#main_column h1").remove(); // remove Error
+
+ // Populate table
console.log("FEUS - displayAllProperties(_owner) - GET " + feAPI + "/keys");
$.getJSON(feAPI + "/keys", function(data) {
console.log("FEUS - displayAllProperties() - " + JSON.stringify(data));
@@ -432,9 +442,9 @@ function displayAllProperties() {
content += ('' +
' ' +
'' + d[index].k + ' ' +
+ '🛈 ' +
'' + d[index].count + ' ' +
'' + d[index].values + ' ' +
- '🔗 ' +
' ');
}
$("#properties_list").append(content);