diff --git a/cis/private/profile/studienplan.php b/cis/private/profile/studienplan.php index 67fc219a1..180da31de 100755 --- a/cis/private/profile/studienplan.php +++ b/cis/private/profile/studienplan.php @@ -353,7 +353,7 @@ function drawTree($tree, $depth) { global $uid, $stsem_arr, $noten_arr, $lvangebot_arr, $aktornext; global $datum_obj, $db, $lv_arr, $p, $note_pruef_arr, $student; - + foreach($tree as $row_tree) { $style=''; @@ -376,7 +376,8 @@ function drawTree($tree, $depth) break; case 'lv': $icon=' '; - $termine="Termine"; + if (!defined('CIS_STUDIENPLAN_LVPLANLINK_ANZEIGEN') || CIS_STUDIENPLAN_LVPLANLINK_ANZEIGEN) + $termine="Termine"; break; default: $icon=''; @@ -434,10 +435,10 @@ function drawTree($tree, $depth) echo ''; // Note zu dieser LV vorhanden? - + $lv_kompatibel = new lehrveranstaltung(); $kompatibleLVs = $lv_kompatibel->loadLVkompatibel($row_tree->lehrveranstaltung_id); - + if(isset($noten_arr[$row_tree->lehrveranstaltung_id])) { // Positive Note fuer diese LV vorhanden? @@ -447,7 +448,7 @@ function drawTree($tree, $depth) if($note_pruef_arr[$note]->positiv) $positiv=true; } - + if(!$positiv) { //echo ''.$p->t('studienplan/negativ').''; @@ -478,7 +479,7 @@ function drawTree($tree, $depth) else { echo ''.$p->t('studienplan/offen').''; - } + } } //check if compatible course has grade elseif(count($kompatibleLVs) > 0) @@ -526,15 +527,15 @@ function drawTree($tree, $depth) } elseif(count($kompatibleLVs) > 0) { - + $i = 0; while(!$found && $i < count($kompatibleLVs)) - { + { foreach($kompatibleLVs as $komp) { $anrechnung = new anrechnung(); $anrechnung->getAnrechnungPrestudent($student->prestudent_id, $row_tree->lehrveranstaltung_id, $komp); - + if(count($anrechnung->result) == 1) { $lv = $anrechnung->result[0]->lehrveranstaltung_id_kompatibel; @@ -582,7 +583,7 @@ function drawTree($tree, $depth) } } } - + foreach($lvkompatibel_arr as $row_lvid) { // Angebot der LV pruefen @@ -661,16 +662,16 @@ function drawTree($tree, $depth) function checkKompatibleLvs($kompatibleLVs, $student, $row_tree, $noten_arr, $note_pruef_arr, $p, $uid, $negativeNote= null) { - $positiv = false; + $positiv = false; $found = false; $i = 0; while(!$found && $i < count($kompatibleLVs)) - { + { foreach($kompatibleLVs as $komp) { $anrechnung = new anrechnung(); - $anrechnung->getAnrechnungPrestudent($student->prestudent_id, $row_tree->lehrveranstaltung_id, $komp); + $anrechnung->getAnrechnungPrestudent($student->prestudent_id, $row_tree->lehrveranstaltung_id, $komp); if(count($anrechnung->result) == 1) { diff --git a/config/global.config-default.inc.php b/config/global.config-default.inc.php index 7a12cc589..984d7c361 100644 --- a/config/global.config-default.inc.php +++ b/config/global.config-default.inc.php @@ -186,6 +186,7 @@ define('VILESCI_PERSON_NEU_STUDIENSEMESTER_WINTERONLY',false); // Anzeigeoptionen für den Studienplan im CIS define('CIS_STUDIENPLAN_SEMESTER_ANZEIGEN', false); +define('CIS_STUDIENPLAN_LVPLANLINK_ANZEIGEN',true); //Legt fest ob ein User zu einer LV angemeldet sein muss um Detailinformationen abrufen zu können. (true|false) define('CIS_LEHRVERANSTALTUNG_WENNANGEMELDET_DETAILS_ANZEIGEN', false);