mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-06 21:39:39 +00:00
Diverse Anpassungen an Studienordnungstemplate
This commit is contained in:
+42
-21
@@ -151,6 +151,8 @@ if(isset($_GET['fixangestellt']))
|
||||
$params.='&fixangestellt='.urlencode($_GET['fixangestellt']);
|
||||
if(isset($_GET['standort']))
|
||||
$params.='&standort='.urlencode($_GET['standort']);
|
||||
if(isset($_GET['abrechnungsmonat']))
|
||||
$params.='&abrechnungsmonat='.urlencode($_GET['abrechnungsmonat']);
|
||||
if(isset($_GET['form']))
|
||||
$params.='&form='.urlencode($_GET['form']);
|
||||
$output = (isset($_GET['output'])?$_GET['output']:'odt');
|
||||
@@ -158,6 +160,22 @@ $output = (isset($_GET['output'])?$_GET['output']:'odt');
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
//XSL aus der DB holen
|
||||
$vorlage = new vorlage();
|
||||
if($xsl_oe_kurzbz!='')
|
||||
{
|
||||
$vorlage->getAktuelleVorlage($xsl_oe_kurzbz, $xsl, $version);
|
||||
}
|
||||
else
|
||||
{
|
||||
if($xsl_stg_kz=='')
|
||||
$xsl_stg_kz='0';
|
||||
|
||||
$vorlage->getAktuelleVorlage($xsl_stg_kz, $xsl, $version);
|
||||
}
|
||||
|
||||
$xsl_content = $vorlage->text;
|
||||
|
||||
//Berechtigung pruefen
|
||||
if($xsl=='AccountInfo')
|
||||
{
|
||||
@@ -253,8 +271,26 @@ elseif($xsl=='Bestellung')
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'unbekanntes Dokument oder keine Berechtigung';
|
||||
exit;
|
||||
// Wenn Berechtigung direkt beim der Vorlage angegeben ist
|
||||
if(count($vorlage->berechtigung)>0)
|
||||
{
|
||||
$allowed=false;
|
||||
foreach($vorlage->berechtigung as $berechtigung_kurzbz)
|
||||
{
|
||||
if($rechte->isBerechtigt($berechtigung_kurzbz))
|
||||
$allowed=true;
|
||||
}
|
||||
if(!$allowed)
|
||||
{
|
||||
echo 'unbekanntes Dokument oder keine Berechtigung';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'unbekanntes Dokument oder keine Berechtigung';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -281,22 +317,6 @@ $xml_doc = new DOMDocument;
|
||||
if(!$xml_doc->load($xml_url))
|
||||
die('unable to load xml: '.$xml_url);
|
||||
|
||||
//XSL aus der DB holen
|
||||
$vorlage = new vorlage();
|
||||
if($xsl_oe_kurzbz!='')
|
||||
{
|
||||
$vorlage->getAktuelleVorlage($xsl_oe_kurzbz, $xsl, $version);
|
||||
}
|
||||
else
|
||||
{
|
||||
if($xsl_stg_kz=='')
|
||||
$xsl_stg_kz='0';
|
||||
|
||||
$vorlage->getAktuelleVorlage($xsl_stg_kz, $xsl, $version);
|
||||
}
|
||||
|
||||
$xsl_content = $vorlage->text;
|
||||
|
||||
//Pdf erstellen
|
||||
|
||||
//wenn uid gefunden wird, dann den Nachnamen zum Dateinamen dazuhaengen
|
||||
@@ -444,8 +464,9 @@ if (!isset($_REQUEST["archive"]))
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang;
|
||||
$filename = 'Studienordnung-Studienplan-'. sprintf("%'.04d",$studienordnung->studiengang_kz).'-'.$studienordnung->studiengangkurzbzlang;
|
||||
}
|
||||
|
||||
$fsize = filesize($tempname_zip);
|
||||
$handle = fopen($tempname_zip,'r');
|
||||
header('Content-type: '.$vorlage->mimetype);
|
||||
@@ -455,11 +476,11 @@ if (!isset($_REQUEST["archive"]))
|
||||
else if($output =='doc')
|
||||
{
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'.doc';
|
||||
if($xsl == "Studienordnung")
|
||||
if($xsl == "Studienordnung")
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang.'.doc';
|
||||
$filename = 'Studienordnung-Studienplan-'. sprintf("%'.04d",$studienordnung->studiengang_kz).'-'.$studienordnung->studiengangkurzbzlang;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+57
-57
@@ -32,7 +32,7 @@ class vorlage extends basis_db
|
||||
public $num_rows=0;
|
||||
public $errormsg;
|
||||
public $new;
|
||||
|
||||
|
||||
//Tabellenspalten
|
||||
public $vorlage_kurzbz; // varchar(16)
|
||||
public $studiengang_kz; // integer
|
||||
@@ -54,7 +54,7 @@ class vorlage extends basis_db
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Laedt eine Vorlage
|
||||
* @param $vorlage_kurzbz
|
||||
@@ -85,7 +85,7 @@ class vorlage extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Speichert eine Vorlage
|
||||
* Wenn $new auf true gesetzt ist wird ein neuer Datensatz
|
||||
@@ -96,7 +96,7 @@ class vorlage extends basis_db
|
||||
{
|
||||
if(is_null($new))
|
||||
$new = $this->new;
|
||||
|
||||
|
||||
if($new)
|
||||
{
|
||||
$qry = "INSERT INTO public.tbl_vorlage(vorlage_kurzbz, bezeichnung, anmerkung, mimetype) VALUES(".
|
||||
@@ -113,7 +113,7 @@ class vorlage extends basis_db
|
||||
mimetype='.$this->db_add_param($this->mimetype).'
|
||||
WHERE vorlage_kurzbz='.$this->db_add_param($this->vorlage_kurzbz).';';
|
||||
}
|
||||
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
@@ -124,7 +124,7 @@ class vorlage extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Liefert alle Vorlagen
|
||||
* @param $order Sortierreihenfolge. Default:vorlage_kurzbz
|
||||
@@ -132,7 +132,7 @@ class vorlage extends basis_db
|
||||
public function getAllVorlagen($order='vorlage_kurzbz')
|
||||
{
|
||||
$qry ="SELECT * FROM public.tbl_vorlage ORDER BY ".$order.";";
|
||||
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
while($row = $this->db_fetch_object($result))
|
||||
@@ -142,14 +142,14 @@ class vorlage extends basis_db
|
||||
$obj->bezeichnung = $row->bezeichnung;
|
||||
$obj->anmerkung = $row->anmerkung;
|
||||
$obj->mimetype = $row->mimetype;
|
||||
|
||||
|
||||
$this->result[]= $obj;
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Laedt die Vorlage zu einer OE
|
||||
* @param $vorlage_kurzbz
|
||||
@@ -185,20 +185,20 @@ class vorlage extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Laedt alle Versionen einer Vorlage
|
||||
* @param $vorlage_kurzbz
|
||||
* @param $oe_kurzbz Optional. Gibt nur die Vorlagen zu dieser OE aus.
|
||||
* @param $oe_kurzbz Optional. Gibt nur die Vorlagen zu dieser OE aus.
|
||||
* @return true wenn ok, false im Fehlerfall
|
||||
*/
|
||||
public function getAllVersions($vorlage_kurzbz=null, $oe_kurzbz=null)
|
||||
{
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
WHERE
|
||||
WHERE
|
||||
1=1";
|
||||
if(!is_null($vorlage_kurzbz) && $vorlage_kurzbz!='')
|
||||
{
|
||||
@@ -208,7 +208,7 @@ class vorlage extends basis_db
|
||||
{
|
||||
$qry.=" AND oe_kurzbz=".$this->db_add_param($oe_kurzbz);
|
||||
}
|
||||
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
while($row = $this->db_fetch_object($result))
|
||||
@@ -223,7 +223,7 @@ class vorlage extends basis_db
|
||||
$obj->style = $row->style;
|
||||
$obj->berechtigung = $row->berechtigung;
|
||||
$obj->anmerkung_vorlagestudiengang = $row->anmerkung_vorlagestudiengang;
|
||||
|
||||
|
||||
$this->result[]= $obj;
|
||||
}
|
||||
}
|
||||
@@ -233,7 +233,7 @@ class vorlage extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Liefert alle OEs, welche die $vorlage_kurzbz verwenden
|
||||
* @param $vorlage_kurzbz Kurzbezeichnung der Vorlage
|
||||
@@ -241,15 +241,15 @@ class vorlage extends basis_db
|
||||
public function getOEsFromVorlage($vorlage_kurzbz=null)
|
||||
{
|
||||
$qry ="SELECT DISTINCT
|
||||
tbl_organisationseinheit.*
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
JOIN
|
||||
tbl_organisationseinheit.*
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
JOIN
|
||||
public.tbl_organisationseinheit USING (oe_kurzbz)
|
||||
WHERE
|
||||
vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz)."
|
||||
ORDER BY oe_kurzbz";
|
||||
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
while($row = $this->db_fetch_object($result))
|
||||
@@ -262,14 +262,14 @@ class vorlage extends basis_db
|
||||
$obj->aktiv = $this->db_parse_bool($row->aktiv);
|
||||
$obj->mailverteiler = $this->db_parse_bool($row->mailverteiler);
|
||||
$obj->lehre = $this->db_parse_bool($row->lehre);
|
||||
|
||||
|
||||
$this->result[]= $obj;
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Speichert die Vorlage zu einer OE
|
||||
* Wenn $new auf true gesetzt ist wird ein neuer Datensatz
|
||||
@@ -280,7 +280,7 @@ class vorlage extends basis_db
|
||||
{
|
||||
if($new == null)
|
||||
$new = $this->new;
|
||||
|
||||
|
||||
if($new)
|
||||
{
|
||||
$qry = "INSERT INTO public.tbl_vorlagestudiengang(vorlage_kurzbz,studiengang_kz,version,text,oe_kurzbz,style,berechtigung,anmerkung_vorlagestudiengang) VALUES(".
|
||||
@@ -306,7 +306,7 @@ class vorlage extends basis_db
|
||||
anmerkung_vorlagestudiengang='.$this->db_add_param($this->anmerkung_vorlagestudiengang).'
|
||||
WHERE vorlagestudiengang_id='.$this->db_add_param($this->vorlagestudiengang_id).';';
|
||||
}
|
||||
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
@@ -317,7 +317,7 @@ class vorlage extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Löscht die Vorlagestudiengagn
|
||||
* @param type $vorlagestudiengang_id ID der Vorlage
|
||||
@@ -325,7 +325,7 @@ class vorlage extends basis_db
|
||||
public function deleteVorlagestudiengang($vorlagestudiengang_id)
|
||||
{
|
||||
$qry = 'DELETE FROM public.tbl_vorlagestudiengang WHERE vorlagestudiengang_id='.$this->db_add_param($vorlagestudiengang_id).';';
|
||||
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
@@ -345,15 +345,15 @@ class vorlage extends basis_db
|
||||
*/
|
||||
public function getMaxVersion($oe_kurzbz, $vorlage_kurzbz)
|
||||
{
|
||||
$qry = "SELECT
|
||||
max(version) maxversion
|
||||
FROM
|
||||
$qry = "SELECT
|
||||
max(version) maxversion
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
WHERE
|
||||
vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz)."
|
||||
AND
|
||||
WHERE
|
||||
vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz)."
|
||||
AND
|
||||
oe_kurzbz=".$this->db_add_param($oe_kurzbz);
|
||||
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
if($row = $this->db_fetch_object($result))
|
||||
@@ -367,15 +367,15 @@ class vorlage extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Liefert die aktuelle Vorlage
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param $oe_kurzbz Organisationseinheit der Vorlage
|
||||
* Fuer Kompatibilitaetszwecke kann hier statt der oe_kurzbz auch die Studiengangskennzahl uebergeben werden.
|
||||
* Dies wird in den kommenden Versionen jedoch nicht mehr moeglich sein!
|
||||
* Fuer Kompatibilitaetszwecke kann hier statt der oe_kurzbz auch die Studiengangskennzahl uebergeben werden.
|
||||
* Dies wird in den kommenden Versionen jedoch nicht mehr moeglich sein!
|
||||
* @param $vorlage_kurzbz Name der Vorlage
|
||||
* @param $version optional kann die Versionsnummer der Vorlage uebergeben werden
|
||||
* @return boolean
|
||||
@@ -387,16 +387,16 @@ class vorlage extends basis_db
|
||||
{
|
||||
$studiengang_kz=$oe_kurzbz;
|
||||
}
|
||||
|
||||
|
||||
if($studiengang_kz!='')
|
||||
{
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
tbl_vorlagestudiengang.*, tbl_vorlage.mimetype, tbl_vorlage.bezeichnung
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
JOIN public.tbl_vorlage USING(vorlage_kurzbz)
|
||||
WHERE
|
||||
(studiengang_kz=0 OR studiengang_kz=".$this->db_add_param($studiengang_kz, FHC_INTEGER).") AND
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
JOIN public.tbl_vorlage USING(vorlage_kurzbz)
|
||||
WHERE
|
||||
(studiengang_kz=0 OR studiengang_kz=".$this->db_add_param($studiengang_kz, FHC_INTEGER).") AND
|
||||
vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz);
|
||||
if(!is_null($version) && $version!='')
|
||||
{
|
||||
@@ -413,10 +413,10 @@ class vorlage extends basis_db
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
tbl_vorlagestudiengang.*, tbl_vorlage.mimetype, tbl_vorlage.bezeichnung
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
FROM
|
||||
public.tbl_vorlagestudiengang
|
||||
JOIN public.tbl_vorlage USING(vorlage_kurzbz)
|
||||
WHERE oe_kurzbz=".$this->db_add_param($oe_kurzbz)."
|
||||
AND vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz);
|
||||
@@ -426,7 +426,7 @@ class vorlage extends basis_db
|
||||
}
|
||||
$qry.=" ORDER BY version DESC LIMIT 1";
|
||||
}
|
||||
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
if($row = $this->db_fetch_object())
|
||||
@@ -438,12 +438,12 @@ class vorlage extends basis_db
|
||||
$this->mimetype = $row->mimetype;
|
||||
$this->bezeichnung = $row->bezeichnung;
|
||||
$this->style = $row->style;
|
||||
$this->berechtigung = $row->berechtigung;
|
||||
$this->berechtigung = $this->db_parse_array($row->berechtigung);
|
||||
$this->anmerkung_vorlagestudiengang = $row->anmerkung_vorlagestudiengang;
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if($studiengang_kz!='')
|
||||
{
|
||||
@@ -456,7 +456,7 @@ class vorlage extends basis_db
|
||||
//nachsehen ob fuer eine der uebergeordneten OEs eine Vorlage vorhanden ist.
|
||||
$oe = new organisationseinheit();
|
||||
$oe->load($oe_kurzbz);
|
||||
|
||||
|
||||
if($oe->oe_parent_kurzbz!='')
|
||||
{
|
||||
return $this->getAktuelleVorlage($oe->oe_parent_kurzbz, $vorlage_kurzbz, $version);
|
||||
@@ -469,12 +469,12 @@ class vorlage extends basis_db
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Laden der Vorlage';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
+60
-62
@@ -32,8 +32,6 @@ require_once('../include/organisationsform.class.php');
|
||||
require_once('../include/lehrform.class.php');
|
||||
require_once('../include/sprache.class.php');
|
||||
|
||||
|
||||
|
||||
header("Content-type: application/xhtml+xml");
|
||||
|
||||
if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
@@ -41,46 +39,46 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
if(isset($_GET['studienordnung_id']))
|
||||
{
|
||||
$studienordnung_id = $_REQUEST['studienordnung_id'];
|
||||
|
||||
|
||||
$studienordnung_obj = new studienordnung();
|
||||
$studienordnung_obj->loadStudienordnung($studienordnung_id);
|
||||
|
||||
|
||||
$stg_kz = $studienordnung_obj->studiengang_kz;
|
||||
$gueltigvon_stsem = $studienordnung_obj->gueltigvon;
|
||||
|
||||
$orgform_obj = new organisationsform();
|
||||
$orgform_obj->getAll();
|
||||
|
||||
|
||||
foreach($orgform_obj->result as $row_orgform)
|
||||
{
|
||||
$orgform[$row_orgform->orgform_kurzbz]=$row_orgform->bezeichnung;
|
||||
}
|
||||
//$datum = new datum();
|
||||
|
||||
$objStg = new studiengang();
|
||||
|
||||
//$datum = new datum();
|
||||
|
||||
$objStg = new studiengang();
|
||||
|
||||
if(!$objStg->load($stg_kz))
|
||||
die('Fehler beim laden des Studiengangs');
|
||||
$objLVInfo = new lvinfo();
|
||||
|
||||
|
||||
switch($objStg->typ)
|
||||
{
|
||||
case 'b':
|
||||
$stg_art = 'Bachelor';
|
||||
$titel_kurzbz = 'BSc';
|
||||
break;
|
||||
case 'm':
|
||||
$stg_art = 'Master';
|
||||
$titel_kurzbz ='MSc';
|
||||
break;
|
||||
$stg_art = 'Bachelor';
|
||||
$titel_kurzbz = 'BSc';
|
||||
break;
|
||||
case 'm':
|
||||
$stg_art = 'Master';
|
||||
$titel_kurzbz ='MSc';
|
||||
break;
|
||||
case 'd':
|
||||
$stg_art = 'Diplom';
|
||||
break;
|
||||
default:
|
||||
$stg_art ='';
|
||||
$titel_kurzbz = '';
|
||||
$stg_art = 'Diplom';
|
||||
break;
|
||||
default:
|
||||
$stg_art ='';
|
||||
$titel_kurzbz = '';
|
||||
}
|
||||
|
||||
|
||||
$stgleiter = $objStg->getLeitung($objStg->studiengang_kz);
|
||||
$stgl='';
|
||||
foreach ($stgleiter as $stgleiter_uid)
|
||||
@@ -88,10 +86,10 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
$stgl_ma = new mitarbeiter($stgleiter_uid);
|
||||
$stgl .= trim($stgl_ma->titelpre.' '.$stgl_ma->vorname.' '.$stgl_ma->nachname.' '.$stgl_ma->titelpost);
|
||||
}
|
||||
|
||||
|
||||
$orgform_kurzbz_lang = $orgform[$objStg->orgform_kurzbz];
|
||||
|
||||
|
||||
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
||||
echo '<studienordnung>';
|
||||
echo ' <studiengang_kz><![CDATA['. sprintf("%'.04d",$objStg->studiengang_kz).']]></studiengang_kz>';
|
||||
@@ -106,10 +104,10 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
echo ' <orgform_kurzbz><![CDATA['.$objStg->orgform_kurzbz.']]></orgform_kurzbz>';
|
||||
echo ' <orgform_kurzbz_lang><![CDATA['.$orgform_kurzbz_lang.']]></orgform_kurzbz_lang>';
|
||||
echo ' <studienordnung_gueltigvon><![CDATA['.$gueltigvon_stsem.']]></studienordnung_gueltigvon>';
|
||||
|
||||
|
||||
$studienplan = new studienplan();
|
||||
$studienplan->loadStudienplanSTO($studienordnung_id);
|
||||
|
||||
|
||||
foreach($studienplan->result as $row_studienplan)
|
||||
{
|
||||
$summe_ects_orgform = 0;
|
||||
@@ -117,7 +115,7 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
echo ' <studienplan>';
|
||||
echo ' <regelstudiendauer><![CDATA['.$row_studienplan->regelstudiendauer.']]></regelstudiendauer>';
|
||||
echo ' <bezeichnung><![CDATA['.$row_studienplan->bezeichnung.']]></bezeichnung>';
|
||||
|
||||
|
||||
// $count=$objLV->count_lva_orgform($objStg->studiengang_kz,$orgform_kurzbz);
|
||||
|
||||
/* if($orgform_kurzbz==$objStg->orgform_kurzbz)
|
||||
@@ -136,9 +134,9 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
}
|
||||
*/
|
||||
$orgform_kurzbz_lang = $orgform[$row_studienplan->orgform_kurzbz];
|
||||
|
||||
|
||||
$ects_gesamt = ($row_studienplan->regelstudiendauer)*30;
|
||||
|
||||
|
||||
$ects_gesamt = ($row_studienplan->regelstudiendauer)*30;
|
||||
|
||||
// echo ' <orgform>';
|
||||
echo ' <orgform_kurzbz><![CDATA['.$row_studienplan->orgform_kurzbz.']]></orgform_kurzbz>';
|
||||
@@ -148,25 +146,25 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
//echo ' <studienplaetze><![CDATA['.$objStg->studienplaetze.']]></studienplaetze>';
|
||||
|
||||
// ************ Lehrveranstaltungen ***************
|
||||
|
||||
|
||||
//Basis von Ösi
|
||||
/*
|
||||
$lv = new lehrveranstaltung();
|
||||
$lv->loadLehrveranstaltungStudienplan($studienplan_id);
|
||||
getLVFromStudienplanByLehrtyp($studienplan_id, null, $i)
|
||||
$tree = $lv->getLehrveranstaltungTree();
|
||||
|
||||
|
||||
|
||||
|
||||
foreach($tree as $module)
|
||||
{
|
||||
echo $module->bezeichnung;
|
||||
|
||||
|
||||
if(isset($module->childs))
|
||||
{
|
||||
foreach($module->childs as $lv_1)
|
||||
{
|
||||
echo $lv_1->bezeichnung;
|
||||
|
||||
|
||||
if(isset($lv_1->childs))
|
||||
{
|
||||
foreach($lv_1->childs as $lv_2)
|
||||
@@ -175,44 +173,44 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
printlv($tree);
|
||||
|
||||
|
||||
function printlv($tree)
|
||||
{
|
||||
foreach($tree as $lv)
|
||||
{
|
||||
echo $lv->bezeichnung;
|
||||
|
||||
|
||||
if(isset($lv->childs))
|
||||
{
|
||||
printlv($lv->childs);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for($i=1;$i<=$objStg->max_semester;$i++)
|
||||
{
|
||||
$summe_ects_semester = 0;
|
||||
$summe_sws_semester = 0;
|
||||
echo ' <semester>';
|
||||
echo ' <semester_nr><![CDATA['.$i.']]></semester_nr>';
|
||||
|
||||
|
||||
$lv = new lehrveranstaltung();
|
||||
$lv->loadLehrveranstaltungStudienplan($row_studienplan->studienplan_id, $i);
|
||||
$tree = $lv->getLehrveranstaltungTree();
|
||||
|
||||
|
||||
//var_dump($tree);
|
||||
printLehrveranstaltungTree($tree);
|
||||
|
||||
|
||||
//if ($lv->lehrtyp_kurzbz!='modul')
|
||||
// $summe += $lv->ects;
|
||||
|
||||
|
||||
echo ' <lv_summe_ects_semester><![CDATA['.$summe_ects_semester.']]></lv_summe_ects_semester>';
|
||||
echo ' <lv_summe_sws_semester><![CDATA['.round($summe_sws_semester,2).']]></lv_summe_sws_semester>';
|
||||
|
||||
|
||||
$summe_ects_orgform += $summe_ects_semester;
|
||||
$summe_sws_orgform += $summe_sws_semester;
|
||||
echo '</semester>';
|
||||
@@ -225,8 +223,8 @@ if(isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
echo '</studienordnung>';
|
||||
}
|
||||
else
|
||||
die('Parameter studienordnung_id is missing');
|
||||
|
||||
die('Parameter studienordnung_id is missing');
|
||||
|
||||
}
|
||||
else
|
||||
die('Use Parameter xmlformat = xml');
|
||||
@@ -242,14 +240,14 @@ function printLehrveranstaltungTree($tree)
|
||||
usort($tree, "cmp");
|
||||
foreach($tree as $lv)
|
||||
{
|
||||
$db = new basis_db();
|
||||
$lv_alvs = new lehrveranstaltung();
|
||||
$db = new basis_db();
|
||||
$lv_alvs = new lehrveranstaltung();
|
||||
if(!$alvs = $lv_alvs->getALVS($lv->lehrveranstaltung_id, $lv->semester))
|
||||
$alvs = '';
|
||||
$alvs = '';
|
||||
//Semesterwochen zum berechnen der SWS ermitteln
|
||||
$qry = ' SELECT
|
||||
$qry = ' SELECT
|
||||
wochen
|
||||
FROM
|
||||
FROM
|
||||
public.tbl_semesterwochen
|
||||
WHERE
|
||||
studiengang_kz='.$lv->studiengang_kz.'
|
||||
@@ -262,14 +260,14 @@ function printLehrveranstaltungTree($tree)
|
||||
$row_wochen = $db->db_fetch_object($wochen_stg);
|
||||
$wochen = $row_wochen->wochen;
|
||||
}
|
||||
else
|
||||
else
|
||||
$wochen = '15';
|
||||
}
|
||||
if ($lv->semesterstunden!='')
|
||||
$sws = ($lv->semesterstunden / $wochen);
|
||||
else
|
||||
else
|
||||
$sws = 0;
|
||||
|
||||
|
||||
//Bezeichnung der Lehrform
|
||||
$lehrform_kurzbz = new lehrform();
|
||||
$lehrform_kurzbz->load($lv->lehrform_kurzbz);
|
||||
@@ -311,7 +309,7 @@ function printLehrveranstaltungTree($tree)
|
||||
echo ' <lvinfo_pruefungsordnung><![CDATA['.clearHtmlTags($objLVInfo->pruefungsordnung).']]></lvinfo_pruefungsordnung>';
|
||||
echo ' <lvinfo_kurzbeschreibung><![CDATA['.clearHtmlTags($objLVInfo->kurzbeschreibung).']]></lvinfo_kurzbeschreibung>';
|
||||
echo ' <lvinfo_anmerkungen><![CDATA['.clearHtmlTags($objLVInfo->anmerkungen).']]></lvinfo_anmerkungen>';
|
||||
echo ' <lvinfo_anwesenheit><![CDATA['.clearHtmlTags($objLVInfo->anmerkungen).']]></lvinfo_anwesenheit>';
|
||||
echo ' <lvinfo_anwesenheit><![CDATA['.clearHtmlTags($objLVInfo->anwesenheit).']]></lvinfo_anwesenheit>';
|
||||
}
|
||||
if ($objLVInfo->exists($lv->lehrveranstaltung_id,'English'))
|
||||
{
|
||||
@@ -328,15 +326,15 @@ function printLehrveranstaltungTree($tree)
|
||||
echo ' <lvinfo_pruefungsordnung_en><![CDATA['.clearHtmlTags($objLVInfo->pruefungsordnung).']]></lvinfo_pruefungsordnung_en>';
|
||||
echo ' <lvinfo_kurzbeschreibung_en><![CDATA['.clearHtmlTags($objLVInfo->kurzbeschreibung).']]></lvinfo_kurzbeschreibung_en>';
|
||||
echo ' <lvinfo_anmerkungen_en><![CDATA['.clearHtmlTags($objLVInfo->anmerkungen).']]></lvinfo_anmerkungen_en>';
|
||||
echo ' <lvinfo_anwesenheit_en><![CDATA['.clearHtmlTags($objLVInfo->anmerkungen).']]></lvinfo_anwesenheit_en>';
|
||||
echo ' <lvinfo_anwesenheit_en><![CDATA['.clearHtmlTags($objLVInfo->anwesenheit).']]></lvinfo_anwesenheit_en>';
|
||||
}
|
||||
if ($lv->lehrtyp_kurzbz!='modul')
|
||||
{
|
||||
$summe_ects_semester += $lv->ects;
|
||||
$summe_sws_semester += $sws;
|
||||
}
|
||||
|
||||
// Darunterliegende LVs/Module
|
||||
|
||||
// Darunterliegende LVs/Module
|
||||
if(isset($lv->childs) && count($lv->childs)>0)
|
||||
{
|
||||
echo '<lehrveranstaltungen>';
|
||||
|
||||
+111
-48
@@ -3486,7 +3486,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P22"><xsl:value-of select="lv_lehrform_kurzbz"/></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.A3" office:value-type="string">
|
||||
<text:p text:style-name="P33"><xsl:value-of select="lv_sws"/></text:p>
|
||||
<text:p text:style-name="P33">
|
||||
<xsl:if test="lv_sws!=0">
|
||||
<xsl:value-of select="lv_sws"/>
|
||||
</xsl:if>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.D3" office:value-type="string">
|
||||
<text:p text:style-name="P33"><xsl:value-of select="lv_ects"/></text:p>
|
||||
@@ -3518,6 +3522,10 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="semester" mode="modulbeschreibung">
|
||||
<text:h text:style-name="Numbering_20_3" text:outline-level="2">
|
||||
<text:bookmark-start text:name="__RefHeading__3660_462112980"/><xsl:value-of select="semester_nr"/>. Semester<text:bookmark-end text:name="__RefHeading__3660_462112980"/>
|
||||
</text:h>
|
||||
|
||||
<table:table table:name="Tabelle6" table:style-name="Tabelle6">
|
||||
<table:table-column table:style-name="Tabelle6.A"/>
|
||||
<table:table-column table:style-name="Tabelle6.B"/>
|
||||
@@ -3544,6 +3552,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P28"><xsl:value-of select="lv_bezeichnung_en"/></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<!--
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle6.A15" office:value-type="string">
|
||||
<text:p text:style-name="P28">Modulnummer</text:p>
|
||||
@@ -3552,6 +3561,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P28" />
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
-->
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle6.A15" office:value-type="string">
|
||||
<text:p text:style-name="P28">Umfang (ECTS)</text:p>
|
||||
@@ -3576,6 +3586,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P28"><xsl:value-of select="lv_sprache"/></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<!--
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle6.A15" office:value-type="string">
|
||||
<text:p text:style-name="P28">Kompetenzbereich</text:p>
|
||||
@@ -3584,12 +3595,13 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P28" />
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
-->
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle6.A15" office:value-type="string">
|
||||
<text:p text:style-name="P28">Pflicht-/Wahl-Modul</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P31">Wahlmodul</text:p>
|
||||
<text:p text:style-name="P31">Pflichtmodul</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</xsl:when>
|
||||
@@ -3639,7 +3651,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P5">Kurzbeschreibung</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_kurzbeschreibung"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_kurzbeschreibung"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3647,7 +3663,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P5">Course Description</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_kurzbeschreibung_en"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_kurzbeschreibung_en"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3655,18 +3675,10 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P5">Lernergebnisse</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29">Nach erfolgreichem Abschluss sind die Studierenden in der Lage,...</text:p>
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>LE1
|
||||
</text:p>
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>LE2
|
||||
</text:p>
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>...
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_lehrziele"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
@@ -3675,18 +3687,10 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P5">Learning Outcomes</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29">After passing this course successfully students are able to...</text:p>
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>LE1
|
||||
</text:p>
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>LE2
|
||||
</text:p>
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>...
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_lehrziele_en"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
@@ -3695,7 +3699,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Lehrinhalte</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_lehrinhalte"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_lehrinhalte"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3703,7 +3711,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Course Contents</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_lehrinhalte_en"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_lehrinhalte_en"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3711,7 +3723,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Vorkenntnisse</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_voraussetzungen"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_voraussetzungen"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3719,7 +3735,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Prerequisites</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_voraussetzungen_en"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_voraussetzungen_en"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3727,12 +3747,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P30">Literatur/Literature</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P67">
|
||||
•
|
||||
<text:tab/>Autor, VN. / Autor, VN. / Autor VN. (Jahr): Titel, Verlag-Herausgeber-sonstiges
|
||||
</text:p>
|
||||
<text:p/>
|
||||
<text:p text:style-name="P30"><xsl:value-of select="lvinfo_unterlagen"/></text:p>
|
||||
<text:p text:style-name="P30">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_unterlagen"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3740,11 +3759,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Leistungsbeurteilung</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P67">LV-Immanente Leistungsbeurteilung oder</text:p>
|
||||
<text:p text:style-name="P67">LV-Immanente Leistungsbeurteilung und/ oder Abschlussprüfung oder</text:p>
|
||||
<text:p text:style-name="P67">Abschlussprüfung</text:p>
|
||||
<text:p/>
|
||||
<text:p text:style-name="P30"><xsl:value-of select="lvinfo_pruefungsordnung"/></text:p>
|
||||
<text:p text:style-name="P30">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_pruefungsordnung"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3752,11 +3771,11 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Assessment Methods</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P67">LV-Immanente Leistungsbeurteilung oder</text:p>
|
||||
<text:p text:style-name="P67">LV-Immanente Leistungsbeurteilung und/ oder Abschlussprüfung oder</text:p>
|
||||
<text:p text:style-name="P67">Abschlussprüfung</text:p>
|
||||
<text:p/>
|
||||
<text:p text:style-name="P30"><xsl:value-of select="lvinfo_pruefungsordnung_en"/></text:p>
|
||||
<text:p text:style-name="P30">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_pruefungsordnung_en"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
@@ -3764,14 +3783,22 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P29">Anwesenheit</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_anwesenheit"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_anwesenheit"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle6.A15" office:value-type="string">
|
||||
<text:p text:style-name="P29">Attendance</text:p>
|
||||
</table:table-cell> <table:table-cell table:style-name="Tabelle6.B15" office:value-type="string">
|
||||
<text:p text:style-name="P29"><xsl:value-of select="lvinfo_anwesenheit_en"/></text:p>
|
||||
<text:p text:style-name="P29">
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lvinfo_anwesenheit_en"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</xsl:otherwise>
|
||||
@@ -3783,4 +3810,40 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<xsl:apply-templates match="lehrveranstaltung" mode="modulbeschreibung" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="replace">
|
||||
<xsl:param name="string"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($string,'\n')">
|
||||
<xsl:call-template name="replaceaufzaehlungszeichen">
|
||||
<xsl:with-param name="string" select="substring-before($string,'\n')"/>
|
||||
</xsl:call-template>
|
||||
<text:line-break/>
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="substring-after($string,'\n')"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="replaceaufzaehlungszeichen">
|
||||
<xsl:with-param name="string" select="$string"/>
|
||||
</xsl:call-template>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="replaceaufzaehlungszeichen">
|
||||
<xsl:param name="string"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($string,'- ')">
|
||||
<xsl:value-of select="substring-before($string,'- ')"/>
|
||||
<xsl:text>• </xsl:text>
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="substring-after($string,'- ')"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$string"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
@@ -377,7 +377,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="MP1">
|
||||
Studienordnung-Studienplan-<xsl:value-of select="studiengang_kz"/>-<xsl:value-of select="studiengang_kurzbzlang"/>
|
||||
<text:tab/>
|
||||
<text:tab/>
|
||||
<text:tab/>
|
||||
<text:page-number text:select-page="current">4</text:page-number>
|
||||
</text:p>
|
||||
</style:footer>
|
||||
|
||||
Reference in New Issue
Block a user