From b079d22e8db60db783aa5e39bad24fbd130f89a2 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Mon, 27 Jan 2025 09:37:02 +0100 Subject: [PATCH 1/3] - filter hinzugefuegt - db index hinzugefuegt - sqls optimiert - diplomand wird nun auch angezeigt --- system/phrasesupdate.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 746c24da3..2eb88bc9c 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -18288,6 +18288,26 @@ array( ) ) ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'studentstatus', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Studentstatus', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Student status', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'international', 'category' => 'international', @@ -19423,6 +19443,26 @@ array( ) ) ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'stgtodo', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'Nur offene Massnahmen', + 'text' => 'O', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'only open measures', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'international', 'category' => 'international', From 30c42458613abad589797bd85d86f5ffe797c535 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Thu, 27 Feb 2025 08:35:05 +0100 Subject: [PATCH 2/3] - international skills -> diplomasupp - notenuebernahme mail - student uebersicht ueberarbeitet - phrases angepasst --- rdf/diplomasupplement.xml.php | 52 +++++++++++++++++++++++++++++++++++ system/phrasesupdate.php | 36 ++++++++++++++++++------ 2 files changed, 80 insertions(+), 8 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 189aa0c05..41d046a99 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -386,6 +386,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") echo ' '.$titel_en.''; $praktikum = false; $auslandssemester = false; + $internationalskills = false; $qry = "SELECT projektarbeit_id FROM @@ -403,6 +404,56 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") } } + if ($row->typ === 'b') + { + //check if extension international skills is active + $qry = "SELECT 1 + FROM information_schema.tables + WHERE table_schema = 'extension' AND table_name = 'tbl_internat_massnahme'"; + + if($result = $db->db_query($qry)) + { + if ($db->db_num_rows($result) === 1) + { + $qry = "SELECT bezeichnung_mehrsprachig[1] as \"internationalskill_deutsch\", + bezeichnung_mehrsprachig[2] as \"internationalskill_english\" + FROM extension.tbl_internat_massnahme_zuordnung zuordnung + JOIN extension.tbl_internat_massnahme massnahme ON zuordnung.massnahme_id = massnahme.massnahme_id + JOIN extension.tbl_internat_massnahme_zuordnung_status zstatus ON zuordnung.massnahme_zuordnung_id = zstatus.massnahme_zuordnung_id + JOIN tbl_prestudent ON zuordnung.prestudent_id = tbl_prestudent.prestudent_id + JOIN tbl_student ON tbl_prestudent.prestudent_id = tbl_student.prestudent_id + WHERE zstatus.massnahme_status_kurzbz = 'confirmed' + AND tbl_student.student_uid = ".$db->db_add_param($uid_arr[$i])." + AND zstatus.massnahme_zuordnung_status_id = ( + SELECT MAX(sub_zstatus.massnahme_zuordnung_status_id) + FROM extension.tbl_internat_massnahme_zuordnung_status sub_zstatus + WHERE sub_zstatus.massnahme_zuordnung_id = zuordnung.massnahme_zuordnung_id + ) + GROUP BY zuordnung.massnahme_zuordnung_id, tbl_student.student_uid, tbl_prestudent.prestudent_id, tbl_prestudent.studiengang_kz, bezeichnung_mehrsprachig;"; + + if($db->db_query($qry)) + { + if($db->db_num_rows() > 0) + { + $internationalskills = true; + echo ""; + while($row1 = $db->db_fetch_object()) + { + echo ""; + echo "internationalskill_deutsch]]>"; + echo ""; + + echo ""; + echo "internationalskill_english]]>"; + echo ""; + } + echo ""; + } + } + } + } + } + $qry = "SELECT tbl_bisio.bisio_id, von, bis, lehreinheit_id, (SELECT STRING_AGG ( tbl_zweck.bezeichnung, @@ -461,6 +512,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $abschlusspruefungsdatum = ''; $abschlussbeurteilung=''; $pruefungstyp_kurzbz=''; + $abschlussbeurteilung_deutsch = ''; if($db->db_query($qry)) { diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 2eb88bc9c..e6acc4854 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -19211,13 +19211,33 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Maßnahmen - geplant', + 'text' => 'Maßnahme - geplant', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Measures - planned', + 'text' => 'Measure - planned', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'geplanteMassnahmenDesc', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Die Maßhname wurde geplant.', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'The measure was planned.', 'description' => '', 'insertvon' => 'system' ) @@ -19271,13 +19291,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Maßnahmen - durchgeführt', + 'text' => 'Maßnahme - durchgeführt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Measures - performed', + 'text' => 'Measure - performed', 'description' => '', 'insertvon' => 'system' ) @@ -19311,13 +19331,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Maßnahmen - abgelehnt', + 'text' => 'Maßnahme - abgelehnt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Measures - declined', + 'text' => 'Measure - declined', 'description' => '', 'insertvon' => 'system' ) @@ -19411,13 +19431,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Anmerkung - Studiengangsleitung', + 'text' => 'Begründung - Studiengangsleitung', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Note - Study course Director', + 'text' => 'Reason - Study course Director', 'description' => '', 'insertvon' => 'system' ) From 1888c51a483b4d28c2b6bd37caf4f8172a66be74 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Tue, 15 Apr 2025 11:09:59 +0200 Subject: [PATCH 3/3] master gemerged phrase bugfix --- system/phrasesupdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 5185c6810..1afe4a196 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -19610,8 +19610,8 @@ array( 'insertvon' => 'system', 'phrases' => array( array( - 'sprache' => 'Nur offene Massnahmen', - 'text' => 'O', + 'sprache' => 'German', + 'text' => 'Nur offene Massnahmen', 'description' => '', 'insertvon' => 'system' ),