gsauthof / openmensa

Open Mensa Feed v2 Generators
0 stars 1 forks source link

Support for vegetarian/vegan classification for Studentenwerk Frankfurt #1

Closed Lesik closed 6 years ago

Lesik commented 6 years ago

Hey,

currently the meals from Studentenwerk Frankfurt don't show whether a meal is vegetarian or vegan (example).

This information can be found by parsing the title attribute of the <img> of a meal. The following values are used (possibly more): vegetarisch, Vegan, Alkohol, Rind, Schwein, MSC-Fisch. Some meals have several classifications, others have no <img> tag at all.

Please include functionality for parsing this information so I can use it in the OpenMensa API. Thank you :)

gsauthof commented 6 years ago

Ok - looking at the latest openmensa XSD I would add those values as additional note elements under meal.

It seems that the format doesn't provide something more specialized for this kind of information.

Lesik commented 6 years ago

Yes, I also found no field that is specifically for marking a meal vegan or vegetarian – unfortunately. An entry in note must suffice, then.

Thank you.

gsauthof commented 6 years ago

The next openmensa.org parser requests should get the changed feed - i.e. starting with Monday.