From 937f16ad0693e9fb0e31cfe6fc0e231e9bb82fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 23 Sep 2009 12:43:09 +0000 Subject: [PATCH] - Diplomasupplement unterscheidet jetzt die OrgForm der jeweiligen StudentInnen bei Mischformen --- rdf/diplomasupplement.xml.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 46b5e169c..388b89512 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -27,6 +27,7 @@ require_once('../include/functions.inc.php'); require_once('../include/datum.class.php'); require_once('../include/basis_db.class.php'); require_once('../include/studiengang.class.php'); +require_once('../include/prestudent.class.php'); $datum = new datum(); $db = new basis_db(); @@ -85,10 +86,27 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") else echo ' '; - if($row->organisationsform=='b') + if($row->organisationsform=='m') + { + //Bei Mischformen, die Organisationsform aus dem Status nehmen + $prestudent = new prestudent(); + $prestudent->getLastStatus($row->prestudent_id); + switch($prestudent->orgform_kurzbz) + { + case 'BB': $row->organisationsform = 'b'; break; + case 'VZ': $row->organisationsform = 'v'; break; + case 'FST': $row->organisationsform = 'f'; break; + } + + } + + if($row->organisationsform=='b' || $row->organisationsform=='BB') echo ' Berufbegleitendes Studium/Part-time degree programm'; - else + elseif($row->organisationsform=='v' || $row->organisationsform=='VZ') echo ' Vollzeitstudium/Full-time degree programm'; + else + echo ' Fernstudium/Distance study'; + if($row->typ=='d') { echo ' ';