| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 | <?xml version="1.0" encoding="UTF-8"?><!--    Licensed Materials - Property of IBM    IBM Cognos Products: ps    (C) Copyright IBM Corp. 2005, 2012    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" requiredCapability="canUseContentStoreTool">    <!--    ===============================================================================================    Defines the display actions: there are the following:     ===============================================================================================    -->    <xts:block id="setMorphletActions"         processor="XSLT"         type="exec"         nodelist="env"         mandatory="true"         path="/portal/contenttask/setMorphletActions.xslt">    </xts:block>        <!--    ===============================================================================================    callAddEntriesPage - Calls the addEntries morphlet    ===============================================================================================    -->    <xts:block id="callAddEntriesPage" processor="XSLT" type="exec" nodelist="env,requestParams" dependency="setMorphletActions" condition=".[/root/callAddEntriesPage]" mandatory="false">        <xts:logicsheet path="logicsheets/portal.xsl"/>        <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>        <xsl:stylesheet version="1.0"            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"            xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"            xmlns:req-params="http://developer.cognos.com/schemas/request/params"            exclude-result-prefixes="xsl dlgctrl req-params">            <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>                        <xsl:key name="request-param" match="/root/*[local-name()='requestParams']/*[local-name()='param']" use="@name"/>                        <xsl:template match="/">                <xts:sequence>                    <dlgctrl:XTS2Request>                        <dlgctrl:target>/portal/addEntries/add_entries.xts</dlgctrl:target>                        <req-params:param name="defaultTarget">/portal/new_contentTask_retentionRuleUpdate.xts</req-params:param>                        <req-params:param name="titlePostfix"><xts:string id="IDS_NEW_CONTENT_TASK_RETENTION_RULE_UPDATE_TITLE"/></req-params:param>                        <req-params:param name="defaultSearchPath">/</req-params:param>                        <req-params:param name="addEntriesUI">packagesAndLocations</req-params:param>                        <req-params:param name="allowRootBrowsing">true</req-params:param>                        <req-params:param name="allowDuplicates">false</req-params:param>                        <req-params:param name="selectableRootObjects">true</req-params:param>                        <req-params:param name="returnProperties">                            <req-params:property name="hidden"/>                        </req-params:param>                    </dlgctrl:XTS2Request>                </xts:sequence>            </xsl:template>                    </xsl:stylesheet>    </xts:block>        <!--    ===============================================================================================    processAddEntriesResponse - process the addEndtries morphlet response    ===============================================================================================    -->    <xts:block id="processAddEntriesResponse"         path="/portal/addEntries/logicsheets/process_added_entries.xslt"         processor="XSLT" dependency="callAddEntriesPage"         nodelist="output,env,morphletResponse,credential,cookies" type="exec"         condition=".[/root/callAddEntriesPage]" mandatory="false">        <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>        <xts:logicsheet path="logicsheets/portal.xsl"/>    </xts:block>         <!--    ===============================================================================================    Query the default included content: this is invoked only when there is no submitted includedContent parameter    ===============================================================================================    -->    <xts:block id="queryDefaultIncludedContent"        path="/portal/contenttask/initializeIncludedContent.xslt"         processor="XSLT" type="exec"         dependency="processAddEntriesResponse"         condition=".[not(/root/env/param[@name='includedPackagesAndFolders']) and /root/showCurrentPage]"         nodelist="header,env"         mandatory="false">        <xts:logicsheet path="logicsheets/cm-logic.xsl"/>        <xts:logicsheet path="logicsheets/buslogic.xslt"/>    </xts:block>        <!--    ===============================================================================================    Retrieve the included content: either take the default content or grab it from the submitted    includedPackagesAndFolders parameter    ===============================================================================================    -->    <xts:block id="retrieveIncludedPackagesAndFolders"         path="/portal/contenttask/retrieveIncludedContent.xslt"         processor="XSLT" type="exec"         dependency="queryDefaultIncludedContent"         condition="/root/showCurrentPage"         nodelist="env,packageAndFolderSection,newEntries,header,credential,setCookies,cookies"         mandatory="false">        <xts:logicsheet path="logicsheets/contentadmin.xsl"/>        <xts:logicsheet path="logicsheets/portal.xsl"/>            </xts:block>	<!--	===============================================================================================	Generate the HTML	===============================================================================================	-->	<xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" mandatory="false" dependency="retrieveIncludedPackagesAndFolders" condition="/root/showCurrentPage">		<xts:logicsheet path="logicsheets/contentadmin.xsl"/>		<xts:logicsheet path="logicsheets/portal.xsl"/>		<xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>		<xts:logicsheet path="logicsheets/presentation/layout.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/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:cm="http://developer.cognos.com/schemas/xts-cm/1/" 			xmlns:xts="http://developer.cognos.com/schemas/xts/" 			xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" 			xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" 			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:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/" 			exclude-result-prefixes="xsl pf df dp lyt xts xtsext utml adm">			<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_contentTask_retentionRuleUpdate.xts'"/>            <xsl:variable name="has_write_permission" select="true()"/>			<pf:variables/>            <pf:gen-icon/>						<!-- start the output -->			<xsl:template match="/root">				<xsl:variable name="wizard-title"><xts:string id="IDS_NEW_CONTENT_TASK_RETENTION_RULE_UPDATE_TITLE"/></xsl:variable>				<xsl:variable name="browserTitle">					<xts:string id="IDS_CONTENT_TASK_SELECT_TYPE_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:dojo>						<require>com.ibm.cognos.ps.list</require>						<require>com.ibm.cognos.ps.retentionRule</require>					</pf:dojo>						<script language="javascript" src="{$webcontent}/{$app}/js/contentTask.js"/>					<script language="javascript" src="{$webcontent}/{$app}/js/list.js"/>					<script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>					<script language="JavaScript">							function validate(){								return (new com.ibm.cognos.ps.retentionRule(document.pform)).validate({										IDS_ERR_NON_NEGATIVE: '<xts:string id="IDS_ERR_NON_NEGATIVE" encode="javascript"/>',										IDS_ERR_POSITIVE: '<xts:string id="IDS_ERR_POSITIVE" encode="javascript"/>',										IDS_ERR_NON_INPUT: '<xts:string id="IDS_ERR_NON_INPUT" encode="javascript"/>',										IDS_ERR_INVALID_TASK_TYPE: '<xts:string id="IDS_ERR_INVALID_TASK_TYPE" encode="javascript"/>'								},'retention');							}						</script>						<!-- Help system -->						<pf:help/>					</dp:script>					<utml:form name="pform" method="post" action="{$gateway}">						<utml:input type="hidden" name="ifrmcmd" utml:update="false" value="create"/>                        <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>                        <utml:input type="hidden" name="listop" value="" utml:update="false"/>						<utml:input type="hidden" name="cto_cleanupContent" utml:update="false" value="true"/>						<utml:input type="hidden" name="cto_donotwritetorepository" utml:update="false" value="true"/>						<utml:input type="hidden" name="cto_updateContextObjects" utml:update="false" value="true"/>						<!-- Just use defaults for these values. A means to edit them will be added later -->												<!-- dialog header -->						<dp:header>							<dp:title><xsl:value-of select="$browserTitle"/></dp:title>							<!-- description tabs -->							<dp:description>								<xts:string id="IDS_CONTENT_TASK_DESCRIPTION"/>							</dp:description>						</dp:header>			 			                        <adm:packageAndFolderSection/>                        												<lyt:layout style="2" title="IDS_CONTENT_TASK_RETENTION_SETTINGS" border="yes" intro="IDS_PROP_RETENTION_HINT">							<lyt:section>								<adm:retentionSettings ui='retention' class="history" title="IDS_PROP_RETENTION_EXECUTION" label="IDS_PROP_RETENTION_EXECUTION_LABEL"/>							</lyt:section>							<lyt:section>								<adm:retentionSettings ui='retention' class="reportVersion" title="IDS_PROP_RETENTION_GENERIC_OUTPUTS" label="IDS_PROP_RETENTION_GENERIC_OUTPUTS_LABEL"/>							</lyt:section>							<lyt:section>								<adm:retentionSettings ui='retention' class="documentVersion" title="IDS_PROP_RETENTION_GENERIC_OUTPUTS" label="IDS_PROP_RETENTION_GENERIC_OUTPUTS_LABEL"/>							</lyt:section>						</lyt:layout>  												<adm:propRecordingLevel/>												<dp:footer>							<df:button df:id="IDS_CANCEL" df:style="back-url"/>							<df:button df:id="IDS_BACK" df:style="maintain">								<df:target>									<xsl:value-of select="concat($app, '/new_general.xts')"/>								</df:target>							</df:button>								<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:form>				</dp:page>			</xsl:template>		</xsl:stylesheet>	</xts:block>		<!--	=============================================	Output debug dump	=============================================	-->	<xts:block id="debug" type="exec" mode="output" processor="XSLT" condition=".[/root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']" mandatory="false" mimeType="text/html" dependency="format">		<!-- 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>
 |