|
|
|
@ -279,7 +279,7 @@ class globalFunc {
|
|
|
|
|
case 'Recipe':
|
|
|
|
|
|
|
|
|
|
switch(TableT) {
|
|
|
|
|
case 0:
|
|
|
|
|
default:
|
|
|
|
|
TempData = ["Name", "Category", "Cuisine", "Cooking time", "Rating (1-5)"]
|
|
|
|
|
break;
|
|
|
|
|
case 'extended':
|
|
|
|
@ -289,6 +289,19 @@ class globalFunc {
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
@ -373,6 +386,19 @@ class globalFunc {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -399,9 +425,11 @@ class globalFunc {
|
|
|
|
|
|
|
|
|
|
switch(label) {
|
|
|
|
|
case 'French':
|
|
|
|
|
case 'France':
|
|
|
|
|
tempresult = "🇫🇷"
|
|
|
|
|
break;
|
|
|
|
|
case 'Italian':
|
|
|
|
|
case 'Italy':
|
|
|
|
|
tempresult = "🇮🇹"
|
|
|
|
|
break;
|
|
|
|
|
case 'British':
|
|
|
|
@ -428,6 +456,7 @@ class globalFunc {
|
|
|
|
|
tempresult = "🇵🇪"
|
|
|
|
|
break;
|
|
|
|
|
case 'Spanish':
|
|
|
|
|
case 'Spain':
|
|
|
|
|
tempresult = "🇪🇸"
|
|
|
|
|
break;
|
|
|
|
|
case 'Greek':
|
|
|
|
@ -455,6 +484,7 @@ class globalFunc {
|
|
|
|
|
tempresult = "🇪🇺"
|
|
|
|
|
break;
|
|
|
|
|
case 'North African':
|
|
|
|
|
case 'Morroccan':
|
|
|
|
|
case 'North African Fusion':
|
|
|
|
|
tempresult = "🇲🇦"
|
|
|
|
|
break;
|
|
|
|
@ -496,6 +526,7 @@ class globalFunc {
|
|
|
|
|
case 'placetype':
|
|
|
|
|
case 'prodtype':
|
|
|
|
|
case 'disktype':
|
|
|
|
|
case 'winetype':
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "type")
|
|
|
|
|
break;
|
|
|
|
|
case 'style':
|
|
|
|
@ -588,6 +619,30 @@ class globalFunc {
|
|
|
|
|
case 'cookingtime':
|
|
|
|
|
result = this.GetPoint(pobj, DocType, "cooking")
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
@ -858,6 +913,43 @@ class globalFunc {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|