From da7036d33a4dd52586a1d5a5ac424643b330a903 Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Fri, 20 May 2016 10:25:32 +0200 Subject: [PATCH 1/3] Bugfix ExamReg, Geburtsort instudent xml, Hide Moodle-Icon if not used --- cis/private/lehre/pruefung/pruefung.js.php | 15 +++++++++---- include/tw/cis_menu_lv.inc.php | 25 ++++++++++++---------- rdf/student.rdf.php | 1 + 3 files changed, 26 insertions(+), 15 deletions(-) mode change 100644 => 100755 rdf/student.rdf.php diff --git a/cis/private/lehre/pruefung/pruefung.js.php b/cis/private/lehre/pruefung/pruefung.js.php index 939bb34ff..3ef462d05 100755 --- a/cis/private/lehre/pruefung/pruefung.js.php +++ b/cis/private/lehre/pruefung/pruefung.js.php @@ -968,10 +968,17 @@ function loadPruefungStudiengang(studiengang_kz, studiensemester) var liste = ""; data.result.forEach(function(e){ liste += ""; + try + { + e.pruefung[0].termine.forEach(function(d){ + liste += "
  • "+convertDateTime(d.von)+" "+convertDateTime(d.von, "time")+" - "+convertDateTime(d.bis, "time")+"
  • "; + }); + } + catch(err) + { + var errmsg = err.message; + } + liste += ""; }); $("#pruefungenListe").append(liste); } diff --git a/include/tw/cis_menu_lv.inc.php b/include/tw/cis_menu_lv.inc.php index d6f7da13b..ee516d123 100644 --- a/include/tw/cis_menu_lv.inc.php +++ b/include/tw/cis_menu_lv.inc.php @@ -439,17 +439,20 @@ function checkZeilenUmbruch() } } } - $menu[]=array - ( - 'id'=>'core_menu_moodle', - 'position'=>'70', - 'name'=>$p->t('lehre/moodle'), - 'icon'=>'../../../skin/images/button_moodle.png', - 'link'=>$link, - 'link_target'=>$link_target, - 'link_onclick'=>$link_onclick, - 'text'=>$text - ); + if (MOODLE) + { + $menu[]=array + ( + 'id'=>'core_menu_moodle', + 'position'=>'70', + 'name'=>$p->t('lehre/moodle'), + 'icon'=>'../../../skin/images/button_moodle.png', + 'link'=>$link, + 'link_target'=>$link_target, + 'link_onclick'=>$link_onclick, + 'text'=>$text + ); + } //Gesamtnote if($is_lector && ((!defined('CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN') || CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN) && $angemeldet)) diff --git a/rdf/student.rdf.php b/rdf/student.rdf.php old mode 100644 new mode 100755 index 8d4a8e4cd..842a9a36f --- a/rdf/student.rdf.php +++ b/rdf/student.rdf.php @@ -836,6 +836,7 @@ else matrikelnr.']]> convertISODate($student->gebdatum).']]> gebdatum.']]> + gebort.']]> verband.']]> gruppe.']]> From f5f56056caa5eda94018342e6b5f47e8e2cd8715 Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Fri, 20 May 2016 11:28:02 +0200 Subject: [PATCH 2/3] Ital. phrase --- locale/it-IT/lehre.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/it-IT/lehre.php b/locale/it-IT/lehre.php index 6fd29a5a5..1ae92d09a 100755 --- a/locale/it-IT/lehre.php +++ b/locale/it-IT/lehre.php @@ -15,7 +15,7 @@ $this->phrasen['lehre/kreuzerltool']='strumenti per esercitazioni
    (tool con c $this->phrasen['lehre/moodleMitKreuzerltoolInfo']='Moodle non può essere utilizzato in contemporanea con lo strumento per esercitazioni. Se si vuole utilizzare Moodle bisogna annullare l’uso dello strumento per esercitazioni'; $this->phrasen['lehre/lehrbeauftragter']='Docente incaricato'; $this->phrasen['lehre/lehrveranstaltungsinformation']='Informazioni corso'; -$this->phrasen['lehre/leistungsuebersicht']='Panoramica'; +$this->phrasen['lehre/leistungsuebersicht']='Panoramica per docenti'; $this->phrasen['lehre/lvInfoBearbeiten']='Modificare'; $this->phrasen['lehre/mail']='E-Mail agli studenti'; $this->phrasen['lehre/moodle']='Moodle'; From 103f3f10af34828bb82e58f1eb6164dceea9a676 Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Fri, 20 May 2016 13:44:58 +0200 Subject: [PATCH 3/3] New Template for Milano --- content/pdfExport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 content/pdfExport.php diff --git a/content/pdfExport.php b/content/pdfExport.php old mode 100644 new mode 100755 index 4cc56ea6e..460834f13 --- a/content/pdfExport.php +++ b/content/pdfExport.php @@ -185,7 +185,7 @@ if (isset($_GET['output']) && $_GET['output']!='pdf') else $output = $_GET['output']; } -else +else $output = 'pdf'; @@ -277,7 +277,7 @@ elseif(in_array($xsl,array('Ressource'))) exit; } } -elseif(in_array($xsl,array('Inskription','Studienerfolg','OutgoingLearning','OutgoingChangeL','LearningAgree','Zahlung'))) +elseif(in_array($xsl,array('Inskription','Studienerfolg','OutgoingLearning','OutgoingChangeL','LearningAgree','Zahlung','DichiaSost'))) { if(!$rechte->isBerechtigt('admin') && !$rechte->isBerechtigt('assistenz')) {