TheNailDev / openmensa-bielefeld

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

Provide one meal per sidedish #3

Closed TheNailDev closed 11 months ago

TheNailDev commented 11 months ago

Previously, all menu items of the class menuItem--sidedish were provided as a single meal with the actual different sidedishes as notes. Now a meal for each sidedish will be generated. This has following benefits:

Comparison between old and new version

Old version:

<category name="Beilage">
  <meal>
    <name>Mensa Aktiontheke</name>
    <note>Hähnchenbrust mit Zitronengras und weißer Soße</note>
    <price role="employee">4.00</price>
    <price role="other">4.00</price>
    <price role="student">3.40</price>
  </meal>
  <meal>
    <name>Mensa Beilagen A</name>
    <note>Bunte Penne Rigate</note>
    <note>Kartoffeln</note>
    <note>Leipziger Allerlei</note>
    <note>Pariser Karotten</note>
    <note>Romanasalat mit Radieschen</note>
    <note>Suppe des Tages</note>
    <note>Vanillepudding</note>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Mensa Beilagen B</name>
    <note>Pommes</note>
    <price role="employee">1.00</price>
    <price role="other">1.10</price>
    <price role="student">0.60</price>
  </meal>
</category>

New version:

<category name="Mensa Aktiontheke">
  <meal>
    <name>Hähnchenbrust mit Zitronengras und weißer Soße</name>
    <price role="employee">4.00</price>
    <price role="other">4.00</price>
    <price role="student">3.40</price>
  </meal>
</category>
<category name="Mensa Beilagen A">
  <meal>
    <name>Suppe des Tages</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Bunte Penne Rigate</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Kartoffeln</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Leipziger Allerlei</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Pariser Karotten</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Romanasalat mit Radieschen</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
  <meal>
    <name>Vanillepudding</name>
    <price role="employee">0.80</price>
    <price role="other">0.90</price>
    <price role="student">0.40</price>
  </meal>
</category>
<category name="Mensa Beilagen B">
  <meal>
    <name>Pommes</name>
    <price role="employee">1.00</price>
    <price role="other">1.10</price>
    <price role="student">0.60</price>
  </meal>
</category>