new_contentTask_contentRemoval.xts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2012
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseAdministrationPortal">
  13. <!--
  14. ===============================================================================================
  15. Defines the display actions: there are the following:
  16. ===============================================================================================
  17. -->
  18. <xts:block id="setMorphletActions" processor="XSLT" type="exec" nodelist="env" mandatory="true" path="/portal/contenttask/setMorphletActions.xslt">
  19. </xts:block>
  20. <!--
  21. ===============================================================================================
  22. callAddEntriesPage - Calls the addEntries morphlet
  23. ===============================================================================================
  24. -->
  25. <xts:block id="callAddEntriesPage" processor="XSLT" type="exec" nodelist="env,requestParams" dependency="setMorphletActions" condition=".[/root/callAddEntriesPage]" mandatory="false">
  26. <xts:logicsheet path="logicsheets/portal.xsl"/>
  27. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  28. <xsl:stylesheet version="1.0"
  29. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  30. xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
  31. xmlns:req-params="http://developer.cognos.com/schemas/request/params"
  32. exclude-result-prefixes="xsl dlgctrl req-params">
  33. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  34. <xsl:key name="request-param" match="/root/*[local-name()='requestParams']/*[local-name()='param']" use="@name"/>
  35. <xsl:template match="/">
  36. <xts:sequence>
  37. <dlgctrl:XTS2Request>
  38. <dlgctrl:target>/portal/addEntries/add_entries.xts</dlgctrl:target>
  39. <req-params:param name="defaultTarget">/portal/new_contentTask_contentRemoval.xts</req-params:param>
  40. <req-params:param name="titlePostfix"><xts:string id="IDS_NEW_CONTENT_TASK_CONTENT_REMOVAL_TITLE"/></req-params:param>
  41. <req-params:param name="defaultSearchPath">/</req-params:param>
  42. <req-params:param name="addEntriesUI">packagesAndLocations</req-params:param>
  43. <req-params:param name="allowRootBrowsing">true</req-params:param>
  44. <req-params:param name="allowDuplicates">false</req-params:param>
  45. <req-params:param name="selectableRootObjects">true</req-params:param>
  46. <req-params:param name="returnProperties">
  47. <req-params:property name="hidden"/>
  48. </req-params:param>
  49. </dlgctrl:XTS2Request>
  50. </xts:sequence>
  51. </xsl:template>
  52. </xsl:stylesheet>
  53. </xts:block>
  54. <!--
  55. ===============================================================================================
  56. processAddEntriesResponse - process the addEndtries morphlet response
  57. ===============================================================================================
  58. -->
  59. <xts:block id="processAddEntriesResponse"
  60. path="/portal/addEntries/logicsheets/process_added_entries.xslt"
  61. processor="XSLT" type="exec"
  62. dependency="callAddEntriesPage"
  63. nodelist="output,env,morphletResponse,credential,cookies"
  64. condition=".[/root/callAddEntriesPage]"
  65. mandatory="false">
  66. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  67. <xts:logicsheet path="logicsheets/portal.xsl"/>
  68. </xts:block>
  69. <!--
  70. ===============================================================================================
  71. Query the default included content: this is invoked only when there is no submitted includedContent parameter
  72. ===============================================================================================
  73. -->
  74. <xts:block id="queryDefaultIncludedContent"
  75. path="/portal/contenttask/initializeIncludedContent.xslt"
  76. processor="XSLT" type="exec"
  77. dependency="processAddEntriesResponse"
  78. condition=".[not(/root/env/param[@name='includedPackagesAndFolders']) and /root/showCurrentPage]"
  79. nodelist="header,env"
  80. mandatory="false">
  81. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  82. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  83. </xts:block>
  84. <!--
  85. ===============================================================================================
  86. Retrieve the included content: either take the default content or grab it from the submitted
  87. includedPackagesAndFolders parameter
  88. ===============================================================================================
  89. -->
  90. <xts:block id="retrieveIncludedPackagesAndFolders"
  91. path="/portal/contenttask/retrieveIncludedContent.xslt"
  92. processor="XSLT" type="exec"
  93. dependency="queryDefaultIncludedContent"
  94. condition="/root/showCurrentPage"
  95. nodelist="env,packageAndFolderSection,newEntries,header,credential,setCookies,cookies"
  96. mandatory="false">
  97. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  98. <xts:logicsheet path="logicsheets/portal.xsl"/>
  99. </xts:block>
  100. <!--
  101. ===============================================================================================
  102. Generate the HTML
  103. ===============================================================================================
  104. -->
  105. <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"/>
  106. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  107. <xts:logicsheet path="logicsheets/portal.xsl"/>
  108. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  109. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  110. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  111. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  112. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  113. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  114. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  115. <xsl:stylesheet version="1.0"
  116. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  117. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  118. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  119. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  120. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  121. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  122. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  123. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  124. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  125. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  126. exclude-result-prefixes="xsl pf df dp lyt xts xtsext utml">
  127. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  128. <!-- current file name -->
  129. <xsl:variable name="mname" select="'new_contentTask_contentRemoval.xts'"/>
  130. <xsl:variable name="has_write_permission" select="true()"/>
  131. <pf:variables/>
  132. <pf:gen-icon/>
  133. <!-- start the output -->
  134. <xsl:template match="/root">
  135. <xsl:variable name="wizard-title"><xts:string id="IDS_NEW_CONTENT_TASK_CONTENT_REMOVAL_TITLE"/></xsl:variable>
  136. <xsl:variable name="browserTitle">
  137. <xts:string id="IDS_CONTENT_TASK_SELECT_TYPE_TITLE">
  138. <xts:param name="wizardName">
  139. <xsl:value-of select="$wizard-title"/>
  140. </xts:param>
  141. </xts:string>
  142. </xsl:variable>
  143. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  144. <dp:meta>
  145. <pf:meta/>
  146. <!-- Standard meta tags -->
  147. </dp:meta>
  148. <dp:script>
  149. <pf:dojo>
  150. <require>com.ibm.cognos.ps.list</require>
  151. <require>com.ibm.cognos.ps.retentionRule</require>
  152. </pf:dojo>
  153. <script language="javascript" src="{$webcontent}/{$app}/js/contentTask.js"/>
  154. <script language="javascript" src="{$webcontent}/{$app}/js/list.js"/>
  155. <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
  156. <script language="JavaScript">
  157. function validate(){
  158. return (new com.ibm.cognos.ps.retentionRule(document.pform)).validate({
  159. IDS_ERR_NON_NEGATIVE: '<xts:string id="IDS_ERR_NON_NEGATIVE" encode="javascript"/>',
  160. IDS_ERR_POSITIVE: '<xts:string id="IDS_ERR_POSITIVE" encode="javascript"/>',
  161. IDS_ERR_NON_INPUT: '<xts:string id="IDS_ERR_NON_INPUT" encode="javascript"/>',
  162. IDS_ERR_INVALID_TASK_TYPE: '<xts:string id="IDS_ERR_INVALID_TASK_TYPE" encode="javascript"/>'
  163. },'removal');
  164. }
  165. </script>
  166. <!-- Help system -->
  167. <pf:help/>
  168. </dp:script>
  169. <utml:form name="pform" method="post" action="{$gateway}">
  170. <utml:input type="hidden" name="ifrmcmd" utml:update="false" value="create"/>
  171. <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
  172. <utml:input type="hidden" name="listop" value="" utml:update="false"/>
  173. <utml:input type="hidden" name="cto_cleanupContent" utml:update="false" value="true"/>
  174. <utml:input type="hidden" name="cto_donotwritetorepository" utml:update="false" value="true"/>
  175. <utml:input type="hidden" name="cto_updateContextObjects" utml:update="false" value="false"/>
  176. <!-- dialog header -->
  177. <dp:header>
  178. <dp:title><xsl:value-of select="$browserTitle"/></dp:title>
  179. <!-- description tabs -->
  180. <dp:description>
  181. <xts:string id="IDS_CONTENT_TASK_DESCRIPTION"/>
  182. </dp:description>
  183. </dp:header>
  184. <adm:packageAndFolderSection/>
  185. <lyt:layout style="2" title="IDS_CONTENT_TASK_REMOVAL_SETTINGS" border="yes" intro="IDS_PROP_RETENTION_HINT_REMOVAL">
  186. <lyt:section>
  187. <adm:retentionSettings ui="removal" class="history" title="IDS_PROP_RETENTION_EXECUTION" label="IDS_PROP_RETENTION_EXECUTION_LABEL"/>
  188. </lyt:section>
  189. <lyt:section>
  190. <adm:retentionSettings ui="removal" class="reportVersion" title="IDS_PROP_RETENTION_GENERIC_OUTPUTS" label="IDS_PROP_RETENTION_GENERIC_OUTPUTS_LABEL"/>
  191. </lyt:section>
  192. <lyt:section>
  193. <adm:retentionSettings ui="removal" class="documentVersion" title="IDS_PROP_RETENTION_GENERIC_OUTPUTS" label="IDS_PROP_RETENTION_GENERIC_OUTPUTS_LABEL"/>
  194. </lyt:section>
  195. </lyt:layout>
  196. <adm:propRecordingLevel/>
  197. <dp:footer>
  198. <df:button df:id="IDS_CANCEL" df:style="back-url"/>
  199. <df:button df:id="IDS_BACK" df:style="maintain">
  200. <df:target>
  201. <xsl:value-of select="concat($app, '/new_general.xts')"/>
  202. </df:target>
  203. </df:button>
  204. <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true">
  205. <df:target>
  206. <xsl:value-of select="concat($app, '/new_select_action.xts')"/>
  207. </df:target>
  208. </df:button>
  209. <df:button df:id="IDS_FINISH"/>
  210. </dp:footer>
  211. </utml:form>
  212. </dp:page>
  213. </xsl:template>
  214. </xsl:stylesheet>
  215. </xts:block>
  216. <!--
  217. =============================================
  218. Output debug dump
  219. =============================================
  220. -->
  221. <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">
  222. <!-- get the debug logic sheet -->
  223. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  224. <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">
  225. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  226. <xsl:template match="/">
  227. <dbg:dumpxml select="/root"/>
  228. </xsl:template>
  229. </xsl:stylesheet>
  230. </xts:block>
  231. </xts:morphlet>