TheNailDev / openmensa-bielefeld

OpenMensa parser for Studierendenwerk Bielefeld
https://thenaildev.github.io/openmensa-bielefeld/
MIT License
0 stars 0 forks source link

Add meal details to the meal notes #4

Closed TheNailDev closed 11 months ago

TheNailDev commented 11 months ago

This PR adds information regarding additives, allergens and the CO2 footprint to meal notes.

Comparison between old and new version:

Previous output:

<meal>
  <name>Leberkäse mit Spiegelei</name>
  <price role="employee">3.50</price>
  <price role="other">3.50</price>
  <price role="student">3.00</price>
</meal>

New output:

<meal>
  <name>Leberkäse mit Spiegelei</name>
  <note>A22) Ei</note>
  <note>A30) Senf</note>
  <note>CO2: 677g</note>
  <note>Z1) mit Farbstoff</note>
  <note>Z2) mit Konservierungsstoff</note>
  <note>Z3) mit Antioxidationsmittel</note>
  <note>Z8) mit Phosphat</note>
  <note>Z9) mit einer Zuckerart oder Süßungsmittel</note>
  <price role="employee">3.50</price>
  <price role="other">3.50</price>
  <price role="student">3.00</price>
</meal>