123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
- <!--
- ===============================================================================================
- getContent - get our data from Content Manager
- ===============================================================================================
- -->
- <xts:block id="getContent" nodelist="" processor="XSLT" type="exec" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- exclude-result-prefixes="xsl cml xtsext send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <cml:object-predicates/>
- <xsl:template match="/">
- <!-- get all the archives from CM -->
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <query xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <search>
- <xsl:text>/configuration/archiveLocation[permission("execute")]</xsl:text>
- </search>
- <properties>
- <property name="defaultName"/>
- <property name="searchPath"/>
- </properties>
- <sortBy>
- <sort name="defaultName" order="ascending"/>
- </sortBy>
- </query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- format - render the page
- ===============================================================================================
- -->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" dependency="getContent" mimeType="text/html">
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- exclude-result-prefixes="pf lyt dp cf cp df utml xtsext cm ut">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- Global template variables -->
- <pf:variables/>
- <xsl:variable name="mname" select="'specify_archive_options.xts'"/>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="objName">
- <xsl:choose>
- <xsl:when test="key('env-param','step_default_name')"><xsl:value-of select="key('env-param','step_default_name')"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="key('env-param', 'm_name')"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="browserTitle"><xts:string id="IDS_ARC_TITLE"><xts:param name="objName"><span lang="{$contentLocale}"><xsl:value-of select="$objName"/></span></xts:param></xts:string></xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:script>
- <script language="javascript">
- function validate() {
- var frm = document.pform;
-
- <!-- user selected to specify a name, but no name has been specified -->
- if (frm.archiveNameGroup[1].checked && frm.m_arc_filenameStub.value == '') {
- window.alert('<xts:string id="IDS_ARC_ERR_NO_FILE_NAME" encode="javascript"/>');
- frm.m_arc_filenameStub.focus();
- return false;
- }
-
- return true;
- }
- </script>
- </dp:script>
-
- <dp:meta>
- <pf:meta/>
- <!-- Standard meta tags -->
- </dp:meta>
- <pf:help/>
- <utml:form name="pform" method="post" action="{$gateway}">
- <!-- header -->
- <dp:header>
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_ARC_INTRO"/>
- </dp:description>
- </dp:header>
- <!-- body -->
- <lyt:layout style="1">
- <lyt:section>
- <utml:radio-group name="archiveNameGroup">
- <utml:default-value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_arc_filenameStub')!=''">specify_name</xsl:when>
- <xsl:otherwise>report_name</xsl:otherwise>
- </xsl:choose>
- </utml:default-value>
-
- <dp:choice title="IDS_ARC_NAME">
- <dp:section1>
- <utml:input type="radio" name="archiveNameGroup" value="report_name" onclick="document.pform.m_arc_filenameStub.value = '';"/>
- </dp:section1>
- <dp:section2><xts:string id="IDS_ARC_NAME_USE_REPORT_NAME"/></dp:section2>
- <dp:section1>
- <utml:input type="radio" name="archiveNameGroup" value="specify_name"/>
- </dp:section1>
- <dp:section2><xts:string id="IDS_ARC_NAME_SPECIFY"/></dp:section2>
- <dp:section3>
- <utml:input type="text" name="m_arc_filenameStub" size="35" maxlength="256" onchange="document.pform.archiveNameGroup[1].checked = true;"/>
- </dp:section3>
- </dp:choice>
- </utml:radio-group>
- </lyt:section>
-
- <!-- location -->
- <lyt:section>
- <dp:choice title="IDS_ARC_LOCATION">
- <dp:section1>
- <utml:select name="m_arc_archiveLocation">
- <xsl:for-each select="/root/cm:queryResponse/cm:archiveLocation">
- <utml:option>
- <xsl:if test="key('env-param','m_arc_archiveLocation') = cm:searchPath">
- <xsl:attribute name="selected">true</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="value"><xsl:value-of select="cm:searchPath"/></xsl:attribute>
- <xsl:value-of select="cm:defaultName"/>
- </utml:option>
- </xsl:for-each>
- </utml:select>
- </dp:section1>
- </dp:choice>
- </lyt:section>
-
- <!-- conflict resolution -->
- <lyt:section>
- <utml:radio-group name="m_arc_conflictResolution">
- <utml:default-value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_arc_conflictResolution')!=''"><xsl:value-of select="m_arc_conflictResolution"/></xsl:when>
- <xsl:otherwise>replace</xsl:otherwise>
- </xsl:choose>
- </utml:default-value>
-
- <dp:choice title="IDS_ARC_CONFLICT">
- <dp:section1>
- <utml:input type="radio" name="m_arc_conflictResolution" value="fail"/>
- </dp:section1>
- <dp:section2><xts:string id="IDS_ARC_KEEP_EXISTING_FILES"/></dp:section2>
- <dp:section1>
- <utml:input type="radio" name="m_arc_conflictResolution" value="replace"/>
- </dp:section1>
- <dp:section2><xts:string id="IDS_ARC_REPLACE_EXISTING_FILES"/></dp:section2>
- <dp:section1>
- <utml:input type="radio" name="m_arc_conflictResolution" value="appendDateTime"/>
- </dp:section1>
- <dp:section2><xts:string id="IDS_ARC_APPEND_TIMESTAMP"/></dp:section2>
- <dp:section1>
- <utml:input type="radio" name="m_arc_conflictResolution" value="appendSequenceNumber"/>
- </dp:section1>
- <dp:section2><xts:string id="IDS_ARC_APPEND_SEQUENCE_NUMBER"/></dp:section2>
- </dp:choice>
- </utml:radio-group>
- </lyt:section>
- </lyt:layout>
-
-
- <!-- footer -->
- <dp:footer>
- <df:button df:id="IDS_OK" utml:validate="true" df:style="stack-down-save"/>
- <xsl:choose>
- <xsl:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
- <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CANCEL" df:style="back-url"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|