24 changed files with 2092 additions and 48 deletions
@ -0,0 +1,67 @@ |
|||||||
|
#!/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 |
||||||
|
|
||||||
@ -0,0 +1,20 @@ |
|||||||
|
#!/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" |
||||||
|
|
||||||
@ -0,0 +1,81 @@ |
|||||||
|
<?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> |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
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;^^^ |
||||||
@ -0,0 +1 @@ |
|||||||
|
43220^310^ |
||||||
@ -0,0 +1,12 @@ |
|||||||
|
43220^43220^ |
||||||
|
43220^43221^ |
||||||
|
43220^43222^ |
||||||
|
43220^43223^ |
||||||
|
43220^43224^ |
||||||
|
43220^43226^ |
||||||
|
43220^43227^ |
||||||
|
43220^43228^ |
||||||
|
43220^43229^ |
||||||
|
43220^43230^ |
||||||
|
43220^43231^ |
||||||
|
43220^43234^ |
||||||
@ -0,0 +1,390 @@ |
|||||||
|
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 >= <<Seit Semester>> */\ |
||||||
|
/* and semester_tid <= <<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 <= 10>\ |
||||||
|
note < ${noten[note_index + 1] / 10}\ |
||||||
|
<#elseif note >= 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 <= 10>\ |
||||||
|
note < ${noten[note_index + 1] / 10}\ |
||||||
|
<#elseif note >= 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 <= 10>\ |
||||||
|
note < ${noten[note_index + 1] / 10}\ |
||||||
|
<#elseif note >= 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 <= 10>\ |
||||||
|
note < ${noten[note_index + 1] / 10}\ |
||||||
|
<#elseif note >= 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 >= <<Seit Semester>> */\ |
||||||
|
/* and tid <= <<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 <= 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 >= 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 ?>>';^ |
||||||
@ -0,0 +1 @@ |
|||||||
|
310^43220^ |
||||||
@ -0,0 +1,377 @@ |
|||||||
|
#!/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 |
||||||
@ -0,0 +1,601 @@ |
|||||||
|
<?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> |
||||||
@ -0,0 +1 @@ |
|||||||
|
|
||||||
@ -0,0 +1,3 @@ |
|||||||
|
1^Studierende (tagesaktuell)^Studierende^0^19001^ |
||||||
|
2^Absolvent_innen (tagesaktuell)^Absolvent_innen^2^19001^ |
||||||
|
3^Bewerbungen (tagesaktuell)^Bewerbungen^3^19001^ |
||||||
Loading…
Reference in new issue