diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 28f57f815..cd231a8ea 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -739,10 +739,16 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") foreach($arrayLvAusbildungssemester as $lv_test) { + $sws = number_format(sprintf('%.1F',$lv_test['sws']),2); + + if($sws == '0.0') + $sws = ''; + + echo ' '.$lv_test['lehrform_kurzbz'].' '.$lv_test['benotungsdatum'].' - '.number_format(sprintf('%.1F',$lv_test['sws']),2).' + '.$sws.' '.$lv_test['semester'].' '.$lv_test['kurzbz'].' '.$lv_test['studiensemester_kurzbz'].' @@ -793,10 +799,16 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $datum = new datum(); $datum_von = $datum->formatDatum($row_outgoing->von, 'Y.m.d'); $datum_bis = $datum->formatDatum($row_outgoing->bis, 'Y.m.d'); + + + $sws = number_format(sprintf('%.1F',($row_outgoing->semesterstunden/$wochen)),2); + if($sws == '0.0') + $sws = ''; + echo ' '.$benotungsdatum_outgoing.' - '.number_format(sprintf('%.1F',($row_outgoing->semesterstunden/$wochen)),2).' + '.sws.' '.$lehrform_kurzbz_outgoing.'