Browse Source

Auswertung ext. Fächer impl. #12

COStage_0.3_Release
Daniel Quathamer 2 years ago
parent
commit
5e6e1dbe48
  1. 79
      src-modules/module/costage/conf/costage.xml
  2. 2
      src-modules/module/costage/datentabellen/trans_costage_st_studierendenstammdaten.sql
  3. 67
      src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql
  4. 1
      src-modules/module/costage/masken/43040_maskeninfo.unl
  5. 1
      src-modules/module/costage/masken/43080_maskeninfo.unl
  6. 1257
      src-modules/module/costage/rohdaten/costage_prepare_unlfiles.x
  7. 42
      src-modules/module/costage/rohdaten/costage_prepare_unlfiles.xsl
  8. 1
      src-modules/module/costage/rohdaten/costage_prepare_unlfiles_generator.x
  9. 86
      src-modules/module/costage/rohdaten/costage_unload.xml
  10. 38
      src-modules/module/costage/rohdaten/csv_unloads2unl.sql
  11. 19
      src-modules/module/costage/rohdaten/iso.txt
  12. 10
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.x
  13. 60
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml
  14. 12
      src-modules/module/costage/schluesseltabellen/cifx_fuellen.sql
  15. 69
      src-modules/module/costage/schluesseltabellen/sos_unload_params_fuellen.sql
  16. 2
      src-modules/module/costage/schluesseltabellen/trans_costage_st_studiengaenge.sql
  17. 46
      src-modules/module/costage/schluesseltabellen/trans_costage_st_studienkennzahlen.sql
  18. 11
      src-modules/module/costage/upgrade/costage_upgrade_man.sql

79
src-modules/module/costage/conf/costage.xml

@ -282,7 +282,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="studientyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" description="" currentlyUsed="false"/> <column name="studientyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="studientyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" description="" currentlyUsed="false"/> <column name="studientyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="" currentlyUsed="false"/> <column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="stg" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienfach"/> <column name="skz_key" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Studienfach (CO)"/>
<column name="abschluss" type ="CHAR" size ="10" default ="" notnull ="false" description="Abschluss"/> <column name="abschluss" type ="CHAR" size ="10" default ="" notnull ="false" description="Abschluss"/>
<column name="stuart" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienart"/> <column name="stuart" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienart"/>
<column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienform"/> <column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienform"/>
@ -299,6 +299,23 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<table name="costage_st_studienkennzahlen" thema="Studierende und Gebühren" caption="Studienfächer (CO)" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studienkennzahlen" thema="Studierende und Gebühren" caption="Studienfächer (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienfächer (CO)</description> <description>Studienfächer (CO)</description>
<columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="skz_key" type ="VARCHAR" size ="10" default ="" notnull ="true" />
<column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" />
<column name="fakultaet_key" type ="VARCHAR" size ="2" default ="" notnull ="false" />
<column name="skz_name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="st_stdfach_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="gesetzliche_grundlage_kb" type ="VARCHAR" size ="255" default ="" notnull ="true" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
</table>
<table name="costage_st_studienkennzahlen_neu" thema="Studierende und Gebühren" caption="Studienfächer (CO)" typ="Ladetabelle" releaseUnload="empty">
<description>Studienfächer (CO)</description>
<columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="skz_key" type ="VARCHAR" size ="4" default ="" notnull ="true" /> <column name="skz_key" type ="VARCHAR" size ="4" default ="" notnull ="true" />
<column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" /> <column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" />
<column name="fakultaet_key" type ="VARCHAR" size ="2" default ="" notnull ="false" /> <column name="fakultaet_key" type ="VARCHAR" size ="2" default ="" notnull ="false" />
@ -369,16 +386,16 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<table name="costage_st_studierendenstammdaten_neu" thema="Studierende und Gebühren" caption="" typ="Ladetabelle" releaseUnload="empty"> <table name="costage_st_studierendenstammdaten_neu" thema="Studierende und Gebühren" caption="" typ="Ladetabelle" releaseUnload="empty">
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="matrikelnummer" type ="VARCHAR" size ="12" default ="" notnull ="false" /> <column name="matrikelnummer" type ="VARCHAR" size ="12" default ="" notnull ="false" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="familienname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="familienname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="geburtsdatum" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="geburtsdatum" type ="DATETIME" size ="7" default ="" notnull ="false" />
<column name="geschlecht" type ="VARCHAR" size ="1" default ="" notnull ="false" /> <column name="geschlecht" type ="VARCHAR" size ="1" default ="" notnull ="false" />
<column name="st_land1_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_land1_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="st_land2_nr" type ="INTEGER" size ="8" default ="" notnull ="false" /> <column name="st_land2_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="geburt_st_land_nr" type ="INTEGER" size ="8" default ="" notnull ="false" /> <column name="geburt_st_land_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="personentyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="personentyp_name" type ="VARCHAR" size ="100" default ="" notnull ="false" />
<column name="personentyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" /> <column name="personentyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" />
<column name="aufnahmedatum" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="aufnahmedatum" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="abmeldungsdatum" type ="DATETIME" size ="7" default ="" notnull ="false" /> <column name="abmeldungsdatum" type ="DATETIME" size ="7" default ="" notnull ="false" />
</columns> </columns>
<indexes></indexes> <indexes></indexes>
@ -391,19 +408,19 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<table name="costage_st_studierendenstammdaten" thema="Studierende und Gebühren" caption="Studierendenstammdaten (CO)" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studierendenstammdaten" thema="Studierende und Gebühren" caption="Studierendenstammdaten (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studierendenstammdaten (CO)</description> <description>Studierendenstammdaten (CO)</description>
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="matrikelnummer" type ="INTEGER" size ="12" default ="" notnull ="false" /> <column name="matrikelnummer" type ="INTEGER" size ="12" default ="" notnull ="true" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="false" currentlyUsed="false"/>
<column name="familienname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="familienname" type ="VARCHAR" size ="255" default ="" notnull ="false" currentlyUsed="false"/>
<column name="geburtsdatum" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="geburtsdatum" type ="DATETIME" size ="7" default ="" notnull ="false" currentlyUsed="false"/>
<column name="st_land1_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_land1_nr" type ="INTEGER" size ="8" default ="" notnull ="false" currentlyUsed="false"/>
<column name="st_land2_nr" type ="INTEGER" size ="8" default ="" notnull ="false" /> <column name="st_land2_nr" type ="INTEGER" size ="8" default ="" notnull ="false" currentlyUsed="false" />
<column name="geburt_st_land_nr" type ="INTEGER" size ="8" default ="" notnull ="false" /> <column name="geburt_st_land_nr" type ="INTEGER" size ="8" default ="" notnull ="false" currentlyUsed="false"/>
<column name="personentyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="personentyp_name" type ="VARCHAR" size ="100" default ="" notnull ="false" />
<column name="personentyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" /> <column name="personentyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" />
<column name="aufnahmedatum" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="aufnahmedatum" type ="DATETIME" size ="7" default ="" notnull ="false" />
<column name="abmeldungsdatum" type ="DATETIME" size ="7" default ="" notnull ="false" /> <column name="abmeldungsdatum" type ="DATETIME" size ="7" default ="" notnull ="false" />
<column name="geschlecht" type ="INTEGER" size ="1" default ="" notnull ="false" description="Geschlecht" /> <column name="geschlecht" type ="INTEGER" size ="1" default ="" notnull ="false" description="Geschlecht" />
<column name="d_geburt" type ="DATE" size ="4" default ="" notnull ="false" /> <column name="d_geburt" type ="DATE" size ="4" default ="" notnull ="false" description="Geburtsdatum"/>
<column name="ca12_staat" type ="INTEGER" size ="8" default ="" notnull ="false" description="Staatsangehörigkeit (erste)" /> <column name="ca12_staat" type ="INTEGER" size ="8" default ="" notnull ="false" description="Staatsangehörigkeit (erste)" />
<column name="second_nationality" type ="INTEGER" size ="4" default ="" notnull ="false" description="Amtl. Schluessel fuer zweite Staatsangehoerigkeit" currentlyUsed="false"/> <column name="second_nationality" type ="INTEGER" size ="4" default ="" notnull ="false" description="Amtl. Schluessel fuer zweite Staatsangehoerigkeit" currentlyUsed="false"/>
<column name="d_exmatr" type ="DATE" size ="4" default ="" notnull ="false" description="Datum der Exmatr. (obsolet)"/> <column name="d_exmatr" type ="DATE" size ="4" default ="" notnull ="false" description="Datum der Exmatr. (obsolet)"/>
@ -1204,13 +1221,11 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
</relation> </relation>
<!-- costage_st_studiengaenge --> <!-- costage_st_studiengaenge -->
<relation from="cifx" to="costage_st_studiengaenge" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s"> <relation from="costage_st_studienkennzahlen" to="costage_st_studiengaenge" delete="FALSE" displayType="select" visibleFields="skz_name" uniquenameField="" format="%s">
<relation-column from="apnr" to="stg" /> <relation-column from="skz_key" to="skz_key" />
<relation-column from="key" to="30" />
</relation> </relation>
<relation from="cifx" to="costage_st_studiengaenge" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s"> <relation from="costage_st_abschlussziele_lokal" to="costage_st_studiengaenge" delete="FALSE" displayType="select" visibleFields="name" uniquenameField="" format="%s">
<relation-column from="apnr" to="abschluss" /> <relation-column from="code" to="abschluss" />
<relation-column from="key" to="35" />
</relation> </relation>
<!--costage_st_studien_aggr--> <!--costage_st_studien_aggr-->
@ -1330,7 +1345,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienfaecher"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienfaecher.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienfaecher"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienfaecher.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studiengaenge_mtsg"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studiengaenge_mtsg.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studiengaenge_mtsg"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studiengaenge_mtsg.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studiengaenge_neu"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studiengaenge.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studiengaenge_neu"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studiengaenge.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienkennzahlen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienkennzahlen.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienkennzahlen_neu"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienkennzahlen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienstatus"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienstatus.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienstatus"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienstatus.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studien_spoversionen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studien_spoversionen.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studien_spoversionen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studien_spoversionen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studien"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studien.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studien"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studien.unl"/></loadtable>
@ -1368,12 +1383,16 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_leistungen_typen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_leistungen_typen.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_leistungen_typen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_leistungen_typen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_antritte"><file path="$COSTAGE_LOAD_PFAD/unl/costage_antritte.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="costage_antritte"><file path="$COSTAGE_LOAD_PFAD/unl/costage_antritte.unl"/></loadtable>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cifx_fuellen.sql" database=""/>
</action> </action>
</etl-step> </etl-step>
<etl-step name="Transformation" type="trans"> <etl-step name="Transformation" type="trans">
<action> <action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_semester.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_semester.sql" database=""/>
<!--diese Reihenfolge ist wichtig: erst die SKZ laden-->
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_studienkennzahlen.sql" database=""/>
<!-- dann daraus die Fächer (cifx.key=30): -->
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cifx_fuellen.sql" database=""/>
<!-- und dann die Studiengänge: -->
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_studiengaenge.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_studiengaenge.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/datentabellen/trans_costage_st_studierendenstammdaten.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/datentabellen/trans_costage_st_studierendenstammdaten.sql" database=""/>
@ -1425,6 +1444,7 @@ gueltig_bis DATE
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sos_unload_params_fuellen.sql" database=""/>
</action> </action>
</install-step> </install-step>
@ -1434,6 +1454,7 @@ gueltig_bis DATE
<upgrade> <upgrade>
<upgrade-step> <upgrade-step>
<action error="stop"> <action error="stop">
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/upgrade/costage_upgrade_man.sql" database=""/>
<nativeaction sql="create table tmp_repository( <nativeaction sql="create table tmp_repository(
tid SERIAL not null, tid SERIAL not null,
@ -1459,10 +1480,12 @@ gueltig_bis DATE
<loadtable refresh="true" delimiter="^" header="false" tabname="tmp_repository"><file path="$COSTAGE_PFAD/schluesseltabellen/sx_repository.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="tmp_repository"><file path="$COSTAGE_PFAD/schluesseltabellen/sx_repository.unl"/></loadtable>
</action> </action>
<action> <action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/konstanten_fuellen.sql" database=""/><nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_repository_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_repository_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/konstanten_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sos_unload_params_fuellen.sql" database=""/>
</action> </action>
</upgrade-step> </upgrade-step>

2
src-modules/module/costage/datentabellen/trans_costage_st_studierendenstammdaten.sql

@ -47,7 +47,7 @@ S.st_studstamm_nr,
geburt_st_land_nr, geburt_st_land_nr,
personentyp_name, personentyp_name,
personentyp_kb, personentyp_kb,
aufnahmedatum, date_val(aufnahmedatum),
abmeldungsdatum, abmeldungsdatum,
(case when S.geschlecht='M' then 1 (case when S.geschlecht='M' then 1
when S.geschlecht='W' then 2 when S.geschlecht='W' then 2

67
src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql

@ -1,4 +1,6 @@
--Leistungen mit Veranstaltung -> Semester:
SELECT SELECT
L.st_studium_nr, L.st_studium_nr,
S.st_studstamm_nr, S.st_studstamm_nr,
@ -62,6 +64,67 @@ and L.leistungsstatus_nr in (4,2) --Letztgültig/Final/gültige Leistung
--3^I^ungültige Leistung^invalid^ --3^I^ungültige Leistung^invalid^
--5^D^gelöscht^deleted^ --5^D^gelöscht^deleted^
; ;
--Leistungen ohne Veranstaltungssemester gehen über Prüfungsdatum:
insert into tmp_pruef
SELECT
L.st_studium_nr,
S.st_studstamm_nr,
val(L.matrikelnummer) as matrikelnummer,
null::integer as st_studiengang_nr,
null::integer as studiengang_nr,
null::integer as fach_nr,
null::integer as st_studienstatus_nr,
E.semester_tid as semester,
null::integer as fachsemester,
null::varchar(255) as unikey,
L.leistung_nr,
L.leistungstyp_nr,
L.leistungsdetailtyp_kb,
L.studienidentifikator,
L.spov_abschluss,
L.stp_sp_nr,
L.veranstaltung_nummer,
L.veranstaltung_semester,
L.veranstaltung_titel,
L.veranstaltung_art,
L.semesterstunden,
L.unterrichtseinheiten,
L.thema_individuell,
L.pv_notenskala_nr,
L.note,
L.note_name,
L.note_zahl,
L.pv_pruef_zusatz_typen_nr,
L.note_zusatz,
L.note_zusatz_name,
L.note_positiv_flag,
L.note_negativ_flag,
L.pv_notenskala_typ_nr,
L.pv_notenskala_typ_kb,
L.pv_notenskala_typ_name,
L.credits,
date(L.leistungsdatum) as leistungsdatum,
L.anerkannt_flag,
L.zusatzleistung_flag,
L.leistungsstatus_nr,
L.leistungsstatus_map_kb,
2::integer as abschnitt, --provisorisch erstmal nur Hauptprüfungen
null::integer as pnr,
null::integer as leistung_nr_msg,
null::integer as st_studiengang_nr_msg,
null::date as leistungsdatum_msg,
null::integer as semester_msg
FROM costage_st_semester E, costage_leistungen_typen T, costage_leistungen L, costage_st_studierendenstammdaten S
where L.leistungsdatum between E.semester_anfang and E.semester_ende
and L.veranstaltung_semester is null
and T.leistungstyp_nr=L.leistungstyp_nr
and S.matrikelnummer::varchar(255)=L.matrikelnummer
-- TSAB/AB:
and T.kurzbezeichnung='AP' --Abschlussprüfung
and L.leistungsstatus_nr in (4,2) --Letztgültig/Final/gültige Leistung
;
update tmp_pruef set st_studiengang_nr=S.st_studiengang_nr update tmp_pruef set st_studiengang_nr=S.st_studiengang_nr
@ -129,6 +192,7 @@ insert into costage_st_pruef_aggr(st_studium_nr,
credits, credits,
leistungsdatum, leistungsdatum,
anerkannt_flag, anerkannt_flag,
leistungsstatus_nr,
leistungsstatus_map_kb, leistungsstatus_map_kb,
leistung_nr_msg, leistung_nr_msg,
leistungsdatum_msg, leistungsdatum_msg,
@ -156,13 +220,14 @@ select
credits, credits,
leistungsdatum, leistungsdatum,
anerkannt_flag, anerkannt_flag,
leistungsstatus_nr,
leistungsstatus_map_kb, leistungsstatus_map_kb,
leistung_nr_msg, leistung_nr_msg,
leistungsdatum_msg, leistungsdatum_msg,
semester_msg, semester_msg,
count(*) count(*)
from tmp_pruef from tmp_pruef
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25; group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26;
drop table tmp_pruef; drop table tmp_pruef;

1
src-modules/module/costage/masken/43040_maskeninfo.unl

@ -75,6 +75,7 @@ SELECT name,\
/* and fach_nr =<<Fach-Nr.>> */\ /* and fach_nr =<<Fach-Nr.>> */\
/* and costage_st_studien_aggr.st_studstamm_nr in (select S.st_studstamm_nr from costage_st_studierendenstammdaten S where S.st_land1_nr in (<<Staatsangehörigkeit>>) ) */\ /* and costage_st_studien_aggr.st_studstamm_nr in (select S.st_studstamm_nr from costage_st_studierendenstammdaten S where S.st_land1_nr in (<<Staatsangehörigkeit>>) ) */\
/* and costage_st_studien_aggr.st_studstamm_nr in (select S2.st_studstamm_nr from costage_st_studierendenstammdaten S2 where S2.geschlecht = <<Geschlecht>> ) */\ /* and costage_st_studien_aggr.st_studstamm_nr in (select S2.st_studstamm_nr from costage_st_studierendenstammdaten S2 where S2.geschlecht = <<Geschlecht>> ) */\
/* and costage_st_studien_aggr.unikey=<<Hochschule>> */\
" />\ " />\
\ \
\ \

1
src-modules/module/costage/masken/43080_maskeninfo.unl

@ -72,6 +72,7 @@ SELECT name,\
/* and fach_nr =<<Fach-Nr.>> */\ /* and fach_nr =<<Fach-Nr.>> */\
/* and costage_st_pruef_aggr.st_studstamm_nr in (select S.st_studstamm_nr from costage_st_studierendenstammdaten S where S.st_land1_nr in (<<Staatsangehörigkeit>>) ) */\ /* and costage_st_pruef_aggr.st_studstamm_nr in (select S.st_studstamm_nr from costage_st_studierendenstammdaten S where S.st_land1_nr in (<<Staatsangehörigkeit>>) ) */\
/* and costage_st_pruef_aggr.st_studstamm_nr in (select S2.st_studstamm_nr from costage_st_studierendenstammdaten S2 where S2.geschlecht = <<Geschlecht>> ) */\ /* and costage_st_pruef_aggr.st_studstamm_nr in (select S2.st_studstamm_nr from costage_st_studierendenstammdaten S2 where S2.geschlecht = <<Geschlecht>> ) */\
/* and costage_st_pruef_aggr.unikey=<<Hochschule>> */\
" />\ " />\
\ \
\ \

1257
src-modules/module/costage/rohdaten/costage_prepare_unlfiles.x

File diff suppressed because it is too large Load Diff

42
src-modules/module/costage/rohdaten/costage_prepare_unlfiles.xsl

@ -3,8 +3,25 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xml:output method="text" indent="yes"/> <xml:output method="text" indent="yes"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:text>-- XML-generiertes SQL-Script <xsl:text><![CDATA[#!/bin/bash
--von costage_prepare_unlfiles.xsl # XML-generiertes SQL-Script
# von costage_prepare_unlfiles.xsl
if [ "$1" == "" ]
then
echo "Usage: costage_prepare_unlfiles.x <Delimiter> HEADER<optional>"
echo "Beispiel: costage_prepare_unlfiles.x , HEADER"
echo "Folgende Dateien können geladen werden:"
]]>
</xsl:text>
<xsl:for-each select="/superx-unload/unload-job [ @transfer-unload-file != '' ] ">
<xsl:text><![CDATA[
echo "$COSTAGE_LOAD_PFAD/unl/]]></xsl:text><xsl:value-of select="concat(@id,'.csv')" /><xsl:text><![CDATA["
]]>
</xsl:text>
</xsl:for-each>
<xsl:text><![CDATA[
fi
if [ ! -f $COSTAGE_LOAD_PFAD/superx.datum ] if [ ! -f $COSTAGE_LOAD_PFAD/superx.datum ]
then then
@ -19,9 +36,30 @@ echo "costage_unload.err wird nicht übergeben"
cat /dev/null > $COSTAGE_LOAD_PFAD/costage_unload.err cat /dev/null > $COSTAGE_LOAD_PFAD/costage_unload.err
fi fi
#zuerst alle Dateien nach UTF-8 konvertieren, wenn nötig:
sx_list_isofiles.x $COSTAGE_LOAD_PFAD/unl >iso.txt
sx_recode_isofiles.x iso.txt
]]>
</xsl:text> </xsl:text>
<xsl:for-each select="/superx-unload/unload-job [ @transfer-unload-file != '' ] "> <xsl:for-each select="/superx-unload/unload-job [ @transfer-unload-file != '' ] ">
<xsl:text><![CDATA[ <xsl:text><![CDATA[
if [ -f "$COSTAGE_LOAD_PFAD/unl/]]></xsl:text><xsl:value-of select="concat(@id,'.csv')" /><xsl:text>" ]
then
echo "$COSTAGE_LOAD_PFAD/unl/</xsl:text><xsl:value-of select="concat(@id,'.csv')" /><xsl:text><![CDATA[ wird übergeben:"
DOQUERY "truncate table ]]></xsl:text><xsl:value-of select="@target-table" /><xsl:text><![CDATA[;"
DOQUERY "vacuum full ]]></xsl:text><xsl:value-of select="@target-table" /><xsl:text><![CDATA[;"
psql --dbname=$DBNAME -c "\copy ]]></xsl:text><xsl:value-of select="@target-table" /><xsl:text><![CDATA[ from unl/]]></xsl:text><xsl:value-of select="concat(@id,'.csv')" /><xsl:text><![CDATA[ using delimiters '"$1"' with null as '' CSV $2"
sx_unload_table.x ]]></xsl:text><xsl:value-of select="@target-table" /><xsl:text> </xsl:text><xsl:value-of select="@transfer-unload-file" /><xsl:text><![CDATA[
fi
if [ ! -f "$COSTAGE_LOAD_PFAD/]]></xsl:text><xsl:value-of select="@transfer-unload-file" /><xsl:text>" ] if [ ! -f "$COSTAGE_LOAD_PFAD/]]></xsl:text><xsl:value-of select="@transfer-unload-file" /><xsl:text>" ]
then then
echo "$COSTAGE_LOAD_PFAD/</xsl:text><xsl:value-of select="@transfer-unload-file" /><xsl:text><![CDATA[ wird nicht übergeben" echo "$COSTAGE_LOAD_PFAD/</xsl:text><xsl:value-of select="@transfer-unload-file" /><xsl:text><![CDATA[ wird nicht übergeben"

1
src-modules/module/costage/rohdaten/costage_prepare_unlfiles_generator.x

@ -2,3 +2,4 @@
#Extraction Script for SuperX. #Extraction Script for SuperX.
sx_transform.x -IN:costage_unload.xml -XSL:./costage_prepare_unlfiles.xsl -OUT:./costage_prepare_unlfiles.x -method:text sx_transform.x -IN:costage_unload.xml -XSL:./costage_prepare_unlfiles.xsl -OUT:./costage_prepare_unlfiles.x -method:text
chmod +x ./costage_prepare_unlfiles.x

86
src-modules/module/costage/rohdaten/costage_unload.xml

@ -13,7 +13,7 @@
</sourcesystems> </sourcesystems>
<unload-job id="px_st_abschlussziele_amtstat_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_abschlussziele_amtstat.unl" > <unload-job id="px_st_abschlussziele_amtstat_v" target-table="costage_st_abschlussziele_amtstat" extraction-script="" transfer-unload-file="unl/costage_st_abschlussziele_amtstat.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -29,7 +29,7 @@ FROM px_st_abschlussziele_amtstat_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_abschlussziele_lokal_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_abschlussziele_lokal.unl" > <unload-job id="px_st_abschlussziele_lokal_v" target-table="costage_st_abschlussziele_lokal" extraction-script="" transfer-unload-file="unl/costage_st_abschlussziele_lokal.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -44,7 +44,7 @@ FROM px_st_abschlussziele_lokal_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_fachsemester_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_fachsemester.unl" > <unload-job id="px_st_fachsemester_v" target-table="costage_st_fachsemester" extraction-script="" transfer-unload-file="unl/costage_st_fachsemester.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -63,7 +63,7 @@ and extract(year from S.semester_anfang) > 2000
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_fakultaeten_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_fakultaeten.unl" > <unload-job id="px_st_fakultaeten_v" target-table="costage_st_fakultaeten" extraction-script="" transfer-unload-file="unl/costage_st_fakultaeten.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -82,7 +82,7 @@ FROM px_st_fakultaeten_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_hauptstudien_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_hauptstudien.unl" > <unload-job id="px_st_hauptstudien_v" target-table="costage_st_hauptstudien" extraction-script="" transfer-unload-file="unl/costage_st_hauptstudien.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -101,7 +101,7 @@ and extract(year from S.semester_anfang) > 2000
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_hoererstatus_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_hoererstatus.unl" > <unload-job id="px_st_hoererstatus_v" target-table="costage_st_hoererstatus" extraction-script="" transfer-unload-file="unl/costage_st_hoererstatus.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -120,7 +120,7 @@ and extract(year from S.semester_anfang) > 2000
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_laender_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_laender.unl" > <unload-job id="px_st_laender_v" target-table="costage_st_laender" extraction-script="" transfer-unload-file="unl/costage_st_laender.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -141,7 +141,7 @@ FROM px_st_laender_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_land_regionen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_land_regionen.unl" > <unload-job id="px_st_land_regionen_v" target-table="costage_st_land_regionen" extraction-script="" transfer-unload-file="unl/costage_st_land_regionen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -157,7 +157,7 @@ FROM px_st_land_regionen_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<!-- <!--
<unload-job id="costage_st_personen" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_personen.unl" > <unload-job id="costage_st_personen" target-table="" extraction-script="" transfer-unload-file="unl/costage_st_personen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -175,7 +175,7 @@ FROM px_st_personen_v
</extraction-sql> </extraction-sql>
</unload-job>--> </unload-job>-->
<unload-job id="px_st_semester_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_semester.unl" > <unload-job id="px_st_semester_v" target-table="costage_st_semester_neu" extraction-script="" transfer-unload-file="unl/costage_st_semester.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -194,7 +194,7 @@ and extract(year from S.semester_anfang) > 2000
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studien_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studien.unl" > <unload-job id="px_st_studien_v" target-table="costage_st_studien" extraction-script="" transfer-unload-file="unl/costage_st_studien.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -210,7 +210,7 @@ FROM px_st_studien_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studien_spoversionen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studien_spoversionen.unl" > <unload-job id="px_st_studien_spoversionen_v" target-table="costage_st_studien_spoversionen" extraction-script="" transfer-unload-file="unl/costage_st_studien_spoversionen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -229,7 +229,7 @@ FROM px_st_studien_spoversionen_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studienarten_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studienarten.unl" > <unload-job id="px_st_studienarten_v" target-table="costage_st_studienarten" extraction-script="" transfer-unload-file="unl/costage_st_studienarten.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -243,7 +243,7 @@ FROM px_st_studienarten_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studienfaecher_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studienfaecher.unl" > <unload-job id="px_st_studienfaecher_v" target-table="costage_st_studienfaecher" extraction-script="" transfer-unload-file="unl/costage_st_studienfaecher.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -258,7 +258,7 @@ FROM px_st_studienfaecher_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studiengaenge_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studiengaenge.unl" > <unload-job id="px_st_studiengaenge_v" target-table="costage_st_studiengaenge_neu" extraction-script="" transfer-unload-file="unl/costage_st_studiengaenge.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -281,7 +281,7 @@ FROM px_st_studiengaenge_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studiengaenge_mtsg_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studiengaenge_mtsg.unl" > <unload-job id="px_st_studiengaenge_mtsg_v" target-table="costage_st_studiengaenge_mtsg" extraction-script="" transfer-unload-file="unl/costage_st_studiengaenge_mtsg.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -295,7 +295,7 @@ FROM px_st_studiengaenge_mtsg_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studienkennzahlen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studienkennzahlen.unl" > <unload-job id="px_st_studienkennzahlen_v" target-table="costage_st_studienkennzahlen_neu" extraction-script="" transfer-unload-file="unl/costage_st_studienkennzahlen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -313,7 +313,7 @@ FROM px_st_studienkennzahlen_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studienstatus_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studienstatus.unl" > <unload-job id="px_st_studienstatus_v" target-table="costage_st_studienstatus" extraction-script="" transfer-unload-file="unl/costage_st_studienstatus.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -334,7 +334,7 @@ and extract(year from S.semester_anfang) > 2000
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studierendenstammdaten_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studierendenstammdaten.unl" > <unload-job id="px_st_studierendenstammdaten_v" target-table="costage_st_studierendenstammdaten_neu" extraction-script="" transfer-unload-file="unl/costage_st_studierendenstammdaten.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -358,7 +358,7 @@ FROM px_st_studierendenstammdaten_v
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<!-- neu in 0.3 --> <!-- neu in 0.3 -->
<unload-job id="px_bw_bewerbungen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_bewerbungen.unl" > <unload-job id="px_bw_bewerbungen_v" target-table="costage_bw_bewerbungen" extraction-script="" transfer-unload-file="unl/costage_bw_bewerbungen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ select <![CDATA[ select
@ -386,7 +386,7 @@ and extract(year from S.semester_anfang) > 2000
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_bewerbung_kombination_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_bewerbung_kombination.unl" > <unload-job id="px_bw_bewerbung_kombination_v" target-table="costage_bw_bewerbung_kombination" extraction-script="" transfer-unload-file="unl/costage_bw_bewerbung_kombination.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -399,7 +399,7 @@ FROM px_bw_bewerbung_kombination_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_bewerb_hzb_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_bewerb_hzb.unl" > <unload-job id="px_bw_bewerb_hzb_v" target-table="costage_bw_bewerb_hzb" extraction-script="" transfer-unload-file="unl/costage_bw_bewerb_hzb.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -419,7 +419,7 @@ FROM px_bw_bewerb_hzb_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_bewerb_sb_status_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_bewerb_sb_status.unl" > <unload-job id="px_bw_bewerb_sb_status_v" target-table="costage_bw_bewerb_sb_status" extraction-script="" transfer-unload-file="unl/costage_bw_bewerb_sb_status.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -433,7 +433,7 @@ from px_bw_bewerb_sb_status_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_sb_status_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_sb_status.unl" > <unload-job id="px_bw_sb_status_v" target-table="costage_bw_sb_status" extraction-script="" transfer-unload-file="unl/costage_bw_sb_status.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -446,7 +446,7 @@ FROM px_bw_sb_status_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_sb_status_werte_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_sb_status_werte.unl" > <unload-job id="px_bw_sb_status_werte_v" target-table="costage_bw_sb_status_werte" extraction-script="" transfer-unload-file="unl/costage_bw_sb_status_werte.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -460,7 +460,7 @@ FROM px_bw_sb_status_werte_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_sb_stat_vorl_zuordnung_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_sb_stat_vorl_zuordnung.unl" > <unload-job id="px_bw_sb_stat_vorl_zuordnung_v" target-table="costage_bw_sb_stat_vorl_zuordnung" extraction-script="" transfer-unload-file="unl/costage_bw_sb_stat_vorl_zuordnung.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -472,7 +472,7 @@ FROM px_bw_sb_stat_vorl_zuordnung_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_bw_zulassungsarten_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_bw_zulassungsarten.unl" > <unload-job id="px_bw_zulassungsarten_v" target-table="costage_bw_zulassungsarten" extraction-script="" transfer-unload-file="unl/costage_bw_zulassungsarten.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -485,7 +485,7 @@ FROM px_bw_zulassungsarten_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_land_subregionen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_land_subregionen.unl" > <unload-job id="px_land_subregionen_v" target-table="costage_land_subregionen" extraction-script="" transfer-unload-file="unl/costage_land_subregionen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -500,7 +500,7 @@ FROM px_land_subregionen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_studienformen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_studienformen.unl" > <unload-job id="px_st_studienformen_v" target-table="costage_st_studienformen" extraction-script="" transfer-unload-file="unl/costage_st_studienformen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -516,7 +516,7 @@ FROM px_st_studienformen_v
</unload-job> </unload-job>
<!--neu ab 25.3.2022--> <!--neu ab 25.3.2022-->
<unload-job id="px_st_adressen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_adressen.unl" > <unload-job id="px_st_adressen_v" target-table="costage_st_adressen" extraction-script="" transfer-unload-file="unl/costage_st_adressen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -536,7 +536,7 @@ FROM px_st_adressen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_urlaube_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_urlaube.unl" > <unload-job id="px_st_urlaube_v" target-table="costage_st_urlaube" extraction-script="" transfer-unload-file="unl/costage_st_urlaube.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -555,7 +555,7 @@ and extract(year from S.semester_anfang) > 2000
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_urlaubs_typen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_urlaubs_typen.unl" > <unload-job id="px_st_urlaubs_typen_v" target-table="costage_st_urlaubs_typen" extraction-script="" transfer-unload-file="unl/costage_st_urlaubs_typen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -569,7 +569,7 @@ FROM px_st_urlaubs_typen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_abmeldungsarten_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_abmeldungsarten.unl" > <unload-job id="px_st_abmeldungsarten_v" target-table="costage_st_abmeldungsarten" extraction-script="" transfer-unload-file="unl/costage_st_abmeldungsarten.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -584,7 +584,7 @@ where st_abm_art_kurzbezeichnung is not null
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_personen_abmeldungen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_personen_abmeldungen.unl" > <unload-job id="px_st_personen_abmeldungen_v" target-table="costage_st_personen_abmeldungen" extraction-script="" transfer-unload-file="unl/costage_st_personen_abmeldungen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -605,7 +605,7 @@ and extract(year from S.semester_anfang) > 2000
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_ersthochschulen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_ersthochschulen.unl" > <unload-job id="px_st_ersthochschulen_v" target-table="costage_st_ersthochschulen" extraction-script="" transfer-unload-file="unl/costage_st_ersthochschulen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -617,8 +617,8 @@ FROM px_st_ersthochschulen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_st_hochschulsemester_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_st_hochschulsemester.unl" > <unload-job id="px_st_hochschulsemester_v" target-table="costage_st_hochschulsemester" extraction-script="" transfer-unload-file="unl/costage_st_hochschulsemester.unl" >
<comment>Derzeit inaktiv, View aus Graz derzeit nicht nutzbar </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT H.st_studstamm_nr, SELECT H.st_studstamm_nr,
@ -635,7 +635,7 @@ and extract(year from S.semester_anfang) > 2000
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_leistungen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_leistungen.unl" > <unload-job id="px_leistungen_v" target-table="costage_leistungen" extraction-script="" transfer-unload-file="unl/costage_leistungen.unl" >
<comment>Leistungen</comment> <comment>Leistungen</comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -680,7 +680,7 @@ FROM sx_leistungen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_leistungen_detail_typen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_leistungen_detail_typen.unl" > <unload-job id="px_leistungen_detail_typen_v" target-table="costage_leistungen_detail_typen" extraction-script="" transfer-unload-file="unl/costage_leistungen_detail_typen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -696,7 +696,7 @@ FROM px_leistungen_detail_typen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_leistungen_typen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_leistungen_typen.unl" > <unload-job id="px_leistungen_typen_v" target-table="costage_leistungen_typen" extraction-script="" transfer-unload-file="unl/costage_leistungen_typen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -710,7 +710,7 @@ FROM px_leistungen_typen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_antritte_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_antritte.unl" > <unload-job id="px_antritte_v" target-table="costage_antritte" extraction-script="" transfer-unload-file="unl/costage_antritte.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -725,7 +725,7 @@ where 1=0
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="px_leistungen_status_typen_v" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_leistungen_status_typen.unl" > <unload-job id="px_leistungen_status_typen_v" target-table="costage_leistungen_status_typen" extraction-script="" transfer-unload-file="unl/costage_leistungen_status_typen.unl" >
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
@ -739,7 +739,7 @@ FROM px_leistungen_status_typen_v
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="k_hzbart" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_k_hzbart.unl" > <unload-job id="k_hzbart" target-table="costage_k_hzbart" extraction-script="" transfer-unload-file="unl/costage_k_hzbart.unl" >
<comment>HZB-Arten (amtlich), mit Mit R224 SP10 verfügbar </comment> <comment>HZB-Arten (amtlich), mit Mit R224 SP10 verfügbar </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[

38
src-modules/module/costage/rohdaten/csv_unloads2unl.sql

@ -14,21 +14,51 @@
{"srcfile":"px_st_studienfaecher_v.csv", "targettable":"costage_st_studienfaecher", "targetfile":"costage_st_studienfaecher.unl"}, {"srcfile":"px_st_studienfaecher_v.csv", "targettable":"costage_st_studienfaecher", "targetfile":"costage_st_studienfaecher.unl"},
{"srcfile":"px_st_studiengaenge_mtsg_v.csv", "targettable":"costage_st_studiengaenge_mtsg", "targetfile":"costage_st_studiengaenge_mtsg.unl"}, {"srcfile":"px_st_studiengaenge_mtsg_v.csv", "targettable":"costage_st_studiengaenge_mtsg", "targetfile":"costage_st_studiengaenge_mtsg.unl"},
{"srcfile":"px_st_studiengaenge_v.csv", "targettable":"costage_st_studiengaenge_neu", "targetfile":"costage_st_studiengaenge.unl"}, {"srcfile":"px_st_studiengaenge_v.csv", "targettable":"costage_st_studiengaenge_neu", "targetfile":"costage_st_studiengaenge.unl"},
{"srcfile":"px_st_studienkennzahlen_v.csv", "targettable":"costage_st_studienkennzahlen", "targetfile":"costage_st_studienkennzahlen.unl", "specialrule":"delete from costage_st_studienkennzahlen where unikey != '8140'"}, {"srcfile":"px_st_studienkennzahlen_v.csv", "targettable":"costage_st_studienkennzahlen_neu", "targetfile":"costage_st_studienkennzahlen.unl", "specialrule":""},
{"srcfile":"px_st_studienstatus_v.csv", "targettable":"costage_st_studienstatus", "targetfile":"costage_st_studienstatus.unl"}, {"srcfile":"px_st_studienstatus_v.csv", "targettable":"costage_st_studienstatus", "targetfile":"costage_st_studienstatus.unl"},
{"srcfile":"px_st_studien_spoversionen_v.csv", "targettable":"costage_st_studien_spoversionen", "targetfile":"costage_st_studien_spoversionen.unl"}, {"srcfile":"px_st_studien_spoversionen_v.csv", "targettable":"costage_st_studien_spoversionen", "targetfile":"costage_st_studien_spoversionen.unl"},
{"srcfile":"px_st_studien_v.csv", "targettable":"costage_st_studien", "targetfile":"costage_st_studien.unl"}, {"srcfile":"px_st_studien_v.csv", "targettable":"costage_st_studien", "targetfile":"costage_st_studien.unl"},
{"srcfile":"px_st_studierendenstammdaten_v.csv", "targettable":"costage_st_studierendenstammdaten_neu", "targetfile":"costage_st_studierendenstammdaten.unl", "specialrule":"update costage_st_studierendenstammdaten_neu set aufnahmedatum=now() where st_studstamm_nr=419856"} {"srcfile":"px_st_studierendenstammdaten_v.csv", "targettable":"costage_st_studierendenstammdaten_neu", "targetfile":"costage_st_studierendenstammdaten.unl", "specialrule":"update costage_st_studierendenstammdaten_neu set aufnahmedatum=now() where st_studstamm_nr=419856"},
{"srcfile":"px_bw_bewerbungen_v.csv", "targettable":"costage_bw_bewerbungen", "targetfile":"costage_bw_bewerbungen.unl"},
{"srcfile":"px_bw_bewerbung_kombination_v.csv", "targettable":"costage_bw_bewerbung_kombination", "targetfile":"costage_bw_bewerbung_kombination.unl"},
{"srcfile":"px_bw_bewerb_hzb_v.csv", "targettable":"costage_bw_bewerb_hzb", "targetfile":"costage_bw_bewerb_hzb.unl"},
{"srcfile":"px_bw_bewerb_sb_status_v.csv", "targettable":"costage_bw_bewerb_sb_status", "targetfile":"costage_bw_bewerb_sb_status.unl"},
{"srcfile":"px_bw_sb_status_v.csv", "targettable":"costage_bw_sb_status", "targetfile":"costage_bw_sb_status.unl"},
{"srcfile":"px_bw_sb_status_werte_v.csv", "targettable":"costage_bw_sb_status_werte", "targetfile":"costage_bw_sb_status_werte.unl"},
{"srcfile":"px_bw_sb_stat_vorl_zuordnung_v.csv", "targettable":"costage_bw_sb_stat_vorl_zuordnung", "targetfile":"costage_bw_sb_stat_vorl_zuordnung.unl"},
{"srcfile":"px_bw_zulassungsarten_v.csv", "targettable":"costage_bw_zulassungsarten", "targetfile":"costage_bw_zulassungsarten.unl"},
{"srcfile":"px_land_subregionen_v.csv", "targettable":"costage_land_subregionen", "targetfile":"costage_land_subregionen.unl"},
{"srcfile":"px_st_studienformen_v.csv", "targettable":"costage_st_studienformen", "targetfile":"costage_st_studienformen.unl"},
{"srcfile":"px_st_adressen_v.csv", "targettable":"costage_st_adressen", "targetfile":"costage_st_adressen.unl"},
{"srcfile":"px_st_urlaube_v.csv", "targettable":"costage_st_urlaube", "targetfile":"costage_st_urlaube.unl"},
{"srcfile":"px_st_urlaubs_typen_v.csv", "targettable":"costage_st_urlaubs_typen", "targetfile":"costage_st_urlaubs_typen.unl"},
{"srcfile":"px_st_abmeldungsarten_v.csv", "targettable":"costage_st_abmeldungsarten", "targetfile":"costage_st_abmeldungsarten.unl"},
{"srcfile":"px_st_personen_abmeldungen_v.csv", "targettable":"costage_st_personen_abmeldungen", "targetfile":"costage_st_personen_abmeldungen.unl"},
{"srcfile":"px_st_ersthochschulen_v.csv", "targettable":"costage_st_ersthochschulen", "targetfile":"costage_st_ersthochschulen.unl"},
{"srcfile":"px_st_hochschulsemester_v.csv", "targettable":"costage_st_hochschulsemester", "targetfile":"costage_st_hochschulsemester.unl"},
{"srcfile":"px_leistungen_v.csv", "targettable":"costage_leistungen", "targetfile":"costage_leistungen.unl"},
{"srcfile":"px_leistungen_detail_typen_v.csv", "targettable":"costage_leistungen_detail_typen", "targetfile":"costage_leistungen_detail_typen.unl"},
{"srcfile":"px_leistungen_typen_v.csv", "targettable":"costage_leistungen_typen", "targetfile":"costage_leistungen_typen.unl"},
{"srcfile":"px_antritte_v.csv", "targettable":"costage_antritte", "targetfile":"costage_antritte.unl"},
{"srcfile":"px_leistungen_status_typen_v.csv", "targettable":"costage_leistungen_status_typen", "targetfile":"costage_leistungen_status_typen.unl"},
{"srcfile":"k_hzbart.csv", "targettable":"costage_k_hzbart", "targetfile":"costage_k_hzbart.unl"}
] /> ] />
\! echo "Folgende Dateien lassen sich laden:"
<#foreach file in files>
\! echo "${file.srcfile}"
</#foreach>
<#foreach file in files> <#foreach file in files>
truncate table ${file.targettable}; truncate table ${file.targettable};
vacuum full ${file.targettable}; vacuum full ${file.targettable};
\copy ${file.targettable} from 'unl/${file.srcfile}' with delimiter ',' quote '"' null as '' csv header encoding 'LATIN-1' --falls sie nicht existieren werden sie mit 0 bytes angelegt:
\! touch 'unl/${file.srcfile}'
\! sx_recode_iso2utf.x unl/${file.srcfile}
\copy ${file.targettable} from 'unl/${file.srcfile}' with delimiter ',' quote '"' null as '' csv header encoding 'UTF-8'
<#if file.specialrule?exists> <#if file.specialrule?exists>

19
src-modules/module/costage/rohdaten/iso.txt

@ -0,0 +1,19 @@
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_studiengaenge_mtsg_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_bw_bewerbungen.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_bw_bewerbungen_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_fachsemester.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_studienstatus_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_hauptstudien_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_studienstatus.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_semester.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/iso.txt
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_semester_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_hochschulsemester_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_studien_spoversionen.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_hauptstudien.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_studiengaenge_mtsg.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_studien_spoversionen_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_st_hochschulsemester.unl
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_st_fachsemester_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/px_bw_bewerb_hzb_v.csv
/home/superx/Projekte/graz_tu/tug_mirror/db/module/costage/rohdaten/unl/costage_bw_bewerb_hzb.unl

10
src-modules/module/costage/rohdaten_sos/sos_costage_unload.x

@ -90,13 +90,13 @@ echo "Parameter SOS_UNL_ANON: $SOS_UNL_ANON" >>$ERR
echo "\$SOS_UNL_ANON=$SOS_UNL_ANON" >>unload_params.txt echo "\$SOS_UNL_ANON=$SOS_UNL_ANON" >>unload_params.txt
if [ "$POS_PNR" = "" ] if [ "$EXTERNAL_SUBJECTS" = "" ]
then then
POS_PNR="0" EXTERNAL_SUBJECTS="false"
export POS_PNR export EXTERNAL_SUBJECTS
fi fi
echo "Parameter POS_PNR: $POS_PNR" >>$ERR echo "Parameter POS_PNR: $EXTERNAL_SUBJECTS" >>$ERR
echo "\$POS_PNR=$POS_PNR" >>unload_params.txt echo "\$EXTERNAL_SUBJECTS=$EXTERNAL_SUBJECTS" >>unload_params.txt
if [ "$LAB_FILTER" = "" ] if [ "$LAB_FILTER" = "" ]

60
src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml

@ -3,17 +3,14 @@
<module id="sos" version="1.2" systeminfo_id="7">SOS-Modul</module> <module id="sos" version="1.2" systeminfo_id="7">SOS-Modul</module>
<parameters> <parameters>
<param name="SOS_UNL_COMPLETE" defaultValue="true" description="Komplett entladen"><comment>Sollen alle Datensätze entladen werden, oder nur die geänderten?(true,false).</comment></param>
<param name="VERSION" defaultValue="13" description="Datenbank-Version"><comment>SOSPOS-Version, möglich sind 6,7,8,9,10,11,12,13. Bei HISinOne wird sie automatisch gesetzt.</comment></param>
<param name="start_stud_sem" defaultValue="19911" description="Startsemester Studierende"><comment>Ab welchem Semester sollen Studierende entladen werden? z.B. 20011 für SS 2001</comment></param> <param name="start_stud_sem" defaultValue="19911" description="Startsemester Studierende"><comment>Ab welchem Semester sollen Studierende entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="start_pruef_sem" defaultValue="19911" description="Startsemester Prüfungen"><comment>Ab welchem Semester sollen Prüfungen entladen werden? z.B. 20021 für SS 2002</comment></param> <param name="start_pruef_sem" defaultValue="19911" description="Startsemester Prüfungen"><comment>Ab welchem Semester sollen Prüfungen entladen werden? z.B. 20021 für SS 2002</comment></param>
<param name="SOS_UNL_ANON" defaultValue="false" description="Pseudonymisierung"><comment>Matrikelnummern pseudonymisieren (true, false). Muss bei Datenquelle HISinOne auf "false" gesetzt sein.</comment></param> <param name="SOS_UNL_ANON" defaultValue="false" description="Pseudonymisierung"><comment>Matrikelnummern pseudonymisieren (true, false). Muss bei Datenquelle HISinOne auf "false" gesetzt sein.</comment></param>
<param name="POS_PNR" defaultValue="0" ><comment>Welche Prüfungsnummern (Vor- Hauptprüfun../../../superx/WEB-INF/web.xmlgen) sollen entladen werden? Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param>
<param name="LAB_FILTER" defaultValue=" AND (lab.panerk is null or lab.panerk != 'J') " ><comment>Weiterer Filter für Einzelprüfungen. Standardmäßig werden anerkannte Prüfungen nicht entladen. Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param> <param name="LAB_FILTER" defaultValue=" AND (lab.panerk is null or lab.panerk != 'J') " ><comment>Weiterer Filter für Einzelprüfungen. Standardmäßig werden anerkannte Prüfungen nicht entladen. Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param>
<param name="STUDENT_FILTER" defaultValue=" AND 1=1 " ><comment>Filter für Studierende, um z.B. Teststudenten nicht zu entladen (nur HISinOne).</comment></param> <param name="STUDENT_FILTER" defaultValue=" AND 1=1 " ><comment>Filter für Studierende, um z.B. Teststudenten nicht zu entladen (nur HISinOne).</comment></param>
<param name="STUDENT_SOSPOS_FILTER" defaultValue=" AND 1=1 " ><comment>Filter für Studierende, um z.B. Teststudenten nicht zu entladen (nur sospos/co).</comment></param> <param name="STUDENT_SOSPOS_FILTER" defaultValue=" AND 1=1 " ><comment>Filter für Studierende, um z.B. Teststudenten nicht zu entladen (nur sospos/co).</comment></param>
<param name="DATUM" defaultValue="01.01.1900" description="Entladedatum"><comment>Datum ab dem entladen werden soll (bei SOS_UNL_COMPLETE=false). Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param> <param name="DATUM" defaultValue="01.01.1900" description="Entladedatum"><comment>Datum ab dem entladen werden soll (bei SOS_UNL_COMPLETE=false). Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param>
<param name="STUD_IDENT" defaultValue="false" description="Sollen Name und Vorname der Studierenden entladen werden? (Die ersten vier Buchstaben des Vornamens werden immer entladen, da sie für die Hochschulstatistik benötigt werden)"><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist er "false"</comment></param> <param name="EXTERNAL_SUBJECTS" defaultValue="false" description="Sollen externe Fächer entladen werden? "><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist er "false"</comment></param>
<param name="PRUEFER_NAME" defaultValue="false" description="Sollen Name/Vorname der Prüfer entladen werden?"><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist es "false". Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param> <param name="PRUEFER_NAME" defaultValue="false" description="Sollen Name/Vorname der Prüfer entladen werden?"><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist es "false". Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param>
<param name="DIPL_THEMA" defaultValue="false" description="Soll das Thema der Abschlussarbeit entladen werden?"><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist es "false". Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param> <param name="DIPL_THEMA" defaultValue="false" description="Soll das Thema der Abschlussarbeit entladen werden?"><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist es "false". Wird bei Datenquelle HISinOne nicht ausgewertet.</comment></param>
<param name="PERSONATTRIBUTE_IDS" defaultValue="0" description="Sollen Attribute einer Person entladen werden? Wenn Personenattribute entladen werden sollen, dann personattributetype_id durch Komma getrennt eingeben"><comment>Wird bei Datenquelle HISinOne ausgewertet.</comment></param> <param name="PERSONATTRIBUTE_IDS" defaultValue="0" description="Sollen Attribute einer Person entladen werden? Wenn Personenattribute entladen werden sollen, dann personattributetype_id durch Komma getrennt eingeben"><comment>Wird bei Datenquelle HISinOne ausgewertet.</comment></param>
@ -1680,6 +1677,10 @@ and F.statustyp is not null
and F.fachsemester is not null and F.fachsemester is not null
and F.kz_rueck_beur_ein is not null and F.kz_rueck_beur_ein is not null
AND F.semester >= $start_stud_sem AND F.semester >= $start_stud_sem
and ($EXTERNAL_SUBJECTS ='true'
or F.unikey=(select H.hs_nr::char(10) from hochschulinfo H)
)
; ;
]]> ]]>
</extraction-sql> </extraction-sql>
@ -5298,32 +5299,56 @@ null::char(255) as parent_lid,
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT
30,
0,
K.skz_key,--apnr,
substring(K.skz_name from 1 for 10) as ktxt,
K.skz_name as dtxt,
K.skz_name as ltxt ,
F.statistik_code::char(10) as astat,
null::char(10) as parent,
'', --sortc1
' ',
' ', --sprache
null::date as gueltig_von,
null::date as gueltig_bis,
K.st_skz_nr::varchar(255), --sourcesystem_id
null::char(10) , --hiskey_id
fakultaet_key::char(10) , --struktur_c
null as lid,
null as parent_lid,
null as sortorder
FROM costage_st_studienkennzahlen K left outer join costage_st_studienfaecher F
on ( F.st_stdfach_nr=K.st_stdfach_nr)
where ($EXTERNAL_SUBJECTS ='true'
or unikey=(select H.hs_nr::char(10) from hochschulinfo H)
)
union
SELECT SELECT
--zuerst gemeinsame Schluessel von SOS, POS und ZUL
--die gleichen selects muessen auch in der zul_unload.xml sein!!!
35, 35,
-1, -1,
abint, L.code as abint,
abint,--ktxt, substring(L.name from 1 for 10),--ktxt,
dtxt, L.name as dtxt,
ltxt, L.name as ltxt,
astat, F.statistik_code::char(10) as astat,
null as parent, null as parent,
abint,--sortc1 wird später uniquename L.code,--sortc1 wird später uniquename
' ', ' ',
null as sprache, null as sprache,
null::date as gueltig_von, null::date as gueltig_von,
null::date as gueltig_bis, null::date as gueltig_bis,
abint, --sourcesystem_id L.st_absz_nr::varchar(255), --sourcesystem_id
' ', --hiskey_id ' ', --hiskey_id
aikz, --struktur_c 'A', --struktur_c
null as lid, null as lid,
null as parent_lid, null as parent_lid,
null as sortorder null as sortorder
FROM k_abint FROM costage_st_abschlussziele_lokal L left outer join costage_st_abschlussziele_amtstat F
WHERE abint is not null on (F.st_absz_amtstat_nr=L.st_absz_amtstat_nr)
WHERE L.code is not null
union union
SELECT SELECT
@ -5599,6 +5624,7 @@ null as lid,
null as parent_lid, null as parent_lid,
null as sortorder null as sortorder
FROM xdummy FROM xdummy
; ;
]]> ]]>

12
src-modules/module/costage/schluesseltabellen/cifx_fuellen.sql

@ -4,8 +4,6 @@
<#assign dimensions = [ <#assign dimensions = [
{"key":"400", "name":"Statustyp (CO)"}, {"key":"400", "name":"Statustyp (CO)"},
{"key":"401", "name":"Hörerstatus (CO)"}, {"key":"401", "name":"Hörerstatus (CO)"},
{"key":"30", "name":"Studienfächer"},
{"key":"35", "name":"Abschlüsse"},
{"key":"90", "name":"Fakultät/Fachbereich"} {"key":"90", "name":"Fakultät/Fachbereich"}
] /> ] />
@ -25,15 +23,7 @@
<#assign dimension_levels_dynamic = [ <#assign dimension_levels_dynamic = [
{"key":"401","apnr":"hoererstatus_kb", "druck":"hoererstatus_name", "astat":"", "srctable":"costage_st_hoererstatus", "astat":"", "hs":"", "struktur_c":""}, {"key":"401","apnr":"hoererstatus_kb", "druck":"hoererstatus_name", "astat":"", "srctable":"costage_st_hoererstatus", "astat":"", "hs":"", "struktur_c":""},
{"key":"30","apnr":"skz_key", "druck":"skz_name", "srctable":"costage_st_studienkennzahlen", {"key":"90","apnr":"fakultaet_key", "druck":"fakultaet_bezeichnung", "srctable":"costage_st_fakultaeten",
"astat":"(select distinct F.statistik_code from costage_st_studienfaecher F where F.st_stdfach_nr=costage_st_studienkennzahlen.st_stdfach_nr)",
"struktur_c":"fakultaet_key",
"hs":"unikey"},
{"key":"35","apnr":"code", "druck":"name", "srctable":"costage_st_abschlussziele_lokal",
"astat":"(select distinct F.statistik_code from costage_st_abschlussziele_amtstat F where F.st_absz_amtstat_nr=costage_st_abschlussziele_lokal.st_absz_amtstat_nr)",
"struktur_c":"(select A.kurzbezeichnung from costage_st_abschlussziele_amtstat F, costage_st_studienarten A where F.st_absz_amtstat_nr=costage_st_abschlussziele_lokal.st_absz_amtstat_nr and A.st_std_art_nr=F.st_std_art_nr)",
"hs":""},
{"key":"90","apnr":"fakultaet_key", "druck":"fakultaet_bezeichnung", "srctable":"costage_st_fakultaeten",
"astat":"", "astat":"",
"struktur_c":"", "struktur_c":"",
"hs":"unikey"} "hs":"unikey"}

69
src-modules/module/costage/schluesseltabellen/sos_unload_params_fuellen.sql

@ -0,0 +1,69 @@
--Unload Parameter und deren Defaults setzen
--freemarker template
<sqlvars>
<sqlvar name="unload_params_exists">
select sp_table_exists('unload_params') from xdummy;
</sqlvar>
</sqlvars>
<#if unload_params_exists=1>
create temp table tmp_unload_params(
tid SERIAL not null,
param_id VARCHAR(255) not null,
param_val VARCHAR(255) ,
default_val VARCHAR(255) ,
description VARCHAR(255) ,
systeminfo_id INTEGER
);
insert into tmp_unload_params(param_id,
param_val,
default_val,
description,
systeminfo_id)
values ('EXTERNAL_SUBJECTS',
'false',
'false',
'Übergabe externe Fächer von COSTAGE ans Studierenden-Modul',
7);
--description wird immer geändert:
update unload_params set description=(select T.description
from tmp_unload_params T
where T.param_id=unload_params.param_id
and T.systeminfo_id=unload_params.systeminfo_id)
where systeminfo_id=7
and param_id in (select param_id from tmp_unload_params);
--default_val wird immer geändert:
update unload_params set default_val=(select T.default_val
from tmp_unload_params T
where T.param_id=unload_params.param_id
and T.systeminfo_id=unload_params.systeminfo_id)
where systeminfo_id=7
and param_id in (select param_id from tmp_unload_params);
delete from tmp_unload_params where systeminfo_id || param_id in
(select systeminfo_id || param_id from unload_params);
insert into unload_params(param_id,
param_val,
default_val,
description,
systeminfo_id)
select param_id,
param_val,
default_val,
description,
systeminfo_id
from tmp_unload_params
where param_id is not null;
drop table tmp_unload_params;
</#if>

2
src-modules/module/costage/schluesseltabellen/trans_costage_st_studiengaenge.sql

@ -32,7 +32,7 @@ st_studiengang_nr,
--transformiere Fach/Abschluss etc. nach SuperX Notation --transformiere Fach/Abschluss etc. nach SuperX Notation
--Fach: --Fach:
update costage_st_studiengaenge set stg=SKZ.skz_key update costage_st_studiengaenge set skz_key=SKZ.skz_key
from costage_st_studienkennzahlen SKZ from costage_st_studienkennzahlen SKZ
where SKZ.st_skz_nr=costage_st_studiengaenge.st_skz_nr; where SKZ.st_skz_nr=costage_st_studiengaenge.st_skz_nr;
--Abschluss: --Abschluss:

46
src-modules/module/costage/schluesseltabellen/trans_costage_st_studienkennzahlen.sql

@ -0,0 +1,46 @@
delete from costage_st_studienkennzahlen;
insert into costage_st_studienkennzahlen(
st_skz_nr,
skz_key,
unikey,
fakultaet_key,
skz_name,
st_stdfach_nr,
gesetzliche_grundlage_kb
)
select
S.st_skz_nr,
S.skz_key,
S.unikey,
S.fakultaet_key,
S.skz_name,
S.st_stdfach_nr,
S.gesetzliche_grundlage_kb
FROM costage_st_studienkennzahlen_neu S, hochschulinfo H
where H.hs_nr::char(10)=S.unikey or S.unikey is null
;
--wg. Eindeutigkeit kombinierter Schlüssel SKZ+UNIKEY:
insert into costage_st_studienkennzahlen(
st_skz_nr,
skz_key,
unikey,
fakultaet_key,
skz_name,
st_stdfach_nr,
gesetzliche_grundlage_kb
)
select
S.st_skz_nr,
trim(S.skz_key) ||'_' || trim(S.unikey),
S.unikey,
S.fakultaet_key,
S.skz_name,
S.st_stdfach_nr,
S.gesetzliche_grundlage_kb
FROM costage_st_studienkennzahlen_neu S, hochschulinfo H
where H.hs_nr::char(10)!=S.unikey
;
--TODO: Duplikatssuche bei Fächern ("skz_key").

11
src-modules/module/costage/upgrade/costage_upgrade_man.sql

@ -0,0 +1,11 @@
--Freemarker Template
<#if '${SQLdialect}'='Postgres' >
alter table costage_st_studienkennzahlen alter column skz_key type char(10);
alter table costage_st_studierendenstammdaten_neu alter column aufnahmedatum type varchar(255);
</#if>
Loading…
Cancel
Save