From b079d22e8db60db783aa5e39bad24fbd130f89a2 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Mon, 27 Jan 2025 09:37:02 +0100 Subject: [PATCH 1/9] - 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/9] - 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 bcc712e9006f5b658318bb0e241c899b562a50b1 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Wed, 9 Apr 2025 14:27:37 +0200 Subject: [PATCH 3/9] addfaktor beim hinzuefuegen einer lv entfernt --- vilesci/lehre/lehrveranstaltung_details.php | 27 --------------------- 1 file changed, 27 deletions(-) diff --git a/vilesci/lehre/lehrveranstaltung_details.php b/vilesci/lehre/lehrveranstaltung_details.php index 60f2fc3c9..bad2a7d93 100644 --- a/vilesci/lehre/lehrveranstaltung_details.php +++ b/vilesci/lehre/lehrveranstaltung_details.php @@ -30,8 +30,6 @@ require_once('../../include/lehrmodus.class.php'); require_once('../../include/benutzerberechtigung.class.php'); require_once('../../include/studienplan.class.php'); - require_once('../../include/lehrveranstaltung_faktor.class.php'); - require_once('../../include/studiensemester.class.php'); if (!$db = new basis_db()) die('Es konnte keine Verbindung zum Server aufgebaut werden.'); @@ -141,31 +139,6 @@ $reloadstr .= " window.location.href='".$_SERVER['PHP_SELF']."?stg_kz=$lv->studiengang_kz&semester=$lv->semester&neu=true';"; } $reloadstr .= "\n"; - - if (in_array($lv->lehrtyp_kurzbz, array('tpl', 'lv')) && $lv->new === true) - { - $lv_faktor = new lehrveranstaltung_faktor(); - $studiensemester = new studiensemester(); - $studiensemester_von = $studiensemester->getLastOrAktSemester(); - if ($lv->lehrtyp_kurzbz === 'lv' && $_POST['lehrveranstaltung_template_id'] !== '') - { - - $lv_faktor->getAkt($_POST['lehrveranstaltung_template_id']); - //TODO Faktor in eine Config - if (is_null($lv_faktor->faktor)) - $lv_faktor->addFaktor($lv->lehrveranstaltung_id, 2, $studiensemester_von); - else - $lv_faktor->addFaktor($lv->lehrveranstaltung_id, $lv_faktor->faktor, $studiensemester_von); - } - else - { - $lv_faktor->loadByLV($lv->lehrveranstaltung_id); - if (empty($lv_faktor->lv_faktoren)) - { - $lv_faktor->addFaktor($lv->lehrveranstaltung_id, 2, $studiensemester_von); - } - } - } } } From 1888c51a483b4d28c2b6bd37caf4f8172a66be74 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Tue, 15 Apr 2025 11:09:59 +0200 Subject: [PATCH 4/9] 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' ), From 24b19a1d8b83504f86f723190bd13378d1602171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 30 Apr 2025 10:33:37 +0200 Subject: [PATCH 5/9] =?UTF-8?q?Workaround=20f=C3=BCr=20Bug=20in=20Firefox?= =?UTF-8?q?=20ab=20Version=20137=20wodruch=20der=20Weiter=20Button=20nicht?= =?UTF-8?q?=20immer=20ganz=20angezeigt=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/testtool/frage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cis/testtool/frage.php b/cis/testtool/frage.php index 0aa37b299..c38229cdf 100644 --- a/cis/testtool/frage.php +++ b/cis/testtool/frage.php @@ -148,7 +148,7 @@ echo ' alert(t("testtool/alleFragenBeantwortet")."'"?>); return true; } - + $(document).ready(function () { $(document).bind('cut copy paste', function(e) { @@ -717,7 +717,7 @@ if($frage->frage_id!='') if(!$demo) { - echo ''; + echo ''; } else { From 0930866beb54582a29423eddf1c09356a9005e49 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Mon, 5 May 2025 13:55:54 +0200 Subject: [PATCH 6/9] revert change introduced by merging api refactoring branch --- public/js/components/DashboardWidget/Stundenplan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/components/DashboardWidget/Stundenplan.js b/public/js/components/DashboardWidget/Stundenplan.js index 05fa94c2d..c45248dc8 100644 --- a/public/js/components/DashboardWidget/Stundenplan.js +++ b/public/js/components/DashboardWidget/Stundenplan.js @@ -128,7 +128,7 @@ export default { loadEvents: function () { Promise.allSettled([ - this.$api.call(ApiStundenplan.getStundenplan(this.monthFirstDay, this.monthLastDay)), + this.$api.call(ApiStundenplan.StundenplanEvents(this.monthFirstDay, this.monthLastDay)), this.$api.call(ApiStundenplan.getStundenplanReservierungen(this.monthFirstDay, this.monthLastDay)) ]).then((result) => { let promise_events = []; From 6ab50654ba219c386ec759653998f2e3e3863acb Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Mon, 5 May 2025 16:55:06 +0200 Subject: [PATCH 7/9] add activity title to moodle calender entries, render activity title as html, set overscroll behavior for all day event area --- public/css/components/calendar.css | 5 +++-- public/js/components/Cis/Mylv/LvInfo.js | 2 +- public/js/components/Cis/Mylv/LvModal.js | 2 +- public/js/components/Cis/Stundenplan/Stundenplan.js | 6 +++--- public/js/components/DashboardWidget/Stundenplan.js | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/public/css/components/calendar.css b/public/css/components/calendar.css index ddf35e3e7..1de5e575b 100644 --- a/public/css/components/calendar.css +++ b/public/css/components/calendar.css @@ -73,9 +73,10 @@ box-shadow: 1px 1px 0 #dee2e6; } -.fhc-calendar-week-page .all-day-event{ +.fhc-calendar-week-page .all-day-event { max-height: 75px; - overflow:auto; + overflow: auto; + overscroll-behavior: none; } .fhc-calendar-week-page .all-day-event-container{ diff --git a/public/js/components/Cis/Mylv/LvInfo.js b/public/js/components/Cis/Mylv/LvInfo.js index 514e34779..a17eb4b67 100644 --- a/public/js/components/Cis/Mylv/LvInfo.js +++ b/public/js/components/Cis/Mylv/LvInfo.js @@ -68,7 +68,7 @@ export default { {{$p.t('global','aktivitaet')}}: - {{event?.assignment}} + {{$p.t('global','typ')}}: diff --git a/public/js/components/Cis/Mylv/LvModal.js b/public/js/components/Cis/Mylv/LvModal.js index f4ac6edfc..19c444a21 100644 --- a/public/js/components/Cis/Mylv/LvModal.js +++ b/public/js/components/Cis/Mylv/LvModal.js @@ -76,7 +76,7 @@ export default { template: /*html*/ ` diff --git a/public/js/components/Cis/Stundenplan/Stundenplan.js b/public/js/components/Cis/Stundenplan/Stundenplan.js index bf646d5e4..efb8c06ea 100644 --- a/public/js/components/Cis/Stundenplan/Stundenplan.js +++ b/public/js/components/Cis/Stundenplan/Stundenplan.js @@ -288,7 +288,7 @@ const Stundenplan = {
- {{event.topic}} + - {{event.topic}}
@@ -308,7 +308,7 @@ const Stundenplan = {
- {{event.topic}} + - {{event.topic}}
{{event.topic}} @@ -322,7 +322,7 @@ const Stundenplan = {