Browse Source

VIZ Sparklines und -bars #7

viz_worldmap
Daniel Quathamer 12 months ago
parent
commit
34db5db154
  1. 72
      superx/xml/tabelle_html_viz.xsl
  2. 1115
      superx/xml/tabelle_html_viz_cockpit.xsl
  3. 3
      superx/xml/viz_components.xsl
  4. 119
      superx/xml/viz_tableComponents.xsl

72
superx/xml/tabelle_html_viz.xsl

@ -80,6 +80,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -80,6 +80,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
</script>
]]></xsl:text>
<xsl:call-template name="tableJavascript"></xsl:call-template>
<xsl:call-template name="buildVizMetadata" />
<xsl:call-template name="initVizChartsJS" />
@ -91,12 +92,12 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -91,12 +92,12 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
<div id="progressbar" style="position:absolute; width:150px; height:150px; left:200px; top:200px; background:#AAAAAA">
<p>&#160;<b>Laden...</b><br/><img src="/superx/images/progress_bar.gif"></img><br/></p></div>
<!--
<xsl:if test="/ergebnisse/@showNavigation='true'">
<xsl:for-each select="/ergebnisse/menue">
<xsl:call-template name="menuFrame" />
</xsl:for-each>
</xsl:if>-->
</xsl:if>
<div>
<xsl:if test="/ergebnisse/@showNavigation='true'">
<xsl:attribute name="class"><xsl:text>page-wrap</xsl:text></xsl:attribute>
@ -105,9 +106,9 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -105,9 +106,9 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
</xsl:for-each>
</xsl:if>
<div style="padding-left:20px">
<div>
<xsl:if test="/ergebnisse/@showNavigation='true'">
<xsl:attribute name="id"><xsl:text>wrapperCockpit</xsl:text></xsl:attribute>
<xsl:attribute name="id"><xsl:text>wrapper</xsl:text></xsl:attribute>
</xsl:if>
<xsl:call-template name="customheader"/> <!--Standard in pageCompnents.xsl wird ggfs. direkt vom Servlet ersetzt!!-->
<xsl:call-template name="topbar_table" /> <!-- momentan nur in pageCompnents_final fuer h1 gefullet -->
@ -233,7 +234,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -233,7 +234,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_post_title'"></xsl:with-param></xsl:call-template>
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_post_title'"></xsl:with-param></xsl:call-template>
<!--<xsl:call-template name="legende" />-->
<xsl:call-template name="legende" />
<xsl:if test="/ergebnisse/@isMakro!='true' and /ergebnisse/ergebnis/ergebniselement/sqlerg/@istreetable!='true' and /ergebnisse/ergebnis/ergebniselement/sqlerg/@max &gt; 19">
<xsl:call-template name="navigationsmenue" />
</xsl:if>
@ -591,7 +592,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -591,7 +592,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
</xsl:template>
<xsl:template name="legende">
<xsl:param name="ergebniselement_ordnr" select="0" />
<xsl:param name="ergebniselement_ordnr" select="0" /><!--
<h3>Legende</h3>
<p>
<xsl:for-each select="/ergebnisse/ergebnis [@ordnr=$ergebniselement_ordnr]/felder/feld">
@ -643,15 +644,14 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -643,15 +644,14 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
</p>
<xsl:if test="../hinweis != ''">
<p>
<!-- 11.3.09 MB -->
<xsl:call-template name="newline_to_br">
<xsl:with-param name="string" select="../hinweis" />
</xsl:call-template>
</p>
</xsl:if>
<!--<xsl:choose>
-->
<xsl:choose>
<xsl:when test="/*/@hisinone_active='true'">
<xsl:call-template name="legende_hisinone" />
</xsl:when>
@ -659,7 +659,6 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -659,7 +659,6 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
<xsl:call-template name="legende_superx" />
</xsl:otherwise>
</xsl:choose>
-->
</xsl:template>
<xsl:template name="legende_hisinone">
<div class="text_white" style="display:none" id="legende">
@ -721,60 +720,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -721,60 +720,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
</xsl:if>
</div>
</xsl:template>
<xsl:template name="legende_superx">
<p class="legende" style="display:none" id="legende">
<xsl:for-each select="/ergebnisse/ergebnis [@ordnr=0]/felder/feld">
<xsl:if test="(value !='' or sicht/@isFirstInGroup='false' or @isstandtoday='false') and @varname != 'sort' and @varname != 'maxoffset' and value_caption != ''">
<span class="feldname">
<xsl:choose>
<xsl:when test="string-length(caption_short) &gt; 0 and caption_short != 'null'" >
<![CDATA[]]><xsl:value-of select="caption_short" /><![CDATA[]]>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@varname" />
</xsl:otherwise>
</xsl:choose></span>:&#160;
<xsl:if test="string-length(value_caption) &lt; 50">
<span class="feldwert"><xsl:value-of select="value_caption" /><![CDATA[]]></span>
</xsl:if>
<xsl:if test="string-length(value_caption) &gt; 49">
<span class="feldwert"><![CDATA[]]><xsl:value-of select="substring(value_caption,0,50)" /><![CDATA[]]>...</span>
</xsl:if>
<xsl:if test="sicht!=''">
<span><![CDATA[ (]]><xsl:value-of select="sicht" />
<xsl:if test="@stand!=''"><xsl:text> - Stand:</xsl:text><xsl:value-of select="@stand"/></xsl:if>
<xsl:text><![CDATA[)]]> </xsl:text></span>
</xsl:if>
;
</xsl:if>
</xsl:for-each>
User: <xsl:value-of select="/ergebnisse/user"/>&#160;
Stand: <!--DQ / MM 19.05.2023 Zeitangabe bei Stand entfernen wenn es nicht ueber die neue Komponentenverwaltung läuft -->
<xsl:variable name="stand_korr">
<xsl:choose>
<xsl:when test="contains(../stand,'00:00:00')">
<xsl:value-of select="substring-before(../stand,'00:00:00')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="../stand" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$stand_korr" />
</p>
<xsl:if test="../hinweis != ''">
<xsl:call-template name="newline_to_br">
<xsl:with-param name="string" select="../hinweis" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="initVizChartsJS">
<script language="Javascript" type="text/javascript">
<xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable>

1115
superx/xml/tabelle_html_viz_cockpit.xsl

File diff suppressed because it is too large Load Diff

3
superx/xml/viz_components.xsl

@ -12,7 +12,8 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de"> @@ -12,7 +12,8 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sx="http://memtext.de">
<link rel="stylesheet" type="text/css" href="../xml/superxml_html.css"/>
<link rel="stylesheet" type="text/css" href="../xml/maske_html.css" />
<link rel="stylesheet" type="text/css" href="../xml/tabelle_html.css" />
<link rel="stylesheet" type="text/css" href="../xml/superx_standalone.css"/>
<link rel="stylesheet" type="text/css" href="../xml/css/fontello-codes.css" />
<link rel="stylesheet" type="text/css" href="../xml/css/start_portlet.css" />

119
superx/xml/viz_tableComponents.xsl

@ -603,7 +603,7 @@ function deeplink_dialog() @@ -603,7 +603,7 @@ function deeplink_dialog()
<input type="hidden" name="UserID"><xsl:attribute name="value"><xsl:value-of select="/ergebnisse/userID" /></xsl:attribute></input>
<input type="hidden" name="reuseresult" value="true"/> <!-- gecachte Ergebnis benutzen-->
<input type="hidden" name="maxoffset" value=""/> <!--im Normalfall wird Servleteinstellung genutzt - nur Druckversion übergibt Wert-->
<input type="hidden" name="stylesheet" value="800000280_datencockpit.xsl" />
<input type="hidden" name="stylesheet" value="" />
<input type="hidden" name="contenttype" value="text/xsl" />
<!-- MB 5/2011 fuer Export nur sichtbarer Tabellenzeilen nach Excel/PDF -->
<input type="hidden" name="irowno" value="" />
@ -629,92 +629,18 @@ function deeplink_dialog() @@ -629,92 +629,18 @@ function deeplink_dialog()
</xsl:for-each-group>
<!--</xsl:for-each>-->
<!--<xsl:call-template name="tablePrintsaveexport"/>-->
<xsl:call-template name="tablePrintsaveexport"/>
<xsl:call-template name="tablepretitle"/> <!--defined in pageComponents-->
<xsl:if test="/ergebnisse/@isMakro='true'">
<section class="hero is-small is-link">
<div class="hero-body">
<div class="columns features is-mobile is-vcentered">
<div class="column is-10 has-text-centered">
<p class="title is-2"><xsl:value-of select="/ergebnisse/makro/name" />
</p>
</div>
</div>
</div>
</section>
<section><script langue="Javascript">
function exportBooklet(contenttype)
{
document.forms['Weiterverarbeitung'].stylesheet.value = '800000280_datencockpit_xmlsource.jrxml';
document.forms[0].contenttype.value = contenttype;
document.forms[0].target = '_blank';
document.forms[0].submit();
}
</script>
<span class="separator">&#160;</span>
<!--Beginn columns -->
</section>
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1>
</xsl:if>
<span class="separator">&#160;</span>
<xsl:if test="1=0"> <!--TODO Kopfzeile interaktiv:-->
<div class="columns features is-mobile is-left">
<div class="column is-three-fifths">
<!--<p class="title is-3">Auswahlbereich</p>-->
<div class="card has-background-light">
<div class="card-content">
<xsl:call-template name="tabellenFeldCombo">
<xsl:with-param name="maskeninfo_id" select="'800000280'"/>
<xsl:with-param name="Feldname" select="'Fakultät'"/>
<xsl:with-param name="FeldnameEscaped" select="'Fakultaet'"/>
</xsl:call-template>
<p></p>
<xsl:call-template name="tabellenFeldCombo">
<xsl:with-param name="maskeninfo_id" select="'800000280'"/>
<xsl:with-param name="Feldname" select="'Lehreinheit'"/>
<xsl:with-param name="FeldnameEscaped" select="'Lehreinheit'"/>
</xsl:call-template>
<xsl:call-template name="tabellenFeldCombo">
<xsl:with-param name="maskeninfo_id" select="'800000280'"/>
<xsl:with-param name="Feldname" select="'Studiengang'"/>
<xsl:with-param name="FeldnameEscaped" select="'Studiengang'"/>
</xsl:call-template>
</div><!--endecard-Content-->
</div>
</div>
<div class="column is-one-fifth"><button class="button is-link" onClick="document.forms['Weiterverarbeitung'].elements['reuseresult'].value='false';return true;" >Neu laden</button>
</div>
<div class="column">
<section class="section">
<div class="field"><span class="buttonlist">
<p class="buttonlist_text">Export nach:<br />
<a onmouseover="window.status='Export starten';return true" onfocus="window.status='Download starten';return true" onmouseout="window.status='Download starten';return true" href="javascript:exportBooklet('application/pdf')">
<img title="Ausgabe im PDF-Querformat" alt="Ausgabe im PDF-Querformat" src="../images/icons/page_white_width_acrobat.svg" class="svg_icon" border="0" /></a>
<span class="separator">&#160;</span>
<a onmouseover="window.status='Export starten';return true" onfocus="window.status='Download starten';return true" onmouseout="window.status='Download starten';return true" href="javascript:exportBooklet('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')">
<img title="Ausgabe in Excel" alt="Ausgabe in Excel" src="../images/icons/page_white_excel.svg" class="svg_icon" border="0" /></a>
<span class="separator">&#160;</span>
<a onmouseover="window.status='Export starten';return true" onfocus="window.status='Download starten';return true" onmouseout="window.status='Download starten';return true" href="javascript:exportBooklet('application/vnd.openxmlformats-officedocument.wordprocessingml.document')">
<img title="Ausgabe in Word" alt="Ausgabe in Word" width="25px" height="25px" src="../images/icons/page_white_wordML.svg" class="svg_icon" border="0" /></a>
</p>
</span>
</div>
</section>
</div>
</div>
</xsl:if>
<xsl:for-each select="ergebnisse/ergebnis/ergebniselement">
<xsl:variable name="ergebniselement_ordnr" select="@ordnr" />
<div class="columns features is-mobile is-left"> <!--Beginn columns -->
<div class="column is-four-fifths">
<!-- end Kopf-->
<!-- start tabelle-->
<xsl:choose>
@ -762,33 +688,6 @@ var platform='superx'; @@ -762,33 +688,6 @@ var platform='superx';
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_post_explanation'"></xsl:with-param></xsl:call-template>
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_post_explanation'"></xsl:with-param></xsl:call-template>
</div>
<div class="column">
<!--<div class="box">-->
<section class="section">
<div class="field">
<xsl:call-template name="legende_viz" >
<xsl:with-param name="ordnr" select="$ergebniselement_ordnr" />
</xsl:call-template>
</div>
<div class="field">
<xsl:call-template name="erlaeuterung_viz" >
<xsl:with-param name="ordnr" select="$ergebniselement_ordnr" />
</xsl:call-template>
</div>
</section>
</div>
<!--</div>-->
</div>
</xsl:for-each>
<!--Ende Gesamt-DIV für Makro-Tabellen-->
@ -1207,11 +1106,6 @@ var platform='superx'; @@ -1207,11 +1106,6 @@ var platform='superx';
"vizPropertyVariablename":"line",
"propertyValue":"false",
"propUnit":""},
{"name":"domain",
"vizPropertyVariablename":"domain",
"propertyValue":"[0,
100]",
"propUnit":""},
{"name":"label_x",
"vizPropertyVariablename":"label",
"propertyValue":" ",
@ -1380,11 +1274,6 @@ var platform='superx'; @@ -1380,11 +1274,6 @@ var platform='superx';
"vizPropertyVariablename":"line",
"propertyValue":"true",
"propUnit":""},
{"name":"domain",
"vizPropertyVariablename":"domain",
"propertyValue":"[0,
100]",
"propUnit":""},
{"name":"label_x",
"vizPropertyVariablename":"label",
"propertyValue":"</xsl:text><xsl:value-of select="$xcolcaptionEscaped" />

Loading…
Cancel
Save