From 595a335a988810f12b80cb169131bab21fdc1e92 Mon Sep 17 00:00:00 2001 From: Daniel Quathamer Date: Thu, 31 Oct 2024 14:55:48 +0100 Subject: [PATCH 1/2] Bugfix negat. Fachsem./Hochschulsem. #1 --- src-modules/module/xcube/conf/xcube.xml | 48 +++++++++++++++++++ .../schluesseltabellen/xcube_dims_install.sql | 6 +-- .../xcube_install_restrictions.sql | 2 +- 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/src-modules/module/xcube/conf/xcube.xml b/src-modules/module/xcube/conf/xcube.xml index bcc94e9..0af13e3 100644 --- a/src-modules/module/xcube/conf/xcube.xml +++ b/src-modules/module/xcube/conf/xcube.xml @@ -240,6 +240,54 @@ parent="Xcubes">Abfragen zur Administration von Xcubes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index e7dad0d..ea96856 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql @@ -49,16 +49,16 @@ select 'semester',druck ,tid::varchar(50),tid from kenn_semester; delete from xcube_dims where id='fssemzahl'; INSERT INTO xcube_dims (id,apnr,name,sort1) select distinct 'fssemzahl',fach_sem_zahl::varchar(10),fach_sem_zahl||'.FS',fach_sem_zahl from sos_stg_aggr -where fach_sem_zahl <= 10; +where fach_sem_zahl between 0 and 10; INSERT INTO xcube_dims (id,apnr,name,sort1) select distinct 'fssemzahl', '99','FS>10',99 from sos_stg_aggr where fach_sem_zahl>10; <#if TableFieldExists('sos_stg_aggr','hssem')> -delete from xcube_dims where id='hssem'; +delete from xcube_dims where id='hssemzahl'; INSERT INTO xcube_dims (id,apnr,name,sort1) select distinct 'hssemzahl',hssem::varchar(10),hssem||'.HS',hssem from sos_stg_aggr -where hssem <= 10; +where hssem between 0 and 10; INSERT INTO xcube_dims (id,apnr,name,sort1) select distinct 'hssemzahl', '999','HS>10',99 from sos_stg_aggr where hssem>10; diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index b9e6b7b..33cb950 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -5,7 +5,7 @@ update xcube set restriction='<> /* AND fach_sem_zahl <= <> */ /* and stichtag = <> */ /* and kz_rueck_beur_ein in(<>) */ - /* and geschlecht=<> */ + /* and geschlecht in (<>) */ /* and ${<>} */ /* and tid_stg in (select tid from dim_studiengang where abschluss in <@printkeys Abschluss.allNeededKeysList />) --<> */ and ''s_'' || tid_stg::char(10) in <@printkeys Studiengang.allNeededKeysList /> --<> From 0815a0f4534d0122c2a47fd8ddf9c348da85a1f6 Mon Sep 17 00:00:00 2001 From: Daniel Quathamer Date: Fri, 13 Dec 2024 15:57:07 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Dimension=20H=C3=B6rerstatus=20abfangen=20d?= =?UTF-8?q?ass=20Hochschule=20A=20als=20Schl=C3=BCssel=20nutzt=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-modules/module/xcube/conf/xcube.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src-modules/module/xcube/conf/xcube.xml b/src-modules/module/xcube/conf/xcube.xml index 0af13e3..4e57696 100644 --- a/src-modules/module/xcube/conf/xcube.xml +++ b/src-modules/module/xcube/conf/xcube.xml @@ -133,28 +133,28 @@ select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy; -