diff --git a/content/statistik/termine.xls.php b/content/statistik/termine.xls.php
index 728864762..321ceb341 100644
--- a/content/statistik/termine.xls.php
+++ b/content/statistik/termine.xls.php
@@ -97,7 +97,7 @@ $lehrstunde->getStundenplanData($db_stpl_table, $lehrveranstaltung_id, $variable
$format_title->setAlign('merge');
//Zeilenueberschriften ausgeben
- $headline=array('Datum','Von','Bis','Ort','Lektoren','Gruppen','Lehrfach','StundeVon','StundeBis');
+ $headline=array('Datum','Von','Bis','Ort','Lektoren','Gruppen','Lehrfach','Anmerkung','StundeVon','StundeBis');
$i=0;
foreach ($headline as $title)
@@ -133,6 +133,7 @@ $lehrstunde->getStundenplanData($db_stpl_table, $lehrveranstaltung_id, $variable
writecol($zeile, $i++, $lektoren);
writecol($zeile, $i++, implode(',',$row->gruppen));
writecol($zeile, $i++, $row->lehrfach_bezeichnung);
+ writecol($zeile, $i++, implode(',',$row->titel));
writecol($zeile, $i++, $row->stundevon);
writecol($zeile, $i++, $row->stundebis);
diff --git a/content/termine.xul.php b/content/termine.xul.php
index 528c030e6..839adf111 100644
--- a/content/termine.xul.php
+++ b/content/termine.xul.php
@@ -105,6 +105,10 @@ $student_uid = filter_input(INPUT_GET,'student_uid');
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/termine/rdf#anwesend" onclick="termineTreeSort()"/>
+
+
@@ -131,6 +135,7 @@ $student_uid = filter_input(INPUT_GET,'student_uid');
+
diff --git a/include/lehrstunde.class.php b/include/lehrstunde.class.php
index 554ad5c9d..3ce4c84e4 100644
--- a/include/lehrstunde.class.php
+++ b/include/lehrstunde.class.php
@@ -950,7 +950,8 @@ class lehrstunde extends basis_db
CASE WHEN gruppe_kurzbz is not null THEN gruppe_kurzbz
ELSE (SELECT UPPER(typ || kurzbz) FROM public.tbl_studiengang WHERE studiengang_kz=stpl.studiengang_kz) || COALESCE(stpl.semester,'0') || COALESCE(stpl.verband,'') || COALESCE(stpl.gruppe,'')
END) as gruppen, array_agg(mitarbeiter_uid) as lektoren,
- array_agg(ort_kurzbz) as orte
+ array_agg(ort_kurzbz) as orte,
+ array_agg(titel) as titel
FROM
lehre.tbl_".$db_stpl_table." as stpl
JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)
@@ -993,6 +994,7 @@ class lehrstunde extends basis_db
$qry.="GROUP BY stpl.datum, stpl.unr, stpl.lehreinheit_id, lehrfach.bezeichnung
ORDER BY stpl.datum, min(stpl.stunde), stpl.unr, stpl.lehreinheit_id";
+
if($result = $this->db_query($qry))
{
while($row = $this->db_fetch_object($result))
@@ -1005,6 +1007,7 @@ class lehrstunde extends basis_db
$obj->gruppen = array_unique($this->db_parse_array($row->gruppen));
$obj->lektoren = array_unique($this->db_parse_array($row->lektoren));
$obj->orte = array_unique($this->db_parse_array($row->orte));
+ $obj->titel = array_filter(array_unique($this->db_parse_array($row->titel)));
$obj->lehrfach_bezeichnung = $row->lehrfach_bezeichnung;
$obj->lehreinheit_id = $row->lehreinheit_id;
diff --git a/rdf/termine.rdf.php b/rdf/termine.rdf.php
index eb369448b..d9ede05d1 100644
--- a/rdf/termine.rdf.php
+++ b/rdf/termine.rdf.php
@@ -99,6 +99,7 @@ if(isset($lehrstunde->result) && is_array($lehrstunde->result))
$oRdf->obj[$i]->setAttribut('ort',implode(',',$row->orte),true);
$oRdf->obj[$i]->setAttribut('lehrfach',$row->lehrfach_bezeichnung,true);
$oRdf->obj[$i]->setAttribut('lehreinheit_id',$row->lehreinheit_id,true);
+ $oRdf->obj[$i]->setAttribut('titel',implode(',',$row->titel),true);
$anwesenheit = new anwesenheit();
if($anwesenheit->AnwesenheitExists($row->lehreinheit_id, $row->datum, $student_uid))
@@ -107,7 +108,7 @@ if(isset($lehrstunde->result) && is_array($lehrstunde->result))
$anwesend='Nein';
$oRdf->obj[$i]->setAttribut('anwesend',$anwesend,true);
$oRdf->obj[$i]->setAttribut('datum_iso',$row->datum,true);
-
+
// Terminkollisionen prüfen
$kollision = "";
if($lehrveranstaltung_id == '')
@@ -115,7 +116,7 @@ if(isset($lehrstunde->result) && is_array($lehrstunde->result))
for($x = $row->stundevon; $x <= $row->stundebis; $x++)
{
$orte = implode(',',$row->orte);
-
+
if(isset($verplanteStunden[$row->datum]) && in_array($x, $verplanteStunden[$row->datum]))
{
if(!isset($verplanteStunden[$row->datum][$orte]) || !in_array($x, $verplanteStunden[$row->datum][$orte]))