Browse Source

Anpassung Modul-XML für Installation/Upgrade #1

master
Daniel Quathamer 9 months ago
parent
commit
abab1f897d
  1. 14
      src-modules/module/sxc/conf/includes.txt
  2. 230
      src-modules/module/sxc/conf/sxc.xml
  3. 2
      src-modules/module/sxc/masken/47000_felderinfo.unl
  4. 18
      src-modules/module/sxc/schluesseltabellen/create_views.sql
  5. 160
      src-modules/module/sxc/schluesseltabellen/macro_masken_bez_fuellen.sql
  6. 41
      src-modules/module/sxc/schluesseltabellen/sx_jobs_fuellen.sql
  7. 0
      src-modules/module/sxc/schluesseltabellen/sxc_hochschulen.unl
  8. 0
      src-modules/module/sxc/schluesseltabellen/sxc_hochschulen_hsk.unl
  9. 1440
      src-modules/module/sxc/schluesseltabellen/sxc_hsk_hochschulen_standorte.unl
  10. 5
      src-modules/module/sxc/schluesseltabellen/sxc_hsk_hochschultypen.unl
  11. 2
      src-modules/module/sxc/schluesseltabellen/xcube_install_restrictions.sql

14
src-modules/module/sxc/conf/includes.txt

@ -1,11 +1,3 @@
doku/rpta_modul/rpta.html doku/sxc_modul/sxc.html
WEB-INF/conf/edustore/db/bin/SQL_ENV_rpta.sam WEB-INF/conf/edustore/db/bin/SQL_ENV_sxc.sam
images/icons/file-excel_rpta.svg
images/icons/magic.svg
WEB-INF/conf/edustore/db/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql
WEB-INF/lib/superx-rpta.jar
WEB-INF/reports/simple_table.jrtx
xml/tabelle_jrxml_a4_quer.xsl
xml/tabelle_jrxml_book_without_cover.xsl
xml/rpta_templates.xsl
xml/rpta_assistent.xsl

230
src-modules/module/sxc/conf/sxc.xml

@ -9,6 +9,145 @@ system="SuperX-Connect" thema="Hochschulvergleich" thema_parent="Abfragen">
rightname="CS_BIA_STANDARDREPORTS_ADMIN[SXC]" /> rightname="CS_BIA_STANDARDREPORTS_ADMIN[SXC]" />
</sachgebiete> </sachgebiete>
<table name="sxc_hochschulen">
<columns><column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hs_nr" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="kapitel" type ="CHAR" size ="5" default ="" notnull ="false" />
<column name="art" type ="CHAR" size ="10" default ="" notnull ="false" />
<column name="traegerschaft" type ="CHAR" size ="10" default ="" notnull ="false" />
<column name="kurztext" type ="CHAR" size ="100" default ="" notnull ="false" />
<column name="ort" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="bland" type ="CHAR" size ="10" default ="" notnull ="false" />
<column name="dat_in_sxc" type ="CHAR" size ="4" default ="" notnull ="false" />
<column name="hrk_laufnummer" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="hrk_art" type ="CHAR" size ="30" default ="" notnull ="false" />
<column name="hrk_traegerschaft" type ="CHAR" size ="30" default ="" notnull ="false" />
<column name="hs_nr_hauptsitz" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="updated" type ="CHAR" size ="200" default ="" notnull ="false" />
<column name="hrk_hauptsitz" type ="INTEGER" size ="10" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="sxc_standorte">
<columns><column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="stort_nr" type ="CHAR" size ="10" default ="" notnull ="false" />
<column name="kurztext" type ="CHAR" size ="100" default ="" notnull ="false" />
<column name="ort" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="bland" type ="CHAR" size ="10" default ="" notnull ="false" />
<column name="hrk_laufnummer" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="hauptsitz" type ="INTEGER" size ="10" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="sxc_hochschulen_hsk">
<columns><column name="hsnr" type ="INTEGER" size ="10" default ="" notnull ="true" />
<column name="hochschulkurzname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hochschulname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hochschultyp" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="traegerschaft" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="bundesland" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="anzahl_studierende" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="gruendungsjahr" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="promotionsrecht" type ="CHAR" size ="4" default ="" notnull ="false" />
<column name="habilitationsrecht" type ="CHAR" size ="4" default ="" notnull ="false" />
<column name="strasse" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="postleitzahl" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="hausanschrift_ort" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hausanschrift_postfach" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="postleitzahl_postanschrift" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="ort_postanschrift" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="telefonvorwahl" type ="CHAR" size ="10" default ="" notnull ="false" />
<column name="telefon" type ="CHAR" size ="30" default ="" notnull ="false" />
<column name="fax" type ="CHAR" size ="30" default ="" notnull ="false" />
<column name="homepage" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="mitglied_hrk" type ="SMALLINT" size ="5" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys>
<rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>sxc_hochschulen_hsk</fld>
<fld name='column_name'>hsnr</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>pk_sxc_hochschulen_hsk</fld>
</row>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="sxc_hsk_hochschulen_standorte">
<columns><column name="laufnummer" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="kurzname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="typ" type ="SMALLINT" size ="5" default ="" notnull ="false" />
<column name="typ_str" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="traegertyp" type ="SMALLINT" size ="5" default ="" notnull ="false" />
<column name="bundesland" type ="SMALLINT" size ="5" default ="" notnull ="false" />
<column name="bundesland_str" type ="VARCHAR" size ="200" default ="" notnull ="false" />
<column name="traegertyp_str" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="ort" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="standort_name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="standort_ort" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hauptsitz" type ="CHAR" size ="1" default ="" notnull ="false" />
<column name="standort_laufnummer" type ="INTEGER" size ="10" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="sxc_hsk_hochschultypen">
<columns><column name="laufnummer" type ="SMALLINT" size ="5" default ="" notnull ="false" />
<column name="bezeichnung" type ="CHAR" size ="30" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys>
<rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>sxc_hsk_hochschultypen</fld>
<fld name='column_name'>laufnummer</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>pk_sxc_hsk_hochschultypen</fld>
</row>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<!--Datentabellen destatis:-->
<table name="sxc_stud_sem_da_geschl_hs_neu" thema="SuperX-Connect" typ="Ladetabelle" <table name="sxc_stud_sem_da_geschl_hs_neu" thema="SuperX-Connect" typ="Ladetabelle"
releaseUnload="empty"> releaseUnload="empty">
<columns><column name="statistik_code" type ="VARCHAR" size ="255" default ="" notnull ="false" /> <columns><column name="statistik_code" type ="VARCHAR" size ="255" default ="" notnull ="false" />
@ -87,6 +226,74 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[SXC]" />
<views> <views>
<view name="sxc_hochschulen_hsk_art">
<columns><column name="druck" type ="CHAR" size ="2147483647" default ="" notnull ="false" />
<column name="apnr" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="parent" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="ebene" type ="INTEGER" size ="10" default ="" notnull ="false" />
</columns>
<sql dbsystem=""><![CDATA[SELECT 'Hochschulen'::varchar AS druck,
0 AS apnr,
NULL::integer AS parent,
0::smallint AS ebene
FROM xdummy
UNION
SELECT sxc_hsk_hochschultypen.bezeichnung AS druck,
sxc_hsk_hochschultypen.laufnummer AS apnr,
0 AS parent,
1 AS ebene
FROM sxc_hsk_hochschultypen
UNION
SELECT 'nicht zugeordnet'::varchar AS druck,
99 AS apnr,
0 AS parent,
1 AS ebene
FROM xdummy
UNION
SELECT sxc_hochschulen.name AS druck,
sxc_hochschulen.hs_nr AS apnr,
(( SELECT h.laufnummer
FROM sxc_hsk_hochschultypen h
WHERE h.bezeichnung = sxc_hochschulen.hrk_art))::integer AS parent,
2::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hrk_laufnummer IS NOT NULL AND sxc_hochschulen.hs_nr_hauptsitz IS NULL
UNION
SELECT sxc_hochschulen.name AS druck,
sxc_hochschulen.hs_nr * 100 AS apnr,
(( SELECT h.laufnummer
FROM sxc_hsk_hochschultypen h
WHERE h.bezeichnung = sxc_hochschulen.hrk_art))::integer AS parent,
2::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hrk_laufnummer IS NOT NULL AND sxc_hochschulen.hs_nr_hauptsitz = 1
UNION
SELECT sxc_hochschulen.name AS druck,
sxc_hochschulen.hs_nr AS apnr,
99 AS parent,
2::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hrk_laufnummer IS NULL AND sxc_hochschulen.hrk_hauptsitz IS NULL
UNION
SELECT sxc_hochschulen.name AS druck,
sxc_hochschulen.hs_nr AS apnr,
sxc_hochschulen.hs_nr_hauptsitz * 100 AS parent,
3::smallint AS ebene
FROM sxc_hochschulen
WHERE sxc_hochschulen.hrk_laufnummer IS NULL AND sxc_hochschulen.hs_nr_hauptsitz IS NOT NULL
UNION
SELECT btrim(s.name::text) || ' (Hauptsitz)'::text AS druck,
s.hs_nr AS apnr,
s.hs_nr * 100 AS parent,
3::smallint AS ebene
FROM sxc_hochschulen s
WHERE s.hrk_laufnummer IS NOT NULL AND s.hs_nr_hauptsitz = 1 AND (EXISTS ( SELECT s1.hrk_hauptsitz
FROM sxc_hochschulen s1
WHERE s1.hs_nr = s.hs_nr));
]]></sql>
</view>
</views> </views>
@ -110,6 +317,12 @@ parent="SuperX-Connect">Abfragen zur Administration von SuperX-Connect </thema>
<path>$SXC_PFAD/masken</path> <path>$SXC_PFAD/masken</path>
</src> </src>
</maske> </maske>
<maske tid="47060" name="Gesamtbericht Studierende nach Geschlecht und Nationalität" thema="Hochschulvergleich">
<description></description>
<src>
<path>$SXC_PFAD/masken</path>
</src>
</maske>
</masken> </masken>
<data-integrity> <data-integrity>
@ -142,8 +355,23 @@ parent="SuperX-Connect">Abfragen zur Administration von SuperX-Connect </thema>
<upgrade> <upgrade>
<upgrade-step> <upgrade-step>
<action error="stop"> <action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="sxc_column_type"><file path="$SXC_PFAD/schluesseltabellen/sxc_column_type.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="sxc_hochschulen_hsk">
<file path="$SXC_PFAD/schluesseltabellen/sxc_hochschulen_hsk.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="sxc_hochschulen">
<file path="$SXC_PFAD/schluesseltabellen/sxc_hochschulen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="sxc_hsk_hochschulen_standorte">
<file path="$SXC_PFAD/schluesseltabellen/sxc_hsk_hochschulen_standorte.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="sxc_hsk_hochschultypen">
<file path="$SXC_PFAD/schluesseltabellen/sxc_hsk_hochschultypen.unl"/></loadtable>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/> <nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/sichten_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/xcube_install.sql" database=""/>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/xcube_dims_install.sql" database=""/>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/xcube_install_restrictions.sql" database=""/>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/sx_jobs_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$SXC_PFAD/schluesseltabellen/macro_masken_bez_fuellen.sql" database=""/>
</action> </action>
<action> <action>

2
src-modules/module/sxc/masken/47000_felderinfo.unl

@ -1,3 +1,3 @@
47000^Hochschule^0^0^0^100^150^1^char^30^0^12^<<SQL>> select tid, type, name,sortnr from sichten where art in('KENN-Kostenstellen-Sicht','KENN-Hochschulen-Sicht') order by sortnr, name;^^ ^ 47000^Hochschule^0^0^0^100^150^1^char^30^0^12^<<SQL>> select tid, type, name,sortnr from sichten where art in('SXC_Hochschulen-Sicht') and aktiv=1 order by sortnr, name;^^ ^
47001^Seit Semester^1^0^0^130^80^1^integer^30^0^1^<<SQL>> select tid,druck from kenn_semester order by tid DESC;^^<<SQL>> select tid,druck from kenn_semester where today() between sem_beginn and sem_ende;^ 47001^Seit Semester^1^0^0^130^80^1^integer^30^0^1^<<SQL>> select tid,druck from kenn_semester order by tid DESC;^^<<SQL>> select tid,druck from kenn_semester where today() between sem_beginn and sem_ende;^
47007^Bis Semester^3^330^-1^130^100^1^integer^30^0^1^<<SQL>> select tid,druck from kenn_semester order by tid DESC;^ ^<<SQL>> select tid,druck from kenn_semester where today() between sem_beginn and sem_ende;^ 47007^Bis Semester^3^330^-1^130^100^1^integer^30^0^1^<<SQL>> select tid,druck from kenn_semester order by tid DESC;^ ^<<SQL>> select tid,druck from kenn_semester where today() between sem_beginn and sem_ende;^

18
src-modules/module/sxc/schluesseltabellen/create_views.sql

@ -1,18 +0,0 @@
--Hochschulen gruppiert
drop view if exists sxc_hochschulen_hsk_art;
create view sxc_hochschulen_hsk_art (druck, apnr, parent, ebene) as
select 'Hochschulen', 0::integer as hs_nr, null::integer as parent, 0::smallint as ebene from xdummy
union select bezeichnung, laufnummer, 0 as parent, 1 as ebene from hsk_hochschultypen
union select 'nicht zugeordnet', 99, 0 as parent, 1 as ebene from xdummy
union select name, hs_nr, (select laufnummer from hsk_hochschultypen H where H.bezeichnung=sxc_hochschulen.hrk_art)::integer as parent, 2::smallint as ebene from sxc_hochschulen where
hrk_laufnummer is not null and (hs_nr_hauptsitz is null )
--Element kann sich nicht selbst als parent haben!! und deshalb auch die Dependancen anders
union select name, hs_nr*100, (select laufnummer from hsk_hochschultypen H where H.bezeichnung=sxc_hochschulen.hrk_art)::integer as parent, 2::smallint as ebene from sxc_hochschulen where
hrk_laufnummer is not null and hs_nr_hauptsitz=1
union select name, hs_nr, 99 as parent, 2::smallint as ebene from sxc_hochschulen where hrk_laufnummer is null and (hrk_hauptsitz is null )
union select name, hs_nr, hs_nr_hauptsitz*100 as parent, 3::smallint as ebene from sxc_hochschulen where hrk_laufnummer is null and (hs_nr_hauptsitz is not null)
--und die Hauptstellen selbst als eigenständige HS, Element kann sich wohl nicht selbst als parent haben
union select trim(name)||' (Hauptsitz)', hs_nr, hs_nr*100 as parent, 3::smallint as ebene from sxc_hochschulen S where hrk_laufnummer is not null and hs_nr_hauptsitz =1
and exists (select hrk_hauptsitz from sxc_hochschulen S1 where S1.hs_nr =S.hs_nr)

160
src-modules/module/sxc/schluesseltabellen/macro_masken_bez_fuellen.sql

@ -0,0 +1,160 @@
--freemarker template
<#assign makros = [
{"tid":"47060"}
] />
<#assign masken = [
{"makro":"47060", "tid":"47030", "sortnr":"10"},
{"makro":"47060", "tid":"47030", "sortnr":"20"},
{"makro":"47060", "tid":"47030", "sortnr":"30"},
{"makro":"47060", "tid":"47030", "sortnr":"40"}
] />
<#assign felder = [
{"makro":"47060", "sortnr":"10", "feldname":"Ansicht in Ergebniszeilen", "value":"semester"},
{"makro":"47060", "sortnr":"10", "feldname":"Ansicht in Ergebnisspalten", "value":"auspraegung_code_3"},
{"makro":"47060", "sortnr":"20", "feldname":"Ansicht in Ergebniszeilen", "value":"semester"},
{"makro":"47060", "sortnr":"20", "feldname":"Ansicht in Ergebnisspalten", "value":"auspraegung_code_2"},
{"makro":"47060", "sortnr":"30", "feldname":"Ansicht in Ergebniszeilen", "value":"hs_nr"},
{"makro":"47060", "sortnr":"30", "feldname":"Ansicht in Ergebnisspalten", "value":"auspraegung_code_3"},
{"makro":"47060", "sortnr":"40", "feldname":"Ansicht in Ergebniszeilen", "value":"hs_nr"},
{"makro":"47060", "sortnr":"40", "feldname":"Ansicht in Ergebnisspalten", "value":"auspraegung_code_2"}
] />
-- ab hier nicht mehr ändern:
CREATE TEMP TABLE tmp_macro_masken_bez (
maskeninfo_id1 integer NOT NULL,
maskeninfo_id2 integer NOT NULL,
active integer DEFAULT 1 NOT NULL,
sortnr smallint NOT NULL,
schleifenrelation character(255),
schleifenfeldname character(255),
alias character(255),
schleifenfstand character(255),
schleifenfsicht character(255),
aktion character(255)
);
CREATE TEMP TABLE tmp_macro_feld_wert (
macro integer NOT NULL,
sortnr integer NOT NULL,
feldname character(255) NOT NULL,
alias character(255) NOT NULL,
value character(255),
value_caption character(255),
feldstand character(255),
feldsicht character(255),
active integer DEFAULT 1 NOT NULL
);
<#foreach makro in makros>
<#foreach maske in masken>
<#if maske.makro==makro.tid>
insert into tmp_macro_masken_bez(maskeninfo_id1,
maskeninfo_id2,
active,
sortnr)
select ${makro.tid},--maskeninfo_id1,
${maske.tid},--maskeninfo_id2,
1,--active,
${maske.sortnr} --sortnr
from xdummy;
<#foreach feld in felder>
<#if feld.makro==makro.tid && feld.sortnr==maske.sortnr>
--Tab.12: alle ohne Exmatr
insert into tmp_macro_feld_wert
( macro,
sortnr,
feldname,
alias,
value,
value_caption,
feldstand,
feldsicht,
active)
SELECT ${makro.tid}, --macro
${maske.sortnr},--sortnr
'${feld.feldname}',--feldname,
'',--alias,
'${feld.value}', --value,
'',--value_caption,
'', --feldstand,
'',--feldsicht,
1 --active
FROM xdummy;
</#if>
</#foreach>
</#if>
</#foreach>
</#foreach>
delete from macro_masken_bez where maskeninfo_id1 in (select maskeninfo_id1 from tmp_macro_masken_bez)
;
insert into macro_masken_bez
(maskeninfo_id1,
maskeninfo_id2,
active,
sortnr,
schleifenrelation,
schleifenfeldname,
alias,
schleifenfstand,
schleifenfsicht,
aktion)
select maskeninfo_id1,
maskeninfo_id2,
active,
sortnr,
schleifenrelation,
schleifenfeldname,
alias,
schleifenfstand,
schleifenfsicht,
aktion
FROM tmp_macro_masken_bez
;
delete from macro_feld_wert where macro in (select macro from tmp_macro_feld_wert);
insert into macro_feld_wert
( macro,
sortnr,
feldname,
alias,
value,
value_caption,
feldstand,
feldsicht,
active)
SELECT macro,
sortnr,
feldname,
alias,
value,
value_caption,
feldstand,
feldsicht,
active
FROM tmp_macro_feld_wert;
drop table tmp_macro_masken_bez;
drop table tmp_macro_feld_wert;

41
src-modules/module/sxc/schluesseltabellen/sx_jobs_fuellen.sql

@ -0,0 +1,41 @@
--Freemarker Template
--Achtung: Macro fügt Inhalte ein
--Bitte nur Freemarker Variablen füllen
<sqlvars>
<sqlvar name="sx_jobs_exists">select sp_table_exists('sx_jobs') from xdummy;</sqlvar>
</sqlvars>
<#assign jobs = [
{"uniquename":"21311-0002_stud_sem_da_geschl_hs", "caption":"Destatis Tabelle Stud. nach Geschl.+Staat einlesen", "filepath":"sxc/etl/genesis/21311-0002_stud_sem_da_geschl_hs/import.kjb","sachgebiete_id":360,
"kenn_profil":"","hs_nr":"","modus_supported":1,"params":"",
"check_sql":"select count(*) from sxc_stud_sem_da_geschl_hs"}
] />
--- Freemarker Magic
<#if sx_jobs_exists=1>
<#foreach job in jobs>
delete from sx_jobs where uniquename='${job.uniquename}';
</#foreach>
<#if SQLdialect='Postgres'>
select sp_update_sequence('sx_jobs');
</#if>
<#foreach job in jobs>
insert into sx_jobs (uniquename,caption,filepath,sachgebiete_id,kenn_profil,hs_nr,modus_supported,params
<#if SQLdialect='Postgres'>,check_sql
</#if>)
values ('${job.uniquename}','${job.caption}','${job.filepath}',${job.sachgebiete_id},<#if job.kenn_profil!="">${job.kenn_profil}<#else>null::integer</#if>,
<#if job.hs_nr!="">${job.hs_nr}<#else>null::integer</#if>,${job.modus_supported},'${job.params}'
<#if SQLdialect='Postgres'>
,'${job.check_sql}'
</#if>
);
</#foreach>
<#if SQLdialect='Postgres'>
select sp_update_sequence('sx_jobs');
</#if>
</#if>

0
src-modules/module/sxc/rohdaten/sxc_hochschulen.unl → src-modules/module/sxc/schluesseltabellen/sxc_hochschulen.unl

0
src-modules/module/sxc/rohdaten/sxc_hochschulen_hsk.unl → src-modules/module/sxc/schluesseltabellen/sxc_hochschulen_hsk.unl

1440
src-modules/module/sxc/rohdaten/sxc_hsk_hochschulen_standorte.unl → src-modules/module/sxc/schluesseltabellen/sxc_hsk_hochschulen_standorte.unl

File diff suppressed because it is too large Load Diff

5
src-modules/module/sxc/schluesseltabellen/sxc_hsk_hochschultypen.unl

@ -0,0 +1,5 @@
4^Verwaltungshochschule^
1^Universitäten^
2^Fachhochschulen / HAW^
5^Hochschulen eigenen Typs^
3^Künstlerische Hochschulen^

2
src-modules/module/sxc/schluesseltabellen/xcube_install_restrictions.sql

@ -1,7 +1,7 @@
update xcube set restriction='1=1 update xcube set restriction='1=1
/* and semester >= <<Seit Semester>> */ /* and semester >= <<Seit Semester>> */
/*and semester <= <<Bis Semester>>*/ /*and semester <= <<Bis Semester>>*/
/* and hs_nr::char(20) in (<<Hochschule>>) */ /* and hs_nr::char(20) in <@printkeys Hochschule.allNeededKeysList /> --<<Hochschule>> */
/* and ((trim(auspraegung_code_3) = <<Geschlecht>> and trim(auspraegung_code_3) in (''GESM'',''GESW''))*/ /* and ((trim(auspraegung_code_3) = <<Geschlecht>> and trim(auspraegung_code_3) in (''GESM'',''GESW''))*/
/* or (trim(auspraegung_code_3) is null and <<Geschlecht>> = ''UNB'')) */ /* or (trim(auspraegung_code_3) is null and <<Geschlecht>> = ''UNB'')) */
/* and trim(auspraegung_code_2) = <<Nationalität>> */ /* and trim(auspraegung_code_2) = <<Nationalität>> */

Loading…
Cancel
Save