|
|
@ -279,7 +279,7 @@ class globalFunc {
|
|
|
|
case 'Recipe':
|
|
|
|
case 'Recipe':
|
|
|
|
|
|
|
|
|
|
|
|
switch(TableT) {
|
|
|
|
switch(TableT) {
|
|
|
|
case 0:
|
|
|
|
default:
|
|
|
|
TempData = ["Name", "Category", "Cuisine", "Cooking time", "Rating (1-5)"]
|
|
|
|
TempData = ["Name", "Category", "Cuisine", "Cooking time", "Rating (1-5)"]
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'extended':
|
|
|
|
case 'extended':
|
|
|
@ -289,6 +289,19 @@ class globalFunc {
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'Wine':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch(TableT) {
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
TempData = ["Name", "Type", "Vintage", "Country", "Terroir", "Appellation"]
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'extended':
|
|
|
|
|
|
|
|
TempData = ["Name", "Type", "Vintage", "Country", "Region", "Terroir", "Appellation", "Vineyard", "Variety", "Producer"]
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return TempData
|
|
|
|
return TempData
|
|
|
@ -374,6 +387,19 @@ class globalFunc {
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'Wine':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch(TableT) {
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
TempData = [p.file.link, this.GetPoint(p, DataT, "type"), this.GetPoint(p, DataT, "vintage"), this.toEmoji(this.GetPoint(p, DataT, "country")), this.GetPoint(p, DataT, "subregion"), this.GetPoint(p, DataT, "appellation")]
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'extended':
|
|
|
|
|
|
|
|
TempData = [p.file.link, this.GetPoint(p, DataT, "type"), this.GetPoint(p, DataT, "vintage"), this.toEmoji(this.GetPoint(p, DataT, "country")), this.GetPoint(p, DataT, "region"), this.GetPoint(p, DataT, "subregion"), this.GetPoint(p, DataT, "appellation"), this.GetPoint(p, DataT, "vineyard"), this.GetPoint(p, DataT, "variety"), this.GetPoint(p, DataT, "producer")]
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return TempData
|
|
|
|
return TempData
|
|
|
@ -399,9 +425,11 @@ class globalFunc {
|
|
|
|
|
|
|
|
|
|
|
|
switch(label) {
|
|
|
|
switch(label) {
|
|
|
|
case 'French':
|
|
|
|
case 'French':
|
|
|
|
|
|
|
|
case 'France':
|
|
|
|
tempresult = "🇫🇷"
|
|
|
|
tempresult = "🇫🇷"
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'Italian':
|
|
|
|
case 'Italian':
|
|
|
|
|
|
|
|
case 'Italy':
|
|
|
|
tempresult = "🇮🇹"
|
|
|
|
tempresult = "🇮🇹"
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'British':
|
|
|
|
case 'British':
|
|
|
@ -428,6 +456,7 @@ class globalFunc {
|
|
|
|
tempresult = "🇵🇪"
|
|
|
|
tempresult = "🇵🇪"
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'Spanish':
|
|
|
|
case 'Spanish':
|
|
|
|
|
|
|
|
case 'Spain':
|
|
|
|
tempresult = "🇪🇸"
|
|
|
|
tempresult = "🇪🇸"
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'Greek':
|
|
|
|
case 'Greek':
|
|
|
@ -455,6 +484,7 @@ class globalFunc {
|
|
|
|
tempresult = "🇪🇺"
|
|
|
|
tempresult = "🇪🇺"
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'North African':
|
|
|
|
case 'North African':
|
|
|
|
|
|
|
|
case 'Morroccan':
|
|
|
|
case 'North African Fusion':
|
|
|
|
case 'North African Fusion':
|
|
|
|
tempresult = "🇲🇦"
|
|
|
|
tempresult = "🇲🇦"
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -496,6 +526,7 @@ class globalFunc {
|
|
|
|
case 'placetype':
|
|
|
|
case 'placetype':
|
|
|
|
case 'prodtype':
|
|
|
|
case 'prodtype':
|
|
|
|
case 'disktype':
|
|
|
|
case 'disktype':
|
|
|
|
|
|
|
|
case 'winetype':
|
|
|
|
result = this.GetPoint(pobj, DocType, "type")
|
|
|
|
result = this.GetPoint(pobj, DocType, "type")
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'style':
|
|
|
|
case 'style':
|
|
|
@ -588,6 +619,30 @@ class globalFunc {
|
|
|
|
case 'cookingtime':
|
|
|
|
case 'cookingtime':
|
|
|
|
result = this.GetPoint(pobj, DocType, "cooking")
|
|
|
|
result = this.GetPoint(pobj, DocType, "cooking")
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'vintage':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "vintage")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'vineyard':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "vineyard")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'terroir':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "subregion")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'region':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "region")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'producer':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "producer")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'appellation':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "appellation")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'variety':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "varietal")
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'designation':
|
|
|
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "designation")
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -859,6 +914,43 @@ class globalFunc {
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'Wine':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch(dPoint) {
|
|
|
|
|
|
|
|
case 'vintage':
|
|
|
|
|
|
|
|
result = pobj.Wine.Vintage
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'type':
|
|
|
|
|
|
|
|
result = pobj.Wine.Type
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'producer':
|
|
|
|
|
|
|
|
result = pobj.Wine.Producer
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'varietal':
|
|
|
|
|
|
|
|
result = pobj.Wine.Varietal
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'designation':
|
|
|
|
|
|
|
|
result = pobj.Wine.Designation
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'vineyard':
|
|
|
|
|
|
|
|
result = pobj.Wine.Vineyard
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'country':
|
|
|
|
|
|
|
|
result = pobj.Wine.Country
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'region':
|
|
|
|
|
|
|
|
result = pobj.Wine.Region
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'subregion':
|
|
|
|
|
|
|
|
result = pobj.Wine.SubRegion
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'appellation':
|
|
|
|
|
|
|
|
result = pobj.Wine.Appellation
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
}
|
|
|
|
}
|
|
|
|