Compare commits

..

1 Commits

Author SHA1 Message Date
Daniel Quathamer 8c507365d0 Bugfix Studierende ohne Primärflag, HZB-Orte bei Bewerbungen #24 9 months ago
  1. 67
      costage_update.x
  2. 20
      costage_update_cron.x.sam
  3. 81
      gang_costage_unload.xml
  4. 242
      src-modules/module/costage/conf/costage.xml
  5. 10
      src-modules/module/costage/hilfstabellen/costage_bw_antr_aggr_fuellen.sql
  6. 17
      src-modules/module/costage/hilfstabellen/costage_st_einzpruef_aggr_fuellen.sql
  7. 13
      src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql
  8. 26
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_denormalize.sql
  9. 31
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen_mit_primerflag.sql
  10. 100
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen_ohne_primerflag.sql
  11. 23
      src-modules/module/costage/masken/43220_felderinfo.unl
  12. 1
      src-modules/module/costage/masken/43220_maske_system_bez.unl
  13. 12
      src-modules/module/costage/masken/43220_masken_felder_bez.unl
  14. 390
      src-modules/module/costage/masken/43220_maskeninfo.unl
  15. 1
      src-modules/module/costage/masken/43220_sachgeb_maske_bez.unl
  16. 4
      src-modules/module/costage/rohdaten/COSTAGE_ENV.sam
  17. 193
      src-modules/module/costage/rohdaten/costage_unload.xml
  18. 377
      src-modules/module/costage/rohdaten_lm/lm_costage_unload.x
  19. 601
      src-modules/module/costage/rohdaten_lm/lm_costage_unload.xml
  20. 1
      src-modules/module/costage/rohdaten_lm/superx.datum
  21. 1
      src-modules/module/costage/rohdaten_lm/unl/hierhin_die_rohdaten.txt
  22. 3
      src-modules/module/costage/rohdaten_msg/msg_costage_unload.xml
  23. 67
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml
  24. 8
      src-modules/module/costage/rohdaten_zul/zul_costage_unload.xml
  25. 2
      src-modules/module/costage/schluesseltabellen/costage_dim_studiengang_fuellen.sql
  26. 3
      src-modules/module/costage/schluesseltabellen/costage_stichtag.unl
  27. 15
      src-modules/module/costage/schluesseltabellen/sx_repository.unl
  28. 67
      src-modules/module/costage/upgrade/costage_upgrade_man.sql

67
costage_update.x

@ -1,67 +0,0 @@ @@ -1,67 +0,0 @@
#!/bin/bash
#Arbeitsverzeichnis fuer crontab
PFAD=$2
if [ "$PFAD" != "" ]
then
cd $PFAD
fi
#Umgebung einlesen:
if [ "$COSTAGE_PFAD" = "" ]
then
echo "ACHTUNG: Die Umgebungsvariable COSTAGE_PFAD ist nicht gesetzt. Bitte prüfen Sie $SUPERX_DIR/db/bin/SQL_ENV"
exit 1
fi
if [ "$COSTAGE_ERRORMAIL" != "" ]
then
ERRORMAIL=$COSTAGE_ERRORMAIL
export ERRORMAIL
fi
if [ "$COSTAGE_LOGMAIL" != "" ]
then
LOGMAIL=$COSTAGE_LOGMAIL
export LOGMAIL
fi
if [ "$COSTAGE_BACKUP" != "" ]
then
MODULE_BACKUP=$COSTAGE_BACKUP
export MODULE_BACKUP
fi
#hier geht es los
#runAndCheck.x path command (EXIT_ON_ERROR|CONT_ON_ERROR) (SEND_ERRORMAIL|NO_ERRORMAIL) (SEND_LOGMAIL|NO_LOGMAIL) [description] "
echo "costage-Update startet" >$COSTAGE_ERRORDAT
runAndCheck.x $COSTAGE_PFAD "module_etl.x costage $COSTAGE_PFAD $COSTAGE_LOAD_PFAD" EXIT_ON_ERROR SEND_ERRORMAIL SEND_LOGMAIL "COSTAGE update$MANDANTID"
echo "---------------------------Beginn Prüfroutine-----------------------------------" >>$COSTAGE_ERRORDAT
cat $COSTAGE_PFAD/L_COSTAGE_update$MANDANTID.log >>$COSTAGE_ERRORDAT
pruefmail.x $COSTAGE_PFAD/L_costage_Test$MANDANTID.log $ERRORMAIL
#Bei Fehlern Datum zurücksetzen:
fgrep -s "not found" $COSTAGE_ERRORDAT
FLAG1=$?
fgrep -i -s "error" $COSTAGE_ERRORDAT
FLAG2=$?
fgrep -i -s "nicht gefunden" $COSTAGE_ERRORDAT
FLAG3=$?
fgrep -i -s "fehler" $COSTAGE_ERRORDAT
FLAG4=$?
if [ $FLAG1 -eq 0 -o $FLAG2 -eq 0 -o $FLAG3 -eq 0 -o $FLAG4 -eq 0 ]
then
echo "Fehler beim COSTAGE-Update "
echo "---------------------------------------"
echo "Fehlerprotokoll in $COSTAGE_ERRORDAT"
echo "Das Datum wird zurückgesetzt. Kopieren Sie die Datei superx.datum ggf. auf den COSTAGE-Rechner"
echo "---------------------------------------"
cp $COSTAGE_LOAD_PFAD/superx.datum.alt $COSTAGE_LOAD_PFAD/superx.datum
else
echo "COSTAGE-Update erfolgreich"
fi

20
costage_update_cron.x.sam

@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
#!/bin/bash
#Beispielscript für cronjobs
#Im cronjob ist keine Umgebung vorhanden, deshalb vorher laden.
#Selbstredend als normaler user, nicht als root z.B.
. /home/superx/db/bin/SQL_ENV
cd $COSTAGE_LOAD_PFAD
./costage_unload.x
cd $COSTAGE_PFAD
costage_update.x
DOQUERY "reindex database $DBNAME"
echo "Ende $COSTAGE_PFAD/costage_update_cron.x"

81
gang_costage_unload.xml

@ -1,81 +0,0 @@ @@ -1,81 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<superx-unload version="4.0">
<module id="msg" version="1.2" systeminfo_id="7">MSG-Modul</module>
<parameters>
<param name="msg_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>
</parameters>
<sourcesystems>
<sourcesystem name="sospos" description="SOSPOS-GX Datenbank" />
<sourcesystem name="hisinone" description="HIS1 Datenbank" default="true"/>
<sourcesystem name="co" description="CampusOnline-Datenbank" />
</sourcesystems>
<unload-job id="sos_abp" extraction-table="" extraction-script="" transfer-unload-file="unl/sos_abp.unl" >
<comment>Verzeichnis der Abschlussprüfungen (CO).</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT
P.matrikelnummer,
P.studiengang_nr,
P.fach_nr,
G.abschluss_code as abschluss,
--(case when leistungsdetailtyp_kb='TSAB' then P.semester_tsg
--else P.semester end) as semester,
P.semester,
P.leistungsdatum,
(case when P.studiengangs_typ_kb='MSG' and skz_key_abschlussarbeit is not null then skz_key_abschlussarbeit
else G.skz_key end) as stg,
null::integer as vert,
null::integer as schwp,
string_not_null(G.fachkennzeichen),
P.note,
null::char(7), --pruefungsamt_nr
P.abschnitt as pnr,
(case when leistungsdetailtyp_kb='TSAB' then P.po_stp_stp_version_kb_tsg
when P.studiengangs_typ_kb='MSG' and po_stp_stp_version_kb_abschlussarbeit is not null then po_stp_stp_version_kb_abschlussarbeit
else P.po_stp_stp_version_kb end) as pversion,
P.leistungsstatus_map_kb as pstatus,
P.fachsemester,
P.leistungsdetailtyp_kb as part,
(case when leistungsdetailtyp_kb='TSAB' then P.leistung_nr_tsg
else P.leistung_nr end) as leistung_nr,
null::integer as pversuch,
null::char(7)as ppruef1,
null::char(7) as ppruef2,
null::char(7) as malus,
P.credits as bonus,
stp_sp_nr as pordnr,
null::integer as pvermerk,
0::integer as prueck,
G.studiengangs_typ_kb as zeitabschnitt, --term_segment
P.anerkannt_flag as panerk,
null::integer as pstatkennz,
null::CHAR(1), --stuart
G.stufrm,
null::CHAR(1), --stutyp
P.st_studium_nr as degree_program_id,
P.st_studium_nr_tsg as degree_program_id_tsg,
semester_tsg,
leistungsdatum_tsg,
leistungsstatus_map_kb_tsg as pstatus_tsg,
note_tsg,
fachsemester_tsg as fach_sem_zahl_tsg ,
P.studienidentifikator,
P.studienidentifikator_tsg
FROM costage_st_pruef_aggr P, costage_dim_studiengang G
where G.tid=P.studiengang_tid
and ($EXTERNAL_SUBJECTS ='true'
or P.unikey=(select H.hs_nr::char(10) from hochschulinfo H)
)
AND (P.semester >= $start_pruef_sem or P.semester_tsg >= $start_pruef_sem)
;
]]>
</extraction-sql>
</unload-job>
</superx-unload>

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module name="costage" version="0.8b" sachgebiet_id="310"
<module name="costage" version="0.7" sachgebiet_id="310"
sachgebiet="CO Basisdaten" systeminfo_id="310"
system="CO Basisdaten" thema="CO Basisdaten" thema_parent="Studierende, Prüfungen">
<database name="superx" system="superx">
@ -80,7 +80,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -80,7 +80,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="fakultaet_alt" type ="VARCHAR" size ="1" default ="" notnull ="false" />
<column name="fakultaet_last" type ="VARCHAR" size ="3" default ="" notnull ="false" />
<column name="st_land_reg_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="fakultaet_name_en" type ="VARCHAR" size ="255" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
@ -108,9 +107,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -108,9 +107,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<description>Studierenden-Hörerstatus (CO)</description>
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="hoererstatus_name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hoererstatus_name" type ="VARCHAR" size ="4000" default ="" notnull ="false" />
<column name="hoererstatus_kb" type ="VARCHAR" size ="1" default ="" notnull ="true" />
<column name="statistik_code" type ="VARCHAR" size ="255" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
@ -265,8 +263,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -265,8 +263,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="studientyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" />
<column name="studientyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" />
<column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="st_orgform_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Organisationform"/>
<column name="codex_ag_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Akademischer Grad"/>
</columns>
<indexes></indexes>
<primaryKeys><rs>
@ -283,7 +279,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -283,7 +279,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="studiengangs_bezeichnung" type ="VARCHAR" size ="4000" default ="" notnull ="false" description="" />
<column name="st_absz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="fachkennzeichen" type ="VARCHAR" size ="10" default ="" notnull ="false" description="" />
<column name="fachkennzeichen" type ="VARCHAR" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="st_std_art_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="studiengangs_typ_name" type ="VARCHAR" size ="100" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="studiengangs_typ_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
@ -298,8 +294,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -298,8 +294,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="rsz" type ="INTEGER" size ="255" default ="" notnull ="false" description="Regelstudienzeit"/>
<column name="stort_nr" type ="VARCHAR" size ="4" default ="" notnull ="false" description="Standort Nr." />
<column name="stort_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Standort Name" />
<column name="st_orgform_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Organisationform"/>
<column name="codex_ag_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Akademischer Grad"/>
</columns>
<indexes></indexes>
@ -456,7 +450,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -456,7 +450,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="studienform_name" type ="VARCHAR" size ="100" default ="" notnull ="false" />
<column name="studienform_statistik_code" type ="VARCHAR" size ="2" default ="" notnull ="false" />
<column name="hauptstudium_flag" type ="CHAR" size ="10" default ="" notnull ="false" description="Primärhaken" />
<column name="sortierung" type ="INTEGER" size ="10" default ="" notnull ="false" description="Sortierung Studien" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
@ -628,24 +621,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -628,24 +621,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<comment>Lookup via: st_studium_nr/st_sem_nr - costage_st_urlaube.st_studium_nr/st_sem_nr </comment>
</column>
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" currentlyUsed="false" >
</column>
<column name="hzb_ort_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="HZB-Ort (Statistik-Code)" >
<sourcefield table="costage_st_urlaube" name="st_urlaub_typ_nr" sourcesystem="co" />
<comment>Lookup via: costage_land_subregionen R - R.land_sub_reg_nr </comment>
</column>
<column name="hzb_staat_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="HZB-Staat (Statistik-Code)" >
<sourcefield table="costage_st_laender" name="statistik_code" sourcesystem="co" />
<comment>Lookup via: costage_st_laender.st_land_nr =H.hzb_land_nr </comment>
</column>
<column name="heimat_ort_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Heimatwohnsitz Ort (Statistik-Code)" >
<sourcefield table="costage_st_urlaube" name="st_urlaub_typ_nr" sourcesystem="co" />
<comment>Lookup via: costage_land_subregionen R costage_st_adressen.land_kfz_kennzeichen </comment>
</column>
<column name="heimat_staat_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Heimatwohnsitz Staat (Statistik-Code)" >
<sourcefield table="costage_st_laender" name="statistik_code" sourcesystem="co" />
<comment>Lookup via: costage_st_laender.st_land_nr =costage_st_adressen.st_land_nr </comment>
</column>
</columns>
<indexes>
<index name="ix_costage_st_studien_aggr1" unique="false">
@ -663,10 +638,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -663,10 +638,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<index name="ix_costage_st_studien_aggr6" unique="false">
<index-column name="fach_nr"/>
</index>
<index name="ix_costage_st_studien_aggr7" unique="false">
<index-column name="stichtag"/>
</index>
</indexes>
<primaryKeys><rs>
</rs></primaryKeys>
@ -726,8 +697,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -726,8 +697,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="leistung_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Eindeutige Leistungsnummer ESG/MSG" />
<column name="leistung_nr_tsg" type ="INTEGER" size ="4" default ="" notnull ="false" description="Eindeutige Leistungsnummer TSG" />
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" currentlyUsed="false">
</column>
</columns>
<indexes>
@ -752,8 +721,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -752,8 +721,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="matrikelnummer" type ="INTEGER" size ="8" default ="" notnull ="false" description="Matrikelnummer" />
<column name="semester" type ="INTEGER" size ="8" default ="" notnull ="false" description="Semester" currentlyUsed="false"><comment>des Prüfungsdatums</comment></column>
<column name="semester_veranst" type ="INTEGER" size ="8" default ="" notnull ="false" description="Semester der Veranstaltung" />
<!--Studiengang-->
<column name="studiengang_tid" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (Join-ID)" />
<column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID)" />
<column name="st_studiengang_nr_msg" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID) des MSG" ><comment>nur bei TSG</comment></column>
<column name="unikey" type ="CHAR" size ="10" default ="" notnull ="false" description="Hochschulnummer" />
@ -862,39 +829,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -862,39 +829,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</column>
<column name="summe" type ="INTEGER" size ="4" default ="" notnull ="false" description="Summe" />
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" currentlyUsed="false">
</column>
<column name="zurueckgezogen_kz" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Kennzeichen Zurückgezogen" />
<column name="storniert_kz" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Kennzeichen Storniert" />
</columns>
</table>
<table name="costage_stichtag" version="0.6" thema="Studierende, Prüfungen" caption="Pflege: Einfriersemester bei benutzerdefinierten Stichtagen verwalten" typ="Schlüsseltabelle" releaseUnload="demo">
<description>Stichtage</description>
<columns>
<column name="tid" type ="SERIAL" size ="4" default ="" notnull ="true" description="tid"/>
<column name="name" type ="CHAR" size ="150" default ="" notnull ="false" description="Name"/>
<column name="stichtagsart" type ="CHAR" size ="100" default ="" notnull ="false" description="Art des Stichtags"><comment>Studierende, Abschlussprüfungen, Bewerbungen</comment></column>
<column name="appl_key" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Schlüssel für Anwendung"><comment>Dieser Wert wird vom Hersteller vergeben: 0=Studierende tagesaktuelle, 2=Absolvent_innen tagesaktuell,3=Bewerbungen</comment></column>
<column name="startsemester_berechnung" type ="INTEGER" size ="4" default ="19001" notnull ="false" description="Startsemester der Berechnung"/>
</columns>
<indexes>
</indexes>
<primaryKeys><rs>
<row>
<fld name='table_cat'></fld>
<fld name='table_schem'>public</fld>
<fld name='table_name'>costage_stichtag</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>pk_costage_stichtag</fld>
</row>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="costage_st_lv_aggr" thema="Lehre" caption="Lehrveranstaltsteilnahme (CO)" typ="Hilfstabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studium (ID)" />
@ -1233,8 +1168,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -1233,8 +1168,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="leistungstyp_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="leistungsdetailtyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" />
<column name="matrikelnummer" type ="INTEGER" size ="12" default ="" notnull ="false" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="nachname" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="nachname" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="st_studium_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="studienidentifikator" type ="VARCHAR" size ="4000" default ="" notnull ="false" />
<column name="spov_abschluss" type ="VARCHAR" size ="10" default ="" notnull ="false" />
@ -1244,7 +1179,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -1244,7 +1179,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="veranstaltung_titel" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Titel der Lehr- oder Prüfungsveranstaltung"><comment></comment></column>
<column name="veranstaltung_art" type ="VARCHAR" size ="2" default ="" notnull ="false" description="Art der Lehr- oder Prüfungsveranstaltung"><comment></comment></column>
<column name="semesterstunden" type ="FLOAT" size ="4" default ="" notnull ="false" description="Semesterstunden"><comment></comment></column>
<column name="unterrichtseinheiten" type ="FLOAT" size ="4" default ="" notnull ="false" description="Kontaktstunden"><comment></comment>der Lehr- oder Prüfungsveranstaltung im Semester</column>
<column name="unterrichtseinheiten" type ="INTEGER" size ="4" default ="" notnull ="false" description="Kontaktstunden"><comment></comment>der Lehr- oder Prüfungsveranstaltung im Semester</column>
<column name="thema_individuell" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Individuelles Thema"><comment>einer*eines Studierenden bei der Leistung (z. B. wenn Abschlussarbeiten im Rahmen einer Lehrveranstaltung erstellt werden).</comment></column>
<column name="pv_notenskala_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="note" type ="VARCHAR" size ="100" default ="" notnull ="true" />
@ -1570,23 +1505,23 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -1570,23 +1505,23 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></privileges>
</table>
<table name="costage_ergebnisse" thema="SPO" caption="Ergebnisse (CO)" typ="Datentabelle" releaseUnload="empty">
<table name="costage_ergebnisse" thema="SPO" caption="Studienplankontexte (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="st_studien_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="stp_knoten_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="vorart_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" />
<column name="flag" type ="VARCHAR" size ="1" default ="" notnull ="false" />
<column name="zahl" type ="FLOAT" size ="4" default ="" notnull ="false" />
<column name="zahl" type ="INTEGER" size ="4" default ="" notnull ="false" />
<column name="drucktext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="datum" type ="DATE" size ="7" default ="" notnull ="false" />
</columns>
<indexes><index name="ix_costage_ergebnisse1" unique="false">
<index-column name="st_studien_nr"/>
</index>
<index name="ix_costage_ergebnisse2" unique="false">
<index-column name="stp_knoten_nr"/>
</index>
</indexes>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges></privileges>
</table>
<table name="costage_studienplankontexte" thema="SPO" caption="Studienplankontexte (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="4" default ="" notnull ="false" />
@ -1596,95 +1531,16 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -1596,95 +1531,16 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="stp_knoten_nr_sichtbar" type ="INTEGER" size ="4" default ="" notnull ="false" />
<column name="ghk_nr" type ="INTEGER" size ="4" default ="" notnull ="false" />
</columns>
<indexes>
<index name="ix_costage_studienplankontexte1" unique="false">
<index-column name="st_studium_nr"/>
</index>
<index name="ix_costage_studienplankontexte2" unique="false">
<index-column name="stp_stp_nr"/>
</index>
</indexes>
</table>
<table name="costage_knoten" thema="SPO" caption="Knoten zur Auflösung von Studienplankontexten. (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Knotennummer" ><comment>Primary Key</comment></column>
<column name="stp_knoten_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Knotennummer Parent- Knoten" ><comment>Knotennummer des übergeordneten Knoten.</comment></column>
<column name="stp_stp_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="SPO-Versionsnummer" ><comment></comment></column>
<column name="name_de" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Knotenname deutsch" ><comment></comment></column>
<column name="name_en" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Knotenname englisch" ><comment></comment></column>
<column name="kennung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kennung des Knoten" ><comment></comment></column>
<column name="credits" type ="FLOAT" size ="4" default ="" notnull ="false" description="Credits am Knoten" ><comment>Anzahl hinterlegter Credits am Knoten.</comment></column>
<column name="haupttyp_kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kurzbezeichnung des Knotenhaupttyps" ><comment></comment></column>
<column name="subtyp_kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kurzbezeichnung des Knotensubtyps" ><comment></comment></column>
<column name="haupttyp_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Name des Knotenhaupttyps" ><comment></comment></column>
<column name="subtyp_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Name des Knotensubtyps" ><comment></comment></column>
<column name="gueltig_von" type ="DATE" size ="7" default ="" notnull ="false" description="Gültig von" ><comment>Attribut „Gültig von“ im SPO-Management.</comment></column>
<column name="gueltig_bis" type ="DATE" size ="7" default ="" notnull ="false" description="Gültig bis" ><comment>Attribut „Gültig bis“ im SPO-Management.</comment></column>
<column name="teil_des_curriculums" type ="CHAR" size ="1" default ="" notnull ="false" description="Knoten Teil des Curriculums" ><comment>Ob der Knoten Teil des Curriculums ist oder nicht (Option im SPO-Management).</comment></column>
<column name="semesterempfehlung_de" type ="VARCHAR" size ="255" default ="" notnull ="true" description="Empfohlenes Semester (W / S) deutsch." ><comment></comment></column>
<column name="semesterempfehlung_en" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Empfohlenes Semester (W / S) englisch." ><comment></comment></column>
<column name="semesterempfehlung_de_kurz" type ="VARCHAR" size ="255" default ="" notnull ="true" description="Kurzbezeichnung des empfohlenen Semesters deutsch." ><comment></comment></column>
<column name="semesterempfehlung_en_kurz" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kurzbezeichnung des empfohlenen Semesters englisch." ><comment></comment></column>
</columns>
<indexes>
<index name="ix_costage_knoten1" unique="false">
<index-column name="stp_knoten_nr"/>
</index>
<index name="ix_costage_knoten2" unique="false">
<index-column name="stp_stp_nr"/>
</index>
</indexes>
<indexes></indexes>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>costage_knoten</fld>
<fld name='column_name'>nr</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>pk_costage_knoten_nr</fld>
</row></rs></primaryKeys>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="costage_st_toleranzsemester_typen" thema="SPO" caption="Typen von Toleranzsemestern (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="st_tzsem_typ_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Nummer" />
<column name="kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kurzbezeichnung" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Name" />
</columns>
<privileges></privileges>
</table>
<table name="costage_st_studien_toleranzsem" thema="SPO" caption="Studien-Toleranzsemester (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Pers. Studium" />
<column name="st_tzsem_typ_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Toleranzsemestertyp" />
<column name="st_sem_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Semester" />
<column name="anzahl" type ="INTEGER" size ="4" default ="" notnull ="true" description="Toleranzsemesteranzahl" />
</columns>
</table>
<table name="costage_st_orgformen" thema="SPO" caption="Organisationsformen (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="st_orgform_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Nummer" />
<column name="kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kurzbezeichnung" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Name" />
<column name="statistik_code" type ="INTEGER" size ="4" default ="" notnull ="false" description="Statistikcode" />
</columns>
</table>
<table name="costage_st_studien_orgform" thema="SPO" caption="Studien zu Organisationsformen (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Pers. Studium" />
<column name="st_sem_nr_von" type ="INTEGER" size ="4" default ="" notnull ="false" description="Semester von-Nummer" />
<column name="st_orgform_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Organisationsform" />
</columns>
</table>
<table name="costage_codex_akadgrade" thema="SPO" caption="Akademische Grade (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="codex_ag_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Nummer" />
<column name="kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Kurzbezeichnung" />
<column name="bezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Bezeichnung" />
</columns>
</table>
<views>
<view name="costage_abschluss_fach_stg" caption="Studiengänge nach Abschluss/Fach" thema="Studierende" typ="Schlüsseltabelle" releaseUnload="demo">
<description>Abschlüsse,Fächer und Studiengänge</description>
@ -1821,12 +1677,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1821,12 +1677,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<path>$COSTAGE_PFAD/masken</path>
</src>
</maske>
<maske tid="43220" name="Studienerfolg und Veranstaltungen (CO)" thema="">
<description></description>
<src>
<path>$COSTAGE_PFAD/masken</path>
</src>
</maske>
</masken>
<data-integrity>
@ -1862,16 +1712,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1862,16 +1712,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_absz_nr" to="st_absz_nr" />
</relation>
<relation from="costage_codex_akadgrade" to="costage_st_studiengaenge" delete="FALSE"
displayType="select" visibleFields="bezeichnung" format="%s">
<relation-column from="codex_ag_nr" to="codex_ag_nr" />
</relation>
<relation from="costage_st_orgformen" to="costage_st_studiengaenge" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_orgform_nr" to="st_orgform_nr" />
</relation>
<!--costage_st_fachsemester-->
<relation from="costage_st_studien" to="costage_st_fachsemester" delete="FALSE"
displayType="select" visibleFields="st_studium_nr" format="%s">
@ -1970,7 +1810,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1970,7 +1810,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
displayType="select" visibleFields="matrikelnummer" format="%s">
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="" format="%s">
<relation-column from="apnr" to="kz_rueck_beur_ein" />
<relation-column from="key" to="9001" />
</relation>
@ -1981,26 +1821,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1981,26 +1821,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<relation from="costage_st_studienformen" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="name" uniquenameField="" format="%s">
<relation-column from="statistik_code" to="studienform_statistik_code" />
</relation>
<relation from="costage_stichtag" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="stichtag" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="hzb_staat_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="heimat_staat_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="hzb_ort_astat" />
<relation-column from="key" to="11" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="heimat_ort_astat" />
<relation-column from="key" to="11" />
</relation>
<!--costage_st_pruef_aggr-->
<relation from="costage_st_semester" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="semester_bezeichnung" format="%s">
@ -2035,10 +1856,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2035,10 +1856,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
displayType="select" visibleFields="name_de" format="%s">
<relation-column from="leistungsdetailtyp_kb" to="leistungsdetailtyp_kb" />
</relation>
<relation from="costage_stichtag" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="stichtag" />
</relation>
<!--costage_st_einzpruef_aggr-->
<relation from="costage_st_semester" to="costage_st_einzpruef_aggr" delete="FALSE"
@ -2101,10 +1918,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2101,10 +1918,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
displayType="select" visibleFields="st_studstamm_nr" format="%s">
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
<relation from="costage_stichtag" to="costage_bw_antr_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="stichtag" />
</relation>
<!--costage_st_lv_aggr-->
<relation from="costage_st_semester" to="costage_st_lv_aggr" delete="FALSE"
@ -2120,7 +1933,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2120,7 +1933,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
</data-integrity>
</database>
@ -2141,13 +1953,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2141,13 +1953,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_land_regionen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_land_regionen.unl"/></loadtable>
<!--<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_personen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_personen.unl"/></loadtable>-->
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_orgformen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_orgformen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_toleranzsemester_typen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_toleranzsemester_typen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studien_toleranzsem"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studien_toleranzsem.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studien_orgform"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studien_orgform.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_codex_akadgrade"><file path="$COSTAGE_LOAD_PFAD/unl/costage_codex_akadgrade.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_semester_neu"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_semester.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienarten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienarten.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_st_studienfaecher"><file path="$COSTAGE_LOAD_PFAD/unl/costage_st_studienfaecher.unl"/></loadtable>
@ -2189,8 +1994,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2189,8 +1994,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_gleichheitsknoten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_gleichheitsknoten.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_lehrveranstaltungen_neu"><file path="$COSTAGE_LOAD_PFAD/unl/costage_lehrveranstaltungen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_lv_teilnehmende_neu"><file path="$COSTAGE_LOAD_PFAD/unl/costage_lv_teilnehmende.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_knoten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_knoten.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_ergebnisse"><file path="$COSTAGE_LOAD_PFAD/unl/costage_ergebnisse.unl"/></loadtable>
</action>
</etl-step>
@ -2217,7 +2020,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2217,7 +2020,6 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen_mit_primerflag.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen_ohne_primerflag.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_denormalize.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_pruef_aggr_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_bw_antr_aggr_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_lv_aggr_fuellen.sql" database=""/>
@ -2265,8 +2067,6 @@ gueltig_bis DATE @@ -2265,8 +2067,6 @@ gueltig_bis DATE
</action>
<action error="stop">
<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="costage_stichtag"><file path="$COSTAGE_PFAD/schluesseltabellen/costage_stichtag.unl"/></loadtable>
</action>
<action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/konstanten_fuellen.sql" database=""/>

10
src-modules/module/costage/hilfstabellen/costage_bw_antr_aggr_fuellen.sql

@ -61,8 +61,6 @@ null::char(10) as bew_kz, @@ -61,8 +61,6 @@ null::char(10) as bew_kz,
null::char(10) as zul_kz,
null::char(10) as annahme_kz,
null::char(10) as einschreib_kz,
null::char(10) as zurueckgezogen_kz, -- where zurueckgezogen_am is not null
null::char(10) as storniert_kz, -- where storniert_am is not null
null::CHAR(10) as hzb_art ,
null::DATE as hzb_datum ,
null::FLOAT as hzb_note ,
@ -197,8 +195,6 @@ update tmp_bew set einschreib_kz='J' where status_evs='J' @@ -197,8 +195,6 @@ update tmp_bew set einschreib_kz='J' where status_evs='J'
;
</#if>
update tmp_bew set zurueckgezogen_kz='J' where zurueckgezogen_am is not null;
update tmp_bew set storniert_kz='J' where storniert_am is not null;
--TODO:
update tmp_bew
@ -241,8 +237,6 @@ bew_kz, @@ -241,8 +237,6 @@ bew_kz,
zul_kz,
annahme_kz,
einschreib_kz,
zurueckgezogen_kz,
storniert_kz,
hzb_art,
hzb_datum,
hzb_note,
@ -272,8 +266,6 @@ bew_kz, @@ -272,8 +266,6 @@ bew_kz,
zul_kz,
annahme_kz,
einschreib_kz,
zurueckgezogen_kz,
storniert_kz,
hzb_art,
hzb_datum,
hzb_note,
@ -281,7 +273,7 @@ hzb_ort, @@ -281,7 +273,7 @@ hzb_ort,
hzb_staat,
count(*)
from tmp_bew
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,27,28,29,30,31,32,33;
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,27,28,29,30,31;
drop table tmp_bew;

17
src-modules/module/costage/hilfstabellen/costage_st_einzpruef_aggr_fuellen.sql

@ -16,7 +16,6 @@ L.st_studium_nr, @@ -16,7 +16,6 @@ L.st_studium_nr,
S.st_studstamm_nr,
L.matrikelnummer::integer as matrikelnummer,
null::integer as st_studiengang_nr,
null::integer as studiengang_tid,
null::integer as studiengang_nr,
null::integer as fach_nr,
null::integer as st_studienstatus_nr,
@ -86,7 +85,6 @@ L.st_studium_nr, @@ -86,7 +85,6 @@ L.st_studium_nr,
S.st_studstamm_nr,
L.matrikelnummer::integer as matrikelnummer,
null::integer as st_studiengang_nr,
null::integer as studiengang_tid,
null::integer as studiengang_nr,
null::integer as fach_nr,
null::integer as st_studienstatus_nr,
@ -170,21 +168,12 @@ from costage_st_studien S @@ -170,21 +168,12 @@ from costage_st_studien S
where S.st_studium_nr=tmp_pruef.st_studium_nr
and S.st_studstamm_nr=tmp_pruef.st_studstamm_nr
;
--unikey nachladen:
update tmp_pruef set unikey=K.unikey
from costage_st_studiengaenge G, costage_st_studienkennzahlen K
where G.st_studiengang_nr=tmp_pruef.st_studiengang_nr
and K.st_skz_nr=G.st_skz_nr
;
--Studiengangs-TID ermitteln:
update tmp_pruef set studiengang_tid=D.tid
from costage_dim_studiengang D
where D.st_studiengang_nr=tmp_pruef.st_studiengang_nr
and tmp_pruef.leistungsdetailtyp_kb!='TSAB';
--verknüpfen mit SPO Kontext:
select P.*,
G.context_type,
@ -209,7 +198,6 @@ insert into costage_st_einzpruef_aggr(st_studium_nr, @@ -209,7 +198,6 @@ insert into costage_st_einzpruef_aggr(st_studium_nr,
semester_veranst,
st_studiengang_nr,
st_studiengang_nr_msg,
studiengang_tid,
studiengang_nr,
fach_nr,
unikey,
@ -251,7 +239,6 @@ select @@ -251,7 +239,6 @@ select
semester_veranst,
st_studiengang_nr,
st_studiengang_nr_msg,
studiengang_tid,
studiengang_nr,
fach_nr,
unikey,
@ -269,7 +256,7 @@ select @@ -269,7 +256,7 @@ select
semesterstunden,
unterrichtseinheiten,
substring(thema_individuell from 1 for 255),
case when pv_notenskala_typ_kb in ${COSTAGE_NOTENSKALA_DE} or pv_notenskala_typ_kb is null then note_zahl else null::float end as note,
case when pv_notenskala_typ_kb in ('DE1','DE2','DE3','DE4','DE5','DE6','DE7') or pv_notenskala_typ_kb is null then note_zahl else null::float end as note,
credits,
leistungsdatum,
anerkannt_flag,
@ -286,7 +273,7 @@ spo_st_studium_nr, @@ -286,7 +273,7 @@ spo_st_studium_nr,
ghk_typ_kurzbezeichnung,
count(*)
from tmp_pruef2
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,27,28,29,30,31,32,33,34,35,36,37,38,39,40;
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,27,28,29,30,31,32,33,34,35,36,37,38,39;
drop table tmp_pruef;
drop table tmp_pruef2;

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

@ -204,7 +204,7 @@ where G.st_studiengang_nr=tmp_pruef.st_studiengang_nr_tsg; @@ -204,7 +204,7 @@ where G.st_studiengang_nr=tmp_pruef.st_studiengang_nr_tsg;
--bei TSG die Nr. des pers. Studiums zuweisen, in dem die Abschlussarbeit war:
update tmp_pruef set abschlussarbeit=1
from costage_leistungen L
where L.leistungsdetailtyp_kb in ('BAKARBN','MAGARBN')
where L.leistungsdetailtyp_kb='BAKARBN'
and tmp_pruef.st_studium_nr_tsg=L.abs_fach_st_studium_nr
and tmp_pruef.studiengangs_typ_kb='TSG'
and tmp_pruef.leistungsdetailtyp_kb='TSAB'
@ -339,7 +339,7 @@ update tmp_pruef set leistung_nr_msg=T.leistung_nr, @@ -339,7 +339,7 @@ update tmp_pruef set leistung_nr_msg=T.leistung_nr,
leistungsdatum_msg=T.leistungsdatum,
semester_msg=T.semester,
leistungsstatus_map_kb_msg=T.leistungsstatus_map_kb,
note_msg=(case when T.pv_notenskala_typ_kb in ${COSTAGE_NOTENSKALA_DE} or T.pv_notenskala_typ_kb is null then T.note_zahl else null::float end),
note_msg=(case when T.pv_notenskala_typ_kb in ('DE1','DE2','DE3','DE4','DE5','DE6','DE7') or T.pv_notenskala_typ_kb is null then T.note_zahl else null::float end),
studienidentifikator_esg_msg=T.studienidentifikator,
st_studium_nr=T.st_studium_nr,
po_stp_stp_version_kb=T.po_stp_stp_version_kb_esg_tsg_msg
@ -356,7 +356,7 @@ update tmp_pruef set leistung_nr_msg=T.leistung_nr, @@ -356,7 +356,7 @@ update tmp_pruef set leistung_nr_msg=T.leistung_nr,
leistungsdatum_msg=T.leistungsdatum,
semester_msg=T.semester,
leistungsstatus_map_kb_msg=T.leistungsstatus_map_kb,
note_msg=(case when T.pv_notenskala_typ_kb in ${COSTAGE_NOTENSKALA_DE} or T.pv_notenskala_typ_kb is null then T.note_zahl else null::float end),
note_msg=(case when T.pv_notenskala_typ_kb in ('DE1','DE2','DE3','DE4','DE5','DE6','DE7') or T.pv_notenskala_typ_kb is null then T.note_zahl else null::float end),
studienidentifikator_esg_msg=T.studienidentifikator,
st_studium_nr=T.st_studium_nr,
po_stp_stp_version_kb=T.po_stp_stp_version_kb_esg_tsg_msg
@ -482,12 +482,7 @@ where G.tid=T.studiengang_tid @@ -482,12 +482,7 @@ where G.tid=T.studiengang_tid
and T.st_studium_nr=tmp_pruef.st_studium_nr
and tmp_pruef.studiengangs_typ_kb='MSG'
;
--bei ESG ist es leichter:
update tmp_pruef T set skz_key_abschlussarbeit=G.skz_key
from costage_dim_studiengang G
where G.tid=T.studiengang_tid
and T.studiengangs_typ_kb='ESG'
;
delete from costage_st_pruef_aggr
where (semester >= ${beginn_semester}

26
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_denormalize.sql

@ -1,26 +0,0 @@ @@ -1,26 +0,0 @@
--HZB-Ort:
update costage_st_studien_aggr A set hzb_ort_astat=
val(R.statistik_code) from costage_land_subregionen R where R.land_sub_reg_nr = A.hzb_land_sub_r_nr;
--HZB-Staat:
update costage_st_studien_aggr A set hzb_staat_astat=
val(L.statistik_code) from costage_st_laender L
where L.st_land_nr=A.hzb_land_nr
;
--heimat_ort_astat
update costage_st_studien_aggr A set heimat_ort_astat= val(S.statistik_code)
from costage_st_land_regionen R, costage_land_subregionen S,costage_st_adressen AH
where AH.st_studstamm_nr=A.st_studstamm_nr
and AH.st_adresse_typ='H'
and AH.land_kfz_kennzeichen='D'
and AH.land_kfz_kennzeichen_subregion=S.land_kfz_kennzeichen_subregion
and R.st_land_reg_nr=S.st_land_reg_nr
and R.st_land_nr=56 --BRD
;
--heimat_staat_astat
update costage_st_studien_aggr A set heimat_staat_astat= val(L.statistik_code)
from costage_st_laender L, costage_st_adressen AH
where AH.st_studstamm_nr=A.st_studstamm_nr
and AH.st_adresse_typ='H'
and AH.st_land_nr=L.st_land_nr;

31
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen_mit_primerflag.sql

@ -378,29 +378,7 @@ where @@ -378,29 +378,7 @@ where
TSG.st_studstamm_nr is null
;
--Duplikate raus:
drop table if exists tmp_studien_msg_tsg_fehlend_doppelt;
select semester,st_studstamm_nr,st_studiengang_nr_tsg, null::integer as st_studiengang_nr_msg
into temp tmp_studien_msg_tsg_fehlend_doppelt
from tmp_studien_msg_tsg_fehlend
group by 1,2,3
having count(*)>1;
update tmp_studien_msg_tsg_fehlend_doppelt D set st_studiengang_nr_msg=T.st_studiengang_nr_msg
from tmp_studien_msg_tsg_fehlend T
where D.st_studstamm_nr=T.st_studstamm_nr
and D.semester=T.semester
and D.st_studiengang_nr_tsg=T.st_studiengang_nr_tsg;
delete from tmp_studien_msg_tsg_fehlend where (semester,st_studstamm_nr,st_studiengang_nr_tsg, st_studiengang_nr_msg)
not in (select semester,st_studstamm_nr,st_studiengang_nr_tsg, st_studiengang_nr_msg
from tmp_studien_msg_tsg_fehlend_doppelt)
and (semester,st_studstamm_nr,st_studiengang_nr_tsg) in
(select semester,st_studstamm_nr,st_studiengang_nr_tsg
from tmp_studien_msg_tsg_fehlend_doppelt);
drop table if exists tmp_studien_msg_tsg_fehlend_doppelt;
drop table if exists tmp_studien_msg_tsg_fehlend2;
@ -965,7 +943,7 @@ update tmp_studien3 set po_stp_stp_version_kb= SPO.po_stp_stp_version_kb, @@ -965,7 +943,7 @@ update tmp_studien3 set po_stp_stp_version_kb= SPO.po_stp_stp_version_kb,
po_regelstudienzeit=SPO.po_regelstudienzeit
from costage_st_studien_spoversionen SPO
where (
(studiengangs_typ_kb='MSG' and SPO.st_studium_nr=tmp_studien3.st_studium_nr_msg)
(studiengangs_typ_kb='TSG' and SPO.st_studium_nr=tmp_studien3.st_studium_nr_msg)
or
(studiengangs_typ_kb='ESG' and SPO.st_studium_nr=tmp_studien3.st_studium_nr)
)
@ -1027,8 +1005,8 @@ kz_rueck_beur_ein, @@ -1027,8 +1005,8 @@ kz_rueck_beur_ein,
abm_dat_s,
abm_dat_s_tsg,
T.po_stp_stp_version_kb,
T.po_regelstudienzeit,
null::varchar(255) as po_stp_stp_version_kb_tsg,
null::integer as po_regelstudienzeit,
null::integer as kz_rueck_beur_ein_tsg,
--null::date as spo_max_gueltig_ab_tsg,
max(SPO.gueltig_ab) as spo_max_gueltig_ab_tsg
@ -1036,13 +1014,12 @@ into temp tmp_studien4 @@ -1036,13 +1014,12 @@ into temp tmp_studien4
from tmp_studien3 T left outer join costage_st_studien_spoversionen SPO
on (SPO.st_studium_nr=T.st_studium_nr
and SPO.gueltig_ab < T.semester_ende)
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,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45 ,46, 47,48,49 ,50 ,51 ,52
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,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45 ,46, 47,48,49 ,50 ,51 --,52
;
select 164,timestamp_str(now()) from xdummy;
update tmp_studien4 set po_stp_stp_version_kb_tsg= SPO.po_stp_stp_version_kb,
po_regelstudienzeit=SPO.po_regelstudienzeit
update tmp_studien4 set po_stp_stp_version_kb_tsg= SPO.po_stp_stp_version_kb
from costage_st_studien_spoversionen SPO
where SPO.st_studium_nr=tmp_studien4.st_studium_nr
and tmp_studien4.spo_max_gueltig_ab_tsg =SPO.gueltig_ab

100
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen_ohne_primerflag.sql

@ -5,13 +5,7 @@ select param_val from unload_params @@ -5,13 +5,7 @@ select param_val from unload_params
where param_id='COSTAGE_start_st_sem';
]]>
</sqlvar>
</sqlvars>
<#if COSTAGE_STUDIENGANG_NR_PRIO?exists && COSTAGE_STUDIENGANG_NR_PRIO !="">
<#assign inlineTemplate=COSTAGE_STUDIENGANG_NR_PRIO?interpret />
<@inlineTemplate/>
</#if>
drop table if exists tmp_studien;
drop table if exists tmp_studien_esg_tsg;
@ -46,7 +40,7 @@ S.second_nationality, @@ -46,7 +40,7 @@ S.second_nationality,
SG.fachkennzeichen,
ST.studienform_statistik_code,
null::varchar(255) as studiengangs_identifikator_msg,
--null::integer as st_studiengang_nr_msg_primaerflag,
null::integer as st_studiengang_nr_msg_primaerflag,
null::char(10) as hrst,
null::integer as fachsemester,
null::integer as praxissemester,
@ -56,8 +50,7 @@ null::integer as klinsem, @@ -56,8 +50,7 @@ null::integer as klinsem,
(case when ST.hauptstudium_flag='J' then 1::smallint else 0::smallint end) as primaerflag_studien,
0::smallint as tsg_generated,
--0::smallint as primaerflag,
ST.sortierung as studiengang_nr,
null::integer as studiengang_nr_esg_msg,
null::integer as studiengang_nr,
null::integer as studienfach_sortierung,
null::char(10) as unikey,
null::date as anfdat,
@ -76,8 +69,6 @@ null::char(10) as abm_art_s, @@ -76,8 +69,6 @@ null::char(10) as abm_art_s,
null::char(10) as abm_art_s_tsg,
null::char(10) as stg_astat,
null::char(10) as abschluss_astat,
null::varchar(255) as abschluss_grp,
null::integer as stgnr_prio,
0::integer as studiengang_nr_aus_astat,
rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by SA.gueltig_ab desc,SA.studienstatustyp desc) as status_historie
--rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by (case when SA.gueltig_ab =SM.semester_ende then date_val('01.01.1900') else SA.gueltig_ab end) desc) as status_historie
@ -152,41 +143,18 @@ where F.st_studium_nr=T.st_studium_nr @@ -152,41 +143,18 @@ where F.st_studium_nr=T.st_studium_nr
and F.st_sem_nr=T.st_sem_nr
and F.fachsemestertyp='KS'
;
--abschluss_astat:
update tmp_studien T set abschluss_astat= F.statistik_code
FROM costage_st_abschlussziele_lokal L, costage_st_abschlussziele_amtstat F
where F.st_absz_amtstat_nr=L.st_absz_amtstat_nr
and L.st_absz_nr=T.st_absz_nr;
update tmp_studien T set abschluss_grp= A.abschluss_grp
FROM k_astat_abschl_grp A, k_astat_abschluss3steller_land L
where substring(L.schluessel from 2 for 2)=T.abschluss_astat
and substring(L.keybund from 2 for 2)=A.abschluss_astat_bund
and (T.semester >=L.gueltig_ab or L.gueltig_ab is null)
and (T.semester <=L.gueltig_bis or L.gueltig_bis is null)
and L.land=3 --TODO Niedersachsen
;
--Ranking Studiengang-Nr. vorbereiten:
<#if stgnr_prio?exists>
<#foreach prio in stgnr_prio>
update tmp_studien T set stgnr_prio=${prio.nr}
where ${prio.whereclause};
</#foreach>
</#if>
update tmp_studien T set stgnr_prio=1000 where stgnr_prio is null;
<#if K_CO_interpret_primaerflag==0>
select 7,'studiengang_nr',timestamp_str(now()) from xdummy;
select 7,'studiengang_nr aus beginn_datum_s',timestamp_str(now()) from xdummy;
select st_studstamm_nr,st_studium_nr,semester,dense_rank () over (partition by semester, st_studstamm_nr order by
(stgnr_prio,studiengang_nr,beginn_datum_s,st_studium_nr)
(beginn_datum_s)
) as studiengang_nr
into temp tmp_studiengang_nr
from tmp_studien T where T.studiengangs_typ_kb in ('ESG','MSG')
and T.status_historie=1;
update tmp_studien T set studiengang_nr_esg_msg=N.studiengang_nr
update tmp_studien T set studiengang_nr=N.studiengang_nr
from tmp_studiengang_nr N
where N.st_studstamm_nr=T.st_studstamm_nr
and N.st_studium_nr=T.st_studium_nr
@ -213,7 +181,7 @@ st_studienstatus_nr, @@ -213,7 +181,7 @@ st_studienstatus_nr,
beginn_datum_s,
gueltig_ab,
semester,
studiengang_nr_esg_msg,
studiengang_nr,
hrst,
null::char(10) as abm_art_s
into temp tmp_studien_msg
@ -250,7 +218,7 @@ from tmp_studien T @@ -250,7 +218,7 @@ from tmp_studien T
update tmp_studien_tsg T set st_studium_nr_msg=MSG.st_studium_nr ,
st_studiengang_nr_msg=MSG.st_studiengang_nr,
studiengang_nr_esg_msg=MSG.studiengang_nr_esg_msg,
studiengang_nr=MSG.studiengang_nr,
studienfach_sortierung=MTSG.studienfach_sortierung,
abm_art_s_msg=MSG.abm_art_s
from tmp_studien_msg MSG, costage_st_studiengaenge_mtsg MTSG
@ -340,29 +308,7 @@ where @@ -340,29 +308,7 @@ where
TSG.st_studstamm_nr is null
;
--Duplikate raus:
drop table if exists tmp_studien_msg_tsg_fehlend_doppelt;
select semester,st_studstamm_nr,st_studiengang_nr_tsg, null::integer as st_studiengang_nr_msg
into temp tmp_studien_msg_tsg_fehlend_doppelt
from tmp_studien_msg_tsg_fehlend
group by 1,2,3
having count(*)>1;
update tmp_studien_msg_tsg_fehlend_doppelt D set st_studiengang_nr_msg=T.st_studiengang_nr_msg
from tmp_studien_msg_tsg_fehlend T
where D.st_studstamm_nr=T.st_studstamm_nr
and D.semester=T.semester
and D.st_studiengang_nr_tsg=T.st_studiengang_nr_tsg;
delete from tmp_studien_msg_tsg_fehlend where (semester,st_studstamm_nr,st_studiengang_nr_tsg, st_studiengang_nr_msg)
not in (select semester,st_studstamm_nr,st_studiengang_nr_tsg, st_studiengang_nr_msg
from tmp_studien_msg_tsg_fehlend_doppelt)
and (semester,st_studstamm_nr,st_studiengang_nr_tsg) in
(select semester,st_studstamm_nr,st_studiengang_nr_tsg
from tmp_studien_msg_tsg_fehlend_doppelt);
drop table if exists tmp_studien_msg_tsg_fehlend_doppelt;
drop table if exists tmp_studien_msg_tsg_fehlend2;
@ -405,8 +351,7 @@ null::char(10) as statustyp_tsg, @@ -405,8 +351,7 @@ null::char(10) as statustyp_tsg,
T.hzb_land_nr,
null::char(10) as abm_art_s,
null::char(10) as abm_art_s_msg,
T.studiengang_nr,
T.studiengang_nr_esg_msg,
studiengang_nr,
studienfach_sortierung,
null::timestamp as beginn_datum_s,
null::timestamp as beginn_datum_s_tsg,
@ -423,7 +368,7 @@ from tmp_studien_msg_tsg_fehlend F, tmp_studien_tsg T @@ -423,7 +368,7 @@ from tmp_studien_msg_tsg_fehlend F, tmp_studien_tsg T
where F.st_studstamm_nr=T.st_studstamm_nr
and F.st_studiengang_nr_tsg=T.st_studiengang_nr
and T.semester=F.endsemester_tsg
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,23,24,25,26,27,28,29 ,30 ,31,32 ,33 ,34,35,36,37,38,39,40,41
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,23,24,25,26,27,28,29 ,30 ,31,32 ,33 ,34,35,36,37,38,39,40
;
update tmp_studien_msg_tsg_fehlend2 set
@ -485,7 +430,6 @@ fachsemester, @@ -485,7 +430,6 @@ fachsemester,
praxissemester,
klinsem,
studiengang_nr,
studiengang_nr_esg_msg,
studienfach_sortierung,
letztes_tsg_semester,
st_studium_nr_msg
@ -530,7 +474,6 @@ fachsemester, @@ -530,7 +474,6 @@ fachsemester,
praxissemester,
klinsem,
studiengang_nr,
studiengang_nr_esg_msg,
studienfach_sortierung,
letztes_tsg_semester,
st_studium_nr_msg
@ -619,7 +562,7 @@ klinsem, @@ -619,7 +562,7 @@ klinsem,
studienfach_sortierung,
letztes_tsg_semester,
'TSG'::char(10) as studiengangs_typ_kb,
studiengang_nr_esg_msg as studiengang_nr,
studiengang_nr,
null::char(10) as unikey,
null::integer as kz_rueck_beur_ein,
abm_dat_s,
@ -714,7 +657,7 @@ null::varchar(255) as studiengangs_identifikator_msg, @@ -714,7 +657,7 @@ null::varchar(255) as studiengangs_identifikator_msg,
st_studiengang_nr,
hrst,
hssem,
studiengang_nr_esg_msg,
studiengang_nr,
null::char(10) as statustyp_tsg,
0::integer as tsg_generated,
hzb_art_nr,
@ -732,9 +675,7 @@ null::integer as letztes_tsg_semester, @@ -732,9 +675,7 @@ null::integer as letztes_tsg_semester,
studiengangs_typ_kb,
abm_dat_s
from tmp_studien E
where E.studiengangs_typ_kb='ESG'
and status_historie=1
;
where E.studiengangs_typ_kb='ESG';
@ -1143,24 +1084,7 @@ and costage_st_studien_aggr.studiengangs_typ_kb='TSG'; @@ -1143,24 +1084,7 @@ and costage_st_studien_aggr.studiengangs_typ_kb='TSG';
select 300,timestamp_str(now()) from xdummy;
--Bei geschl. Teilstudiengängen kann die studiengang_nr vom Vorsemester im jew.
--Semester falsch sein, daher nochmal korrigieren:
select semester,st_studium_nr,studiengang_nr
into temp tmp_studiengang_nr_richtig
from costage_st_studien_aggr
where tsg_generated=0
and ${COSTAGE_STUDENT_FILTER}
;
update costage_st_studien_aggr S set studiengang_nr=R.studiengang_nr
from tmp_studiengang_nr_richtig R
where R.semester=S.semester
and R.st_studium_nr=S.st_studium_nr
and S.tsg_generated=1
and ${COSTAGE_STUDENT_FILTER}
;
drop table tmp_studiengang_nr_richtig;
drop table tmp_studien4;
</#if> -- K_CO_interpret_primaerflag!=1

23
src-modules/module/costage/masken/43220_felderinfo.unl

@ -1,23 +0,0 @@ @@ -1,23 +0,0 @@
43220^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester order by 1 DESC;^ ^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester where today()-365 between date(semester_anfang) and date(semester_ende);^
43221^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester order by 1 DESC;^ ^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester where today() between date(semester_anfang) and date(semester_ende);^
43222^Abschluss^40^330^-1^140^200^5^char^30^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^^^
43223^Fach^6^0^0^140^150^50^char^30^0^1^<<SQL>>\
SELECT \
skz_key,\
skz_name\
FROM costage_st_studienkennzahlen\
/* where unikey=<<Hochschule>> */\
order by 2\
;^^^
43224^Elementnummer^60^0^0^140^150^1^sql^20^0^0^^^^
43226^Hochschulzugangsber.^90^300^-1^150^200^1^sql^30^0^1^<<SQL>>select apnr, eintrag from hs_zugangsber order by 2^hidden^^
43227^ab Fachsemester^100^0^0^140^50^1^integer^30^0^0^^^^
43228^bis Fachsemester^110^0^0^140^50^1^integer^30^0^0^^^^
43229^Matrikel-Nr.^30^350^-1^150^180^1^integer^200^0^0^^ ^^
43230^Prüfungsversuch^70^300^-1^140^100^1^integer^30^0^1^<<SQL>> select 1,'1' from xdummy union \
select 2,'2' from xdummy union\
select 3,'3' from xdummy \
order by 1;^^^
43231^Leistungsdetailtyp^20^350^-1^140^100^10^char^30^0^1^<<SQL>> select leistungsdetailtyp_kb,name_de from costage_leistungen_detail_typen\
where leistungsdetailtyp_kb in (select distinct leistungsdetailtyp_kb from costage_st_pruef_aggr);^hidden^ ^
43234^Studiengang^9^0^0^130^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('COSTAGE-Studiengang-Sicht') order by 3,2;^^^

1
src-modules/module/costage/masken/43220_maske_system_bez.unl

@ -1 +0,0 @@ @@ -1 +0,0 @@
43220^310^

12
src-modules/module/costage/masken/43220_masken_felder_bez.unl

@ -1,12 +0,0 @@ @@ -1,12 +0,0 @@
43220^43220^
43220^43221^
43220^43222^
43220^43223^
43220^43224^
43220^43226^
43220^43227^
43220^43228^
43220^43229^
43220^43230^
43220^43231^
43220^43234^

390
src-modules/module/costage/masken/43220_maskeninfo.unl

@ -1,390 +0,0 @@ @@ -1,390 +0,0 @@
43220^Studienerfolg und Veranstaltungen (CO)^--Wenn Freemarker eingesetzt wird, muss der folgende Kommentar (case insensitive) irgendwo in der Abfrage stehen\
--Freemarker Template\
<#include "SQL_lingua_franca"/>\
<#include "SuperX_general"/>\
<#setting locale="en_US">\
\
<sqlvars>\
<sqlvar name="semesterliste">\
SELECT semester_tid,semester_bezeichnung\
from costage_st_semester\
where 1=1\
/* and semester_tid &gt;= <<Seit Semester>> */\
/* and semester_tid &lt;= <<Bis Semester>> */\
order by semester_tid;\
</sqlvar>\
<sqlvar name="extra_spalten" type="hash">\
select tid,content,caption,comment from sx_repository where art='COSTAGE_PSTATUS_GROUP' and aktiv=1 and today() between gueltig_seit and gueltig_bis order by sort1;\
</sqlvar>\
</sqlvars>\
<#assign noten = [10, 13, 17, 20, 23, 27, 30, 33, 37, 40, 50]>\
\
create temp table tmp_tabelle2(\
ebene integer,\
dtxt varchar(255),\
stg_str varchar(255),\
abschl_str varchar(255),\
studiengang_text varchar(255),\
pordnr integer,\
pordnr_str varchar(255),\
pdtxt varchar(255),\
<#foreach semester in semesterliste>\
anzahl_${semester.key} integer,\
<#foreach spalte in extra_spalten>\
s_${spalte.tid}_${semester.key} integer,\
</#foreach>\
<#list noten as note>\
note${note}_${semester.key} integer,\
</#list>\
note_summe_${semester.key} decimal(16,4),\
summe_mit_note_${semester.key} decimal(16,4),\
</#foreach>\
ord integer\
);\
\
\
<@selectintotmp \
select="L.studiengang_tid as tid_stg,\
S.skz_key,\
S.abschluss_code,\
null::varchar(255) as stg_str,\
null::varchar(255) as abschl_str,\
S.studiengangs_bezeichnung as studiengang_text,\
L.semester,\
L.veranstaltung_titel as pdtxt,\
L.stp_sp_nr as pordnr,\
L.leistungsstatus_map_kb as pstatus,\
L.note,\
count(*) as summe"\
source="costage_st_einzpruef_aggr L, costage_dim_studiengang S"\
target="tmp_tabelle"> \
where S.tid=L.studiengang_tid\
and L.leistungsdetailtyp_kb='M'\
/* and L.semester >= <<Seit Semester>> */\
/* and L.semester <= <<Bis Semester>> */\
/* AND L.fachsemester >= <<ab Fachsemester>> */\
/* AND L.fachsemester <= <<bis Fachsemester>> */\
/* and <<Hochschulzugangsber.>> */\
/* and L.matrikelnummer = <<Matrikel-Nr.>> */\
/* and S.skz_key in (<<Fach>>) */\
/* and S.abschluss_code in (<<Abschluss>>) */\
/* and L.veranstaltung_nummer like '%<<Elementnummer>>%' */\
/* and pversuch = <<Prüfungsversuch>> */\
/* and pordnr::char(100) in (<<Modul(e)>>) */\
/* and 's_' ||S.st_studiengang_nr in <@printkeys Studiengang.allNeededKeysList/> --<<Studiengang>> */ \
group by 1,2,3,4,5,6,7,8,9,10,11\
</@selectintotmp>\
<@informixnolog/>;\
\
\
\
update tmp_tabelle set stg_str=(select min(skz_name) from costage_st_studienkennzahlen D where D.skz_key=tmp_tabelle.skz_key);\
update tmp_tabelle set abschl_str=(select min(name) from costage_st_abschlussziele_lokal D where D.code=tmp_tabelle.abschluss_code);\
\
\
<#foreach semester in semesterliste>\
insert into tmp_tabelle2(ebene,dtxt,pdtxt,anzahl_${semester.key})\
select 1,pdtxt,pdtxt,sum(summe)\
from tmp_tabelle\
where semester=${semester.key}\
group by 1,2,3;\
\
<#foreach spalte in extra_spalten>\
insert into tmp_tabelle2(ebene,dtxt,pdtxt,s_${spalte.tid}_${semester.key})\
select 1,pdtxt,pdtxt,sum(summe)\
from tmp_tabelle\
where ${spalte.content}\
and semester=${semester.key}\
group by 1,2,3;\
</#foreach>\
\
<#list noten as note>\
\
insert into tmp_tabelle2(ebene,dtxt,pdtxt,note${note}_${semester.key})\
select 1,pdtxt,pdtxt,sum(summe)\
\
from tmp_tabelle\
where \
<#if note &lt;= 10>\
note < ${noten[note_index + 1] / 10}\
<#elseif note &gt;= 50>\
note >= ${note / 10}\
<#else>\
note >= ${note / 10} and note < ${noten[note_index + 1] / 10}\
</#if>\
and semester=${semester.key}\
group by 1,2,3;\
\
</#list>\
--note_summe für avg:\
insert into tmp_tabelle2(ebene,dtxt,pdtxt,note_summe_${semester.key},\
summe_mit_note_${semester.key})\
select 1,pdtxt,pdtxt,sum(summe),sum( note*summe ) as note_summe\
\
from tmp_tabelle\
where note is not null\
and semester=${semester.key}\
group by 1,2,3;\
\
</#foreach>\
\
\
\
<#foreach semester in semesterliste>\
insert into tmp_tabelle2(ebene,dtxt,abschl_str,pdtxt,anzahl_${semester.key})\
select 2,abschl_str,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where semester=${semester.key}\
group by 1,2,3,4;\
\
<#foreach spalte in extra_spalten>\
insert into tmp_tabelle2(ebene,dtxt,abschl_str,pdtxt,s_${spalte.tid}_${semester.key})\
select 2,abschl_str,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where ${spalte.content}\
and semester=${semester.key}\
group by 1,2,3,4;\
</#foreach>\
\
<#list noten as note>\
\
insert into tmp_tabelle2(ebene,dtxt,abschl_str,pdtxt,note${note}_${semester.key})\
select 2,abschl_str,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where \
<#if note &lt;= 10>\
note < ${noten[note_index + 1] / 10}\
<#elseif note &gt;= 50>\
note >= ${note / 10}\
<#else>\
note >= ${note / 10} and note < ${noten[note_index + 1] / 10}\
</#if>\
and semester=${semester.key}\
group by 1,2,3,4;\
\
</#list>\
--note_summe für avg:\
insert into tmp_tabelle2(ebene,dtxt,abschl_str,pdtxt,note_summe_${semester.key},\
summe_mit_note_${semester.key})\
select 2,abschl_str,abschl_str,pdtxt,sum(summe),sum( note*summe ) as note_summe\
\
from tmp_tabelle\
where note is not null\
and semester=${semester.key}\
group by 1,2,3,4;\
\
</#foreach>\
\
\
<#foreach semester in semesterliste>\
insert into tmp_tabelle2(ebene,dtxt,stg_str,abschl_str,pdtxt,anzahl_${semester.key})\
select 3,stg_str,stg_str,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where semester=${semester.key}\
group by 1,2,3,4,5;\
\
<#foreach spalte in extra_spalten>\
insert into tmp_tabelle2(ebene,dtxt,stg_str,abschl_str,pdtxt,s_${spalte.tid}_${semester.key})\
select 3,stg_str,stg_str,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where ${spalte.content}\
and semester=${semester.key}\
group by 1,2,3,4,5;\
</#foreach>\
\
<#list noten as note>\
\
insert into tmp_tabelle2(ebene,dtxt,stg_str,abschl_str,pdtxt,note${note}_${semester.key})\
select 3,stg_str,stg_str,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where \
<#if note &lt;= 10>\
note < ${noten[note_index + 1] / 10}\
<#elseif note &gt;= 50>\
note >= ${note / 10}\
<#else>\
note >= ${note / 10} and note < ${noten[note_index + 1] / 10}\
</#if>\
and semester=${semester.key}\
group by 1,2,3,4,5;\
\
</#list>\
--note_summe für avg:\
insert into tmp_tabelle2(ebene,dtxt,stg_str,abschl_str,pdtxt,note_summe_${semester.key},\
summe_mit_note_${semester.key})\
select 3,stg_str,stg_str,abschl_str,pdtxt,sum(summe),sum( note*summe ) as note_summe\
\
from tmp_tabelle\
where note is not null\
and semester=${semester.key}\
group by 1,2,3,4,5;\
</#foreach>\
\
--Ebene 4 erstmal raus, weil keine PO:\
<#if 1==0>\
<#foreach semester in semesterliste>\
insert into tmp_tabelle2(ebene,dtxt,stg_str,studiengang_text,abschl_str,pdtxt,anzahl_${semester.key})\
select 4,studiengang_text,stg_str,studiengang_text,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where semester=${semester.key}\
group by 1,2,3,4,5,6;\
\
<#foreach spalte in extra_spalten>\
insert into tmp_tabelle2(ebene,dtxt,stg_str,studiengang_text,abschl_str,pdtxt,s_${spalte.tid}_${semester.key})\
select 4,studiengang_text,stg_str,studiengang_text,abschl_str,pdtxt,sum(summe)\
from tmp_tabelle\
where ${spalte.content}\
and semester=${semester.key}\
group by 1,2,3,4,5,6;\
</#foreach>\
\
<#list noten as note>\
\
insert into tmp_tabelle2(ebene,dtxt,stg_str,studiengang_text,abschl_str,pdtxt,note${note}_${semester.key},note_summe_${semester.key})\
select 4,studiengang_text,stg_str,studiengang_text,abschl_str,pdtxt,sum(summe),sum(note*summe)\
from tmp_tabelle\
where \
<#if note &lt;= 10>\
note < ${noten[note_index + 1] / 10}\
<#elseif note &gt;= 50>\
note >= ${note / 10}\
<#else>\
note >= ${note / 10} and note < ${noten[note_index + 1] / 10}\
</#if>\
and semester=${semester.key}\
group by 1,2,3,4,5,6;\
\
</#list>\
--note_summe für avg:\
insert into tmp_tabelle2(ebene,dtxt,stg_str,studiengang_text,abschl_str,pdtxt,note_summe_${semester.key},\
summe_mit_note_${semester.key})\
select 4,studiengang_text,stg_str,studiengang_text,abschl_str,pdtxt,sum(summe),sum( note*summe ) as note_summe\
\
from tmp_tabelle\
where note is not null\
and semester=${semester.key}\
group by 1,2,3,4,5,6;\
\
</#foreach>\
</#if>\
\
\
<#assign select_sql="ebene,dtxt,stg_str,abschl_str,studiengang_text,pdtxt" />\
<#foreach semester in semesterliste>\
<#assign select_sql=select_sql + ",sum(anzahl_" + semester.key+") as anzahl_" + semester.key />\
<#foreach spalte in extra_spalten>\
<#assign select_sql=select_sql + ",sum(s_" + spalte.tid + "_" + semester.key+") as s_" + spalte.tid + "_" + semester.key />\
</#foreach>\
\
<#list noten as note>\
<#assign select_sql=select_sql + ",sum(note" + note +"_" + semester.key + ") as note" + note + "_" + semester.key />\
</#list>\
<#assign select_sql=select_sql + ",sum(note_summe_" + semester.key + ") as note_summe_" + semester.key />\
<#assign select_sql=select_sql + ",sum(summe_mit_note_" + semester.key + ") as summe_mit_note_" + semester.key />\
</#foreach>\
\
\
<@selectintotmp \
select=select_sql \
source="tmp_tabelle2" \
target="tmp_tabelle3"> \
group by 1,2,3,4,5,6\
</@selectintotmp> \
<@informixnolog/>\
;\
\
update tmp_tabelle3 set pdtxt='' where pdtxt is null;\
update tmp_tabelle3 set abschl_str='' where abschl_str is null;\
update tmp_tabelle3 set stg_str='' where stg_str is null;\
update tmp_tabelle3 set studiengang_text='' where studiengang_text is null;\
\
<@selectintotmp \
select="*" \
source="tmp_tabelle3" \
target="tmp_tabelle4"> \
order by pdtxt ,abschl_str ,stg_str ,studiengang_text ,ebene\
</@selectintotmp> \
<@informixnolog/>\
;\
\
drop table tmp_tabelle;\
drop table tmp_tabelle2;\
drop table tmp_tabelle3;\
\
select ebene,dtxt\
<#foreach semester in semesterliste>\
,anzahl_${semester.key}\
<#foreach spalte in extra_spalten>\
,s_${spalte.tid}_${semester.key}\
,(s_${spalte.tid}_${semester.key}::decimal/anzahl_${semester.key}::decimal*100)::integer as s_${spalte.tid}_${semester.key}_prozent\
,'prozent'::char(7) as hiddens_${spalte.tid}_${semester.key}_prozentcss\
</#foreach>\
<#list noten as note>\
,note${note}_${semester.key}\
</#list>\
,summe_mit_note_${semester.key} / note_summe_${semester.key}\
</#foreach>\
\
from tmp_tabelle4;^--Freemarker Template\
<sqlvars>\
<sqlvar name="semesterliste">\
SELECT tid,eintrag\
from semester\
where 1=1\
/* and tid &gt;= <<Seit Semester>> */\
/* and tid &lt;= <<Bis Semester>> */\
order by tid;\
</sqlvar>\
<sqlvar name="extra_spalten" type="hash">\
select tid,content,caption,comment from sx_repository where art='SOS_PSTATUS_GROUP' and aktiv=1 and today() between gueltig_seit and gueltig_bis order by sort1;\
</sqlvar>\
</sqlvars>\
<#assign noten = [10, 13, 17, 20, 23, 27, 30, 33, 37, 40, 50]>\
\
XIL List\
sizable_columns horizontal_scrolling\
drop_and_delete movable_columns \
white_space_color=COLOR_WHITE fixed_columns=2\
min_heading_height=55\
Column CID=1 heading_text="Ebene" center_heading\
row_selectable heading_platform readonly\
width=40 text_size=60 explanation=""\
Column CID=1 heading_text="Veranstaltung / Abschluss / Fach " center_heading\
row_selectable heading_platform readonly\
width=40 text_size=60 explanation=""\
\
<#foreach semester in semesterliste>\
Column CID=6 heading_text="${semester.name}\\000\\nAnzahl" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="Gesamtsumme der bewerteten Module (egal ob mit oder ohne Note bzw. ob bestanden oder nicht) im ${semester.name}"\
<#foreach spalte in extra_spalten>\
Column CID=6 heading_text="${semester.name}\\000\\n${spalte.caption}" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="${spalte.comment} aus ${semester.name}"\
Column CID=6 heading_text="${semester.name}\\000\\n${spalte.caption} in %" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="${spalte.comment} aus ${semester.name}"\
Column CID=1 heading_text="hidden${semester.name}prozent" explanation="Bezugssemester ${semester.name} (in % von allen Prüfungen)" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=1 \
</#foreach>\
<#list noten as note> \
<#if note &lt;= 10>\
Column CID=6 heading_text="${semester.name}\\000\\nNote\\000\\n${note / 10}" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="Anzahl der Noten die echt kleiner ${noten[note_index + 1] / 10} sind."\
<#elseif note &gt;= 50>\
Column CID=6 heading_text="${semester.name}\\000\\nNote\\000\\nUnbek." center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="Anzahl der Noten die größer oder gleich ${note / 10} sind. Definiert als andere Note oder Note unbekannt."\
<#else>\
Column CID=6 heading_text="${semester.name}\\000\\nNote\\000\\n${note / 10}" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="Anzahl der Noten die größer oder gleich ${note / 10} und echt kleiner ${noten[note_index + 1] / 10} sind."\
</#if> \
</#list>\
Column CID=6 heading_text="${semester.name}\\000\\nNote\\000\\nØ" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=10 explanation="Arithmetisches Mittel der Noten"\
</#foreach>\
@@@^Semester^Modul / Abschluss / Fach / Studiengang^Modulprüfungsergebnisse^drop table tmp_tabelle4;^studallg.dat^2^850^600^0^1^<<SQL>> select erlaeuterung from koepfe_oder_faelle where apnr = '<<Köpfe oder Fälle ?>>';^

1
src-modules/module/costage/masken/43220_sachgeb_maske_bez.unl

@ -1 +0,0 @@ @@ -1 +0,0 @@
310^43220^

4
src-modules/module/costage/rohdaten/COSTAGE_ENV.sam

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#Entladeumgebung für SuperX
#Die folgenden Parameter müssen angepasst werden
VERSION=243
VERSION=233
export VERSION
# SX_CLIENT ist die Client-Anwendung zum Zugriff auf die DB
@ -27,8 +27,6 @@ COSTAGE_start_lv_sem=20001 @@ -27,8 +27,6 @@ COSTAGE_start_lv_sem=20001
export COSTAGE_start_lv_sem
COSTAGE_start_hssem=20001
export COSTAGE_start_hssem
COSTAGE_unload_einzpruef=false
export COSTAGE_unload_einzpruef
##Pfad für Entladedaten:
#COSTAGE_LOAD_PFAD=.

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

@ -1,17 +1,15 @@ @@ -1,17 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<superx-unload version="4.0">
<module id="costage" version="0.8b" systeminfo_id="310">COSTAGE-Modul</module>
<module id="costage" version="0.7b" systeminfo_id="310">COSTAGE-Modul</module>
<parameters>
<param name="VERSION" defaultValue="243" description="Datenbank-Version"><comment>CO-Version, wird derzeit ignoriert</comment></param>
<param name="VERSION" defaultValue="2" description="Datenbank-Version"><comment>CO-Version, wird derzeit ignoriert</comment></param>
<param name="COSTAGE_start_st_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="COSTAGE_start_bw_sem" defaultValue="19911" description="Startsemester Bewerbungen"><comment>Ab welchem Semester sollen Bewerbungen entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="COSTAGE_start_leistungen_sem" defaultValue="19911" description="Startsemester Prüfungen"><comment>Ab welchem Semester sollen Leistungen entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="COSTAGE_start_lv_sem" defaultValue="19911" description="Startsemester Lehrveranstaltungen"><comment>Ab welchem Semester sollen Lehrveranstaltungen entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="COSTAGE_start_hssem" defaultValue="19911" description="Startsemester Hochschulsemester"><comment>Ab welchem Semester sollen Hochschulsemester entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="COSTAGE_unload_einzpruef" defaultValue="false" description="Einzelprüfungen" priority="1" sourcesystem="15" wertebereich="ja: true, nein: false" ab_version=">0.8" gruppe="Datenschutzparameter" >
<comment>Wenn COSTAGE_unload_einzpruef = true,dann Einzelprüfungen entladen.</comment></param>
</parameters>
</parameters>
<sourcesystems>
<sourcesystem name="co" description="CampusOnline-Datenbank" default="true"/>
@ -78,8 +76,7 @@ SELECT st_fakultaeten_nr, @@ -78,8 +76,7 @@ SELECT st_fakultaeten_nr,
fakultaet_name,
fakultaet_alt,
fakultaet_last,
st_land_reg_nr,
fakultaet_name_en
st_land_reg_nr
FROM px_st_fakultaeten_v
;
@ -108,30 +105,12 @@ and extract(year from S.semester_anfang) > 2000 @@ -108,30 +105,12 @@ and extract(year from S.semester_anfang) > 2000
<unload-job id="px_st_hoererstatus_v" target-table="costage_st_hoererstatus" extraction-script="" transfer-unload-file="unl/costage_st_hoererstatus.unl" >
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="242">
<![CDATA[
SELECT H.st_studstamm_nr,
H.st_sem_nr,
H.hoererstatus_name,
H.hoererstatus_kb,
null as statistik_code
FROM px_st_hoererstatus_v H,px_st_semester_v S
where S.st_sem_nr=H.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
and H.hoererstatus_kb !='E' --status "nicht immatrikuliert" interessiert nicht
;
]]>
</extraction-sql>
<extraction-sql sourcesystem="co" database="" version="243">
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT H.st_studstamm_nr,
H.st_sem_nr,
H.hoererstatus_name,
H.hoererstatus_kb,
H.statistik_code
H.hoererstatus_kb
FROM px_st_hoererstatus_v H,px_st_semester_v S
where S.st_sem_nr=H.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
@ -223,29 +202,14 @@ and extract(year from S.semester_anfang) > 2000 @@ -223,29 +202,14 @@ and extract(year from S.semester_anfang) > 2000
<unload-job id="px_st_studien_v" target-table="costage_st_studien" extraction-script="" transfer-unload-file="unl/costage_st_studien.unl" >
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="242">
<![CDATA[
SELECT st_studium_nr,
st_studstamm_nr,
st_studiengang_nr,
studienform_name,
studienform_statistik_code,
hauptstudium_flag,
null
FROM px_st_studien_v
]]>
</extraction-sql>
<extraction-sql sourcesystem="co" database="" version="243">
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studium_nr,
st_studstamm_nr,
st_studiengang_nr,
studienform_name,
studienform_statistik_code,
hauptstudium_flag,
sortierung
hauptstudium_flag
FROM px_st_studien_v
@ -303,28 +267,7 @@ FROM px_st_studienfaecher_v @@ -303,28 +267,7 @@ FROM px_st_studienfaecher_v
<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>
<extraction-sql sourcesystem="co" database="" version="242">
<![CDATA[
SELECT st_studiengang_nr,
studiengangs_identifikator,
studiengangs_bezeichnung,
st_absz_nr,
st_skz_nr,
fachkennzeichen,
st_std_art_nr,
studiengangs_typ_name,
studiengangs_typ_kb,
studientyp_name,
studientyp_kb,
stp_stp_nr,
null,
null
FROM px_st_studiengaenge_v
;
]]>
</extraction-sql>
<extraction-sql sourcesystem="co" database="" version="243">
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studiengang_nr,
studiengangs_identifikator,
@ -337,9 +280,7 @@ SELECT st_studiengang_nr, @@ -337,9 +280,7 @@ SELECT st_studiengang_nr,
studiengangs_typ_kb,
studientyp_name,
studientyp_kb,
stp_stp_nr,
st_orgform_nr,
codex_ag_nr
stp_stp_nr
FROM px_st_studiengaenge_v
;
@ -469,7 +410,7 @@ and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTA @@ -469,7 +410,7 @@ and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTA
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
and B.abgeschickt_datum is not null --TUG: abgeschickt_datum = Null sind zu filtern. Diese wurden dann nie an die Hochschule übermittelt.
--and B.zurueckgezogen_am is null
and B.zurueckgezogen_am is null
;
]]>
@ -733,8 +674,8 @@ SELECT leistung_nr, @@ -733,8 +674,8 @@ SELECT leistung_nr,
leistungstyp_nr,
leistungsdetailtyp_kb,
matrikelnummer,
'' as vorname,
'' as nachname,
vorname,
nachname,
st_studium_nr,
studienidentifikator,
spov_abschluss,
@ -810,7 +751,7 @@ SELECT leistung_nr, @@ -810,7 +751,7 @@ SELECT leistung_nr,
pruefungsantritt_lv_prv,
pruefungsantritt_index_lv_prv
FROM px_antritte_v
where '$COSTAGE_unload_einzpruef'='true';
where 1=0
;
]]>
@ -942,7 +883,7 @@ SELECT st_studien_nr, @@ -942,7 +883,7 @@ SELECT st_studien_nr,
text,
datum
FROM px_ergebnisse_v
where '$COSTAGE_unload_einzpruef'='true';
where 1=0
;
]]>
@ -959,38 +900,9 @@ SELECT st_studium_nr, @@ -959,38 +900,9 @@ SELECT st_studium_nr,
stp_knoten_nr_sichtbar,
ghk_nr
FROM px_studienplankontexte_v
where '$COSTAGE_unload_einzpruef'='true';
where 1=0
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="px_knoten_v" target-table="costage_knoten" extraction-script="" transfer-unload-file="unl/costage_knoten.unl" >
<comment>knoten</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT
nr,
stp_knoten_nr,
stp_stp_nr,
name_de,
name_en,
kennung,
credits,
haupttyp_kurzbezeichnung,
subtyp_kurzbezeichnung,
haupttyp_name,
subtyp_name,
gueltig_von,
gueltig_bis,
teil_des_curriculums,
semesterempfehlung_de,
semesterempfehlung_en,
semesterempfehlung_de_kurz,
semesterempfehlung_en_kurz
from PX_KNOTEN_V
where '$COSTAGE_unload_einzpruef'='true';
]]>
</extraction-sql>
</unload-job>
@ -1010,75 +922,4 @@ FROM @@ -1010,75 +922,4 @@ FROM
]]>
</extraction-sql>
</unload-job>
<unload-job id="px_st_orgformen_v" target-table="costage_st_orgformen" extraction-script="" transfer-unload-file="unl/costage_st_orgformen.unl" >
<comment>Organisationsformen</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_orgform_nr,
kurzbezeichnung,
name,
statistik_code
FROM px_st_orgformen_v
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="px_st_toleranzsemester_typen_v" target-table="costage_st_toleranzsemester_typen" extraction-script="" transfer-unload-file="unl/costage_st_toleranzsemester_typen.unl" >
<comment>Studien-Toleranzsemester Typen</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_tzsem_typ_nr,
kurzbezeichnung,
name
FROM px_st_toleranzsemester_typen_v
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="px_st_studien_toleranzsem_v" target-table="costage_st_studien_toleranzsem" extraction-script="" transfer-unload-file="unl/costage_st_studien_toleranzsem.unl" >
<comment>Studien-Toleranzsemester</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studium_nr,
st_tzsem_typ_nr,
st_sem_nr,
anzahl
FROM px_st_studien_toleranzsem_v
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="px_st_studien_orgform_v" target-table="costage_st_studien_orgform" extraction-script="" transfer-unload-file="unl/costage_st_studien_orgform.unl" >
<comment>Organisationsformen zu Studien</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studium_nr,
st_sem_nr_von,
st_orgform_nr
FROM px_st_studien_orgform_v
]]>
</extraction-sql>
</unload-job>
<unload-job id="px_codex_akadgrade_v" target-table="costage_codex_akadgrade" extraction-script="" transfer-unload-file="unl/costage_codex_akadgrade.unl" >
<comment>Akad. Grade</comment>
<extraction-sql sourcesystem="co" database="" version="243">
<![CDATA[
SELECT codex_ag_nr,
kurzbezeichnung,
bezeichnung
FROM px_codex_akadgrade_v
]]>
</extraction-sql>
</unload-job>
</superx-unload>

377
src-modules/module/costage/rohdaten_lm/lm_costage_unload.x

@ -1,377 +0,0 @@ @@ -1,377 +0,0 @@
#!/bin/bash
#Extraction Script for SuperX.
#Bitte nicht ändern, diese Datei ist automatisch generiert.
SRC_PFAD=$SOS_LOAD_PFAD
. $SUPERX_DIR/db/bin/SQL_ENV
if [ "$SRC_PFAD" = "" ]
then
SRC_PFAD=.
fi
SX_CLIENT=jdbc
export SX_CLIENT
SOURCESYSTEM=co
export SOURCESYSTEM
if [ "$outFormat" = "" ]
then
outFormat=txt
fi
DATUM=`cat $SRC_PFAD/superx.datum`
ERR=sos_unload.err
cp $SRC_PFAD/superx.datum $SRC_PFAD/superx.datum.alt
##Löschen der alten Dateien
rm $SRC_PFAD/unl/*unl >/dev/null 2>&1
date +'%d.%m.%Y' > $SRC_PFAD/superx.datum ##neues Entladedatum
HEUTE=`date +'%d.%m.%Y'`
cd $SRC_PFAD >>$ERR 2>&1
echo "Letztes Update-Datum: " $DATUM >$ERR
echo "DATABASE: $DATABASE" >>$ERR
echo "VERSION: $VERSION" >>$ERR
echo "SX_CLIENT: $SX_CLIENT" >>$ERR
echo "1.2b^"$HEUTE"^" >$SRC_PFAD/unl/superx_unload_version.unl
CP=".:$JDBC_CLASSPATH:$XML_CLASSPATH"
cat /dev/null >unload_params.txt
if [ "$SOS_UNL_COMPLETE" = "" ]
then
SOS_UNL_COMPLETE="true"
export SOS_UNL_COMPLETE
fi
echo "Parameter SOS_UNL_COMPLETE: $SOS_UNL_COMPLETE" >>$ERR
echo "\$SOS_UNL_COMPLETE=$SOS_UNL_COMPLETE" >>unload_params.txt
if [ "$VERSION" = "" ]
then
VERSION="13"
export VERSION
fi
echo "Parameter VERSION: $VERSION" >>$ERR
echo "\$VERSION=$VERSION" >>unload_params.txt
if [ "$start_stud_sem" = "" ]
then
start_stud_sem="19911"
export start_stud_sem
fi
echo "Parameter start_stud_sem: $start_stud_sem" >>$ERR
echo "\$start_stud_sem=$start_stud_sem" >>unload_params.txt
if [ "$start_pruef_sem" = "" ]
then
start_pruef_sem="19911"
export start_pruef_sem
fi
echo "Parameter start_pruef_sem: $start_pruef_sem" >>$ERR
echo "\$start_pruef_sem=$start_pruef_sem" >>unload_params.txt
if [ "$SOS_UNL_ANON" = "" ]
then
SOS_UNL_ANON="false"
export SOS_UNL_ANON
fi
echo "Parameter SOS_UNL_ANON: $SOS_UNL_ANON" >>$ERR
echo "\$SOS_UNL_ANON=$SOS_UNL_ANON" >>unload_params.txt
if [ "$EXTERNAL_SUBJECTS" = "" ]
then
EXTERNAL_SUBJECTS="false"
export EXTERNAL_SUBJECTS
fi
echo "Parameter POS_PNR: $EXTERNAL_SUBJECTS" >>$ERR
echo "\$EXTERNAL_SUBJECTS=$EXTERNAL_SUBJECTS" >>unload_params.txt
if [ "$LAB_FILTER" = "" ]
then
LAB_FILTER=" AND (lab.panerk is null or lab.panerk != 'J') "
export LAB_FILTER
fi
echo "Parameter LAB_FILTER: $LAB_FILTER" >>$ERR
echo "\$LAB_FILTER=$LAB_FILTER" >>unload_params.txt
if [ "$STUDENT_FILTER" = "" ]
then
STUDENT_FILTER=" AND 1=1 "
export STUDENT_FILTER
fi
echo "Parameter STUDENT_FILTER: $STUDENT_FILTER" >>$ERR
echo "\$STUDENT_FILTER=$STUDENT_FILTER" >>unload_params.txt
if [ "$STUDENT_SOSPOS_FILTER" = "" ]
then
STUDENT_SOSPOS_FILTER=" AND 1=1 "
export STUDENT_SOSPOS_FILTER
fi
echo "Parameter STUDENT_SOSPOS_FILTER: $STUDENT_SOSPOS_FILTER" >>$ERR
echo "\$STUDENT_SOSPOS_FILTER=$STUDENT_SOSPOS_FILTER" >>unload_params.txt
if [ "$DATUM" = "" ]
then
DATUM="01.01.1900"
export DATUM
fi
echo "Parameter DATUM: $DATUM" >>$ERR
echo "\$DATUM=$DATUM" >>unload_params.txt
if [ "$STUD_IDENT" = "" ]
then
STUD_IDENT="false"
export STUD_IDENT
fi
echo "Parameter STUD_IDENT: $STUD_IDENT" >>$ERR
echo "\$STUD_IDENT=$STUD_IDENT" >>unload_params.txt
if [ "$PRUEFER_NAME" = "" ]
then
PRUEFER_NAME="false"
export PRUEFER_NAME
fi
echo "Parameter PRUEFER_NAME: $PRUEFER_NAME" >>$ERR
echo "\$PRUEFER_NAME=$PRUEFER_NAME" >>unload_params.txt
if [ "$DIPL_THEMA" = "" ]
then
DIPL_THEMA="false"
export DIPL_THEMA
fi
echo "Parameter DIPL_THEMA: $DIPL_THEMA" >>$ERR
echo "\$DIPL_THEMA=$DIPL_THEMA" >>unload_params.txt
if [ "$PERSONATTRIBUTE_IDS" = "" ]
then
PERSONATTRIBUTE_IDS="0"
export PERSONATTRIBUTE_IDS
fi
echo "Parameter PERSONATTRIBUTE_IDS: $PERSONATTRIBUTE_IDS" >>$ERR
echo "\$PERSONATTRIBUTE_IDS=$PERSONATTRIBUTE_IDS" >>unload_params.txt
if [ "$stu_prot_maxid" = "" ]
then
stu_prot_maxid="0"
export stu_prot_maxid
fi
echo "Parameter stu_prot_maxid: $stu_prot_maxid" >>$ERR
echo "\$stu_prot_maxid=$stu_prot_maxid" >>unload_params.txt
if [ "$stu_updated_at" = "" ]
then
stu_updated_at="1900-01-01"
export stu_updated_at
fi
echo "Parameter stu_updated_at: $stu_updated_at" >>$ERR
echo "\$stu_updated_at=$stu_updated_at" >>unload_params.txt
if [ "$exa_prot_maxid" = "" ]
then
exa_prot_maxid="0"
export exa_prot_maxid
fi
echo "Parameter exa_prot_maxid: $exa_prot_maxid" >>$ERR
echo "\$exa_prot_maxid=$exa_prot_maxid" >>unload_params.txt
if [ "$exa_updated_at" = "" ]
then
exa_updated_at="1900-01-01"
export exa_updated_at
fi
echo "Parameter exa_updated_at: $exa_updated_at" >>$ERR
echo "\$exa_updated_at=$exa_updated_at" >>unload_params.txt
if [ "$sos_pord_pltxt1" = "" ]
then
sos_pord_pltxt1="null::char(1)"
export sos_pord_pltxt1
fi
echo "Parameter sos_pord_pltxt1: $sos_pord_pltxt1" >>$ERR
echo "\$sos_pord_pltxt1=$sos_pord_pltxt1" >>unload_params.txt
if [ "$sos_pord_pltxt2" = "" ]
then
sos_pord_pltxt2="null::char(1)"
export sos_pord_pltxt2
fi
echo "Parameter sos_pord_pltxt2: $sos_pord_pltxt2" >>$ERR
echo "\$sos_pord_pltxt2=$sos_pord_pltxt2" >>unload_params.txt
if [ "$sos_pord_pltxt3" = "" ]
then
sos_pord_pltxt3="null::char(1)"
export sos_pord_pltxt3
fi
echo "Parameter sos_pord_pltxt3: $sos_pord_pltxt3" >>$ERR
echo "\$sos_pord_pltxt3=$sos_pord_pltxt3" >>unload_params.txt
if [ "$sos_pord_pltxt4" = "" ]
then
sos_pord_pltxt4="null::char(1)"
export sos_pord_pltxt4
fi
echo "Parameter sos_pord_pltxt4: $sos_pord_pltxt4" >>$ERR
echo "\$sos_pord_pltxt4=$sos_pord_pltxt4" >>unload_params.txt
if [ "$SOURCESYSTEM" = "" ]
then
SOURCESYSTEM="hisinone"
export SOURCESYSTEM
fi
echo "Parameter SOURCESYSTEM: $SOURCESYSTEM" >>$ERR
echo "\$SOURCESYSTEM=$SOURCESYSTEM" >>unload_params.txt
#jdbc zum Entladen
if [ "$SX_CLIENT" = "jdbc" ]
then
java $JAVA_OPTS -cp $CP de.superx.bin.SxExtractor -logger:$LOGGER_PROPERTIES -dbproperties:$DB_PROPERTIES -xml:sos_costage_unload.xml -outFormat:$outFormat -delim:$DBDELIMITER -header:$header -database:$DATABASE -version:$VERSION -unload_params:unload_params.txt >>$ERR 2>&1
exit 0
fi
#Nachbearbeitung der unl-Dateien:
#Zumächst maskierte "\ " entfernen, Postgres kommt damit nicht klar
sed '/\\ /s///g' unl/konstanten.unl >tmp.unl
mv tmp.unl unl/konstanten.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_studenten.unl >tmp.unl
mv tmp.unl unl/sos_studenten.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_hzb.unl >tmp.unl
mv tmp.unl unl/sos_hzb.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_faecher.unl >tmp.unl
mv tmp.unl unl/sos_faecher.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pord_to_stg.unl >tmp.unl
mv tmp.unl unl/sos_pord_to_stg.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pruefungenext.unl >tmp.unl
mv tmp.unl unl/sos_pruefungenext.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pruefungen.unl >tmp.unl
mv tmp.unl unl/sos_pruefungen.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_lab_astat_attributes.unl >tmp.unl
mv tmp.unl unl/sos_lab_astat_attributes.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_stud_loe.unl >tmp.unl
mv tmp.unl unl/sos_stud_loe.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_faecher_ext.unl >tmp.unl
mv tmp.unl unl/sos_faecher_ext.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_faecher_kontrolle.unl >tmp.unl
mv tmp.unl unl/sos_faecher_kontrolle.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pruefungen_kontrolle.unl >tmp.unl
mv tmp.unl unl/sos_pruefungen_kontrolle.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_anschri.unl >tmp.unl
mv tmp.unl unl/sos_anschri.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_parstg.unl >tmp.unl
mv tmp.unl unl/sos_parstg.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_hsnr.unl >tmp.unl
mv tmp.unl unl/sos_hsnr.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/semester.unl >tmp.unl
mv tmp.unl unl/semester.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/cif.unl >tmp.unl
mv tmp.unl unl/cif.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/cifx.unl >tmp.unl
mv tmp.unl unl/cifx.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/k_pvers.unl >tmp.unl
mv tmp.unl unl/k_pvers.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/k_stg.unl >tmp.unl
mv tmp.unl unl/k_stg.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/k_stgext.unl >tmp.unl
mv tmp.unl unl/k_stgext.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/k_abstgv.unl >tmp.unl
mv tmp.unl unl/k_abstgv.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pord.unl >tmp.unl
mv tmp.unl unl/sos_pord.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_dipl.unl >tmp.unl
mv tmp.unl unl/sos_dipl.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_minder.unl >tmp.unl
mv tmp.unl unl/sos_minder.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_stud_d.unl >tmp.unl
mv tmp.unl unl/sos_stud_d.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pords.unl >tmp.unl
mv tmp.unl unl/sos_pords.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_porg.unl >tmp.unl
mv tmp.unl unl/sos_porg.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_labzuord.unl >tmp.unl
mv tmp.unl unl/sos_labzuord.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pnrzuord.unl >tmp.unl
mv tmp.unl unl/sos_pnrzuord.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_gewichtungsvariante.unl >tmp.unl
mv tmp.unl unl/sos_gewichtungsvariante.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_gewichtungregel_filter.unl >tmp.unl
mv tmp.unl unl/sos_gewichtungregel_filter.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_gewichtungregel.unl >tmp.unl
mv tmp.unl unl/sos_gewichtungregel.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/personattribute.unl >tmp.unl
mv tmp.unl unl/personattribute.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/personattributetype.unl >tmp.unl
mv tmp.unl unl/personattributetype.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/personattribute_value_list.unl >tmp.unl
mv tmp.unl unl/personattribute_value_list.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/stu_update_prot.unl >tmp.unl
mv tmp.unl unl/stu_update_prot.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/exa_update_prot.unl >tmp.unl
mv tmp.unl unl/exa_update_prot.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_accredited_ects.unl >tmp.unl
mv tmp.unl unl/sos_accredited_ects.unl >>$ERR 2>&1
sed '/\\ /s///g' unl/sos_pord_orgeinheit.unl >tmp.unl
mv tmp.unl unl/sos_pord_orgeinheit.unl >>$ERR 2>&1
chmod go+r $ERR
chmod go+r $SRC_PFAD/superx.datum
chmod go+r $SRC_PFAD/superx.datum.alt
chmod go+w $SRC_PFAD/superx.datum
chmod go+w $SRC_PFAD/superx.datum.alt
chmod go+r $SRC_PFAD/unl/*
##Herstellen altes Entladedatum bei Fehler
fgrep -s "not found" $ERR >/dev/null
FLAG1=$?
fgrep -i -s "nicht gefunden" $ERR >/dev/null
FLAG2=$?
fgrep -i -s "error" $ERR >/dev/null
FLAG3=$? >/dev/null
fgrep -i -s "exception" $ERR >/dev/null
FLAG4=$? >/dev/null
fgrep -i -s "fehler" $ERR >/dev/null
FLAG5=$? >/dev/null
if [ $FLAG1 -eq 0 -o $FLAG2 -eq 0 -o $FLAG3 -eq 0 -o $FLAG4 -eq 0 -o $FLAG5 -eq 0]
then
echo "Fehler beim Entladen. Das Datum wird zurückgesetzt."
echo "---------------------------------------"
echo "Prüfen Sie Fehlerprotokoll: $ERR"
echo "---------------------------------------"
cp $SRC_PFAD/superx.datum.alt $SRC_PFAD/superx.datum
fi

601
src-modules/module/costage/rohdaten_lm/lm_costage_unload.xml

@ -1,601 +0,0 @@ @@ -1,601 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<superx-unload version="4.0">
<module id="lm" version="0.5b" systeminfo_id="300">LM-Modul</module>
<parameters>
<param name="VERSION" defaultValue="13" description="Datenbank-Version"><comment>SOSPOS-Version, möglich ist 13 (gilt für alle Versionen). Bei HISinOne wird sie automatisch gesetzt.</comment></param>
<param name="LM_ADRESSTAG_MAIL" defaultValue="1=0" description="Sollen Email-Adressen der Studierenden entladen werden?"><comment> Wenn ja, dann ist der Wert ein Filter für die H1-Tabelle k_adresstag mit alias AT, z.B. "AT.hiskey_id=8", wenn nein, dann ist er "1=0". Wird aktuell nur in hochschulspezifischen Berichten ausgewertet.</comment></param>
<param name="PERSONATTRIBUTE_LM_EMAIL" defaultValue="0" description="Personenattribut Email-Zustimmung"><comment>Wird aktuell nun in hochschulspezifischen Berichten ausgewertet. Wird aktuell nur in hochschulspezifischen Berichten ausgewertet.</comment></param>
<param name="LM_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 im Bericht Prüfungsanalyse und -erfolg sowie Abschlussarbeiten Statistik ausgewertet.</comment></param>
<param name="LM_PRUEFUNG_ZUSATZTEXT" defaultValue="false" description="Sollen Zusatztexte für Prüfungen entladen werden?"><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist es "false". Wird aktuell nur in hochschulspezifischen Berichten ausgewertet. </comment></param>
<param name="LM_EXAM_WRITTEN" defaultValue="false" description="Sollen zusätzliche Angaben wie bspw. Titel, Datumsangaben zu schriftlichen Arbeiten entladen werden? Warnung! Kann zu Problemen in Form von Konnektorabbrüchen führen, wenn bspw. Sonderzeichen im Titel oder Kommentar stehen."><comment> Wenn ja, dann ist der Wert "true", wenn nein, dann ist es "false". Wird derzeit nur im Bericht "Abschlussarbeiten Statistik" ausgewertet.</comment></param>
</parameters>
<sourcesystems>
<sourcesystem name="co" description="CampusOnline-Datenbank" default="true" />
</sourcesystems>
<unload-job id="konstanten" extraction-table="" extraction-script="" transfer-unload-file="unl/konstanten.unl" >
<comment> wichtige Konstanten aus SOS entladen, z.B. HISSOS-Version.</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
select 1,15,'LM_Quellsystem'
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_unit" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_unit.unl" >
<comment><comment>Pruefungsordnungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT id,
15 as sourcesystem,
substring(U.shorttext from 1 for 255),
substring(U.defaulttext from 1 for 255),
substring(U.longtext from 1 for 255),
U.elementnr,
U.calculate_ects_sum,
U.official_statistics,
U.k_elementtype_id,
U.default_unitrelation_id,
null::char(1) as pdum,
substring(U.uniquename from 1 for 255),
U.hours_per_week,
U.editing_k_status_id,
U.transfer_allowed,
U.freetrial_check,
U.k_unit_purpose_id,
U.valid_from,
U.valid_to,
U.shortcomment
FROM
unit U
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_unit_studies" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_unit_studies.unl" >
<comment><comment>Pruefungsordnungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT US.id,
15 as sourcesystem,
US.unit_id,
US.course_of_study_lid,
US.root_elementtype_hiskey
from unit_studies US
where US.root_elementtype_hiskey=4 --nur Prüfungen #189067
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_course_of_study" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_course_of_study.unl" >
<comment><comment>Studiengänge</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT C.id,
C.lid,
15 as sourcesystem,
substring(C.uniquename from 1 for 255),
substring(C.shorttext from 1 for 255),
substring(C.defaulttext from 1 for 255),
substring(C.longtext from 1 for 255),
C.k_examinationversion_id,-- pversion,
C.orgunit_id,-- fb,
C.k_enrollment_id,-- stutyp,
C.k_subject_indicator_id,-- kzfa,
C.k_place_of_studies_id,-- stort,
C.teachingunit_orgunit_id,-- lehreinh,
C.degree_id,-- abschl,
C.subject_id,-- stg,
C.major_field_of_study_id,-- vert,
C.course_specialization_id,-- schwp,
C.k_type_of_study_id,-- stuart,
C.k_form_of_studies_id,-- stufrm,
C.regular_number_of_semesters,-- regelstz,
'' || C.to_term_year || T.termnumber, -- sem_gueltigbis
C.part_of_studies,
C.valid_from,
C.valid_to
FROM tmp_lm_course_of_study C
left outer join term_type T on (C.to_term_type_id=T.id);
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_unitrelation" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_unitrelation.unl" >
<comment><comment>Pruefungsordnungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT R.id,
15 as sourcesystem,
R.parent_unit_id,
R.child_unit_id,
R.k_unitrelationtype_id,
R.recommended_semester,
R.bonus,
R.malus,
R.generation_weight,
--neu
G.type_of_grading,
R.sortorder,
R.k_compulsory_id,
R.alternative_recommended_semester
FROM
unitrelation R left outer join grading_type G
on (R.grading_type_id = G.id)
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_examrelation" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_examrelation.unl" >
<comment><comment>Pruefungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT R.id,
15 as sourcesystem,
R.parent_examplan_id,
R.child_examplan_id,
R.k_unitrelationtype_id,
null::integer as unit_id,
R.bonus,
R.malus,
R.k_workstatus_id,
R.credits_used_for_weighting,
(case when A.hiskey_id=1001 then 1::integer else 0::integer end) as is_approved,
R.k_internal_accreditationtype_id,
R.date_of_work,
'' || R.term_year || T.termnumber as sem_der_pruefung
FROM
examrelation R left outer join k_internal_accreditationtype A
on (A.id=R.k_internal_accreditationtype_id)
left outer join term_type T
on (T.id = R.term_type_id)
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_examination" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_examination.unl" >
<comment><comment>Pruefungsordnungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT E.id,
15 as sourcesystem,
E.unit_id,
E.source_event_unit_id,
E.k_examform_id,
E.k_examination_type_id,
E.exam_written
FROM
examination E
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_examplan" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_examplan.unl" >
<comment><comment>Pruefungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT S.registrationnumber,--TODO: Pseudonym
E.id,
15 as sourcesystem,
E.unit_id,
E.person_id,
E.planelement_id,
E.cancelation, --prueck
E.date_of_work, --pdatum
E.semesterhours,
E.k_examform_id, --pform
'' || E.term_year || T.termnumber,--psem,
E.term_segment, --ptermin
E.k_grade_assessment_status_id,
E.k_remark_on_exam_id, --pvermerk
E.default_examrelation_id,
E.cancelation_impossible,
E.additional_work,
G.grade, --pnote TODO: umrechung bei Staatsexamen Jura in Note
G.score,
null::integer as panerk,
G.attempt,
G.free_trial
FROM student S, term_type T , unit U, k_elementtype K ,examplan E , examrelation R left outer join examresult G
on (G.examrelation_id=R.id)
where E.default_examrelation_id=R.id
and U.id=E.unit_id
and U.k_elementtype_id=K.id
and T.id = E.term_type_id
and S.person_id = E.person_id
AND (
U.uniquename != 'AP-EXT'
OR U.uniquename IS NULL
) --ext.Pruefungnen ausschliessen
AND (K.hiskey_id is null or K.hiskey_id not in (7,10)) --keine HZB-Leistungen, Einzureichende Unterlagen für STU #189067
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_exam_instructor" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_exam_instructor.unl" >
<comment><comment>Prüfernamen</comment></comment>
<!-- Anpassung (vor 24.2.2023) auf planable in 202.12:-->
<!-- Weitere Anpassung am 24.2.2023 -->
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
select E.id,
15 as sourcesystem,
null as ordnr,
PE.surname,
PE.firstname,
PA.sortorder as ordnr2
from hisinone.examplan E, hisinone.planelement P, hisinone.planned_dates PD, hisinone.planable A, hisinone.person_planable PA, hisinone.person PE
where E.planelement_id=P.id
and A.id=P.id
and PD.planable_id=A.id
and A.id=PA.planable_id
and PA.abstract_person_id=PE.id
and '$LM_PRUEFER_NAME'='true'
union
select E.id,
15 as sourcesystem,
1 as ordnr,
PE.surname,
PE.firstname,
I.sortorder as ordnr2
from hisinone.examplan E, hisinone.planelement P, hisinone.planned_dates PD, hisinone.planable A, hisinone.instructor I, hisinone.k_instructortask IT, hisinone.person PE
where E.planelement_id=P.id
and A.id=P.id
and PD.planable_id=A.id
and PD.id=I.planned_dates_id
and I.k_instructortask_id=IT.id
and IT.hiskey_id =1
and I.abstract_person_id=PE.id
and '$LM_PRUEFER_NAME'='true'
union
select E.id,
15 as sourcesystem,
2 as ordnr,
PE.surname,
PE.firstname,
I.sortorder as ordnr2
from hisinone.examplan E, hisinone.planelement P, hisinone.planned_dates PD, hisinone.planable A, hisinone.instructor I, hisinone.k_instructortask IT, hisinone.person PE
where E.planelement_id=P.id
and A.id=P.id
and PD.planable_id=A.id
and PD.id=I.planned_dates_id
and I.k_instructortask_id=IT.id
and IT.hiskey_id =2
and I.abstract_person_id=PE.id
and '$LM_PRUEFER_NAME'='true'
--Prüfungen ohne Veranstaltung, z.B. Abschlussarbeiten:
union
select E.id,
15 as sourcesystem,
IT.hiskey_id as ordnr,
P.surname,
P.firstname,
null as ordnr2
from hisinone.examplan E, hisinone.examrelation R, hisinone.examresult ER,hisinone.examvaluation V, hisinone.k_instructortask IT, hisinone.person P
where (E.default_examrelation_id=R.id or R.child_examplan_id=E.id)
and V.examresult_id=ER.id
and ER.examrelation_id=R.id
and IT.id=V.k_instructortask_id
and P.id=V.person_id
and '$LM_PRUEFER_NAME'='true'
]]>
</extraction-sql>
</unload-job>
<!--
<unload-job id="lm_exampath" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_exampath.unl" >
<comment><comment>Belegwünsche für Veranstaltungen, derzeit noch nicht ausgewertet.</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT id,
examrelation_id,
priority,
hierarchy_level,
anchor_unit_id,
path_group,
unitrelation_id,
complete_destination_path
from exampath;
]]>
</extraction-sql>
</unload-job>
-->
<unload-job id="lm_accreditation" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_accreditation.unl" >
<comment><comment>Anerkennungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT A.id,
A.examplan_id,
null::char(1) as accreditation_person,
A.accreditation_date,
A.k_accreditationtype_id,
15 as sourcesystem,
null::integer as origin_examplan_id
FROM accreditation A
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_accreditation_relation" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_accreditation_relation.unl" >
<comment><comment>Anerkennungsdaten</comment></comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT origin_examplan_id,
accreditation_examplan_id
FROM accreditation_relation
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="cifx" extraction-table="" extraction-script="" transfer-unload-file="unl/cifx.unl" >
<comment>Schlüsseltabelle cifx</comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT
9015,
-1,
('' || id)::varchar(255) as id,
substring(shorttext from 1 for 10),
substring(defaulttext from 1 for 100),
substring(longtext from 1 for 150),
null::char(1),--astat,
null::char(1),--parent
uniquename,
null::char(1), --bund_apnr
substring('' || k_language_id from 1 for 3), --sprache,
null::char(1), --gueltig von
null::char(1), --gueltig bis
id , --sourcesystem_id
'' || hiskey_id,
null::char(1), --struktur_c
null::char(1) as lid,
null::char(255) as parent_lid,
sortorder
FROM k_unitrelationtype
union
SELECT
9016,
-1,
('' || id)::varchar(255) as id,
substring(shorttext from 1 for 10),
substring(defaulttext from 1 for 100),
substring(longtext from 1 for 150),
null::char(1),--astat,
null::char(1),--parent
uniquename,
null::char(1), --bund_apnr
substring('' || k_language_id from 1 for 3), --sprache,
null::char(1), --gueltig von
null::char(1), --gueltig bis
id , --sourcesystem_id
'' || hiskey_id,
null::char(1), --struktur_c
null::char(1) as lid,
null::char(255) as parent_lid,
sortorder
FROM k_accreditationtype
union
SELECT
9017,
-1,
('' || id)::varchar(255) as id,
substring(shorttext from 1 for 10),
substring(defaulttext from 1 for 100),
substring(longtext from 1 for 150),
null::char(1),--astat,
null::char(1),--parent
uniquename,
null::char(1), --bund_apnr
substring('' || k_language_id from 1 for 3), --sprache,
null::char(1), --gueltig von
null::char(1), --gueltig bis
id , --sourcesystem_id
'' || hiskey_id,
null::char(1), --struktur_c
null::char(1) as lid,
null::char(255) as parent_lid,
sortorder
FROM k_additional_examtext_type
union
SELECT
9018,
-1,
('' || id)::varchar(255) as id,
substring(shorttext from 1 for 10),
substring(defaulttext from 1 for 100),
substring(longtext from 1 for 150),
null::char(1),--astat,
null::char(1),--parent
uniquename,
null::char(1), --bund_apnr
substring('' || k_language_id from 1 for 3), --sprache,
null::char(1), --gueltig von
null::char(1), --gueltig bis
id , --sourcesystem_id
'' || hiskey_id,
null::char(1), --struktur_c
null::char(1) as lid,
null::char(255) as parent_lid,
sortorder
FROM k_compulsory
union
SELECT
9019,
-1,
('' || id)::varchar(255) as id,
substring(shorttext from 1 for 10),
substring(defaulttext from 1 for 100),
substring(longtext from 1 for 150),
null::char(1),--astat,
null::char(1),--parent
uniquename,
null::char(1), --bund_apnr
substring('' || k_language_id from 1 for 3), --sprache,
null::char(1), --gueltig von
null::char(1), --gueltig bis
id , --sourcesystem_id
'' || hiskey_id,
null::char(1), --struktur_c
null::char(1) as lid,
null::char(255) as parent_lid,
sortorder
FROM k_internal_accreditationtype
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_stud_d" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_stud_d.unl" >
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
select S.registrationnumber,
P.nameprefix,
P.surname,
P.namesuffix,
P.firstname,
A.eaddress ,
PA.attributevalue
from
k_notificationcategory N, address_k_notificationcategory AN, address A, student S, eaddresstype EAT, k_addresstag AT, person P
left outer join personattribute PA on (P.id=PA.person_id
and current_date between PA.valid_from and PA.valid_to
and PA.personattributetype_id = ($PERSONATTRIBUTE_LM_EMAIL)
)
where N.id=AN.k_notificationcategory_id
and A.id=AN.address_id
and P.id=A.person_id
and P.id=S.person_id
and EAT.id=A.eaddresstype_id
and EAT.hiskey_id=10 --Email
and A.k_addresstag_id=AT.id
and $LM_ADRESSTAG_MAIL
and N.hiskey_id=2 --Studium - Korrespondenz
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_unit_top" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_unit_top.unl" >
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT id,
unit_id,
top_unit_id,
6
FROM unit_top;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_exam_written" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_exam_written.unl" >
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT id,
examplan_id,
date_of_application,
startdate,
planned_end,
real_end,
SUBSTRING (title, 1, 255),
commentary,
6
FROM exam_written
where
'$LM_EXAM_WRITTEN'='true'
;
]]>
</extraction-sql>
</unload-job>
<unload-job id="lm_additional_examtext" extraction-table="" extraction-script="" transfer-unload-file="unl/lm_additional_examtext.unl" >
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT id,
examplan_id,
k_additional_examtext_type_id,
additional_text,
k_language_id,
6
FROM additional_examtext
where
'$LM_PRUEFUNG_ZUSATZTEXT'='true'
;
]]>
</extraction-sql>
</unload-job>
</superx-unload>

1
src-modules/module/costage/rohdaten_lm/superx.datum

@ -1 +0,0 @@ @@ -1 +0,0 @@
23.09.2022

1
src-modules/module/costage/rohdaten_lm/unl/hierhin_die_rohdaten.txt

@ -1 +0,0 @@ @@ -1 +0,0 @@

3
src-modules/module/costage/rohdaten_msg/msg_costage_unload.xml

@ -63,8 +63,7 @@ leistungsstatus_map_kb_tsg as pstatus_tsg, @@ -63,8 +63,7 @@ leistungsstatus_map_kb_tsg as pstatus_tsg,
note_tsg,
fachsemester_tsg as fach_sem_zahl_tsg ,
P.studienidentifikator,
P.studienidentifikator_tsg,
skz_key_abschlussarbeit
P.studienidentifikator_tsg
FROM costage_st_pruef_aggr P, costage_dim_studiengang G
where G.tid=P.studiengang_tid
and ($EXTERNAL_SUBJECTS ='true'

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

@ -103,11 +103,9 @@ ca12_staat, @@ -103,11 +103,9 @@ ca12_staat,
null::integer as bland,
null::char(1) ,--hssem,
null::char(1) ,--urlsem,
(case when AH.land_kfz_kennzeichen is null then null::char(10)
when AH.land_kfz_kennzeichen='D' then 'I' else 'A' end) as hmkfzkz,
(case when AH.land_kfz_kennzeichen='D' then 'I' else 'A' end) as hmkfzkz,
(case when AH.land_kfz_kennzeichen='D' then AH.land_kfz_kennzeichen_subregion else AH.land_kfz_kennzeichen end) as hmkfz,
(case when ASEM.land_kfz_kennzeichen is null then null::char(10)
when ASEM.land_kfz_kennzeichen='D' then 'I' else 'A' end) as semkfzkz,
(case when ASEM.land_kfz_kennzeichen='D' then 'I' else 'A' end) as semkfzkz,
(case when ASEM.land_kfz_kennzeichen='D' then ASEM.land_kfz_kennzeichen_subregion else ASEM.land_kfz_kennzeichen end) as semkfz,
null::char(1) as hzbart,
null::char(1) as hzbjahr,
@ -819,29 +817,7 @@ from costage_st_land_regionen R, costage_st_laender L @@ -819,29 +817,7 @@ from costage_st_land_regionen R, costage_st_laender L
where L.st_land_nr=R.st_land_nr
and L.statistik_code='000'
and R.statistik_code is not null
union
SELECT
621,
0,
schluessel as apnr,
schluessel as ktxt,
name as dtxt,
name as ltxt,
schluessel as astat,
'',
schluessel ,
'',
'',
null::date as gueltig_von,
null::date as gueltig_bis,
schluessel , --sourcesystem_id
'' , --hiskey_id
'', --struktur_c
null as lid,
null as parent_lid,
null as sortorder
from k_astat_faechergruppe
union
union
SELECT
9001,
0,
@ -1037,32 +1013,21 @@ select * from k_stg where 1=0; @@ -1037,32 +1013,21 @@ select * from k_stg where 1=0;
<comment>Fächer aus SOS. </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT distinct K.skz_key as apnr,
SELECT apnr,
'A' as aikz,
substring(K.skz_name from 1 for 10) as ktxt,
K.skz_name as dtxt,
K.skz_name as ltxt ,
min(F.statistik_code::char(10)) as astat,
K.fakultaet_key as fb,
min(A.sb) as astfr,
min(A.fgr) as astgrp,
kurz,
druck,
lang_1,
astat,
struktur_c as fb,
null as astfr,
null as astgrp,
null as zulplaugr,
null as kzfaarray,
null as sortkz1,
null as sprache,
K.skz_key as refstg
FROM costage_st_studienkennzahlen K left outer join costage_st_studienfaecher F
on ( F.st_stdfach_nr=K.st_stdfach_nr)
left outer join dim_stg_astat_sb_fgr A
on (F.statistik_code=A.stg_astat
and (select min(S.semester_tid) from costage_st_semester S
where today() between S.semester_anfang and S.semester_ende) between A.gueltig_ab and A.gueltig_bis )
where ($EXTERNAL_SUBJECTS ='true'
or K.unikey=(select lpad(H.hs_nr::char(10),4,'0') from hochschulinfo H)
or exists(select id from sx_repository R where R.id='COSTAGE_STORT' and aktiv=1)
)
group by 1,2,3,4,5,K.fakultaet_key,K.skz_key
apnr --refstg
FROM cifx where key=30
;
]]>
</extraction-sql>
@ -1079,7 +1044,7 @@ select * from k_stg where 1=0; @@ -1079,7 +1044,7 @@ select * from k_stg where 1=0;
<comment>Studiengänge aus CO. </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT substring(G.studiengangs_identifikator from 1 for 10) ,--abstgv,
SELECT distinct substring(G.studiengangs_identifikator from 1 for 10) ,--abstgv,
'A' as aikz,
'' ,--ktxt,
substring(G.studiengangs_bezeichnung from 1 for 25) as dtxt,
@ -1116,7 +1081,7 @@ SELECT substring(G.studiengangs_identifikator from 1 for 10) ,--abstgv, @@ -1116,7 +1081,7 @@ SELECT substring(G.studiengangs_identifikator from 1 for 10) ,--abstgv,
null::integer,--abstitel,
G.st_studiengang_nr as abstgvnr,
G.unikey,--efh,
max(coalesce(A.po_regelstudienzeit,G.rsz)), --regelstz,
coalesce(A.po_regelstudienzeit,G.rsz), --regelstz,
null::integer,-- email_part,
null::integer,--login_part,
null::date as sem_gueltigbis,
@ -1127,8 +1092,6 @@ SELECT substring(G.studiengangs_identifikator from 1 for 10) ,--abstgv, @@ -1127,8 +1092,6 @@ SELECT substring(G.studiengangs_identifikator from 1 for 10) ,--abstgv,
and ($EXTERNAL_SUBJECTS ='true'
or G.unikey=(select lpad(H.hs_nr::char(10),4,'0') from hochschulinfo H)
)
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,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,skz_name
]]>
</extraction-sql>
</unload-job>

8
src-modules/module/costage/rohdaten_zul/zul_costage_unload.xml

@ -54,7 +54,7 @@ null,--bew_efh, @@ -54,7 +54,7 @@ null,--bew_efh,
null,--bew_gebort,
date(S.geburtsdatum) as bew_gebdat,
S.geschlecht as geschl,
L.statistik_code as staat,
L.kurzbezeichnung as staat,
null,--pozusatz,
null,--postrasse,
null,--poplz,
@ -238,7 +238,7 @@ null::date as zuldat, @@ -238,7 +238,7 @@ null::date as zuldat,
null,-- quotenr,
null,--annfrist,
A.annahme_kz,
case when A.bew_kz='G' then 'G' else 'U' end, --antrags_status
case when A.bew_kz='J' then 'G' else 'U' end, --antrags_status
null,--antrf1,
null,--antrf2,
null,--antrf3,
@ -277,9 +277,7 @@ A.nr as satzid, @@ -277,9 +277,7 @@ A.nr as satzid,
null, -- pversion
null, --zvs_ekritpaket_01,
null , --zvs_ekritpaket_02
null --updated_admission_relevant_data_at,
A.zurueckgezogen_kz,
A.storniert_kz
null --updated_admission_relevant_data_at
FROM costage_bw_antr_aggr A, costage_st_studiengaenge G
where A.st_studiengang_nr=G.st_studiengang_nr
and A.bw_typ_kb !='MBW'

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

@ -92,7 +92,7 @@ G.stort_name, @@ -92,7 +92,7 @@ G.stort_name,
0
FROM costage_st_studiengaenge G left outer join costage_st_studienkennzahlen SKZ
on ( SKZ.st_skz_nr=G.st_skz_nr)
inner join costage_st_abschlussziele_lokal A on (A.st_absz_nr=G.st_absz_nr);
left outer join costage_st_abschlussziele_lokal A on (A.st_absz_nr=G.st_absz_nr);
update tmp_costage_dim_studiengang set tid_orig=D.tid
from costage_dim_studiengang D

3
src-modules/module/costage/schluesseltabellen/costage_stichtag.unl

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
1^Studierende (tagesaktuell)^Studierende^0^19001^
2^Absolvent_innen (tagesaktuell)^Absolvent_innen^2^19001^
3^Bewerbungen (tagesaktuell)^Bewerbungen^3^19001^

15
src-modules/module/costage/schluesseltabellen/sx_repository.unl

@ -20,18 +20,3 @@ else 'BE' --bestanden\ @@ -20,18 +20,3 @@ else 'BE' --bestanden\
end^Leistungsstatus-Gruppen (CO)^Hier werden Leistungsstatus-Gruppen (CO) konfiguriert. Beispiel der UZK für sx_leistungen_v^^COSTAGE_LEISTUNGSSTATUS^^^310^1^0^0^^1^01.01.1900^31.12.3000^
4^COSTAGE_STUDIENSTATUS_FILTER^studienstatustyp not in ('a','o','z')^Filter Studienstatus für CO^Hier werden Studienstatus-Typen für Auswertungen aus CO gefiltert^^COSTAGE_STUD_STATUS_FILTER^^^310^1^0^0^^1^01.01.1900^31.12.3000^
5^COSTAGE_BEW_EINSCHR_FILTER^status_evs='J'^Filter Bewerbungsstatus Einschreibung für CO^Hier werden Bewerbungsstatus-Typen für Auswertungen aus CO gefiltert^^COSTAGE_BEW_STATUS_FILTER^^^310^1^0^0^^1^01.01.1900^31.12.3000^
6^COSTAGE_STUDIENGANG_NR_PRIO^<#assign stgnr_prio = [\
{"nr":10,"caption":"Promotionsstudium",\
"whereclause":"abschluss_grp='G_Prom'"}\
{"nr":20,"caption":"Masterstudium",\
"whereclause":"abschluss_grp='G_Master'"}\
{"nr":30,"caption":"Bachelor",\
"whereclause":"abschluss_grp='G_Bachelor'"}\
{"nr":40,"caption":"Zertifikatsstudium",\
"whereclause":"abschluss_astat in ('94')"}\
] />\
^Priorität Studiengang-Nr.^Filter Priorität für die Ermittlung der Studiengang-Nr. nacn Abschluss/Studienform^^COSTAGE_STUD_STGNR_FILTER^^^310^1^0^0^^1^01.01.1900^31.12.3000^
7^COSTAGE_NOTENSKALA_DE^('DE1','DE2','DE3','DE4','DE5','DE6','DE7','DE18','DE19','DE20')\
^Notenskalen mit deutschen Schulnoten^Filter für Notenskalen mit Werten von 1-6^^COSTAGE_PRUEF_NOTE_FILTER^^^310^1^0^0^^1^01.01.1900^31.12.3000^
8^COSTAGE_PSTATUS_BE^pstatus='BE'^Anzahl bestanden^Anzahl bestanden^^COSTAGE_PSTATUS_GROUP^^^16^1^0^0^^1^01.01.1900^31.12.3000^
9^COSTAGE_PSTATUS_NB^pstatus='NB'^Anzahl nicht bestanden^Anzahl nicht bestanden^^COSTAGE_PSTATUS_GROUP^^^16^3^0^0^^1^01.01.1900^31.12.3000^

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

@ -1,15 +1,7 @@ @@ -1,15 +1,7 @@
--Freemarker Template
--Freemarker Template
<sqlvars>
<sqlvar name="dim_stg_astat_sb_fgr_exists">
select sp_bool_to_smallint(count(*) !=0) from pg_class
where relname::char(200) = 'dim_stg_astat_sb_fgr'
and relkind='v';
</sqlvar>
</sqlvars>
<#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);
@ -19,7 +11,6 @@ alter table costage_bw_bewerb_hzb alter column hzb_punkte_max type float; @@ -19,7 +11,6 @@ alter table costage_bw_bewerb_hzb alter column hzb_punkte_max type float;
alter table costage_leistungen alter column note_zahl type float;
alter table costage_leistungen alter column credits type float;
alter table costage_leistungen alter column semesterstunden type float;
alter table costage_leistungen alter column unterrichtseinheiten type float;
alter table costage_leistungen alter column matrikelnummer type integer using val(matrikelnummer)::integer;
ALTER TABLE costage_st_studierendenstammdaten
@ -44,45 +35,6 @@ ALTER COLUMN st_studium_nr drop not null; @@ -44,45 +35,6 @@ ALTER COLUMN st_studium_nr drop not null;
ALTER TABLE costage_st_pruef_aggr
ALTER COLUMN leistung_nr drop not null;
alter table costage_ergebnisse alter column zahl type float;
ALTER TABLE costage_leistungen
ALTER COLUMN vorname drop not null;
ALTER TABLE costage_leistungen
ALTER COLUMN nachname drop not null;
<#if dim_stg_astat_sb_fgr_exists==0>
create view dim_stg_astat_sb_fgr(
stg_astat,
stg_astat_str,
stg_bund,
stg_bund_str,
sb,
sb_str,
fgr,
fgr_str,
gueltig_ab,
gueltig_bis) as
select L.schluessel as stg_astat,
L.name as stg_astat_str,
L.keybund as stg_bund,
F.name as stg_bund_str,
F.sb,SB.name as sb_str,
SB.fgr,
FGR.name as fgr_str,
L.gueltig_ab,
coalesce(L.gueltig_bis,30000) as gueltig_bis
from k_astat_studienfach_land L,
k_astat_studienbereich SB,
k_astat_studienfach F,
k_astat_faechergruppe FGR,
cif C_land
where C_land.key=659
and C_land.apnr=L.land
and SB.schluessel=F.sb
and FGR.schluessel=SB.fgr
and L.keybund=F.schluessel
;
</#if>
--Länder Schlüssel ggf. doppelt aus sospos, daher löschen:
@ -103,21 +55,4 @@ and 0=(select count(*) from costage_land_subregionen L @@ -103,21 +55,4 @@ and 0=(select count(*) from costage_land_subregionen L
where L.land_kfz_kennzeichen_subregion=C.apnr)
and (select count(*) from costage_land_subregionen L2)>0 --wenn die Tab. überhaupt gefüllt ist
;
--Neue Spalte stichtag https://git.campussource.de/git/SuperX/COSTAGE/issues/30
update costage_st_studien_aggr set stichtag=(select I.tid
from costage_stichtag I
where I.appl_key='0')
where stichtag is null;
update costage_st_pruef_aggr set stichtag=(select I.tid
from costage_stichtag I
where I.appl_key='0')
where stichtag is null;
update costage_bw_antr_aggr set stichtag=(select I.tid
from costage_stichtag I
where I.appl_key='0')
where stichtag is null;
--neue Fächergruppen mit 0.9:
delete from cifx where key=621 and length(apnr)>2;

Loading…
Cancel
Save