123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2012, 2014
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- 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:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl cm cf cp df dp lyt utml xts xtsext dpl mf pf">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'new_deployment2.xts'"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <pf:gen-icon/>
- <pf:serialize-xml/>
- <!-- deployment variables -->
- <dpl:variables/>
- <!-- dpl:packagesToInclude template needs this variable. -->
- <xsl:variable name="numberOfPackages">
- <xsl:value-of select="count(/root/deploymentOptions/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo'])"/>
- </xsl:variable>
- <mf:variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_DEPLOYMENT_SUMMARY_TITLE">
- <xts:param name="wizardName">
- <xsl:value-of select="$wizard-title"/>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context="HID_DPLOY"/>
- <!-- Help system -->
- <script language="javascript" src="{$webcontent}/{$app}/js/list.js"></script>
- <script language="JavaScript"/>
- </dp:script>
- <script language="javascript" src="{$webRoot}/dojo16/dojo/dojo.js"/>
- <script language="javascript" src="{$webcontent}/{$app}/js/deployment.js"/>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:read-only>true</utml:read-only>
- <!-- Set input for submitting -->
- <utml:input type="hidden" name="ifrmcmd" utml:update="false">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param','m_obj') != '' ">save</xsl:when>
- <xsl:otherwise>create</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <xsl:variable name="m" select="concat($app, '/new_deployment2.xts')"/>
- <utml:input type="hidden" name="errURL" utml:update="false"><utml:value/></utml:input>
- <utml:input type="hidden" name="m_return" utml:update="false"/>
- <utml:input type="hidden" name="m_firstrun" utml:update="false">
- <utml:value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_firstrun')">
- <xsl:value-of select="key('env-param','m_firstrun')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'true'"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:value>
- </utml:input>
- <!-- dialog header -->
- <xsl:call-template name="summary-header">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <!-- name and description -->
- <lyt:layout style="2" title="IDS_DEPLOYMENT_SUMMARY_DEPLOYMENT_SPECIFICATION" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_NEW_NAME"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:value-of select="/root/env/param[@name='m_p_defaultName']"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <dp:textarea wrap="yes">
- <dp:section1>
- <xts:string id="IDS_NEW_DESCRIPTION"/>
- </dp:section1>
- <dp:section2>
- <utml:textarea rows="4" cols="30" class="pTextarea" readOnly="true" utml:track="false">
- <utml:value>
- <xsl:value-of select="key('env-param','m_p_defaultDescription')"/>
- </utml:value>
- </utml:textarea>
- </dp:section2>
- </dp:textarea>
- </lyt:section>
- </lyt:layout>
- <!-- deployment file and encryption -->
- <xsl:call-template name="archive-options">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <xsl:call-template name="summary-options">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <dp:footer div="div">
- <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>
- <xsl:variable name="back-page">
- <xsl:choose>
- <xsl:when test="$deployment-method='import' and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='entireContentStoreSelect']='true'">
- <!-- Is method page skipped? -->
- <xsl:choose>
- <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect' and @enabled='false']">
- <xsl:value-of select="'select-archive'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'method'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$deployment-method='import' and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='entireContentStoreSelect']='false'">
- <xsl:value-of select="'ownership'"/>
- </xsl:when>
- <!-- otherwise Export, go to select archive -->
- <xsl:otherwise>
- <xsl:value-of select="'select-archive'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="back-target">
- <xsl:choose>
- <xsl:when test="$deployment-method='import' and $back-page='select-archive'">
- <xsl:value-of select="concat($app, '/new_general.xts')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($app, '/new_deployment2.xts')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <df:button df:id="IDS_BACK" df:style="maintain" utml:validate="false" onClick="javascript:document.pform.m_deploymentWizardPage.value='{$back-page}';document.pform.m_firstrun.value='false'">
- <df:target>
- <xsl:value-of select="$back-target"/>
- </df:target>
- </df:button>
- <script language="JavaScript">
- function validate()
- {
- <xsl:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='entireContentStoreSelect']='false' and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='namespaceSelect']='false' and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='dataSourceSelect']='false' and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='recipientsSelect']='false' and not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*[cm:inPackagesToInclude = 'true'])">
- <xsl:variable name="NoContentWarningString">
- <xsl:choose>
- <xsl:when test="$deployment-method='import' ">
- <xsl:text/><xts:string id="IDS_DEPLOYMENT_SUMMARY_EMPTY_CONTENT_WARNING_IMPORT" encode="javascript"/><xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/><xts:string id="IDS_DEPLOYMENT_SUMMARY_EMPTY_CONTENT_WARNING_EXPORT" encode="javascript"/><xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- if (!confirm("<xsl:value-of select="$NoContentWarningString"/>"))
- {
- return false;
- }
- </xsl:if>
- <!-- check that the target location exists and warn user if required -->
- <xsl:if test="$deployment-method='import' ">
- <xsl:variable name="MissingTargetWarningString">
- <xsl:text/><xts:string id="IDS_DEPLOYMENT_SUMMARY_MISSING_TARGET_WARNING_IMPORT" encode="javascript"/><xsl:text/>
- </xsl:variable>
- var deployment = new ps.deployment();
- if (deployment.targetLocationWarningExists()) {
- if (!confirm("<xsl:value-of select="$MissingTargetWarningString"/>"))
- {
- return false;
- }
- }
- </xsl:if>
- return true;
- }
- </script>
- <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true">
- <df:target><xsl:value-of select="concat($app, '/new_select_action.xts')"/></df:target>
- </df:button>
- <df:button df:id="IDS_FINISH"/>
- </dp:footer>
- <utml:input type="hidden" name="m_packagesOp" utml:update="false"/>
- </utml:form>
- </dp:page>
- </xsl:template>
- <xsl:template name="summary-header">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dp:header div="div">
- <dpl:title dpl:id="IDS_DEPLOYMENT_SUMMARY_TITLE"/>
- <!-- description tabs -->
- <dp:description>
- <dpl:description dpl:import-id="IDS_DEPLOYMENT_SUMMARY_INTRO_IMPORT_1" dpl:export-id="IDS_DEPLOYMENT_SUMMARY_INTRO_EXPORT_1"/>
- </dp:description>
- </dp:header>
- <img height="8" width="1" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
- <dp:description>
- <dpl:description dpl:import-id="IDS_DEPLOYMENT_SUMMARY_INTRO_IMPORT_2" dpl:export-id="IDS_DEPLOYMENT_SUMMARY_INTRO_EXPORT_2"/>
- </dp:description>
- <xsl:variable name="label_saveonly">
- <xsl:text/><xts:string id="IDS_DEPLOYMENT_SUMMARY_SAVE_FINISH"/><xsl:text/>
- </xsl:variable>
- <img height="8" width="1" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
- <dp:description>
- <xts:string id="IDS_DEPLOYMENT_SUMMARY_INTRO_3"/>
- </dp:description>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="archive-options">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <lyt:layout style="2" title="IDS_DEPLOYMENT_SUMMARY_DEPLOYMENT_FILE" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_DEPLOYMENT_SUMMARY_DEPLOYMENT_FILE_NAME"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:value-of select="/root/env/param[@name='m_archive']"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <xsl:if test="$deployment-method='export'">
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_DEPLOYMENT_ENCRYPTION"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:choose>
- <xsl:when test="key('env-param','m_archiveEncryptPword') != ''">
- <xts:string id="IDS_DEPLOYMENT_SUMMARY_ENCRYPTION_ENCRYPT"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_DEPLOYMENT_SUMMARY_ENCRYPTION_DO_NOT_ENCRYPT"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="summary-options">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <xsl:choose>
- <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='entireContentStoreSelect']='true' and count(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenants']/*)>0">
- <xsl:call-template name="tenantsOptionsSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='entireContentStoreSelect']='true'">
- <xsl:call-template name="entireContentStoreOptionsSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="packagesSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <xsl:call-template name="packagesOptionsSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <xsl:call-template name="directoryContentOptionsSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <xsl:call-template name="generalOptionsSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="tenantsOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:tenantsOptionsSummary>
- <dpl:param name="tenant-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenants']/*</dpl:param>
- </dpl:tenantsOptionsSummary>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="entireContentStoreOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:entireContentStoreOptionsSummary/>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="packagesSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_SUMMARY_PACKAGE_CONTENT" border="yes">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="$deployment-method='import' and $do-new='true' ">
- <xsl:call-template name="newImportPackagesSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$deployment-method='import' and $do-new='false' ">
- <xsl:call-template name="updateImportPackagesSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="exportPackagesSummary">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template name="newImportPackagesSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:packagesToInclude>
- <dpl:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*[cm:inPackagesToInclude='true']</dpl:param>
- <dpl:param name="targetLocations-path">/root/targetLocationProperties</dpl:param>
- <dpl:param name="type">importDeployment</dpl:param>
- <dpl:param name="new">true</dpl:param>
- <dpl:param name="summaryId">IDS_DEPLOYMENT_SUMMARY_IMPORT_PACKAGES_SUMMARY</dpl:param>
- </dpl:packagesToInclude>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="updateImportPackagesSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:packagesToInclude>
- <dpl:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*[cm:inPackagesToInclude='true']</dpl:param>
- <dpl:param name="type">importDeployment</dpl:param>
- <dpl:param name="new">false</dpl:param>
- <dpl:param name="summaryId">IDS_DEPLOYMENT_SUMMARY_IMPORT_PACKAGES_SUMMARY</dpl:param>
- </dpl:packagesToInclude>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="exportPackagesSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:packagesToInclude>
- <dpl:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*[cm:inPackagesToInclude='true']</dpl:param>
- <dpl:param name="type">exportDeployment</dpl:param>
- <dpl:param name="summaryId">IDS_DEPLOYMENT_SUMMARY_EXPORT_PACKAGES_SUMMARY</dpl:param>
- </dpl:packagesToInclude>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="packagesOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:packagesOptionsSummary/>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="directoryContentOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:directoryContentOptionsSummary/>
- </xsl:copy>
- </xsl:template>
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:template name="generalOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:generalOptionsSummary/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|