From ce2d69fc82d3c44bbf9232ca384dfb5656efd7e2 Mon Sep 17 00:00:00 2001 From: Alexei Karpenko Date: Fri, 6 Dec 2024 13:05:35 +0100 Subject: [PATCH 1/6] Vertragsbestandteil Model: check if sap sync table present before executing select for sap organisationseinheit --- .../Vertragsbestandteil_model.php | 42 ++++++++++++++++--- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/application/models/vertragsbestandteil/Vertragsbestandteil_model.php b/application/models/vertragsbestandteil/Vertragsbestandteil_model.php index 6d8c18859..cbc529d83 100644 --- a/application/models/vertragsbestandteil/Vertragsbestandteil_model.php +++ b/application/models/vertragsbestandteil/Vertragsbestandteil_model.php @@ -19,12 +19,17 @@ class Vertragsbestandteil_model extends DB_Model protected function getVertragsbestandteilSQL() { + $sapInstalled = $this->_checkIfSAPSyncTableExists(); + + $oe_kurzbz_sap = $sapInstalled ? 'sap.oe_kurzbz_sap' : 'NULL AS oe_kurzbz_sap'; + $sap_join = $sapInstalled ? 'LEFT JOIN sync.tbl_sap_organisationsstruktur sap USING(oe_kurzbz)' : ''; + $sql = <<overlappingvbs; } + + /** + * Checks if sap sync table exists. + * @return bool + */ + private function _checkIfSAPSyncTableExists() + { + $params = array( + DB_NAME, + 'sync', + 'tbl_sap_organisationsstruktur' + ); + + $sql = "SELECT + 1 AS exists + FROM + information_schema.tables + WHERE + table_catalog = ? AND + table_schema = ? AND + table_name = ?"; + + $res = $this->execReadOnlyQuery($sql, $params); + + return hasData($res); + } } From 50aca4a54589797d4039141957b149ac57145f21 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Tue, 14 Jan 2025 11:00:26 +0100 Subject: [PATCH 2/6] - umbenennung auf internatinal credits --- system/phrasesupdate.php | 68 ++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 201c231a6..746c24da3 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -18268,6 +18268,26 @@ array( ) ) ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'internationalCredits', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'International Credits', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'International Credits', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'international', 'category' => 'international', @@ -18397,11 +18417,11 @@ array( array( 'sprache' => 'German', 'text' => 'Ab dem Studienjahr 2022/23 ist der Erwerb von internationalen und interkulturellen Kompetenzen Teil des Curriculums.
- Auf der Grundlage der vorliegenden Maßnahmen absolvieren Sie im Laufe ihres Studiums Internationalisierungsaktivitäten, die mit unterschiedlichen ECTS-Punkten hinterlegt sind.
- In Summe müssen 5 ECTS erworben werden, die im 6. Semester wirksam werden.
+ Auf der Grundlage der vorliegenden Maßnahmen absolvieren Sie im Laufe ihres Studiums Internationalisierungsaktivitäten, die mit unterschiedlichen International Credits hinterlegt sind.
+ In Summe müssen 5 International Credits erworben werden, die im 6. Semester wirksam werden.
Das Modul „International skills“ wird mit der Beurteilung „Mit Erfolg teilgenommen“ abgeschlossen.
Bitte wählen Sie die für Sie in Frage kommenden Maßnahmen aus und planen Sie das entsprechende Semester.
- Sobald die 5 ECTS erreicht wurden, überprüft der Studiengang die von Ihnen hochgeladenen Dokumente.

+ Sobald die 5 International Credits erreicht wurden, überprüft der Studiengang die von Ihnen hochgeladenen Dokumente.

Fragen zum Status Ihrer Maßnahme u.ä. richten Sie bitte an den Studiengang.
Bei allen weiteren Fragen zum Thema Organisation und Finanzierung des Auslandsaufenthalts und/oder Sprachkurs gibt Ihnen das International Office der FH Technikum Wien unter international.office@technikum-wien.at gerne Auskunft.', 'description' => '', @@ -18410,11 +18430,11 @@ array( array( 'sprache' => 'English', 'text' => 'Starting with the study year 2022/23, the acquisition of international and intercultural competencies is part of the curriculum.
- On the basis of the measures at-hand, you will complete internationalization activities during the course of your studies, which are assigned different ECTS credits.
- In total, 5 ECTS must be acquired, which become effective in the 6th semester.
+ On the basis of the measures at-hand, you will complete internationalization activities during the course of your studies, which are assigned different International Credits.
+ In total, 5 International Credits must be acquired, which become effective in the 6th semester.
The module “International skills” is completed with the assessment "Successfully participated".
Please select the measures that apply to you and schedule the appropriate semester.
- Once the 5 ECTS have been achieved, the degree program will review the documents you have uploaded.

+ Once the 5 International Credits have been achieved, the degree program will review the documents you have uploaded.

Please direct questions regarding the status of your measure and the like should be directed to the study program.
For all further questions regarding the organization and financing of your stay abroad and/or language course, please contact the International Office of the UAS Technikum Wien at international.office@technikum-wien.at. ', @@ -18771,13 +18791,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'ECTS bestätigt', + 'text' => 'International Credits bestätigt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'ECTS confirmed', + 'text' => 'International Credits confirmed', 'description' => '', 'insertvon' => 'system' ) @@ -18791,13 +18811,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'ECTS - Maßnahme', + 'text' => 'International Credits - Maßnahme', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'ECTS - Measures', + 'text' => 'International Credits - Measures', 'description' => '', 'insertvon' => 'system' ) @@ -19071,13 +19091,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Nur bestätigte Maßnahmen vorhanden, aber weniger als 5 ECTs.', + 'text' => 'Nur bestätigte Maßnahmen vorhanden, aber weniger als 5 International Credits.', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Only confirmed measures, but fewer than 5 ECTs.', + 'text' => 'Only confirmed measures, but fewer than 5 International Credits.', 'description' => '', 'insertvon' => 'system' ) @@ -19091,13 +19111,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Es wurden 5 ECTs erreicht.', + 'text' => 'Es wurden 5 International Credits erreicht.', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => '5 ECTs points have been achieved.', + 'text' => '5 International Credits have been achieved.', 'description' => '', 'insertvon' => 'system' ) @@ -19251,13 +19271,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'ECTS - bestätigt', + 'text' => 'International Credits - bestätigt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'ECTS - confirmed', + 'text' => 'International Credits - confirmed', 'description' => '', 'insertvon' => 'system' ) @@ -19391,13 +19411,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => '>=5 ECTS verplant', + 'text' => '>=5 International Credits verplant', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => '>=5 ECTS planned', + 'text' => '>=5 international credits planned', 'description' => '', 'insertvon' => 'system' ) @@ -19411,13 +19431,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => '<5 ECTS verplant', + 'text' => '<5 International Credits verplant', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => '<5 ECTS planned', + 'text' => '<5 International Credits planned', 'description' => '', 'insertvon' => 'system' ) @@ -19431,13 +19451,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => '>=5 ECTS bestätigt', + 'text' => '>=5 International Credits bestätigt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => '>=5 ECTS confirmed', + 'text' => '>=5 International Credits confirmed', 'description' => '', 'insertvon' => 'system' ) @@ -19451,13 +19471,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => '<5 ECTS bestätigt', + 'text' => '<5 International Credits bestätigt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => '<5 ECTS confirmed', + 'text' => '<5 International Credits confirmed', 'description' => '', 'insertvon' => 'system' ) From a1a9e96bc0db04db1b3328953af9a32ea19cc9e4 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 15 Jan 2025 13:34:16 +0100 Subject: [PATCH 3/6] permission basis/gehaelter --- system/dbupdate_3.4.php | 2 +- system/dbupdate_3.4/41950_perm_gehaelter.php | 41 ++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 system/dbupdate_3.4/41950_perm_gehaelter.php diff --git a/system/dbupdate_3.4.php b/system/dbupdate_3.4.php index 0af314c46..171fdafed 100644 --- a/system/dbupdate_3.4.php +++ b/system/dbupdate_3.4.php @@ -67,7 +67,7 @@ require_once('dbupdate_3.4/25999_C4_permission.php'); require_once('dbupdate_3.4/33683_digitale_anwesenheitsliste_und_entschuldigungsmanagement_fuer_studierende_prototyp.php'); require_once('dbupdate_3.4/40717_lv_faktor.php'); require_once('dbupdate_3.4/48526_pep_tagging.php'); - +require_once('dbupdate_3.4/41950_perm_gehaelter.php); // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

'; diff --git a/system/dbupdate_3.4/41950_perm_gehaelter.php b/system/dbupdate_3.4/41950_perm_gehaelter.php new file mode 100644 index 000000000..cad736916 --- /dev/null +++ b/system/dbupdate_3.4/41950_perm_gehaelter.php @@ -0,0 +1,41 @@ +, + * + * Beschreibung: + * Permissions f. Gehaelter + */ +if (! defined('DB_NAME')) exit('No direct script access allowed'); + +// Add permission: basis/gehaelter +if($result = @$db->db_query("SELECT 1 FROM system.tbl_berechtigung WHERE berechtigung_kurzbz = 'basis/gehaelter';")) +{ + if($db->db_num_rows($result) == 0) + { + $qry = "INSERT INTO system.tbl_berechtigung(berechtigung_kurzbz, beschreibung) VALUES('basis/gehaelter', 'Zugriff auf Gehaelter');"; + + if(!$db->db_query($qry)) + { + echo 'system.tbl_berechtigung '.$db->db_last_error().'
'; + } + else + { + echo 'system.tbl_berechtigung: Added permission "basis/gehaelter"
'; + } + } +} From fd67974d55068ca9e5fffdd1ad7bfe8196932d96 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 15 Jan 2025 13:35:58 +0100 Subject: [PATCH 4/6] fix typo --- system/dbupdate_3.4.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/dbupdate_3.4.php b/system/dbupdate_3.4.php index 171fdafed..57eee605c 100644 --- a/system/dbupdate_3.4.php +++ b/system/dbupdate_3.4.php @@ -67,7 +67,7 @@ require_once('dbupdate_3.4/25999_C4_permission.php'); require_once('dbupdate_3.4/33683_digitale_anwesenheitsliste_und_entschuldigungsmanagement_fuer_studierende_prototyp.php'); require_once('dbupdate_3.4/40717_lv_faktor.php'); require_once('dbupdate_3.4/48526_pep_tagging.php'); -require_once('dbupdate_3.4/41950_perm_gehaelter.php); +require_once('dbupdate_3.4/41950_perm_gehaelter.php'); // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

'; From f1234c0b99865e580c6fe5b79e7f65045c4dce28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szabo=20M=C3=B3nika?= Date: Wed, 15 Jan 2025 14:37:06 +0100 Subject: [PATCH 5/6] Update studentenexportextended.xls.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zusätzliche Spalte Person_id hinzufügen --- content/statistik/studentenexportextended.xls.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/statistik/studentenexportextended.xls.php b/content/statistik/studentenexportextended.xls.php index 81e51b53a..89acbe18f 100644 --- a/content/statistik/studentenexportextended.xls.php +++ b/content/statistik/studentenexportextended.xls.php @@ -127,6 +127,8 @@ $worksheet->write($zeile, ++$i, "STAATSBÜRGERSCHAFT", $format_bold); $maxlength[$i] = 16; $worksheet->write($zeile, ++$i, "SVNR", $format_bold); $maxlength[$i] = 4; +$worksheet->write($zeile, ++$i, "PERSON_ID", $format_bold); +$maxlength[$i] = 6; $worksheet->write($zeile, ++$i, "ERSATZKENNZEICHEN", $format_bold); $maxlength[$i] = 17; $worksheet->write($zeile, ++$i, "GESCHLECHT", $format_bold); @@ -399,6 +401,12 @@ function draw_content($row) $maxlength[$i] = mb_strlen($row->svnr); $worksheet->write($zeile, $i, $row->svnr); $i++; + + //Person_id + if (mb_strlen($row->person_id) > $maxlength[$i]) + $maxlength[$i] = mb_strlen($row->person_id); + $worksheet->write($zeile, $i, $row->person_id); + $i++; //Ersatzkennzeichen if (mb_strlen($row->ersatzkennzeichen) > $maxlength[$i]) From f381ef229ef9ad57fc9d75a1be706c7e3523dd91 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Thu, 16 Jan 2025 10:38:01 +0100 Subject: [PATCH 6/6] - index tbl_lehrveranstaltung_faktor_lvid hinzugefuegt - sortierung gleichgezogen --- system/dbupdate_3.4/40717_lv_faktor.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/system/dbupdate_3.4/40717_lv_faktor.php b/system/dbupdate_3.4/40717_lv_faktor.php index 932d6fd40..c304e292d 100644 --- a/system/dbupdate_3.4/40717_lv_faktor.php +++ b/system/dbupdate_3.4/40717_lv_faktor.php @@ -63,3 +63,18 @@ if (!$result = @$db->db_query("SELECT 1 FROM lehre.tbl_lehrveranstaltung_faktor else echo 'Tabelle: lehre.tbl_lehrveranstaltung_faktor befüllt!'; } + +// Add index to lehre.tbl_lehrveranstaltung_faktor +if ($result = $db->db_query("SELECT * FROM pg_class WHERE relname='idx_tbl_lehrveranstaltung_faktor_lvid'")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = "CREATE INDEX idx_tbl_lehrveranstaltung_faktor_lvid ON lehre.tbl_lehrveranstaltung_faktor USING btree (lehrveranstaltung_id);"; + + if (! $db->db_query($qry)) + echo 'Indizes: ' . $db->db_last_error() . '
'; + else + echo 'Index fuer lehre.tbl_lehrveranstaltung_faktor.lehrveranstaltung_id hinzugefuegt'; + } +} +