diff --git a/cis/private/lehre/lesson.php b/cis/private/lehre/lesson.php
index 4d8c872a1..8ac751ba3 100644
--- a/cis/private/lehre/lesson.php
+++ b/cis/private/lehre/lesson.php
@@ -102,6 +102,7 @@ if (isset($_GET["handbuch"])){
+
diff --git a/include/studienplan.class.php b/include/studienplan.class.php
index 7e9963c0a..f180733fe 100644
--- a/include/studienplan.class.php
+++ b/include/studienplan.class.php
@@ -952,21 +952,34 @@ class studienplan extends basis_db
/**
* Laedt die Studienplaene zu denen eine Lehrveranstaltung zugeordnet ist
*/
- public function getStudienplanLehrveranstaltung($lehrveranstaltung_id, $studiensemester_kurzbz)
+ public function getStudienplanLehrveranstaltung($lehrveranstaltung_id, $studiensemester_kurzbz = null)
{
$qry= "
SELECT
- distinct tbl_studienplan.*
+ DISTINCT tbl_studienplan.*
FROM
- lehre.tbl_studienplan
- JOIN lehre.tbl_studienplan_lehrveranstaltung USING(studienplan_id)
+ lehre.tbl_studienplan
+ JOIN lehre.tbl_studienplan_lehrveranstaltung
+ USING(studienplan_id)
WHERE
- tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id=".$this->db_add_param($lehrveranstaltung_id, FHC_INTEGER)."
- AND EXISTS (
- SELECT 1 FROM lehre.tbl_studienplan_semester
- WHERE studienplan_id=tbl_studienplan.studienplan_id
- AND studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz)."
- AND semester = tbl_studienplan_lehrveranstaltung.semester)
+ tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id IN (
+ SELECT
+ lv.lehrveranstaltung_id
+ FROM
+ lehre.tbl_lehrveranstaltung AS lv
+ LEFT JOIN lehre.tbl_lehrveranstaltung AS t ON t.lehrveranstaltung_id=lv.lehrveranstaltung_template_id
+ WHERE
+ lv.lehrtyp_kurzbz<>'tpl'
+ AND (lv.lehrveranstaltung_id=" . $this->db_add_param($lehrveranstaltung_id, FHC_INTEGER) . " OR (lv.lehrveranstaltung_template_id=" . $this->db_add_param($lehrveranstaltung_id, FHC_INTEGER) . " AND t.lehrtyp_kurzbz='tpl'))
+ )
+ AND EXISTS (
+ SELECT 1
+ FROM
+ lehre.tbl_studienplan_semester
+ WHERE studienplan_id=tbl_studienplan.studienplan_id".
+ ($studiensemester_kurzbz != null ? "
+ AND studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz) : "")."
+ AND semester = tbl_studienplan_lehrveranstaltung.semester)
ORDER BY bezeichnung";
if($result = $this->db_query($qry))
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php
index 9e0a87b6e..8ac09cee0 100644
--- a/system/phrasesupdate.php
+++ b/system/phrasesupdate.php
@@ -8740,13 +8740,13 @@ Any unusual occurrences
'phrases' => array(
array(
'sprache' => 'German',
- 'text' => 'Der Plagiatscheck wurde durchgeführt und bestätigt, dass der zentrale Inhalt der Arbeit im erforderlichen Ausmaß eigenständig verfasst wurde (vgl. Satzungsteil Studienrechtliche Bestimmungen / Prüfungsordnung, § 18 Abs. 2 und 3).',
+ 'text' => 'Der Plagiatscheck wurde durchgeführt und bestätigt, dass der zentrale Inhalt der Arbeit im erforderlichen Ausmaß eigenständig verfasst wurde (vgl. Satzungsteil Studienrechtliche Bestimmungen / Prüfungsordnung, § 20 Abs. 2 und 3).',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
- 'text' => 'The plagiarism check has been carried out and confirms that the central content of the paper has been written independently to the required extent (cf. part of the Statutes on Studies Act Provisions / Examination Regulations, § 18 Para. 2 and 3).',
+ 'text' => 'The plagiarism check has been carried out and confirms that the central content of the paper has been written independently to the required extent (cf. part of the Statutes on Studies Act Provisions / Examination Regulations, § 20 Para. 2 and 3).',
'description' => '',
'insertvon' => 'system'
)
@@ -16426,13 +16426,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
- 'text' => 'Wollen Sie die ausgewählte Maßnahme wirklich löschen?',
+ 'text' => 'Plan ablehnen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
- 'text' => 'Do you really want to delete the measure?',
+ 'text' => 'Reject plan',
'description' => '',
'insertvon' => 'system'
)
@@ -16446,13 +16446,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
- 'text' => 'Wollen Sie die Bestätigung wirklich widerrufen?',
+ 'text' => 'Bestätigung widerrufen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
- 'text' => 'Do you really want to cancel the confirmation?',
+ 'text' => 'Revoke confirmation',
'description' => '',
'insertvon' => 'system'
)
@@ -16706,13 +16706,13 @@ array(
'phrases' => array(
array(
'sprache' => 'German',
- 'text' => 'Plan - abgelehnt',
+ 'text' => 'Maßnahmen - abgelehnt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
- 'text' => 'Plan - declined',
+ 'text' => 'Measures - declined',
'description' => '',
'insertvon' => 'system'
)
@@ -16758,6 +16758,206 @@ array(
)
)
),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'bestaetigungAblehnen',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Bestätigung ablehnen',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Reject confirmation',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'grund',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Grund',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Reason',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'anmerkungstgl',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Anmerkung - Studiengangsleitung',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Note - Study course Director',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'mehrverplant',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => '>=5 ECTS verplant',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => '>=5 ECTS planned',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'wenigerverplant',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => '<5 ECTS verplant',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => '<5 ECTS planned',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'mehrbestaetigt',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => '>=5 ECTS bestätigt',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => '>=5 ECTS confirmed',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'wenigerbestaetigt',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => '<5 ECTS bestätigt',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => '<5 ECTS confirmed',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'alleAkzeptierenPlan',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Alle markierten Pläne akzeptieren',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Accept all marked plans',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'downloadBestaetigung',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Bestätigung herunterladen',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Download confirmation',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'international',
+ 'category' => 'international',
+ 'phrase' => 'addMassnahme',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Maßnahme hinzufügen',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Add measure',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
array(
'app' => 'core',
'category' => 'gruppenmanagement',
diff --git a/vilesci/lehre/lehrveranstaltung_details.php b/vilesci/lehre/lehrveranstaltung_details.php
index d63e9a8dd..36141cf14 100644
--- a/vilesci/lehre/lehrveranstaltung_details.php
+++ b/vilesci/lehre/lehrveranstaltung_details.php
@@ -29,6 +29,7 @@
require_once('../../include/lehrtyp.class.php');
require_once('../../include/lehrmodus.class.php');
require_once('../../include/benutzerberechtigung.class.php');
+ require_once('../../include/studienplan.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
@@ -518,19 +519,10 @@
}
$htmlstr.='
Verwendung in folgenden Studienplänen: ';
- $qry ="SELECT distinct tbl_studienplan.bezeichnung
- FROM
- lehre.tbl_studienplan_lehrveranstaltung
- JOIN lehre.tbl_studienplan USING(studienplan_id)
- WHERE lehrveranstaltung_id=".$db->db_add_param($lv->lehrveranstaltung_id).'
- ORDER BY tbl_studienplan.bezeichnung desc';
- if($result = $db->db_query($qry))
- {
- while($row = $db->db_fetch_object($result))
- {
- $htmlstr.= $row->bezeichnung.'; ';
- }
- }
+ $stdplan = new studienplan();
+ if ($stdplan->getStudienplanLehrveranstaltung($lv->lehrveranstaltung_id))
+ foreach($stdplan->result as $result)
+ $htmlstr .= $result->bezeichnung . "; ";
$htmlstr.='';
// Details Ende
diff --git a/vilesci/stammdaten/variablen_details.php b/vilesci/stammdaten/variablen_details.php
index 1a9cd6056..b367dee1b 100644
--- a/vilesci/stammdaten/variablen_details.php
+++ b/vilesci/stammdaten/variablen_details.php
@@ -117,7 +117,7 @@ if(isset($_POST["schick"]))
$variable=new variable();
if($variable->load($uid, $name))
- $varialbe->new = false;
+ $variable->new = false;
else
$variable->new = true;