| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2015
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/AGS.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseEventStudio">
- <!--
- This morphlet (dfsdfsdf.xts) consists of the following blocks:
- formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
- format - render the product about page.
- -->
- <!--
- ===============================================================================================
- Get the information for the agent
- ===============================================================================================
- -->
- <xts:block id="queryCM" type="exec" mode="interpret" condition=".[not(/root/env/param[@name='htmlFragment']) or /root/env/param[@name='htmlFragment'] = '']" processor="XSLT">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" exclude-result-prefixes="send cm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="root">
- <agentDefinition>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm" requester="AGS:doLoginProxy">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>~</cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </agentDefinition>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ================================================================================
- TWEAK M
- and delete html fragment
- ================================================================================
- -->
- <xts:block id="tweakm" processor="XSLT" type="exec" condition=".[/root/env/param[@name='htmlFragment'] != '']" mandatory="false">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <htmlFragment>
- <xsl:value-of select="/root/env/param[@name='htmlFragment']" disable-output-escaping="no"/>
- </htmlFragment>
- </xts:append>
- <xts:delete select="/root/env/param[@name='htmlFragment']"/>
- <xts:delete select="/root/header//*[local-name()='formFieldVars']/item[./name='htmlFragment']"/>
- <xts:delete select="/root/env/param[@name='m']"/>
- <xts:append select="/root/env">
- <param name="m">
- <xsl:text>/portal/iFaultHandler/handleFault.xts</xsl:text>
- </param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ================================================================================
- render_page
-
- Render the HTML really, just the dialog adapter page
- ===============================================================================================
- -->
- <xts:block id="logonFromHeaderFault" dependency="tweakm" processor="XSLT" type="exec" mode="interpret" condition=".[/root/htmlFragment != '']" mandatory="false">
- <xts:logicsheet path="ags/logicsheets/agentDefinition.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fault="http://developer.cognos.com/schemas/xts/portal/iFaultHandler/1/"
- xmlns:xos="http://developer.cognos.com/schemas/xts/output/" >
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/output">
- <xos:part>
- <xos:entityHeader>
- <xos:param name="Content-Type">text/html; charset=utf-8</xos:param>
- </xos:entityHeader>
- <xos:entityBody>
- <xts:request name="BUS" target="bus://xts2/portal/iFaultHandler/handleFault.xts" option="content" outputHeader="true">
- <!-- env -->
- <xsl:copy-of select="/root/env"/>
- <!-- system -->
- <xsl:copy-of select="/root/system"/>
- <!-- http -->
- <xsl:copy-of select="/root/http"/>
- <!-- session -->
- <xsl:copy-of select="/root/session"/>
- <!-- header vars -->
- <xsl:copy-of select="/root/header"/>
- <!-- credential -->
- <xsl:copy-of select="/root/credential"/>
- <!-- cookies-->
- <xsl:copy-of select="/root/cookies"/>
- <!-- user vars -->
- <xsl:copy-of select="/root/user"/>
- <command>
- <fault:handleFault>
- <xsl:value-of select="/root/htmlFragment" disable-output-escaping="yes"/>
- <fault:originalRequest>
- <xsl:copy-of select="/root/header//*[local-name()='formFieldVars']"/>
- </fault:originalRequest>
- </fault:handleFault>
- </command>
- </xts:request>
- </xos:entityBody>
- </xos:part>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="hidePopupFrame" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="queryCM logonFromHeaderFault" condition=".[not(/root/env/param[@name='origin']) or /root/env/param[@name='origin' != 'popUpFrame'] and not(/root/env/param[@name='htmlFragment'])]" mandatory="false">
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- Get the new theme logicsheets. -->
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="utml dp pf xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <xsl:template match="/">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
- <html>
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <script type="text/javascript" src="../ags/layout.js">//</script>
- <script type="text/javascript" src="../ags/cmd.js">//</script>
- <script type="text/javascript" src="../ags/util.js">//</script>
- <script type="text/javascript">
- function init() {
- var cf = parent.getConfigFrame();
- if(cf.doClosePopUp){
- //Now close the popup wait.
- cf.doClosePopUp();
- cf.getCommandStackManager().processCommandStack();
- }
- }
- </script>
- </head>
- <body onload="init();">
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Deal with the original form submit. This will restore the initial call that may have faulted
- with a logon page earlier.
- ===============================================================================================
- -->
- <xts:block id="hidePopupFrame2" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="hidePopupFrame" condition=".[/root/env/param[@name='origin'] and /root/env/param[@name='origin' = 'popUpFrame'] and not(/root/env/param[@name='htmlFragment'])]" mandatory="false">
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- Get the new theme logicsheets. -->
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="utml dp pf xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <xsl:template match="/">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page>
- <!-- specify the style sheet(used to render the active/inactive hint text)
- todo move this into its own xslt file. Do not put it into the dp stuff because that is relevant to the whole portal
- -->
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclusion-list><xsl:value-of select="' origin original_m '"/></utml:exclusion-list>
- </utml:form>
- <dp:script>
- <script type="text/javascript">
- function init()
- {
- var cf = parent.getConfigFrame();
- //Mark it for closure now
- if(cf.doSetPopUpClosureFlag){
- cf.doSetPopUpClosureFlag();
- }
- var m = '<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='original_m']))"/>';
- // forward to the correct location
- document.pform.m.value = m;
- if (document.pform.ps_nav_op) {
- var psNavOp = '<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='ps_nav_op']))"/>';
- document.pform.ps_nav_op.value = psNavOp;
- }
- document.pform.target = "messageIFrame";
- document.pform.submit();
- }
- </script>
- </dp:script>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|