Promovierendenstatistik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

311 lines
18 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE module SYSTEM "../../../conf/superx-module.dtd"> -->
<module name="promstat" version="0.1b" sachgebiet_id="350"
sachgebiet="Promovierendenstatistik (Erw.)" systeminfo_id="350"
system="Promovierendenstatistik (Erw.)" thema="Promovierendenstatistik (Erw.)" thema_parent="Promovierende">
<database name="superx" version="3.0" system="superx">
<sachgebiete>
<sachgebiet id="350" name="Promovierendenstatistik (Erw.)" rightname="CS_BIA_STANDARDREPORTS_VIEW_REPORTS[PROMSTAT]"/>
</sachgebiete>
<table name="promstat_docprogram_aggr" version="1.0" thema="Promotionen"
typ="Hilfstabelle" releaseUnload="demo"
caption="Promotionsstatistik (erw.)">
<description>
Dies ist die Faktentabelle für Promotionsvorhaben aus dem Vorsystem (das wird zunächst nur HISinOne sein)
</description>
<columns>
<column name="person_id" type="INTEGER" size="4" default="" notnull="true" description="Person-ID" />
<column name="degree_program_id" type ="INTEGER" size ="4" default ="" notnull ="false" description="Studiengang" />
<column name="doctoral_program_id" type ="INTEGER" size ="4" default ="" notnull ="false" description="Promotionsvorhaben"/>
<column name="sem_rueck_beur_ein" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Semester" />
<column name="examplan_id" type ="INTEGER" size ="4" default ="" notnull ="false" description="Promotionszugangsberechtigung" ><comment>Leistung, die zur Aufnahme einer Promotion berechtigt</comment></column>
<column name="course_of_study_id" type ="INTEGER" size ="4" default ="" notnull ="false" description="Studiengang" />
<column name="astat_bund" type ="CHAR" size ="10" default ="" notnull ="false" description="Abschluss (amtlich Bund)" currentlyUsed="false" ><comment>Amtlicher Statistikschlüssel des Bundes für den Abschluß</comment></column>
<column name="astat_land" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Abschluss (amtlich Land)" currentlyUsed="false" ><comment>Schlüssel für die Meldung an das Land</comment></column>
<column name="k_type_of_doctorate" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Art der Promotion" />
<column name="gueltig_von" type ="DATE" size ="4" default ="" notnull ="false" description="Gültig von" />
<column name="gueltig_bis" type ="DATE" size ="4" default ="" notnull ="false" description="Gültig bis" />
<column name="finished" type ="DATE" size ="4" default ="" notnull ="false" description="Abschlussdatum des Verlaufs"/>
<column name="structured_doctoral_program_id" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Strukturiertes Promotionsprogramm" ><comment>Teilnahme an einem strukturierten Promotionsprogramm</comment></column>
<column name="stu_employment_business_id" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Beschäftigungsverhältnis" ><comment>Beschäftigungsverhältnis an der Hochschule der Promotion</comment></column>
<column name="stu_employment_startdate" type ="DATE" size ="4" default ="" notnull ="false" description="Beschäftigungsverhältnis gültig von" />
<column name="stu_employment_enddate" type ="DATE" size ="4" default ="" notnull ="false" description="Beschäftigungsverhältnis gültig bis" />
<column name="k_examform_id" type ="INTEGER" size ="4" default ="" notnull ="false" description="Art der Dissertation" />
<column name="k_examform_un" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Form der Dissertation" />
<column name="k_place_of_studies_astat" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Standort" />
<!--neue Felder aus prom_promovierende-->
<column name="geschlecht_astat" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Geschlecht" ><comment>Wert des amtlichen Schluessels, welcher das Geschlecht abbildet</comment></column>
<column name="staatsangehoerigkeit_1_astat" type ="INTEGER" size ="4" default ="" notnull ="false" description="Erste Staatsangehoerigkeit" ><comment>Wert des amtlichen Schluessels fuer erste Staatsangehoerigkeit</comment></column>
<column name="staatsangehoerigkeit_2_astat" type ="INTEGER" size ="4" default ="" notnull ="false" description="Zweite Staatsangehoerigkeit" ><comment>Wert des amtlichen Schluessels fuer zweite Staatsangehoerigkeit</comment></column>
<column name="hzb_datum" type ="DATE" size ="4" default ="" notnull ="false" description="HZB Datum"><comment>Datum des ersten Erwerbs einer Hochschulzulassungsberechtigung</comment></column>
<column name="hzb_jahr" type ="SMALLINT" size ="4" default ="" notnull ="false" description="HZB Jahr"><comment>Jahr des ersten Erwerbs einer Hochschulzulassungsberechtigung</comment></column>
<column name="hzb_type_astat" type ="CHAR" size ="10" default ="" notnull ="false" description="HZB-Art (amtlich)" ><comment>amtlicher Schluessel Art der ersten Hochschulzulassungsberechtigung</comment></column>
<column name="hzb_kreis_astat" type ="INTEGER" size ="255" default ="" notnull ="false" description="HZB-Ort" ><comment>amtlicher Schluessel Kreis des Erwerbs der ersten Hochschulzulassungsberechtigung</comment></column>
<column name="hzb_staat_astat" type ="INTEGER" size ="255" default ="" notnull ="false" description="HZB-Staat" ><comment>amtlicher Schluessel Staat des Erwerbs der ersten Hochschulzulassungsberechtigung</comment></column>
<column name="first_external_semester" type ="INTEGER" size ="2" default ="" notnull ="false" description="Erste externe Einschreibung Semester" />
<column name="first_external_year" type ="INTEGER" size ="2" default ="" notnull ="false" description="Erste externe Einschreibung Jahr" />
<column name="first_external_university_astat" type ="CHAR" size ="10" default ="" notnull ="false" description="Erste externe Einschreibung Hochschulstandort" />
<column name="first_external_country_astat" type ="INTEGER" size ="255" default ="" notnull ="false" description="Erste externe Einschreibung Staat" />
<column name="prev_exam_university_astat" type ="CHAR" size ="10" default ="" notnull ="false" description="Zur Promotion berechtigender Abschluss Hochschulstandort" />
<column name="prev_exam_semester" type ="INTEGER" size ="10" default ="" notnull ="false" description="Zur Promotion berechtigender Abschluss Semester" />
<column name="prev_exam_year" type ="INTEGER" size ="10" default ="" notnull ="false" description="Zur Promotion berechtigender Abschluss Jahr" />
<column name="prev_exam_country_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Zur Promotion berechtigender Abschluss Staat" />
<column name="prev_exam_degree_land" type ="CHAR" size ="10" default ="" notnull ="false" description="Zur Promotion berechtigender Abschluss (Land)" />
<column name="prev_exam_degree_bund" type ="CHAR" size ="10" default ="" notnull ="false" description="Zur Promotion berechtigender Abschluss (Bund)" />
<column name="summe" type ="INTEGER" size ="255" default ="" notnull ="false" description="Summe" ><comment></comment></column>
</columns>
</table>
<views>
</views>
<functions>
</functions>
<themen>
</themen>
<masken>
<maske tid="46000" name="Promotionsvorhaben Datenblatt" thema="Promovierendenstatistik (Erw.)">
<src><path>$PROMSTAT_PFAD/masken</path></src>
</maske>
</masken>
<data-integrity>
<!--promstat_konto_pro_fs -->
<relation from="lm_course_of_study" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="dtxt" format="%s">
<relation-column from="id" to="course_of_study_id" />
</relation>
<relation from="semester" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="eintrag" format="%s">
<relation-column from="tid" to="sem_rueck_beur_ein" />
</relation>
<relation from="kenn_stg_astat" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="dtxt" format="%s">
<relation-column from="astat" to="astat_bund" />
</relation>
<relation from="sos_k_stort" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="astat" to="k_place_of_studies_astat" />
</relation>
<relation from="prom_promovierende" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="nachname" format="%s">
<relation-column from="his_person_id" to="person_id" />
</relation>
<relation from="kenn_hzbart_astat_akt" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="hzb_type_astat" />
</relation>
<relation from="sos_hzb_wohnsitz" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="astat" to="hzb_kreis_astat" />
</relation>
<relation from="sos_hzb_wohnsitz" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="astat" to="hzb_staat_astat" />
</relation>
<relation from="cif" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="staatsangehoerigkeit_1_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cif" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="staatsangehoerigkeit_2_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cifx" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="k_examform_un" />
<relation-column from="key" to="9014" />
</relation>
<relation from="cifx" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="first_external_university_astat" />
<relation-column from="key" to="36" />
</relation>
<relation from="cif" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="first_external_country_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="kenn_abschl_astat" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="dtxt" format="%s">
<relation-column from="astat" to="prev_exam_degree_bund" />
</relation>
<relation from="kenn_abschl_astat" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="dtxt" format="%s">
<relation-column from="astat" to="prev_exam_degree_land" />
</relation>
<relation from="cif" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="prev_exam_country_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cifx" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="druck" format="%s">
<relation-column from="apnr" to="prev_exam_university_astat" />
<relation-column from="key" to="36" />
</relation>
<relation from="semester" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="eintrag" format="%s">
<relation-column from="tid" to="prev_exam_semester" />
</relation>
<!--ungeklärt: <relation from="kenn_abschl_astat" to="promstat_docprogram_aggr" delete="FALSE" displayType="select" visibleFields="dtxt" format="%s">
<relation-column from="astat" to="astat_bund" />
</relation>-->
</data-integrity>
</database>
<install_upgrade_job>
<install-upgrade-step name="pre_upgrade" type="container" id="promstat_preupgrade_containernode">
<action error="stop"/>
</install-upgrade-step>
<install-upgrade-step name="upgrade_tables" type="" id="promstat_upgrade_tables_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/upgrade/promstat_upgrade_tables_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="upgrade_fields" type="" id="promstat_upgrade_fields_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/upgrade/promstat_upgrade_fields_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="upgrade_views" type="" id="promstat_upgrade_views_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/upgrade/promstat_upgrade_views_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="install_functions" type="container" id="promstat_install_functions_containernode">
<action error="stop"/>
</install-upgrade-step>
<install-upgrade-step name="upgrade_indices" type="" id="promstat_upgrade_indices_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/upgrade/promstat_upgrade_indexes_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="fill_tables" type="" id="promstat_fill_tables_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/conf/sx_tables_fuellen.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="fill_fields" type="" id="promstat_fill_fields_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/conf/sx_fields_fuellen.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="fill_unload_parameter" type="" id="promstat_fill_unload_parameter_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/conf/unload_params_fuellen.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="Update Module Metadata" type="container" id="promstat_update_module_metadata_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/conf/module_metadata.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="update_topic_tree" type="" id="promstat_update_topictree_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/upgrade/promstat_upgrade_themenbaum.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="install_masks" type="container" id="promstat_install_masks_containernode">
<action error="stop"/>
</install-upgrade-step>
</install_upgrade_job>
<!-- ********************* Liste der ETL-Prozesse ************************** -->
<etl>
<etl-step name="Upload der LEISTUNG-Modul-Rohdaten" type="load">
</etl-step>
<etl-step name="Transformation" type="trans">
</etl-step>
<etl-step name="Aggregation" type="aggr">
<action>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/hilfstabellen/promstat_docprogram_aggr_fuellen.sql"
database=""/>
</action>
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/datentabellen/vacuum_pg.sql"
database="POSTGRES"/>
</action>
</etl-step>
</etl>
<install>
<install-step name="Installation">
<action>
<nativeaction sql="create table tmp_captions
(
id CHAR(200) ,
table_name CHAR(200) ,
field_name CHAR(200) ,
record_no INTEGER ,
locale CHAR(10) ,
contents_short CHAR(255) ,
contents_long text ,
equalitystatus SMALLINT ,
sachgebiete_id INTEGER,
doku_link character varying(255),
export_to_glossar integer DEFAULT 1
);" scriptfile="" database=""/>
</action>
<action>
<loadtable refresh="true" delimiter="^" header="false" tabname="tmp_captions"><file path="$PROMSTAT_PFAD/schluesseltabellen/promstat_captions.unl"/></loadtable>
</action>
<action>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/promstat_feste_konstanten_fuellen.sql"
database=""/>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/captions_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
</action>
</install-step>
</install>
<upgrade>
<upgrade-step>
<action>
<nativeaction sql="create table tmp_captions
(
id CHAR(200) ,
table_name CHAR(200) ,
field_name CHAR(200) ,
record_no INTEGER ,
locale CHAR(10) ,
contents_short CHAR(255) ,
contents_long text ,
equalitystatus SMALLINT ,
sachgebiete_id INTEGER,
doku_link character varying(255),
export_to_glossar integer DEFAULT 1
);" scriptfile="" database=""/>
</action>
<action>
<loadtable refresh="true" delimiter="^" header="false" tabname="tmp_captions"><file path="$PROMSTAT_PFAD/schluesseltabellen/promstat_captions.unl"/></loadtable>
</action>
<action>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/promstat_feste_konstanten_fuellen.sql"
database=""/>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/captions_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
</action>
</upgrade-step>
</upgrade>
<uninstall-step name="Deinstalliere Schlüssel">
<action error="stop">
<nativeaction sql="" scriptfile="$PROMSTAT_PFAD/schluesseltabellen/promstat_feste_konstanten_entfernen.sql"
database=""/>
<nativeaction sql="delete from sx_repository where sachgebiete_id=350;" scriptfile=""
database=""/>
</action>
</uninstall-step>
<dbforms>
</dbforms>
</module>