Browse Source

Embedding in H1 #5

viz_worldmap
Daniel Quathamer 2 years ago
parent
commit
ec3b2811a5
  1. 1
      src-modules/module/viz/conf/includes.txt
  2. 200
      superx/xml/pageComponents_html_final_viz.xsl.sam
  3. 99
      superx/xml/viz_html_chart.xsl

1
src-modules/module/viz/conf/includes.txt

@ -15,6 +15,7 @@ xml/js/viz/plot-0.6.1-license.txt @@ -15,6 +15,7 @@ xml/js/viz/plot-0.6.1-license.txt
xml/js/viz/d3-sankey.js
xml/js/viz/d3-sankey-license.txt
xml/js/viz/viz_functions.js
xml/pageComponents_html_final_viz.xsl.sam
xml/viz_html_chart.xsl
xml/viz_html_chart_sankey.xsl

200
superx/xml/pageComponents_html_final_viz.xsl.sam

@ -280,4 +280,204 @@ and not(ends-with(filename,'.jrxml'))"> @@ -280,4 +280,204 @@ and not(ends-with(filename,'.jrxml'))">
</tr>
</table>
</xsl:template>
<xsl:template name="pccustomize_hisinone">
<xsl:param name="position" />
<xsl:if test="$position='mask_post_javascript'">
<script language="javascript">
<xsl:text>
function maskonload() {
parent.document.title="</xsl:text>
<xsl:value-of select="/maske/@name" />
<xsl:text> - HISinOne ist ein Produkt der HIS eG";
}</xsl:text>
</script>
</xsl:if>
<xsl:if test="$position='submenu_post_javascript'">
<script language="javascript">
<xsl:text>
function submenuonload() {
parent.document.title="</xsl:text>
<xsl:for-each select="/*/menupos/eintraege/eintrag">
<xsl:if test="position()=last()">
<xsl:value-of select="titel" />
</xsl:if>
</xsl:for-each>
<xsl:text> - HISinOne ist ein Produkt der HIS eG";
}</xsl:text>
</script>
</xsl:if>
<xsl:if test="$position='table_post_javascript'">
<script language="javascript">
function tableonload() {}
</script>
<script language="Javascript">
function prepareExportChart()
{
document.forms[0].stylesheet.value = 'viz_html_chart.xsl';
document.forms[0].contenttype.value = 'text/html';
document.forms[0].target = '_blank';
document.forms[0].offset.value='0';
document.forms[0].maxoffset.value = '1000000';
document.forms[0].reuseresult.value = 'true';
if (isTreeTable) {
dojo.widget.byId("ttexdlg").show(); //ruft function exportandhidedlg auf
} else {
startExport();
}
}
</script>
</xsl:if>
<xsl:if test="$position='table_pre_title' and (/ergebnisse/@isMakro!='true' or @ordnr='0')">
<!--nun die Buttonleiste -->
<div class="iconsTopAbove">
<a onMouseOver="window.status='Export starten';return true"
onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"
class="linkLookImage">
<xsl:attribute name="href"><xsl:text>javascript:prepareExport('druckversion')</xsl:text>
</xsl:attribute>
<img title="Ausgabe in HTML" alt="Ausgabe in HTML"
src="../xml/his1/images/icons/html.svg" class="svg_icon" border="0" />
</a>
<span class="separator">&#160;</span>
<!-- druckversion übergibt maxoffset 10000000 damit alle Sätze angezeigt werden -->
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:prepareExportChart()</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>Druckversion</xsl:text></xsl:attribute>
<xsl:text>Druckversion</xsl:text> -->
<input type="hidden" name="usetreetable" />
<img title="Ausgabe als Diagramm" alt="Ausgabe in Grafik"
src="../xml/his1/images/icons/chart_pie.svg" border="0" width="16px" height="16px" /><!--chart-bar.svg-->
</a>
<span class="separator">&#160;</span>
<a onMouseOver="window.status='Export starten';return true"
onFocus="window.status='Download starten';return true" onMouseOut="window.status='DowcheckTrenload starten';return true"
class="linkLookImage">
<xsl:attribute name="href"><xsl:text>javascript:prepareExport('excel')</xsl:text>
</xsl:attribute>
<img title="Ausgabe in Excel" alt="Ausgabe in Excel"
src="../xml/his1/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" class="linkLookImage"><xsl:attribute name="href"><xsl:text>javascript:prepareExport('xml');</xsl:text>
</xsl:attribute><img title="Ausgabe in XML" alt="Ausgabe in XML" src="../xml/his1/images/icons/page_white_code.gif"
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"
class="linkLookImage">
<xsl:attribute name="href"><xsl:call-template
name="create_url"><xsl:with-param name="stylesheet">tabelle_xml.xsl</xsl:with-param></xsl:call-template><xsl:text>&amp;contenttype=text/xml&amp;reuseresult=true</xsl:text>
</xsl:attribute>
<img title="Ausgabe in XML" alt="Ausgabe in XML"
src="../xml/his1/images/icons/page_white_code.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"
class="linkLookImage">
<xsl:attribute name="href"><xsl:text>javascript: prepareExport('pdf')</xsl:text>
</xsl:attribute>
<img title="Ausgabe im PDF-Querformat" alt="Ausgabe im PDF-Querformat"
src="../xml/his1/images/icons/page_white_width_acrobat.svg" class="svg_icon"
border="0" />
</a>
<span class="separator">&#160;</span>
<!--MB neu CSV-export-->
<a onMouseOver="window.status='Export starten';return true"
onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"
class="linkLookImage">
<xsl:attribute name="href"><xsl:text>javascript:document.forms[0].contenttype.value='text/csv';document.forms[0].reuseresult.value='true';document.forms[0].submit();</xsl:text>
</xsl:attribute>
<img title="Ausgabe als CSV" alt="Ausgabe als CSV"
src="../xml/his1/images/icons/page_white_csv.svg" class="svg_icon" border="0" />
</a>
<span class="separator">&#160;</span>
<!-- bis hier-->
<script language="JavaScript" type="text/javascript">
function copyText()
{
var ergtabelle=document.getElementById('table1');
const selection = window.getSelection();
const range = document.createRange();
range.selectNodeContents(ergtabelle);
selection.removeAllRanges();
selection.addRange(range);
try {
document.execCommand('copy');
selection.removeAllRanges();
} catch(e) {
const errorMsg = document.querySelector('.error-msg');
errorMsg.classList.add('show');
setTimeout(() => {
errorMsg.classList.remove('show');
}, 1200);
}
//alert("Angezeigte Tabelle wurde in die Zwischenablage kopiert.");
}
</script>
<a class="linkLookImage" href="" onClick="copyText();return false;" onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true">
<img title="Kopie in die Zwischenablage als CSV" alt="Kopie in die Zwischenablage als CSV" src="../images/copy.svg" class="svg_icon" border="0" />
</a>
<span class="separator">&#160;</span>
<!-- <span dojoType="tooltip" connectId="btnKonfig" style="display:none">Spaltensortierung-
und Reihenfolge festlegen<br />, Spalten entfernen</span> -->
<a title="Erläuterung" class="linkLookImage">
<xsl:attribute name="href"><xsl:value-of
select="concat('javascript:showErlaeuterung',../maskenname/@id,'()')" /></xsl:attribute>
<img title="Erläuterung" alt="Erläuterung"
src="../xml/his1/images/icons/information.svg" class="svg_icon" border="0" />
</a>
<span class="separator">&#160;</span>
<a href="/{/ergebnisse/ergebnis/maskenname/@helpcontext}" title="Hilfe"
target="_blank" class="linkLookImage">
<img title="Handbuch" alt="Handbuch" src="../xml/his1/images/icons/book.svg" class="svg_icon"
border="0" />
</a>
<xsl:if test="/ergebnisse/@isMakro!='true'">
<xsl:call-template name="bookmark_deepLink" />
<span class="separator">&#160;</span>
<a href="javascript:showConfig();" id="btnKonfig" class="linkLookImage">
<img title="Tabelle editieren" alt="Tabelle editieren"
src="../xml/his1/images/icons/table_pencil.svg" class="svg_icon" border="0" />
</a>
</xsl:if>
<xsl:call-template name="AdminMenuBtn" />
<xsl:call-template name="JasperExportBtn" />
</div>
<!--klappt nicht wg. Umbruch bei p.maskentitel: <xsl:text disable-output-escaping="yes"><![CDATA[<h2
class="table_caption"><img src="../xml/his1/images/icons/bullet_star.gif"
alt=" " />]]></xsl:text> -->
</xsl:if>
</xsl:template>
</xsl:stylesheet>

99
superx/xml/viz_html_chart.xsl

@ -29,7 +29,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util @@ -29,7 +29,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util
<html>
<xsl:choose>
<xsl:when test="/ergebnisse/@hisinone_active='true'">
<xsl:call-template name="head_hisinone" ><xsl:with-param name="title" select="concat('Ergebnis ',/ergebnisse/ergebnis[ position()=1]/maskenname)" /></xsl:call-template>
<xsl:call-template name="head_hisinone_viz" ><xsl:with-param name="title" select="concat('Ergebnis ',/ergebnisse/ergebnis[ position()=1]/maskenname)" /></xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="head_superx_viz" ><xsl:with-param name="title" select="concat('Ergebnis ',/ergebnisse/ergebnis[ position()=1]/maskenname)" /></xsl:call-template>
@ -410,7 +410,102 @@ vizTypeProperties.push(newVizTypeProperty); @@ -410,7 +410,102 @@ vizTypeProperties.push(newVizTypeProperty);
</head>
</xsl:template>
<xsl:template name="buildVizMetadata">
<xsl:template name="head_hisinone_viz">
<xsl:param name="css" />
<xsl:param name="title" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</meta>
<link rel="stylesheet" type="text/css"
href="../xml/his1/css/superx_menue_html.css" />
<link rel="stylesheet" type="text/css" href="../xml/maske_html.css" />
<!--<LINK REL="stylesheet" type="text/css" href="../style/superx.css"
></LINK> <LINK REL="stylesheet" type="text/css" href="../xml/superxml_html.css"
></LINK> -->
<xsl:choose>
<xsl:when test="$title != ''">
<xsl:choose>
<xsl:when test="starts-with($title,'Mask') ">
<link rel="stylesheet" type="text/css" href="../xml/maske_html.css" />
</xsl:when>
<xsl:otherwise>
<!-- Styles für HIS1 sind in xml/his1/css/superx_menue_html.css definiert
<LINK REL="stylesheet" type="text/css" href="../xml/tabelle_html.css" ></LINK> -->
</xsl:otherwise>
</xsl:choose>
<title>
<xsl:value-of select="$title" />
</title>
</xsl:when>
<xsl:otherwise>
<title>
<xsl:text>HISinOne-BI</xsl:text>
</title>
</xsl:otherwise>
</xsl:choose>
<link rel="stylesheet" type="text/css" href="../xml/his1/css/HISinOne.css" />
<!--<script src="../xml/js/jquery/jquery.mobile-1.4.2.min.js"></script>
<link rel="stylesheet" href="../xml/js/jquery/jquery.mobile.structure-1.4.2.dw.css" />
<link rel="stylesheet" href="../xml/js/jquery/jqm-demos.dw.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" />
<link rel="stylesheet" type="text/css" href="../style/bulma.css" />
<link rel="stylesheet" type="text/css" href="../style/bulma-tooltip.min.css" />
<link rel="stylesheet" type="text/css" href="../style/sx_viz_muster.css" />
<xsl:if test="$css != ''">
<link rel="stylesheet" type="text/css" href="$css" />
</xsl:if>
</head>
</xsl:template>
<xsl:template name="topbar_menue_hisinone">
<div class="header_hisinone">
<div class="logo">
<a href="/_HISINONE_/pages/cs/sys/portal/hisinoneStartPage.faces" target="_parent" style="float:left;">
<img src="../xml/his1/images/logos/hisinone_schriftzug_portal.svg" alt="Zur HISinOne Startseite" class="logoPortal" title="Zur HISinOne Startseite" border="0" />
</a>
<div class="browserback_tooltip">
<span class="browserback_tooltiptext">Browser Zurück ist deaktiviert. Bitte das Menü zur Navigation benutzen!</span>
</div>
<ul class="nav" style="float:left;">
<!-- <li class="topMenuList">
<a class="topMenuLink" href="/qisserver/pages/cs/sys/portal/hisinoneStartPage.faces" target="_parent">Startseite</a>
</li>-->
<li class="open-menu">
<a class="topMenuLink" href="#leftpanel3">Navigation ein/aus</a>
</li>
<li class="close-menu">
<a class="topMenuLink" href="#">Navigation ein/aus</a>
</li>
<!--
<li class="topMenuList">
<a class="topMenuLink" href="javascript:lesezeichen_erstellen();" id="btnBookmark" target="_parent">Lesezeichen</a>
</li>
-->
</ul>
</div><h1 style="padding-top:25px">Business Intelligence</h1>
<div style="float:right;">
<img src="../images/icons/arrow_left_fat.svg" width="10" height="10" alt=" " title=" " border="0" style="vertical-align:bottom;"/>
<a tabindex="30" href="/superx/servlet/SuperXmlAbmeldung" target="_parent" style="cursor:pointer; font-weight: bold;">Abmelden von Standardberichte</a>
</div>
<div class="services">
<ol>
<li>
</li>
</ol>
</div>
<!-- <div style="clear: both;"></div> -->
</div>
</xsl:template>
<xsl:template name="buildVizMetadata">
<xsl:variable name="vizInitialName">
<xsl:choose>
<xsl:when test="/ergebnisse/@isMakro='true'">

Loading…
Cancel
Save