Compare commits
No commits in common. 'viz_kern51' and 'master' have entirely different histories.
viz_kern51
...
master
35 changed files with 943 additions and 9013 deletions
@ -1,22 +0,0 @@ |
|||||||
44100^Köpfe oder Fälle ?^-3^0^0^130^150^1^sql^30^1^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle;^hidden^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Köpfe';^ |
|
||||||
44101^Seit Semester^1^0^0^130^80^1^integer^30^1^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^^<<SQL>> select tid,eintrag from semester where today()-(3*365) between sem_beginn and sem_ende;^ |
|
||||||
44102^Fächer^6^0^0^130^200^6^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^^^ |
|
||||||
44103^bis Fachsemester^23^330^-1^130^100^1^integer^30^0^0^^hidden^^ |
|
||||||
44104^Hörerstatus^18^0^0^130^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^hidden^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44105^Stichtag^-2^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44106^Status^11^330^-1^130^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^hidden^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
|
||||||
44107^Bis Semester^3^330^-1^130^100^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44108^Abschluss^5^0^0^130^150^5^char^30^0^1^<<SQL>> select apnr, trim(druck) || ' (' || trim(apnr) || ')' from cifx where key = 35 order by 2;^^^ |
|
||||||
44109^Fachkennz.^16^330^-1^130^150^1^char^30^0^1^<<SQL>> select apnr,druck from sos_k_kzfa order by 2^hidden^^ |
|
||||||
44110^Vertiefung^7^330^-1^130^100^1^char^30^0^1^<<SQL>> select apnr,druck from cifx where key=39 order by 2;^hidden^^ |
|
||||||
44111^ab Fachsemester^22^0^0^130^100^1^integer^30^0^0^^hidden^^ |
|
||||||
44112^Filter Studierende^120^0^0^130^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
|
||||||
44113^Trennen nach^121^330^-1^130^100^1^char^20^0^1^<<SQL>> \ |
|
||||||
select 'Fach' from xdummy where (select count(*) from sos_gewichtungsvariante)=0 \ |
|
||||||
union \ |
|
||||||
select 'Abschluss' from xdummy^hidden^^ |
|
||||||
44114^Studiengang^4^0^0^130^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44115^##line##^13^0^0^100^100^1^char^5000^0^8^^^1^ |
|
||||||
44116^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
|
||||||
44117^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44100 order by 2;^ ^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44100 order by 2 limit 1;^ |
|
||||||
44118^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord limit 1^ |
|
@ -1,19 +0,0 @@ |
|||||||
44100^44100^ |
|
||||||
44100^44101^ |
|
||||||
44100^44102^ |
|
||||||
44100^44103^ |
|
||||||
44100^44104^ |
|
||||||
44100^44105^ |
|
||||||
44100^44106^ |
|
||||||
44100^44107^ |
|
||||||
44100^44108^ |
|
||||||
44100^44109^ |
|
||||||
44100^44110^ |
|
||||||
44100^44111^ |
|
||||||
44100^44112^ |
|
||||||
44100^44113^ |
|
||||||
44100^44114^ |
|
||||||
44100^44115^ |
|
||||||
44100^44116^ |
|
||||||
44100^44117^ |
|
||||||
44100^44118^ |
|
@ -1 +0,0 @@ |
|||||||
44100^Studierende Zeitreihe (VIZ)^<sximport>select select_stmt from maskeninfo where tid=16000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=16000</sximport>^Semester^Anzahl^je Semester mit Geschlechtsangabe und Prozentwert^<sximport>select cleanup_stmt from maskeninfo where tid=16000</sximport>^-leer-^3^700^360^0^1^^ |
|
@ -1 +0,0 @@ |
|||||||
16^44100^ |
|
@ -1,37 +0,0 @@ |
|||||||
44130^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^hidden^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
|
||||||
44131^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44132^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^hidden^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44133^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^^^ |
|
||||||
44134^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^hidden^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
|
||||||
44135^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^hidden^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44136^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('dim_studiengang','dim_staat')\ |
|
||||||
order by 2^hidden^^ |
|
||||||
44137^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^hidden^^ |
|
||||||
44139^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44140^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
|
||||||
44141^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
|
||||||
44142^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\ |
|
||||||
--freemarker template\ |
|
||||||
select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ |
|
||||||
sx_tables T where F.table_name=T.name and F.currentlyused=1\ |
|
||||||
--Pseudonyme eingeschaltet:\ |
|
||||||
and (F.name != 'matrikel_nr' or 0=(select \ |
|
||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ |
|
||||||
and apnr=1)) \ |
|
||||||
and F.table_name in ('sos_stg_aggr','dim_staat','dim_studiengang') \ |
|
||||||
order by 2;^hidden^sos_stg_aggr.alter,sos_stg_aggr.geschlecht,sos_stg_aggr.matrikel_nr,sos_stg_aggr.summe^ |
|
||||||
44143^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44144^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
|
||||||
44145^tablestylesheet^121^0^0^100^200^1^char^200^1^1^<<SQL>> select filename,X.caption,ord from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44130 order by ord^^<<SQL>> select filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44130 and ord=20 order by ord limit 1^ |
|
||||||
44146^Ausgabeformat^2001^0^0^100^150^1^char^200^1^1^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and nature::smallint<100 order by nature::smallint^hidden^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML'^ |
|
||||||
44147^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44130 order by 2;^^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44130 order by 2 limit 1^ |
|
||||||
44148^Jahrgang^42^350^-1^140^180^1^sql^30^0^13^<<SQL>> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^hidden^^ |
|
||||||
44149^Name der Hochschule^15^350^-1^140^80^1^char^255^0^13^<<SQL>> select name from hochschulinfo;^Eintrag^<<SQL>> select name from hochschulinfo;^ |
|
||||||
44150^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 1,'1-spaltig' from xdummy \ |
|
||||||
union SELECT 2,'2-spaltig' from xdummy \ |
|
||||||
union SELECT 3,'3-spaltig' from xdummy \ |
|
||||||
union SELECT 4,'4-spaltig' from xdummy \ |
|
||||||
order by 1;^hidden^<<SQL>> SELECT 1,'1-spaltig' from xdummy^ |
|
||||||
44151^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ |
|
||||||
44152^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^0^^hidden^^ |
|
||||||
44153^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
|
@ -1,23 +0,0 @@ |
|||||||
44130^44130^ |
|
||||||
44130^44131^ |
|
||||||
44130^44132^ |
|
||||||
44130^44133^ |
|
||||||
44130^44134^ |
|
||||||
44130^44135^ |
|
||||||
44130^44136^ |
|
||||||
44130^44137^ |
|
||||||
44130^44139^ |
|
||||||
44130^44140^ |
|
||||||
44130^44141^ |
|
||||||
44130^44142^ |
|
||||||
44130^44143^ |
|
||||||
44130^44144^ |
|
||||||
44130^44145^ |
|
||||||
44130^44146^ |
|
||||||
44130^44147^ |
|
||||||
44130^44148^ |
|
||||||
44130^44149^ |
|
||||||
44130^44150^ |
|
||||||
44130^44151^ |
|
||||||
44130^44152^ |
|
||||||
44130^44153^ |
|
@ -1 +0,0 @@ |
|||||||
44130^Studierende nach Alter (Boxplot)^<sximport>select select_stmt from maskeninfo where tid=160440</sximport>^<sximport>select xil_proplist from maskeninfo where tid=160440</sximport>^Altersgruppe^Anzahl^Altersverteilung der Studierenden als Boxplot^<sximport>select cleanup_stmt from maskeninfo where tid=160440</sximport>^^3^700^360^0^1^ ^ |
|
@ -1 +0,0 @@ |
|||||||
16^44130^ |
|
@ -1,39 +0,0 @@ |
|||||||
44160^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^13^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^hidden^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
|
||||||
44161^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today()-(3*365) between sem_beginn and sem_ende;^ |
|
||||||
44162^Fächer^9^0^0^100^200^6^char^30^0^12^<<SQL>> select tid from sichten where art='Fächer-Sicht' order by sortnr^ ^ ^ |
|
||||||
44163^Staatsangehörigkeit^35^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44164^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44165^Abschluss^12^0^0^100^100^6^char^30^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by druck;^hidden^ ^ |
|
||||||
44166^Weitere Tabellen^123^0^0^140^140^3^char^30^0^1^<<SQL>> \ |
|
||||||
--freemarker template\ |
|
||||||
select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('_xy')\ |
|
||||||
<#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\ |
|
||||||
and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \ |
|
||||||
</#if>\ |
|
||||||
order by 2^hidden^^ |
|
||||||
44167^Geschlecht^75^0^0^140^170^1^integer^4^0^1^<<SQL>> select tid, beschreibung from konstanten where tid in (1,2);^ ^ ^ |
|
||||||
44168^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\ |
|
||||||
--freemarker template\ |
|
||||||
select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ |
|
||||||
sx_tables T where F.table_name=T.name and F.currentlyused=1 \ |
|
||||||
and (F.table_name ='erfolg_ba_ma_uebergang'\ |
|
||||||
/* or F.table_name in (<<Weitere Tabellen>>) */) \ |
|
||||||
and (F.name != 'matrikel_nr' or 0=(select \ |
|
||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ |
|
||||||
and apnr=1))\ |
|
||||||
order by 2;^hidden^erfolg_ba_ma_uebergang.einschr_nachher_abschluss,erfolg_ba_ma_uebergang.summe,erfolg_ba_ma_uebergang.abschluss_vorher_abschluss^ |
|
||||||
44169^Fachebene^28^330^-1^130^100^1^char^30^1^1^<<SQL>> select 'stg','Fach (intern)' from xdummy union\ |
|
||||||
select 'stg_astat','Fach (amtlich)' from xdummy union\ |
|
||||||
select 'lehr','Lehreinheit' from xdummy union\ |
|
||||||
select 'fb','Fakultät' from xdummy union \ |
|
||||||
select 'stg_astgrp','Fächergruppe' from xdummy \ |
|
||||||
order by 1^hidden^<<SQL>> select 'stg','Fach (intern)' from xdummy^ |
|
||||||
44171^Hörerstatus^36^0^0^140^80^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus where apnr like 'hrst%' order by 2^hidden^ ^ |
|
||||||
44172^Richtung^38^0^0^150^190^1^char^30^1^1^<<SQL>>select 'gw','Grundständig zu weiterf.' from xdummy union select 'wg','Weiterf. zu Grundständig' from xdummy order by 1;^hidden^<<SQL>>select 'gw','Grundständig zu weiterf.' from xdummy^ |
|
||||||
44173^Studiengang^15^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
|
||||||
44174^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
|
||||||
44175^tablestylesheet^121^0^0^100^200^1^char^200^1^1^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44160^ ^<<SQL>> select filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44160 order by ord limit 1^ |
|
||||||
44176^Ausgabeformat^2001^0^0^100^150^1^char^200^1^1^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and nature::smallint<100 order by nature::smallint^hidden^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML'^ |
|
||||||
44177^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44160 order by 2;^^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44160 order by 2 limit 1^ |
|
||||||
44178^##line##^30^0^0^100^100^1^char^5000^0^8^^ ^1^ |
|
||||||
44179^##line##^40^0^0^100^100^1^char^5000^0^8^^ ^1^ |
|
@ -1 +0,0 @@ |
|||||||
44160^120^ |
|
@ -1,19 +0,0 @@ |
|||||||
44160^44160^ |
|
||||||
44160^44161^ |
|
||||||
44160^44162^ |
|
||||||
44160^44163^ |
|
||||||
44160^44164^ |
|
||||||
44160^44165^ |
|
||||||
44160^44166^ |
|
||||||
44160^44167^ |
|
||||||
44160^44168^ |
|
||||||
44160^44169^ |
|
||||||
44160^44171^ |
|
||||||
44160^44172^ |
|
||||||
44160^44173^ |
|
||||||
44160^44174^ |
|
||||||
44160^44175^ |
|
||||||
44160^44176^ |
|
||||||
44160^44177^ |
|
||||||
44160^44178^ |
|
||||||
44160^44179^ |
|
@ -1 +0,0 @@ |
|||||||
44160^Übergang Bachelor/Master (Flussdiagramm)^<sximport>select select_stmt from maskeninfo where tid=30190</sximport>^<sximport>select xil_proplist from maskeninfo where tid=30190</sximport>^Altersgruppe^Anzahl^Übergang Bachelor-Master als Flussdiagramm (Sankey)^<sximport>select cleanup_stmt from maskeninfo where tid=30190</sximport>^^3^700^360^^1^^ |
|
@ -1 +0,0 @@ |
|||||||
120^44160^ |
|
@ -1,12 +1,12 @@ |
|||||||
1^bar_x^Balkendiagramm (horizontal)^2^ ^ ^H^ ^^ |
1^bar_x^Balken (horizontal)^2^ ^ ^H^ |
||||||
2^bar_y^Balkendiagramm (vertikal)^2^ ^ ^V^ ^^ |
2^bar_y^Balken (vertikal)^2^ ^ ^V^ |
||||||
3^line^Linien (vertikal)^2^ ^ ^V^ ^^ |
3^line^Linien (vertikal)^2^ ^ ^V^ |
||||||
5^area_y^Flächendiagramm (vertikal)^2^^^V^ ^^ |
5^area_y^Flächen (vertikal)^2^^^V^ |
||||||
6^dot^Punkte (vertikal)^2^^^V^ ^^ |
6^dot^Punkte (vertikal)^2^^^V^ |
||||||
7^box_x^Boxplot (horizontal)^2^ ^ ^H^ ^^ |
7^box_x^Boxplot (horizontal)^2^ ^ ^H^ |
||||||
8^area_x^Flächendiagramm (horizontal)^2^^^H^ ^^ |
8^area_x^Flächen (horizontal)^2^^^H^ |
||||||
9^box_y^Boxplot (vertikal)^2^ ^ ^V^ ^^ |
9^box_y^Boxplot (vertikal)^2^ ^ ^V^ |
||||||
10^text^Wertelabel (vertikal)^2^ ^ ^V^ ^^ |
10^text^Wertelabel^2^ ^ ^^ |
||||||
11^bar_x_d3^Balken (horizontal)^1^^^H^^^ |
11^bar_x_d3^Balken (horizontal)^1^^^H^ |
||||||
12^sankey^Sankey^1^ ^^H^^^ |
12^sankey^Sankey^1^ ^^H^ |
||||||
13^worldmap^Weltkarte^1^ ^^H^^^ |
13^worldmap^Weltkarte^1^ ^^H^ |
||||||
|
@ -1,528 +0,0 @@ |
|||||||
--Freemarker Template |
|
||||||
<#include "SQL_lingua_franca"/> |
|
||||||
<#include "SuperX_general"/> |
|
||||||
|
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="renderer"> |
|
||||||
select tid from viz_renderer where uniquename='d3js'; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
|
|
||||||
<#assign viz_types = [ |
|
||||||
{"uniquename":"sankey", "caption":"Sankey", |
|
||||||
"orientation":"H", |
|
||||||
"description":"Horizontales Sankeydiagramm", |
|
||||||
"explanation":""} |
|
||||||
|
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign viz_properties = [ |
|
||||||
{ "caption":"Dimension 1", |
|
||||||
"prop_uniquename":"dimension1", |
|
||||||
"explanation":"Dimension 1", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"SELECT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"608", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Dimension 2", |
|
||||||
"prop_uniquename":"dimension2", |
|
||||||
"explanation":"Dimension 2", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"SELECT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"609", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
} |
|
||||||
, |
|
||||||
{ "caption":"Maß 1", |
|
||||||
"prop_uniquename":"measure1", |
|
||||||
"explanation":"Maß", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"SELECT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"610", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign viz_type_properties = [ |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"dimension1", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"dimension2", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"measure1", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"20"}, |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"fontSize", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"100"}, |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"fontSize", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"100"}, |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"fontFamily", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"110"}, |
|
||||||
{ "viz_type_uniquename":"sankey", |
|
||||||
"viz_property_uniquename":"color", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"120"} |
|
||||||
|
|
||||||
|
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign viz_type_properties_general = [ |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
|
|
||||||
--ab hier nicht mehr ändern: |
|
||||||
--Die Sortierunmmer ergibt sich aus der Reihenfolge |
|
||||||
--daher hier mit Bedacht ändern: |
|
||||||
|
|
||||||
<@create_temp_tables /> |
|
||||||
|
|
||||||
<@fill_viz_properties /> |
|
||||||
|
|
||||||
<#foreach viz_type in viz_types> |
|
||||||
|
|
||||||
|
|
||||||
<@fill_viz_type_properties viz_type_p=viz_type /> |
|
||||||
|
|
||||||
</#foreach> |
|
||||||
|
|
||||||
<@drop_temp_tables /> |
|
||||||
|
|
||||||
|
|
||||||
<#macro fill_viz_type_properties_general viz_type_p> |
|
||||||
select 'Befülle Grafikelement ${viz_type_p.caption}' from xdummy; |
|
||||||
|
|
||||||
delete from tmp_viz_type; |
|
||||||
|
|
||||||
insert into tmp_viz_type(tid, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation, |
|
||||||
explanation) |
|
||||||
select T.tid, |
|
||||||
'${viz_type_p.uniquename}', |
|
||||||
'${viz_type_p.caption}', |
|
||||||
${renderer}, |
|
||||||
'${viz_type_p.orientation}', |
|
||||||
'${viz_type_p.explanation}' |
|
||||||
from xdummy left outer join viz_type T on ( |
|
||||||
T.uniquename='${viz_type_p.uniquename}' |
|
||||||
and T.renderer_id=${renderer} |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
insert into viz_type( |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation) |
|
||||||
select uniquename, |
|
||||||
caption, |
|
||||||
renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation |
|
||||||
from tmp_viz_type T |
|
||||||
where T.tid is null; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
update viz_type set |
|
||||||
uniquename=T.uniquename, |
|
||||||
caption=T.caption, |
|
||||||
renderer_id=T.renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation=T.orientation, |
|
||||||
explanation=T.explanation |
|
||||||
from tmp_viz_type T |
|
||||||
where T.tid=viz_type.tid |
|
||||||
and viz_type.tid in (select distinct T.tid from tmp_viz_type); |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
delete from viz_type_property |
|
||||||
where (viz_type_id, |
|
||||||
viz_property_id) |
|
||||||
in (select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id |
|
||||||
from tmp_viz_property T,viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer} |
|
||||||
and P.prop_uniquename=T.prop_uniquename |
|
||||||
and T.is_general=1) |
|
||||||
|
|
||||||
; |
|
||||||
|
|
||||||
insert into viz_type_property( |
|
||||||
viz_type_id, |
|
||||||
viz_property_id, |
|
||||||
is_mandatory, |
|
||||||
sortnr) |
|
||||||
select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id, |
|
||||||
P.is_mandatory, |
|
||||||
T.sortnr |
|
||||||
from tmp_viz_property T,viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer} |
|
||||||
and P.prop_uniquename=T.prop_uniquename |
|
||||||
and T.is_general=1; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro fill_viz_type_properties viz_type_p> |
|
||||||
|
|
||||||
<#foreach viz_prop in viz_type_properties> |
|
||||||
<#if viz_prop.viz_type_uniquename==viz_type_p.uniquename > |
|
||||||
|
|
||||||
delete from viz_type_property |
|
||||||
where (viz_type_id, |
|
||||||
viz_property_id) |
|
||||||
in (select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id |
|
||||||
from viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer} |
|
||||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}') ; |
|
||||||
|
|
||||||
|
|
||||||
insert into viz_type_property( |
|
||||||
viz_type_id, |
|
||||||
viz_property_id, |
|
||||||
is_mandatory, |
|
||||||
sortnr) |
|
||||||
select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id, |
|
||||||
${viz_prop.is_mandatory}, |
|
||||||
${viz_prop.sortnr} |
|
||||||
from viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer} |
|
||||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}' |
|
||||||
; |
|
||||||
|
|
||||||
</#if> |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro create_temp_tables> |
|
||||||
CREATE temp TABLE tmp_viz_type |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
renderer_id integer, |
|
||||||
srcpath varchar(255), |
|
||||||
method varchar(255), |
|
||||||
orientation char(1), |
|
||||||
description text, |
|
||||||
explanation text |
|
||||||
); |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_type_property |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
viz_type_id integer, |
|
||||||
viz_property_id integer, |
|
||||||
is_mandatory smallint DEFAULT 0, |
|
||||||
sortnr smallint DEFAULT 0 |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_property_renderer |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
renderer_id integer NOT NULL, |
|
||||||
property_id integer NOT NULL, |
|
||||||
variable_name varchar(255) |
|
||||||
); |
|
||||||
|
|
||||||
create temp table tmp_viz_property_group |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
sortnr integer |
|
||||||
); |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_property_group_renderer |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
renderer_id integer NOT NULL, |
|
||||||
property_group_id integer NOT NULL, |
|
||||||
variable_name varchar(255) |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_property |
|
||||||
( |
|
||||||
tid integer, |
|
||||||
caption varchar(255), |
|
||||||
prop_uniquename varchar(255), |
|
||||||
prop_default varchar(255), |
|
||||||
prop_unit varchar(255), |
|
||||||
is_generic smallint DEFAULT 1, |
|
||||||
static_values text, |
|
||||||
is_mandatory smallint DEFAULT 0, |
|
||||||
input_type_id integer DEFAULT 1, |
|
||||||
input_type_uniquename varchar(255), |
|
||||||
property_group_id integer, |
|
||||||
property_group_uniquename varchar(255), |
|
||||||
explanation text, |
|
||||||
sortnr integer, |
|
||||||
range_from integer, |
|
||||||
range_to integer, |
|
||||||
prop_value_type varchar(255) DEFAULT 'string'::character varying, |
|
||||||
variable_name varchar(255), |
|
||||||
is_general smallint |
|
||||||
); |
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro drop_temp_tables> |
|
||||||
|
|
||||||
drop table tmp_viz_type; |
|
||||||
drop table tmp_viz_property_group; |
|
||||||
drop table tmp_viz_property; |
|
||||||
drop table tmp_viz_type_property; |
|
||||||
drop table tmp_viz_property_renderer; |
|
||||||
drop table tmp_viz_property_group_renderer; |
|
||||||
|
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro fill_viz_properties> |
|
||||||
|
|
||||||
|
|
||||||
<#assign sortnr=0 /> |
|
||||||
<#foreach viz_prop in viz_properties> |
|
||||||
<#assign sortnr=sortnr+100 /> |
|
||||||
insert into tmp_viz_property(tid, |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_uniquename, |
|
||||||
property_group_uniquename, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type, |
|
||||||
variable_name, |
|
||||||
is_general) |
|
||||||
select P.tid, |
|
||||||
'${viz_prop.caption}', |
|
||||||
'${viz_prop.prop_uniquename}', |
|
||||||
'${viz_prop.prop_default}', |
|
||||||
'${viz_prop.prop_unit}', |
|
||||||
${viz_prop.is_generic}, |
|
||||||
'${viz_prop.static_values}', |
|
||||||
${viz_prop.is_mandatory}, |
|
||||||
'${viz_prop.input_type_uniquename}', |
|
||||||
'${viz_prop.property_group_uniquename}', |
|
||||||
'${viz_prop.explanation}', |
|
||||||
${sortnr}, |
|
||||||
val('${viz_prop.range_from}'), |
|
||||||
val('${viz_prop.range_to}'), |
|
||||||
'${viz_prop.prop_value_type}', |
|
||||||
<#if viz_prop.variable_name?exists> |
|
||||||
'${viz_prop.variable_name}', |
|
||||||
<#else> |
|
||||||
'', |
|
||||||
</#if> |
|
||||||
0 as is_general |
|
||||||
from xdummy left outer join viz_property P |
|
||||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
|
||||||
; |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
<#assign sortnr=1000 /> |
|
||||||
<#foreach viz_prop in viz_type_properties_general> |
|
||||||
<#assign sortnr=sortnr+100 /> |
|
||||||
insert into tmp_viz_property(tid, |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_uniquename, |
|
||||||
property_group_uniquename, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type, |
|
||||||
variable_name, |
|
||||||
is_general) |
|
||||||
select P.tid, |
|
||||||
'${viz_prop.caption}', |
|
||||||
'${viz_prop.prop_uniquename}', |
|
||||||
'${viz_prop.prop_default}', |
|
||||||
'${viz_prop.prop_unit}', |
|
||||||
${viz_prop.is_generic}, |
|
||||||
'${viz_prop.static_values}', |
|
||||||
${viz_prop.is_mandatory}, |
|
||||||
'${viz_prop.input_type_uniquename}', |
|
||||||
'${viz_prop.property_group_uniquename}', |
|
||||||
'${viz_prop.explanation}', |
|
||||||
${sortnr}, |
|
||||||
val('${viz_prop.range_from}'), |
|
||||||
val('${viz_prop.range_to}'), |
|
||||||
'${viz_prop.prop_value_type}', |
|
||||||
<#if viz_prop.variable_name?exists> |
|
||||||
'${viz_prop.variable_name}', |
|
||||||
<#else> |
|
||||||
'', |
|
||||||
</#if> |
|
||||||
1 as is_general |
|
||||||
from xdummy left outer join viz_property P |
|
||||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
|
||||||
; |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
update tmp_viz_property set input_type_id=T.tid |
|
||||||
from viz_property_input_type T |
|
||||||
where T.uniquename=tmp_viz_property.input_type_uniquename; |
|
||||||
|
|
||||||
select 'Warnung: Property ohne input_type: ' || prop_uniquename |
|
||||||
from tmp_viz_property |
|
||||||
where input_type_id is null; |
|
||||||
|
|
||||||
|
|
||||||
update tmp_viz_property set property_group_id=T.tid |
|
||||||
from viz_property_group T |
|
||||||
where T.uniquename=tmp_viz_property.property_group_uniquename; |
|
||||||
|
|
||||||
select 'Warnung: Property ohne property_group: ' || prop_uniquename |
|
||||||
from tmp_viz_property |
|
||||||
where property_group_id is null; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--neue Datensätze: |
|
||||||
insert into viz_property( |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_id, |
|
||||||
property_group_id, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type) |
|
||||||
select |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_id, |
|
||||||
property_group_id, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type |
|
||||||
from tmp_viz_property P |
|
||||||
where P.tid is null; |
|
||||||
|
|
||||||
update viz_property |
|
||||||
set caption=T.caption, |
|
||||||
--prop_uniquename, |
|
||||||
prop_default=T.prop_default, |
|
||||||
prop_unit=T.prop_unit, |
|
||||||
is_generic=T.is_generic, |
|
||||||
static_values=T.static_values, |
|
||||||
is_mandatory=T.is_mandatory, |
|
||||||
input_type_id=T.input_type_id, |
|
||||||
property_group_id=T.property_group_id, |
|
||||||
explanation=T.explanation, |
|
||||||
sortnr=T.sortnr, |
|
||||||
range_from=T.range_from, |
|
||||||
range_to=T.range_to, |
|
||||||
prop_value_type=T.prop_value_type |
|
||||||
from tmp_viz_property T |
|
||||||
where T.tid=viz_property.tid |
|
||||||
and viz_property.tid in (select T.tid from tmp_viz_property T); |
|
||||||
|
|
||||||
|
|
||||||
--renderer: |
|
||||||
delete from viz_property_renderer |
|
||||||
where (renderer_id, property_id) |
|
||||||
in (select ${renderer},P.tid |
|
||||||
from tmp_viz_property P); |
|
||||||
|
|
||||||
delete from viz_property_renderer |
|
||||||
where (renderer_id, property_id) |
|
||||||
in (select ${renderer},P.tid |
|
||||||
from tmp_viz_property P); |
|
||||||
|
|
||||||
|
|
||||||
insert into viz_property_renderer( |
|
||||||
renderer_id, |
|
||||||
property_id, |
|
||||||
variable_name) |
|
||||||
select ${renderer}, |
|
||||||
P.tid, |
|
||||||
case when P.variable_name !='' then P.variable_name else P.prop_uniquename end |
|
||||||
from tmp_viz_property P; |
|
||||||
|
|
||||||
</#macro> |
|
@ -1,833 +0,0 @@ |
|||||||
--Freemarker Template |
|
||||||
<#include "SQL_lingua_franca"/> |
|
||||||
<#include "SuperX_general"/> |
|
||||||
|
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="renderer_plot_id"> |
|
||||||
select tid from viz_renderer where uniquename='plot'; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
|
|
||||||
<#assign viz_types = [ |
|
||||||
{"uniquename":"bar_x", "caption":"Balkendiagramm (horizontal)", |
|
||||||
"orientation":"H", |
|
||||||
"description":"Horizontales Balkendiagramm", |
|
||||||
"explanation":""}, |
|
||||||
{"uniquename":"bar_y", "caption":"Balkendiagramm (vertikal)", |
|
||||||
"orientation":"V", |
|
||||||
"description":"Vertikales Balkendiagramm", |
|
||||||
"explanation":""}, |
|
||||||
{"uniquename":"line", "caption":"Linien (vertikal)", |
|
||||||
"orientation":"V", |
|
||||||
"description":"Vertikales Liniendiagramm", |
|
||||||
"explanation":""}, |
|
||||||
{"uniquename":"area_x", "caption":"Flächendiagramm (horizontal)", |
|
||||||
"orientation":"H", |
|
||||||
"description":"Horizontales Flächendiagramm", |
|
||||||
"explanation":""}, |
|
||||||
{"uniquename":"area_y", "caption":"Flächendiagramm (vertikal)", |
|
||||||
"orientation":"V", |
|
||||||
"description":"Vertikales Flächendiagramm", |
|
||||||
"explanation":""}, |
|
||||||
{"uniquename":"dot", "caption":"Punkte (vertikal)", |
|
||||||
"orientation":"V", |
|
||||||
"description":"Vertikales Punktdiagramm", |
|
||||||
"explanation":""}, |
|
||||||
|
|
||||||
{"uniquename":"box_x", "caption":"Boxplot (horizontal)", |
|
||||||
"orientation":"H", |
|
||||||
"description":"Horizontales Boxplot", |
|
||||||
"explanation":""}, |
|
||||||
{"uniquename":"box_y", "caption":"Boxplot (vertikal)", |
|
||||||
"orientation":"V", |
|
||||||
"description":"Vertikales Boxplot", |
|
||||||
"explanation":""}, |
|
||||||
|
|
||||||
{"uniquename":"text", "caption":"Wertelabel (vertikal)", |
|
||||||
"orientation":"V", |
|
||||||
"description":"Wertelabel für vertikales Diagramm", |
|
||||||
"explanation":""} |
|
||||||
|
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign viz_properties = [ |
|
||||||
{ "caption":"X-Achse", |
|
||||||
"prop_uniquename":"x", |
|
||||||
"explanation":"X-Achsendefinition", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Y-Achse", |
|
||||||
"prop_uniquename":"y", |
|
||||||
"explanation":"Y-Achsendefinition", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
} |
|
||||||
, |
|
||||||
{ "caption":"Serien-Dimension", |
|
||||||
"prop_uniquename":"stroke", |
|
||||||
"explanation":"Serien-Dimension zusätzlich zu Achsen", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Beschriftung", |
|
||||||
"prop_uniquename":"text", |
|
||||||
"explanation":"Nur für Grafikelement Wertelabel", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Zusätzl. Sortierung", |
|
||||||
"prop_uniquename":"sortchannel", |
|
||||||
"explanation":"Standardmäßig wird nach den Achsendimensionen alphabetisch aufsteigend sortiert. Wenn Sie nach einem anderen Merkmal sortieren wollen, geben Sie dies hier an (z.B. die Zeilennummer, um die Sortierung der Datentabelle zu nutzen). Nützlich z.B. um Semesternamen zu sortieren.", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"CATEGORY", |
|
||||||
"sortnr":"800", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign viz_type_properties = [ |
|
||||||
{ "viz_type_uniquename":"bar_x", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"bar_x", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
{ "viz_type_uniquename":"bar_x", |
|
||||||
"viz_property_uniquename":"stroke", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"20"}, |
|
||||||
|
|
||||||
{ "viz_type_uniquename":"bar_y", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"bar_y", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
{ "viz_type_uniquename":"bar_y", |
|
||||||
"viz_property_uniquename":"stroke", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"20"}, |
|
||||||
|
|
||||||
{ "viz_type_uniquename":"line", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"line", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
{ "viz_type_uniquename":"line", |
|
||||||
"viz_property_uniquename":"stroke", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"20"}, |
|
||||||
|
|
||||||
{ "viz_type_uniquename":"dot", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"dot", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
{ "viz_type_uniquename":"dot", |
|
||||||
"viz_property_uniquename":"stroke", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"20"}, |
|
||||||
|
|
||||||
{ "viz_type_uniquename":"box_x", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"box_x", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
|
|
||||||
{ "viz_type_uniquename":"box_y", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"box_y", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
|
|
||||||
{ "viz_type_uniquename":"text", |
|
||||||
"viz_property_uniquename":"x", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"1"}, |
|
||||||
{ "viz_type_uniquename":"text", |
|
||||||
"viz_property_uniquename":"y", |
|
||||||
"is_mandatory":"1", |
|
||||||
"sortnr":"10"}, |
|
||||||
{ "viz_type_uniquename":"text", |
|
||||||
"viz_property_uniquename":"stroke", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"20"}, |
|
||||||
{ "viz_type_uniquename":"text", |
|
||||||
"viz_property_uniquename":"text", |
|
||||||
"is_mandatory":"0", |
|
||||||
"sortnr":"30"} |
|
||||||
|
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign viz_type_properties_general = [ |
|
||||||
{ "caption":"Textuelle Beschreibung des Grafikelements", |
|
||||||
"prop_uniquename":"ariaDescription", |
|
||||||
"explanation":"für barrierearme Grafiken", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Strichfarbe", |
|
||||||
"prop_uniquename":"stroke_static", |
|
||||||
"explanation":"Strichfarbe (einfach)", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"COLOR", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
} |
|
||||||
, |
|
||||||
{ "caption":"Flächenfarbe", |
|
||||||
"prop_uniquename":"fill_static", |
|
||||||
"explanation":"Nur für Grafikelemente Flächen und Balken. Füllfarbe.", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"COLOR", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string", |
|
||||||
"variable_name":"fill" |
|
||||||
}, |
|
||||||
{ "caption":"CSS-Klasse", |
|
||||||
"prop_uniquename":"className", |
|
||||||
"explanation":"Klassenname des Grafikelements für CSS-basierte Layouts", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
} |
|
||||||
, |
|
||||||
{ "caption":"CSS-Filter für Bilder", |
|
||||||
"prop_uniquename":"imageFilter", |
|
||||||
"explanation":"z.B. blur(5px)", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Offset (horizontal)", |
|
||||||
"prop_uniquename":"dx", |
|
||||||
"explanation":"Horizontales Offset des Grafikelements in Pixel", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"px", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"LAYOUT", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"integer" |
|
||||||
}, |
|
||||||
{ "caption":"Offset (vertikal)", |
|
||||||
"prop_uniquename":"dy", |
|
||||||
"explanation":"Vertikales Offset des Grafikelements in Pixel", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"px", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"LAYOUT", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"integer" |
|
||||||
}, |
|
||||||
{ "caption":"Deckungsgrad Farbe", |
|
||||||
"prop_uniquename":"fillOpacity", |
|
||||||
"explanation":"Deckungsrad (opacity) zwischen 0 und 1", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"0", |
|
||||||
"range_to":"1", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Deckungsgrad Objekt", |
|
||||||
"prop_uniquename":"opacity", |
|
||||||
"explanation":"Deckungsrad (opacity) des Grafikelements zwischen 0 und 1", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"0", |
|
||||||
"range_to":"1", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
|
|
||||||
{ "caption":"Strichlinie Abstand-Intervalle", |
|
||||||
"prop_uniquename":"strokeDasharray", |
|
||||||
"explanation":"Abstand von Bindestrichen (Komma-separierte Pixel), z.B. [10,5] für 10 und dann 5 Pixel Abstand", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"string" |
|
||||||
}, |
|
||||||
{ "caption":"Strichlinie Breite", |
|
||||||
"prop_uniquename":"strokeWidth", |
|
||||||
"explanation":"Strichbreite in Pixel", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"px", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"TEXT", |
|
||||||
"property_group_uniquename":"STYLE", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"integer" |
|
||||||
} |
|
||||||
, |
|
||||||
{ "caption":"Tooltip einschalten", |
|
||||||
"prop_uniquename":"tip", |
|
||||||
"explanation":"Sollen implizite Tooltips angezeigt werden (true,false)", |
|
||||||
"prop_default":"", |
|
||||||
"prop_unit":"", |
|
||||||
"is_generic":"0", |
|
||||||
"static_values":"true|false", |
|
||||||
"is_mandatory":"0", |
|
||||||
"input_type_uniquename":"SELECT", |
|
||||||
"property_group_uniquename":"LAYOUT", |
|
||||||
"sortnr":"", |
|
||||||
"range_from":"", |
|
||||||
"range_to":"", |
|
||||||
"prop_value_type":"boolean" |
|
||||||
} |
|
||||||
] /> |
|
||||||
|
|
||||||
--ab hier nicht mehr ändern: |
|
||||||
--Die Sortierunmmer ergibt sich aus der Reihenfolge |
|
||||||
--daher hier mit Bedacht ändern: |
|
||||||
|
|
||||||
<@create_temp_tables /> |
|
||||||
|
|
||||||
<@fill_viz_properties /> |
|
||||||
|
|
||||||
<#foreach viz_type in viz_types> |
|
||||||
|
|
||||||
<@fill_viz_type_properties_general viz_type_p=viz_type /> |
|
||||||
|
|
||||||
<@fill_viz_type_properties viz_type_p=viz_type /> |
|
||||||
|
|
||||||
</#foreach> |
|
||||||
|
|
||||||
<@drop_temp_tables /> |
|
||||||
|
|
||||||
|
|
||||||
<#macro fill_viz_type_properties_general viz_type_p> |
|
||||||
select 'Befülle Grafikelement ${viz_type_p.caption}' from xdummy; |
|
||||||
|
|
||||||
delete from tmp_viz_type; |
|
||||||
|
|
||||||
insert into tmp_viz_type(tid, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation, |
|
||||||
explanation) |
|
||||||
select T.tid, |
|
||||||
'${viz_type_p.uniquename}', |
|
||||||
'${viz_type_p.caption}', |
|
||||||
${renderer_plot_id}, |
|
||||||
'${viz_type_p.orientation}', |
|
||||||
'${viz_type_p.explanation}' |
|
||||||
from xdummy left outer join viz_type T on ( |
|
||||||
T.uniquename='${viz_type_p.uniquename}' |
|
||||||
and T.renderer_id=${renderer_plot_id} |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
insert into viz_type( |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation) |
|
||||||
select uniquename, |
|
||||||
caption, |
|
||||||
renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation |
|
||||||
from tmp_viz_type T |
|
||||||
where T.tid is null; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
update viz_type set |
|
||||||
uniquename=T.uniquename, |
|
||||||
caption=T.caption, |
|
||||||
renderer_id=T.renderer_id, |
|
||||||
-- srcpath, |
|
||||||
-- method, |
|
||||||
orientation=T.orientation, |
|
||||||
explanation=T.explanation |
|
||||||
from tmp_viz_type T |
|
||||||
where T.tid=viz_type.tid |
|
||||||
and viz_type.tid in (select distinct T.tid from tmp_viz_type); |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
delete from viz_type_property |
|
||||||
where (viz_type_id, |
|
||||||
viz_property_id) |
|
||||||
in (select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id |
|
||||||
from tmp_viz_property T,viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer_plot_id} |
|
||||||
and P.prop_uniquename=T.prop_uniquename |
|
||||||
and T.is_general=1) |
|
||||||
|
|
||||||
; |
|
||||||
|
|
||||||
insert into viz_type_property( |
|
||||||
viz_type_id, |
|
||||||
viz_property_id, |
|
||||||
is_mandatory, |
|
||||||
sortnr) |
|
||||||
select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id, |
|
||||||
P.is_mandatory, |
|
||||||
T.sortnr |
|
||||||
from tmp_viz_property T,viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer_plot_id} |
|
||||||
and P.prop_uniquename=T.prop_uniquename |
|
||||||
and T.is_general=1; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro fill_viz_type_properties viz_type_p> |
|
||||||
|
|
||||||
<#foreach viz_prop in viz_type_properties> |
|
||||||
<#if viz_prop.viz_type_uniquename==viz_type_p.uniquename > |
|
||||||
|
|
||||||
delete from viz_type_property |
|
||||||
where (viz_type_id, |
|
||||||
viz_property_id) |
|
||||||
in (select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id |
|
||||||
from viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer_plot_id} |
|
||||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}') ; |
|
||||||
|
|
||||||
|
|
||||||
insert into viz_type_property( |
|
||||||
viz_type_id, |
|
||||||
viz_property_id, |
|
||||||
is_mandatory, |
|
||||||
sortnr) |
|
||||||
select Y.tid as viz_type_id, |
|
||||||
P.tid as viz_property_id, |
|
||||||
${viz_prop.is_mandatory}, |
|
||||||
${viz_prop.sortnr} |
|
||||||
from viz_type Y, viz_property P |
|
||||||
where Y.uniquename='${viz_type_p.uniquename}' |
|
||||||
and Y.renderer_id=${renderer_plot_id} |
|
||||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}' |
|
||||||
; |
|
||||||
|
|
||||||
</#if> |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro create_temp_tables> |
|
||||||
CREATE temp TABLE tmp_viz_type |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
renderer_id integer, |
|
||||||
srcpath varchar(255), |
|
||||||
method varchar(255), |
|
||||||
orientation char(1), |
|
||||||
description text, |
|
||||||
explanation text |
|
||||||
); |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_type_property |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
viz_type_id integer, |
|
||||||
viz_property_id integer, |
|
||||||
is_mandatory smallint DEFAULT 0, |
|
||||||
sortnr smallint DEFAULT 0 |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_property_renderer |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
renderer_id integer NOT NULL, |
|
||||||
property_id integer NOT NULL, |
|
||||||
variable_name varchar(255) |
|
||||||
); |
|
||||||
|
|
||||||
create temp table tmp_viz_property_group |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
sortnr integer |
|
||||||
); |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_property_group_renderer |
|
||||||
( |
|
||||||
tid serial NOT NULL, |
|
||||||
renderer_id integer NOT NULL, |
|
||||||
property_group_id integer NOT NULL, |
|
||||||
variable_name varchar(255) |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE temp TABLE tmp_viz_property |
|
||||||
( |
|
||||||
tid integer, |
|
||||||
caption varchar(255), |
|
||||||
prop_uniquename varchar(255), |
|
||||||
prop_default varchar(255), |
|
||||||
prop_unit varchar(255), |
|
||||||
is_generic smallint DEFAULT 1, |
|
||||||
static_values text, |
|
||||||
is_mandatory smallint DEFAULT 0, |
|
||||||
input_type_id integer DEFAULT 1, |
|
||||||
input_type_uniquename varchar(255), |
|
||||||
property_group_id integer, |
|
||||||
property_group_uniquename varchar(255), |
|
||||||
explanation text, |
|
||||||
sortnr integer, |
|
||||||
range_from integer, |
|
||||||
range_to integer, |
|
||||||
prop_value_type varchar(255) DEFAULT 'string'::character varying, |
|
||||||
variable_name varchar(255), |
|
||||||
is_general smallint |
|
||||||
); |
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro drop_temp_tables> |
|
||||||
|
|
||||||
drop table tmp_viz_type; |
|
||||||
drop table tmp_viz_property_group; |
|
||||||
drop table tmp_viz_property; |
|
||||||
drop table tmp_viz_type_property; |
|
||||||
drop table tmp_viz_property_renderer; |
|
||||||
drop table tmp_viz_property_group_renderer; |
|
||||||
|
|
||||||
</#macro> |
|
||||||
|
|
||||||
<#macro fill_viz_properties> |
|
||||||
|
|
||||||
|
|
||||||
<#assign sortnr=0 /> |
|
||||||
<#foreach viz_prop in viz_properties> |
|
||||||
<#assign sortnr=sortnr+100 /> |
|
||||||
insert into tmp_viz_property(tid, |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_uniquename, |
|
||||||
property_group_uniquename, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type, |
|
||||||
variable_name, |
|
||||||
is_general) |
|
||||||
select P.tid, |
|
||||||
'${viz_prop.caption}', |
|
||||||
'${viz_prop.prop_uniquename}', |
|
||||||
'${viz_prop.prop_default}', |
|
||||||
'${viz_prop.prop_unit}', |
|
||||||
${viz_prop.is_generic}, |
|
||||||
'${viz_prop.static_values}', |
|
||||||
${viz_prop.is_mandatory}, |
|
||||||
'${viz_prop.input_type_uniquename}', |
|
||||||
'${viz_prop.property_group_uniquename}', |
|
||||||
'${viz_prop.explanation}', |
|
||||||
${sortnr}, |
|
||||||
val('${viz_prop.range_from}'), |
|
||||||
val('${viz_prop.range_to}'), |
|
||||||
'${viz_prop.prop_value_type}', |
|
||||||
<#if viz_prop.variable_name?exists> |
|
||||||
'${viz_prop.variable_name}', |
|
||||||
<#else> |
|
||||||
'', |
|
||||||
</#if> |
|
||||||
0 as is_general |
|
||||||
from xdummy left outer join viz_property P |
|
||||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
|
||||||
; |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
<#assign sortnr=1000 /> |
|
||||||
<#foreach viz_prop in viz_type_properties_general> |
|
||||||
<#assign sortnr=sortnr+100 /> |
|
||||||
insert into tmp_viz_property(tid, |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_uniquename, |
|
||||||
property_group_uniquename, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type, |
|
||||||
variable_name, |
|
||||||
is_general) |
|
||||||
select P.tid, |
|
||||||
'${viz_prop.caption}', |
|
||||||
'${viz_prop.prop_uniquename}', |
|
||||||
'${viz_prop.prop_default}', |
|
||||||
'${viz_prop.prop_unit}', |
|
||||||
${viz_prop.is_generic}, |
|
||||||
'${viz_prop.static_values}', |
|
||||||
${viz_prop.is_mandatory}, |
|
||||||
'${viz_prop.input_type_uniquename}', |
|
||||||
'${viz_prop.property_group_uniquename}', |
|
||||||
'${viz_prop.explanation}', |
|
||||||
${sortnr}, |
|
||||||
val('${viz_prop.range_from}'), |
|
||||||
val('${viz_prop.range_to}'), |
|
||||||
'${viz_prop.prop_value_type}', |
|
||||||
<#if viz_prop.variable_name?exists> |
|
||||||
'${viz_prop.variable_name}', |
|
||||||
<#else> |
|
||||||
'', |
|
||||||
</#if> |
|
||||||
1 as is_general |
|
||||||
from xdummy left outer join viz_property P |
|
||||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
|
||||||
; |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
update tmp_viz_property set input_type_id=T.tid |
|
||||||
from viz_property_input_type T |
|
||||||
where T.uniquename=tmp_viz_property.input_type_uniquename; |
|
||||||
|
|
||||||
select 'Warnung: Property ohne input_type: ' || prop_uniquename |
|
||||||
from tmp_viz_property |
|
||||||
where input_type_id is null; |
|
||||||
|
|
||||||
|
|
||||||
update tmp_viz_property set property_group_id=T.tid |
|
||||||
from viz_property_group T |
|
||||||
where T.uniquename=tmp_viz_property.property_group_uniquename; |
|
||||||
|
|
||||||
select 'Warnung: Property ohne property_group: ' || prop_uniquename |
|
||||||
from tmp_viz_property |
|
||||||
where property_group_id is null; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--neue Datensätze: |
|
||||||
insert into viz_property( |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_id, |
|
||||||
property_group_id, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type) |
|
||||||
select |
|
||||||
caption, |
|
||||||
prop_uniquename, |
|
||||||
prop_default, |
|
||||||
prop_unit, |
|
||||||
is_generic, |
|
||||||
static_values, |
|
||||||
is_mandatory, |
|
||||||
input_type_id, |
|
||||||
property_group_id, |
|
||||||
explanation, |
|
||||||
sortnr, |
|
||||||
range_from, |
|
||||||
range_to, |
|
||||||
prop_value_type |
|
||||||
from tmp_viz_property P |
|
||||||
where P.tid is null; |
|
||||||
|
|
||||||
update viz_property |
|
||||||
set caption=T.caption, |
|
||||||
--prop_uniquename, |
|
||||||
prop_default=T.prop_default, |
|
||||||
prop_unit=T.prop_unit, |
|
||||||
is_generic=T.is_generic, |
|
||||||
static_values=T.static_values, |
|
||||||
is_mandatory=T.is_mandatory, |
|
||||||
input_type_id=T.input_type_id, |
|
||||||
property_group_id=T.property_group_id, |
|
||||||
explanation=T.explanation, |
|
||||||
sortnr=T.sortnr, |
|
||||||
range_from=T.range_from, |
|
||||||
range_to=T.range_to, |
|
||||||
prop_value_type=T.prop_value_type |
|
||||||
from tmp_viz_property T |
|
||||||
where T.tid=viz_property.tid |
|
||||||
and viz_property.tid in (select T.tid from tmp_viz_property T); |
|
||||||
|
|
||||||
|
|
||||||
--renderer: |
|
||||||
delete from viz_property_renderer |
|
||||||
where (renderer_id, property_id) |
|
||||||
in (select ${renderer_plot_id},P.tid |
|
||||||
from tmp_viz_property P); |
|
||||||
|
|
||||||
delete from viz_property_renderer |
|
||||||
where (renderer_id, property_id) |
|
||||||
in (select ${renderer_plot_id},P.tid |
|
||||||
from tmp_viz_property P); |
|
||||||
|
|
||||||
|
|
||||||
insert into viz_property_renderer( |
|
||||||
renderer_id, |
|
||||||
property_id, |
|
||||||
variable_name) |
|
||||||
select ${renderer_plot_id}, |
|
||||||
P.tid, |
|
||||||
case when P.variable_name !='' then P.variable_name else P.prop_uniquename end |
|
||||||
from tmp_viz_property P; |
|
||||||
|
|
||||||
</#macro> |
|
File diff suppressed because it is too large
Load Diff
@ -1,248 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<xsl:stylesheet version="1.0" |
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util.HtmlUtils"> |
|
||||||
<xsl:import href="resultset_html.xsl" /> |
|
||||||
<xsl:import href="interLinks_html.xsl" /> |
|
||||||
<xsl:import href="nd_templates.xsl" /> |
|
||||||
<xsl:import href="pageComponents_html.xsl" /> |
|
||||||
<xsl:import href="viz_components.xsl" /> |
|
||||||
<!--In diesem Stylesheet können Sie individuelle templates unterbringen, |
|
||||||
die in ihrer Präzedenz das normale Stylesheet |
|
||||||
pageComponents_html.xsl überragt. --> |
|
||||||
<xsl:import href="pageComponents_html_final.xsl" /> |
|
||||||
|
|
||||||
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," /> |
|
||||||
|
|
||||||
<!-- wichtig für DOJO!--> |
|
||||||
<xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
||||||
doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="UTF-8"/> |
|
||||||
|
|
||||||
<xsl:variable name="colon"><xsl:text>'</xsl:text></xsl:variable> |
|
||||||
<xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable> |
|
||||||
|
|
||||||
<xsl:variable name="defaultRenderer" select="'plot'" /> |
|
||||||
<xsl:variable name="availableRendererPlot" select="'true'" /> |
|
||||||
<xsl:variable name="availableRendererD3" select="'true'" /> |
|
||||||
|
|
||||||
<xsl:template match="/"> |
|
||||||
<xsl:variable name="maskenname"> |
|
||||||
<xsl:choose> |
|
||||||
<xsl:when test="/ergebnisse/@isMakro='true'"> |
|
||||||
<xsl:value-of select="/ergebnisse/makro/name" /> |
|
||||||
</xsl:when> |
|
||||||
<xsl:otherwise> |
|
||||||
<xsl:value-of select="/ergebnisse/ergebnis/maskenname" /> |
|
||||||
</xsl:otherwise> |
|
||||||
</xsl:choose> |
|
||||||
</xsl:variable> |
|
||||||
<html> |
|
||||||
<head> |
|
||||||
<xsl:call-template name="nd_htmlhead"> |
|
||||||
<xsl:with-param name="title" select="concat('Tabelle ',$maskenname)" /> |
|
||||||
</xsl:call-template> |
|
||||||
|
|
||||||
<link rel="stylesheet" href="../style/sx_tabelle.css" /> |
|
||||||
<!--<link rel="stylesheet" href="../style/superx.css" />--> |
|
||||||
|
|
||||||
</head> |
|
||||||
<xsl:call-template name="nd_htmlscript" /> |
|
||||||
<xsl:call-template name="nd_tableJavascript" /> |
|
||||||
<xsl:call-template name="nd_tableCSS" /> |
|
||||||
<xsl:call-template name="importVizJavascriptLibsViewer"></xsl:call-template> |
|
||||||
|
|
||||||
<body class="has-navbar-fixed-top" onload="document.getElementById('progressbar').style.display='none';initPage();"> |
|
||||||
<!--#Template Beginn Top-Navigation--> |
|
||||||
<xsl:call-template name="nd_navi_top" /> |
|
||||||
<!--#Template Ende Top-Navigation--> |
|
||||||
|
|
||||||
<div class="columns"> |
|
||||||
|
|
||||||
<!--#Template Beginn Navigations-Panel Auswertungen--> |
|
||||||
<xsl:if test="/ergebnisse/@showNavigation='true' and 1=0"><!-- erstmal kein Panel,weil der Asssistent schon recht breit ist --> |
|
||||||
<xsl:for-each select="/ergebnisse"> |
|
||||||
<xsl:call-template name="nd_navi_panel" /> |
|
||||||
</xsl:for-each> |
|
||||||
</xsl:if> |
|
||||||
<!--#Template Ende Navigations-Panel Auswertungen--> |
|
||||||
|
|
||||||
<!--Beginn Seitentitel, Krümelpfad, Knopfleiste, Legende, Erläuterung--> |
|
||||||
<section class="hero-body"> |
|
||||||
<div class="container"> |
|
||||||
<div class="columns is-mobile is-left"> |
|
||||||
<div class="column is-full"> |
|
||||||
<div class="card "> |
|
||||||
<div class="card-content"> |
|
||||||
|
|
||||||
<xsl:call-template name="nd_progressbar" /> |
|
||||||
|
|
||||||
<xsl:call-template name="viz_viewer_columnwise"/> |
|
||||||
<xsl:call-template name="bottombar" /> |
|
||||||
<xsl:comment>customfooter</xsl:comment> |
|
||||||
</div> <!--Ende content --> |
|
||||||
</div> <!--Ende card-content--> |
|
||||||
</div> <!--Ende card-background --> |
|
||||||
</div> <!--Ende column--> |
|
||||||
</div> <!--Ende hero-columns--> |
|
||||||
|
|
||||||
</section> <!--Ende hero = Berichts-Card--> |
|
||||||
</div> <!--Ende site-columns--> |
|
||||||
<xsl:call-template name="modalCards" /> |
|
||||||
</body> |
|
||||||
<!-- end body --> |
|
||||||
</html> |
|
||||||
</xsl:template> |
|
||||||
<!-- end main --> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<xsl:template name="viz_viewer_columnwise"> |
|
||||||
<xsl:if test="/ergebnisse/@isMakro='true'"> |
|
||||||
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1> |
|
||||||
</xsl:if> |
|
||||||
<p></p> |
|
||||||
<xsl:call-template name="buildVizMetadata" /> |
|
||||||
|
|
||||||
<!-- end Kopf--> |
|
||||||
<!-- start Grafiken--> |
|
||||||
<!-- Berechne den Umbruch der Spalten für die Kacheln |
|
||||||
z.B. 6 Grafiken ergibt einen Umbruch nach der 3. Teiltabelle |
|
||||||
Formel: ANZ / 2 kaufm. gerundet |
|
||||||
--> |
|
||||||
<xsl:variable name="spalten_anz"> |
|
||||||
<xsl:value-of select="max(number(/ergebnisse/ergebnis/felder/feld[@varname='Spaltenanzahl']/value))"/> |
|
||||||
</xsl:variable> |
|
||||||
<xsl:variable name="colwidth"> |
|
||||||
<xsl:value-of select="12 div $spalten_anz"/> |
|
||||||
</xsl:variable> |
|
||||||
|
|
||||||
<xsl:variable name="ergebniselemente_anz"> |
|
||||||
<xsl:value-of select="count(/ergebnisse/ergebnis[felder/feld[@varname='Grafik']])"/> |
|
||||||
</xsl:variable> |
|
||||||
<xsl:variable name="ergebniselemente_umbruch"> |
|
||||||
<xsl:value-of select="round($ergebniselemente_anz div max(number(/ergebnisse/ergebnis/felder/feld[@varname='Spaltenanzahl']/value)))"/> |
|
||||||
</xsl:variable> |
|
||||||
<!--<p>plan: <xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Spaltenanzahl']/value"/> |
|
||||||
</p>--> |
|
||||||
<span class="separator"> </span> |
|
||||||
<!--Beginn Selektions-Card--> |
|
||||||
<!--Beginn Berichtstitel, Pfad, Knopfleiste--> |
|
||||||
<section class="hero-body has-background-light"> |
|
||||||
<section class="container"> <!--Beginn Kartenreihe --> |
|
||||||
<div class="columns features is-mobile is-left"> <!--Beginn columns Kartenreihe --> |
|
||||||
|
|
||||||
<xsl:for-each select="ergebnisse/ergebnis[felder/feld[@varname='Grafik']/value!='']/ergebniselement"> |
|
||||||
<xsl:variable name="ergebniselement_counter" select="position()" /> |
|
||||||
<xsl:variable name="chart_id"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
|
||||||
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
|
||||||
|
|
||||||
|
|
||||||
<!--<p><xsl:value-of select="concat('Zähler: ',$ergebniselement_counter)"/></p>--> |
|
||||||
<div> |
|
||||||
<xsl:attribute name="class"><xsl:text>column is-</xsl:text><xsl:value-of select="$colwidth"/></xsl:attribute> |
|
||||||
<xsl:call-template name="viewer_kachel"> |
|
||||||
<xsl:with-param name="caption" select="viz_charts/viz_chart[@tid=$chart_id]/@caption"/> |
|
||||||
<xsl:with-param name="ergebniselement_ordnr" select="$ergebniselement_ordnr" /> |
|
||||||
</xsl:call-template> |
|
||||||
<!--<p><xsl:value-of select="concat($spalten_anz,'-',$ergebniselement_counter,':',$ergebniselement_counter mod $spalten_anz)"/></p>--> |
|
||||||
</div> |
|
||||||
<!-- neue Zeile wenn counter mod Spaltenanz. =0 --> |
|
||||||
|
|
||||||
<xsl:if test="$ergebniselement_counter >= $spalten_anz and ($ergebniselement_counter mod $spalten_anz) =0"> |
|
||||||
<xsl:text disable-output-escaping="yes"><![CDATA[ |
|
||||||
</div> |
|
||||||
</section> |
|
||||||
<section class="container"> |
|
||||||
<div class="columns features is-mobile is-left"> |
|
||||||
]]></xsl:text> |
|
||||||
</xsl:if> |
|
||||||
</xsl:for-each> |
|
||||||
</div><!-- der columns --> |
|
||||||
</section><!-- der letzten Kartenreihe --> |
|
||||||
</section><!-- des Portals --> |
|
||||||
</xsl:template> |
|
||||||
<!--<xsl:template name="viewer_kachel"> |
|
||||||
<xsl:param name="caption" /> |
|
||||||
<xsl:param name="ergebniselement_ordnr" /> |
|
||||||
<div class="card is-shady"> |
|
||||||
<div class="card-image"> |
|
||||||
<div id="{concat('chartDiv',$ergebniselement_ordnr)}"> |
|
||||||
Platzhalter |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<p> |
|
||||||
<a onClick="{concat('javascript:openModalImage(',$ergebniselement_ordnr,');')}"> |
|
||||||
<span class="button is-success is-small modal-button">Vergrößern ...</span></a> |
|
||||||
|
|
||||||
<a onClick="{concat('javascript:openModalCardDetail(',$ergebniselement_ordnr,');')}"> |
|
||||||
<span class="button is-link is-small modal-button">Mehr Infos ...</span></a> |
|
||||||
|
|
||||||
</p> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</xsl:template>--> |
|
||||||
<xsl:template name="importVizJavascriptLibsViewer"> |
|
||||||
<script language="Javascript" type="text/javascript" src="../xml/js/jquery-2.1.1.min.js" /> |
|
||||||
<script language="JavaScript" type="text/javascript" src="../xml/js/memtext/sx_functions.js"></script> |
|
||||||
<xsl:call-template name="tableJavascript_viz" /> |
|
||||||
<script language="Javascript" type="text/javascript"> |
|
||||||
<xsl:text><![CDATA[ |
|
||||||
|
|
||||||
function initPage() |
|
||||||
{ |
|
||||||
var myChartModelStr=""; |
|
||||||
var myDiv=""; |
|
||||||
]]></xsl:text> |
|
||||||
<xsl:for-each select="ergebnisse"> |
|
||||||
<xsl:for-each select="ergebnis/ergebniselement"> |
|
||||||
<xsl:variable name="chart_id"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
|
||||||
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
|
||||||
<xsl:if test="$chart_id != ''"> |
|
||||||
<xsl:text><![CDATA[ |
|
||||||
myChartModelStr=']]></xsl:text> |
|
||||||
<xsl:value-of select="translate(viz_charts/viz_chart[@tid=$chart_id]/@chartmodel,'§',$quote)" /> |
|
||||||
<xsl:text><![CDATA['; |
|
||||||
myDiv="]]></xsl:text> |
|
||||||
<xsl:value-of select="concat('chartDiv',$ergebniselement_ordnr)" /> |
|
||||||
<xsl:text><![CDATA["; |
|
||||||
createViewer(myChartModelStr,myDiv); |
|
||||||
myDiv="]]></xsl:text> |
|
||||||
<xsl:value-of select="concat('modalCardImage',$ergebniselement_ordnr)" /> |
|
||||||
<xsl:text><![CDATA["; |
|
||||||
createViewer(myChartModelStr,myDiv); |
|
||||||
myDiv="]]></xsl:text> |
|
||||||
<xsl:value-of select="concat('modalCardDetailImage',$ergebniselement_ordnr)" /> |
|
||||||
<xsl:text><![CDATA["; |
|
||||||
createViewer(myChartModelStr,myDiv); |
|
||||||
|
|
||||||
]]></xsl:text> |
|
||||||
</xsl:if> |
|
||||||
</xsl:for-each> |
|
||||||
</xsl:for-each> |
|
||||||
<xsl:text><![CDATA[ |
|
||||||
} |
|
||||||
|
|
||||||
function createViewer(myChartModelStr,chartDiv) |
|
||||||
{ |
|
||||||
myChartModel=JSON.parse(myChartModelStr); |
|
||||||
renderChart(chartDiv,myChartModel); |
|
||||||
} |
|
||||||
|
|
||||||
function toggleLegendeDisplay(legendeDiv) |
|
||||||
{ |
|
||||||
var myDiv=document.getElementById(legendeDiv); |
|
||||||
if(myDiv.style.display=="block") |
|
||||||
myDiv.style.display="none"; |
|
||||||
else |
|
||||||
myDiv.style.display="block"; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
]]></xsl:text> |
|
||||||
</script> |
|
||||||
|
|
||||||
</xsl:template> |
|
||||||
</xsl:stylesheet> |
|
@ -1,235 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<xsl:stylesheet version="1.0" |
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util.HtmlUtils"> |
|
||||||
<xsl:import href="resultset_html.xsl" /> |
|
||||||
<xsl:import href="interLinks_html.xsl" /> |
|
||||||
<xsl:import href="nd_templates.xsl" /> |
|
||||||
<xsl:import href="pageComponents_html.xsl" /> |
|
||||||
<xsl:import href="viz_components.xsl" /> |
|
||||||
<!--In diesem Stylesheet können Sie individuelle templates unterbringen, |
|
||||||
die in ihrer Präzedenz das normale Stylesheet |
|
||||||
pageComponents_html.xsl überragt. --> |
|
||||||
<xsl:import href="pageComponents_html_final.xsl" /> |
|
||||||
|
|
||||||
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," /> |
|
||||||
|
|
||||||
<!-- wichtig für DOJO!--> |
|
||||||
<xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
||||||
doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="UTF-8"/> |
|
||||||
|
|
||||||
<xsl:variable name="colon"><xsl:text>'</xsl:text></xsl:variable> |
|
||||||
<xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable> |
|
||||||
<xsl:variable name="colwidth"><xsl:text>is-full</xsl:text></xsl:variable> |
|
||||||
|
|
||||||
<xsl:variable name="defaultRenderer" select="'plot'" /> |
|
||||||
<xsl:variable name="availableRendererPlot" select="'true'" /> |
|
||||||
<xsl:variable name="availableRendererD3" select="'true'" /> |
|
||||||
|
|
||||||
<xsl:template match="/"> |
|
||||||
<xsl:variable name="maskenname"> |
|
||||||
<xsl:choose> |
|
||||||
<xsl:when test="/ergebnisse/@isMakro='true'"> |
|
||||||
<xsl:value-of select="/ergebnisse/makro/name" /> |
|
||||||
</xsl:when> |
|
||||||
<xsl:otherwise> |
|
||||||
<xsl:value-of select="/ergebnisse/ergebnis/maskenname" /> |
|
||||||
</xsl:otherwise> |
|
||||||
</xsl:choose> |
|
||||||
</xsl:variable> |
|
||||||
<html> |
|
||||||
<head> |
|
||||||
<xsl:call-template name="nd_htmlhead"> |
|
||||||
<xsl:with-param name="title" select="concat('Tabelle ',$maskenname)" /> |
|
||||||
</xsl:call-template> |
|
||||||
|
|
||||||
<link rel="stylesheet" href="../style/sx_tabelle.css" /> |
|
||||||
<!--<link rel="stylesheet" href="../style/superx.css" />--> |
|
||||||
|
|
||||||
</head> |
|
||||||
<xsl:call-template name="nd_htmlscript" /> |
|
||||||
<xsl:call-template name="nd_tableJavascript" /> |
|
||||||
<xsl:call-template name="nd_tableCSS" /> |
|
||||||
<xsl:call-template name="importVizJavascriptLibsViewer"></xsl:call-template> |
|
||||||
<xsl:call-template name="tableMaskenfelderJS" /> |
|
||||||
|
|
||||||
<body class="has-navbar-fixed-top" onload="document.getElementById('progressbar').style.display='none';initPage();"> |
|
||||||
<!--#Template Beginn Top-Navigation--> |
|
||||||
<xsl:call-template name="nd_navi_top" /> |
|
||||||
<!--#Template Ende Top-Navigation--> |
|
||||||
|
|
||||||
<div class="columns"> |
|
||||||
|
|
||||||
<!--#Template Beginn Navigations-Panel Auswertungen--> |
|
||||||
<xsl:if test="/ergebnisse/@showNavigation='true' and 1=0"><!-- erstmal kein Panel,weil der Asssistent schon recht breit ist --> |
|
||||||
<xsl:for-each select="/ergebnisse"> |
|
||||||
<!--kein Navi Panel bei Maskenfeldern <xsl:call-template name="nd_navi_panel" />--> |
|
||||||
</xsl:for-each> |
|
||||||
</xsl:if> |
|
||||||
<!--#Template Ende Navigations-Panel Auswertungen--> |
|
||||||
|
|
||||||
<!--Beginn Seitentitel, Krümelpfad, Knopfleiste, Legende, Erläuterung--> |
|
||||||
<section class="hero-body"> |
|
||||||
<div class="container"> |
|
||||||
<div class="columns is-mobile is-left"> |
|
||||||
<div class="column is-two-thirds"> |
|
||||||
<div class="card "> |
|
||||||
<div class="card-content"> |
|
||||||
|
|
||||||
<xsl:call-template name="nd_progressbar" /> |
|
||||||
|
|
||||||
<xsl:call-template name="viz_viewer"/> |
|
||||||
<xsl:call-template name="bottombar" /> |
|
||||||
<xsl:comment>customfooter</xsl:comment> |
|
||||||
</div> <!--Ende content --> |
|
||||||
</div> <!--Ende card-content--> |
|
||||||
</div> <!--Ende card-background --> |
|
||||||
|
|
||||||
<div class="column"> |
|
||||||
<xsl:if test="count(/ergebnisse/ergebnis[@ordnr='0']/completefields/feld[@art='1']) > 0"> |
|
||||||
<xsl:call-template name="renderTableDialogs" /> |
|
||||||
</xsl:if> |
|
||||||
</div> |
|
||||||
</div> <!--Ende column--> |
|
||||||
</div> <!--Ende hero-columns--> |
|
||||||
|
|
||||||
</section> <!--Ende hero = Berichts-Card--> |
|
||||||
</div> <!--Ende site-columns--> |
|
||||||
<xsl:call-template name="modalCards" /> |
|
||||||
</body> |
|
||||||
<!-- end body --> |
|
||||||
</html> |
|
||||||
</xsl:template> |
|
||||||
<!-- end main --> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<xsl:template name="viz_viewer"> |
|
||||||
<xsl:param name="show_maskenfelder" select="'true'" /> |
|
||||||
<xsl:if test="/ergebnisse/@isMakro='true'"> |
|
||||||
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1> |
|
||||||
</xsl:if> |
|
||||||
<p></p> |
|
||||||
<xsl:call-template name="buildVizMetadata" /> |
|
||||||
|
|
||||||
<!-- end Kopf--> |
|
||||||
<!-- start Grafiken--> |
|
||||||
<!-- Berechne den Umbruch der Spalten für die Kacheln |
|
||||||
z.B. 6 Grafiken ergibt einen Umbruch nach der 3. Teiltabelle |
|
||||||
Formel: ANZ / 2 kaufm. gerundet |
|
||||||
--> |
|
||||||
<span class="separator"> </span> |
|
||||||
<!--Beginn Selektions-Card--> |
|
||||||
<!--Beginn Berichtstitel, Pfad, Knopfleiste--> |
|
||||||
<section class="hero-body has-background-light"> |
|
||||||
<section class="container"> <!--Beginn Kartenreihe --> |
|
||||||
<div class="columns features is-mobile is-left"> <!--Beginn columns Kartenreihe --> |
|
||||||
|
|
||||||
<xsl:for-each select="/ergebnisse/ergebnis[felder/feld[@varname='Grafik']/value!='']/ergebniselement"> |
|
||||||
<xsl:variable name="ergebniselement_counter" select="position()" /> |
|
||||||
<xsl:variable name="chart_id"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
|
||||||
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
|
||||||
|
|
||||||
|
|
||||||
<!--<p><xsl:value-of select="concat('Zähler: ',$ergebniselement_counter)"/></p>--> |
|
||||||
<div> |
|
||||||
<xsl:attribute name="class"><xsl:text>column is-</xsl:text><xsl:value-of select="$colwidth"/></xsl:attribute> |
|
||||||
<xsl:call-template name="viewer_kachel"> |
|
||||||
<xsl:with-param name="caption" select="viz_charts/viz_chart[@tid=$chart_id]/@caption"/> |
|
||||||
<xsl:with-param name="ergebniselement_ordnr" select="$ergebniselement_ordnr" /> |
|
||||||
</xsl:call-template> |
|
||||||
<!--<p><xsl:value-of select="concat($spalten_anz,'-',$ergebniselement_counter,':',$ergebniselement_counter mod $spalten_anz)"/></p>--> |
|
||||||
</div> |
|
||||||
<!-- neue Zeile wenn counter mod Spaltenanz. =0 --> |
|
||||||
|
|
||||||
|
|
||||||
</xsl:for-each> |
|
||||||
</div><!-- der columns --> |
|
||||||
</section><!-- der letzten Kartenreihe --> |
|
||||||
</section><!-- des Portals --> |
|
||||||
</xsl:template> |
|
||||||
<!--<xsl:template name="viewer_kachel"> |
|
||||||
<xsl:param name="caption" /> |
|
||||||
<xsl:param name="ergebniselement_ordnr" /> |
|
||||||
<div class="card is-shady"> |
|
||||||
<div class="card-image"> |
|
||||||
<div id="{concat('chartDiv',$ergebniselement_ordnr)}"> |
|
||||||
Platzhalter |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<p> |
|
||||||
<a onClick="{concat('javascript:openModalImage(',$ergebniselement_ordnr,');')}"> |
|
||||||
<span class="button is-success is-small modal-button">Vergrößern ...</span></a> |
|
||||||
|
|
||||||
<a onClick="{concat('javascript:openModalCardDetail(',$ergebniselement_ordnr,');')}"> |
|
||||||
<span class="button is-link is-small modal-button">Mehr Infos ...</span></a> |
|
||||||
|
|
||||||
</p> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</xsl:template>--> |
|
||||||
<xsl:template name="importVizJavascriptLibsViewer"> |
|
||||||
<script language="Javascript" type="text/javascript" src="../xml/js/jquery-2.1.1.min.js" /> |
|
||||||
<script language="JavaScript" type="text/javascript" src="../xml/js/memtext/sx_functions.js"></script> |
|
||||||
<xsl:call-template name="tableJavascript_viz" /> |
|
||||||
<script language="Javascript" type="text/javascript"> |
|
||||||
<xsl:text><![CDATA[ |
|
||||||
|
|
||||||
function initPage() |
|
||||||
{ |
|
||||||
var myChartModelStr=""; |
|
||||||
var myDiv=""; |
|
||||||
]]></xsl:text> |
|
||||||
<xsl:for-each select="ergebnisse"> |
|
||||||
<xsl:for-each select="ergebnis/ergebniselement"> |
|
||||||
<xsl:variable name="chart_id"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
|
||||||
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
|
||||||
<xsl:if test="$chart_id != ''"> |
|
||||||
<xsl:text><![CDATA[ |
|
||||||
myChartModelStr=']]></xsl:text> |
|
||||||
<xsl:value-of select="translate(viz_charts/viz_chart[@tid=$chart_id]/@chartmodel,'§',$quote)" /> |
|
||||||
<xsl:text><![CDATA['; |
|
||||||
myDiv="]]></xsl:text> |
|
||||||
<xsl:value-of select="concat('chartDiv',$ergebniselement_ordnr)" /> |
|
||||||
<xsl:text><![CDATA["; |
|
||||||
createViewer(myChartModelStr,myDiv); |
|
||||||
myDiv="]]></xsl:text> |
|
||||||
<xsl:value-of select="concat('modalCardImage',$ergebniselement_ordnr)" /> |
|
||||||
<xsl:text><![CDATA["; |
|
||||||
createViewer(myChartModelStr,myDiv); |
|
||||||
myDiv="]]></xsl:text> |
|
||||||
<xsl:value-of select="concat('modalCardDetailImage',$ergebniselement_ordnr)" /> |
|
||||||
<xsl:text><![CDATA["; |
|
||||||
createViewer(myChartModelStr,myDiv); |
|
||||||
|
|
||||||
]]></xsl:text> |
|
||||||
</xsl:if> |
|
||||||
</xsl:for-each> |
|
||||||
</xsl:for-each> |
|
||||||
<xsl:text><![CDATA[ |
|
||||||
} |
|
||||||
|
|
||||||
function createViewer(myChartModelStr,chartDiv) |
|
||||||
{ |
|
||||||
myChartModel=JSON.parse(myChartModelStr); |
|
||||||
renderChart(chartDiv,myChartModel); |
|
||||||
} |
|
||||||
|
|
||||||
function toggleLegendeDisplay(legendeDiv) |
|
||||||
{ |
|
||||||
var myDiv=document.getElementById(legendeDiv); |
|
||||||
if(myDiv.style.display=="block") |
|
||||||
myDiv.style.display="none"; |
|
||||||
else |
|
||||||
myDiv.style.display="block"; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
]]></xsl:text> |
|
||||||
</script> |
|
||||||
|
|
||||||
</xsl:template> |
|
||||||
</xsl:stylesheet> |
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue