From cfd45ac6955ee79059d80756756421dc539bba82 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Tue, 5 Nov 2013 13:37:48 +0000 Subject: [PATCH] =?UTF-8?q?Zus=C3=A4tzliche=20Spalte=20f=C3=BCr=20Semester?= =?UTF-8?q?-ECTS=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rdf/diplomasupplement.xml.php | 5 ++++- rdf/zeugnis.rdf.php | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index e0c34b7c1..e9e2325f6 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -482,6 +482,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") echo ""; for($start = $semesterNumberStart; $start <= $semesterNumberEnd; $start++) { + $semester_ects = 0; //$thesis_beschreibung = ''; echo ""; @@ -567,6 +568,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $arrayLvAusbildungssemester[$row_stud->lehrveranstaltung_id]['note'] = $row_stud->anmerkung; $arrayLvAusbildungssemester[$row_stud->lehrveranstaltung_id]['sort'] = $row_stud->sort; $ects_total += $row_stud->ects; + $semester_ects +=$row_stud->ects; } else { @@ -857,11 +859,12 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") '.$note_outgoing.' '; + $ects_total +=$row_outgoing->ects; } } } - + echo ''.$semester_ects.''; echo ""; } echo ""; diff --git a/rdf/zeugnis.rdf.php b/rdf/zeugnis.rdf.php index 2d2ae9a1e..4b356a218 100644 --- a/rdf/zeugnis.rdf.php +++ b/rdf/zeugnis.rdf.php @@ -227,6 +227,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $obj->getZeugnisnoten($lehrveranstaltung_id=null, $uid_arr[$i], $studiensemester_kurzbz); + $ects_gesamt = 0; foreach ($obj->result as $row) { if($row->zeugnis) @@ -364,6 +365,8 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") else $ectspunkte=number_format($row->ects,2); } + $ects_gesamt+=$ectspunkte; + $xml .= " ".$ectspunkte.""; $xml .= " ".$row->lv_lehrform_kurzbz.""; if($auslandssemester) @@ -376,6 +379,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $xml .= " "; } } + $xml .= "".$ects_gesamt.""; $xml .= $xml_fussnote; $xml .= " "; }