conditional_subscribe2.xts 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ASV
  5. (C) Copyright IBM Corp. 2005, 2015
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/subscribe.xml,messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseConditionalSubscriptions">
  9. <!--
  10. Normal formlogic predicate
  11. -->
  12. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="logicsheets/formlogic_init.xslt"/>
  13. <!--
  14. ===============================================================================================
  15. callMorphlet - Calls the appropriate morphlet using the passed in params which will return
  16. markup to be displayed or the expected results
  17. ===============================================================================================
  18. -->
  19. <xts:block id="callMorphlet" processor="XSLT" dependency="formlogic_init" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' ]" mandatory="false">
  20. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  21. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  22. xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
  23. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:req-params="http://developer.cognos.com/schemas/request/params" exclude-result-prefixes="xsl dlgctrl xtsext req-params">
  24. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  25. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  26. <xsl:template match="/">
  27. <xsl:variable name="controller_state" select="/root/env/param[@name='controller_state']"/>
  28. <xts:sequence>
  29. <xsl:choose>
  30. <xsl:when test="starts-with($controller_state,'email')">
  31. <dlgctrl:XTS2Request>
  32. <dlgctrl:target>/portal/emailOptions/email_options.xts</dlgctrl:target>
  33. <dlgctrl:stackName>email_options</dlgctrl:stackName>
  34. <req-params:param name="options">
  35. <xsl:value-of select="key('env-param','deliveryOptions')"/>
  36. </req-params:param>
  37. <req-params:param name="titlePrefix">
  38. <xts:string id="IDS_EMAIL_OPTIONS_TITLE_PREFIX"/>
  39. </req-params:param>
  40. <req-params:param name="titlePostfix">
  41. <xsl:value-of select="key('env-param','m_name')"/>
  42. </req-params:param>
  43. <req-params:param name="defaultTarget">subscribe/conditional_subscribe2.xts</req-params:param>
  44. <req-params:param name="burst">
  45. <xsl:value-of select="key('env-param','m_ro_burst')"/>
  46. </req-params:param>
  47. <req-params:param name="subscription">
  48. <xsl:text>true</xsl:text>
  49. </req-params:param>
  50. <!-- default task name incase the email subject is empty -->
  51. <req-params:param name="taskName">
  52. <xsl:text><xts:string id="IDS_CUSTSUB_DEFAULT_EMAIL_TASKNAME"/></xsl:text>
  53. </req-params:param>
  54. </dlgctrl:XTS2Request>
  55. </xsl:when>
  56. <xsl:when test="starts-with($controller_state,'task')">
  57. <dlgctrl:XTS2Request>
  58. <dlgctrl:target>/subscribe/taskOptions/task_options.xts</dlgctrl:target>
  59. <dlgctrl:stackName>task_options</dlgctrl:stackName>
  60. <req-params:param name="taskOptions">
  61. <xsl:value-of select="key('env-param','taskOptions')"/>
  62. </req-params:param>
  63. <req-params:param name="titlePrefix">
  64. <xts:string id="IDS_TASK_OPTIONS_TITLE_PREFIX"/>
  65. </req-params:param>
  66. <req-params:param name="titlePostfix">
  67. <xsl:value-of select="key('env-param','m_name')"/>
  68. </req-params:param>
  69. <req-params:param name="defaultTarget">subscribe/conditional_subscribe2.xts</req-params:param>
  70. <req-params:param name="burst">
  71. <xsl:value-of select="key('env-param','m_ro_burst')"/>
  72. </req-params:param>
  73. <req-params:param name="subscription">
  74. <xsl:text>true</xsl:text>
  75. </req-params:param>
  76. <!-- default task name incase the email subject is empty -->
  77. <req-params:param name="taskName">
  78. <xsl:text><xts:string id="IDS_CUSTSUB_DEFAULT_EMAIL_TASKNAME"/></xsl:text>
  79. </req-params:param>
  80. <!-- have to say that we're a notification -->
  81. <req-params:param name="taskType">
  82. <xsl:text>notification</xsl:text>
  83. </req-params:param>
  84. </dlgctrl:XTS2Request>
  85. </xsl:when>
  86. </xsl:choose>
  87. </xts:sequence>
  88. </xsl:template>
  89. </xsl:stylesheet>
  90. </xts:block>
  91. <!--
  92. ===============================================================================================
  93. processReponse - Process the response from the callMorphlet block and either displays
  94. the markup or processes the results\
  95. ===============================================================================================
  96. -->
  97. <xts:block id="processEmailResponse" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="callMorphlet" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' and starts-with(/root/env/param[@name='controller_state'],'email')]" mandatory="false">
  98. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  99. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  100. <xts:logicsheet path="logicsheets/portal.xsl"/>
  101. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  102. </xts:block>
  103. <!--
  104. ===============================================================================================
  105. processReponse - Process the response from the callMorphlet block and either displays
  106. the markup or processes the results
  107. ===============================================================================================
  108. -->
  109. <xts:block id="processTaskResponse" path="/subscribe/taskOptions/logicsheets/process_task_options.xslt" processor="XSLT" dependency="processEmailResponse" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' and starts-with(/root/env/param[@name='controller_state'],'task')]" mandatory="false">
  110. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  111. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  112. <xts:logicsheet path="logicsheets/portal.xsl"/>
  113. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  114. </xts:block>
  115. <!--
  116. ===============================================================================================
  117. generateDefaultEmailOptions - If no delivery options where save on the object and it's the
  118. first time we hit this page then generate defaults - can't use the portal default - we have to give a defaultSubject
  119. ===============================================================================================
  120. -->
  121. <xts:block id="generateDefaultEmailOptions" path="subscribe/blocks/generateDefaultSubscribeEmailOptions.xslt" processor="XSLT" dependency="processTaskResponse" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='deliveryOptions'])]" mandatory="false">
  122. <xts:logicsheet path="logicsheets/portal.xsl"/>
  123. <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
  124. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  125. </xts:block>
  126. <!--
  127. ===============================================================================================
  128. processDefaultEmailOptions - If no delivery options where save on the object and it's the
  129. first time we hit then process the default delivery options.
  130. ===============================================================================================
  131. -->
  132. <xts:block id="processDefaultEmailOptions" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="generateDefaultEmailOptions" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='deliveryOptions'])]" mandatory="false">
  133. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  134. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  135. <xts:logicsheet path="logicsheets/portal.xsl"/>
  136. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  137. </xts:block>
  138. <!--
  139. ===============================================================================================
  140. generateDefaultTaskOptions - If no task options where save on the object and it's the
  141. first time we hit this page then generate defaults - can't use the portal default - we have to give a defaultSubject
  142. ===============================================================================================
  143. -->
  144. <xts:block id="generateDefaultTaskOptions" path="subscribe/blocks/generateDefaultSubscribeTaskOptions.xslt" processor="XSLT" dependency="processDefaultEmailOptions" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='taskOptions'])]" mandatory="false">
  145. <xts:logicsheet path="logicsheets/portal.xsl"/>
  146. <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
  147. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  148. </xts:block>
  149. <!--
  150. ===============================================================================================
  151. processDefaultTaskOptions - If no task options where save on the object and it's the
  152. first time we hit then process the default task options.
  153. ===============================================================================================
  154. -->
  155. <xts:block id="processDefaultTaskOptions" path="/subscribe/taskOptions/logicsheets/process_task_options.xslt" processor="XSLT" dependency="generateDefaultTaskOptions" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='taskOptions'])]" mandatory="false">
  156. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  157. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  158. <xts:logicsheet path="logicsheets/portal.xsl"/>
  159. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  160. </xts:block>
  161. <!--
  162. ===============================================================================================
  163. make sure that we have valid default news variables
  164. ===============================================================================================
  165. -->
  166. <xts:block id="generateDefaultNewsitemOptions" path="subscribe/blocks/generateDefaultNewsitemOptions.xslt" processor="XSLT" type="exec" dependency="processDefaultTaskOptions" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and (not(/root/env/param[@name='m_subData_newsitem_options']) or /root/env/param[@name='m_subData_newsitem_options']='')]" mandatory="false">
  167. <xts:logicsheet path="logicsheets/portal.xsl"/>
  168. <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
  169. </xts:block>
  170. <!--
  171. ===============================================================================================
  172. Query for information about the account - we need an email address to allow email delivery
  173. ===============================================================================================
  174. -->
  175. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init generateDefaultNewsitemOptions" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false">
  176. <xts:logicsheet path="logicsheets/portal.xsl"/>
  177. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  178. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  179. <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:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  180. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  181. <xsl:template match="/">
  182. <xts:sequence>
  183. <!-- get some new stuff -->
  184. <xts:append>
  185. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  186. <send:request provider="cm">
  187. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  188. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  189. <cm:search>
  190. <xsl:value-of select="'~'"/>
  191. </cm:search>
  192. <cm:properties>
  193. <cm:property name="email"/>
  194. <cm:property name="notificationEMail"/>
  195. </cm:properties>
  196. </cm:query>
  197. </xts:transform>
  198. </send:request>
  199. </xts:transform>
  200. <newsitemPath>
  201. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  202. <send:request provider="cm">
  203. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  204. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  205. <cm:search>
  206. <xsl:value-of select="/root/env/param[@name='m_subData_newsitem_path']"/>
  207. </cm:search>
  208. <cm:properties>
  209. <cm:property name="searchPath"/>
  210. <cm:property name="ancestors"/>
  211. <cm:property name="defaultName"/>
  212. </cm:properties>
  213. </cm:query>
  214. </xts:transform>
  215. </send:request>
  216. </xts:transform>
  217. </newsitemPath>
  218. </xts:append>
  219. </xts:sequence>
  220. </xsl:template>
  221. </xsl:stylesheet>
  222. </xts:block>
  223. <!--
  224. ===============================================================================================
  225. update the taskName
  226. ===============================================================================================
  227. -->
  228. <xts:block id="updateTaskNames" path="subscribe/blocks/updateTaskNames.xslt" processor="XSLT" type="exec" dependency="getContent" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false"/>
  229. <!--
  230. ===============================================================================================
  231. build CM structure for icons
  232. ===============================================================================================
  233. -->
  234. <xts:block id="buildIconStructure" processor="XSLT" type="exec" dependency="updateTaskNames" mandatory="true">
  235. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" exclude-result-prefixes="xsl xts cm">
  236. <xsl:template match="/">
  237. <xts:sequence>
  238. <xts:append select="/root">
  239. <icon name="memo">
  240. <cm:baseClass>
  241. <cm:objectClass>memo</cm:objectClass>
  242. <cm:defaultName><xts:string id="IDS_CUSTSUB_DELIVERY_EMAIL"/></cm:defaultName>
  243. </cm:baseClass>
  244. </icon>
  245. <icon name="newsitem">
  246. <cm:baseClass>
  247. <cm:objectClass>shortcutRSSTask</cm:objectClass>
  248. <cm:defaultName><xts:string id="IDS_CUSTSUB_DELIVERY_NEWSITEM"/></cm:defaultName>
  249. </cm:baseClass>
  250. </icon>
  251. <icon name="humanTask">
  252. <cm:baseClass>
  253. <cm:objectClass>humanTask</cm:objectClass>
  254. <cm:iconURI>./ps/portal/images/icon_notification.gif</cm:iconURI>
  255. <cm:defaultName><xts:string id="IDS_CUSTSUB_DELIVERY_TASK"/></cm:defaultName>
  256. </cm:baseClass>
  257. </icon>
  258. </xts:append>
  259. </xts:sequence>
  260. </xsl:template>
  261. </xsl:stylesheet>
  262. </xts:block>
  263. <!--
  264. ===============================================================================================
  265. formatski block
  266. ===============================================================================================
  267. -->
  268. <xts:block id="format" dependency="buildIconStructure" mode="output" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" processor="XSLT" type="exec" mimeType="text/html">
  269. <!-- get the debug logic sheet -->
  270. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  271. <xts:logicsheet path="logicsheets/portal.xsl"/>
  272. <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
  273. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  274. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  275. <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
  276. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  277. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  278. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  279. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  280. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  281. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:rdsad="http://developer.cognos.com/schemas/xts/rdsad/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" 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:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/" 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:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df ca utml qsdlg xtsext rdsad cf cp cm">
  282. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  283. <!-- add any theme variables -->
  284. <pf:variables/>
  285. <!-- get the title -->
  286. <xsl:variable name="wizardTitle">
  287. <xts:string id="IDS_CUSTSUB_TITLE"/>
  288. </xsl:variable>
  289. <xsl:variable name="new-general-title">
  290. <xts:string id="IDS_CUSTSUB_DELIVERY_TITLE">
  291. <xts:param name="wizardTitle">
  292. <xsl:value-of select="$wizardTitle"/>
  293. </xts:param>
  294. </xts:string>
  295. </xsl:variable>
  296. <xsl:variable name="mname">
  297. <xsl:text>subscribe/conditional_subscribe2.xts</xsl:text>
  298. </xsl:variable>
  299. <!-- start the output -->
  300. <xsl:template match="/root">
  301. <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
  302. <dp:page longTitle="$new-general-title">
  303. <dp:meta>
  304. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  305. <meta name="Copyright" content="Copyright (C) 2008 Cognos Incorporated. All Rights Reserved."/>
  306. <meta name="Trademark" content="Cognos and the Cognos logo are trademarks of Cognos Incorporated."/>
  307. </dp:meta>
  308. <dp:script>
  309. <script type="text/javascript">
  310. function doCancel() {
  311. window.close();
  312. }
  313. function validate()
  314. {
  315. var valid = deliveryValidate();
  316. if (valid) {
  317. // disable unused delivery checkboxes
  318. removeDeliveryCBS();
  319. }
  320. return valid;
  321. }
  322. </script>
  323. <!-- Help system -->
  324. <pf:help context="HID_MY_WATCH_ITEMS"/>
  325. </dp:script>
  326. <utml:form name="pform" method="post" action="{$gateway}">
  327. <utml:exclusion-list><xsl:value-of select="' m_subData_newsitem m_subData_n '"/>could</utml:exclusion-list>
  328. <utml:input type="hidden" name="ifrmcmd" value="create" utml:update="false"/>
  329. <utml:input type="hidden" name="h_CAM_action" value="generateTC" utml:update="false"/>
  330. <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
  331. <dp:header>
  332. <!-- header titles-->
  333. <dp:title>
  334. <xsl:value-of select="$new-general-title"/>
  335. </dp:title>
  336. <dp:description>
  337. <xts:string id="IDS_CUSTSUB_DELIVERY_INTRO"/>
  338. </dp:description>
  339. <dp:close>
  340. <xsl:choose>
  341. <xsl:when test="/root/env/param[@name='backURL']">
  342. <a href="{/root/env/param[@name = 'backURL']}">
  343. <dp:closeMarker/>
  344. </a>
  345. </xsl:when>
  346. <xsl:otherwise>
  347. <a href="javascript:doCancel()">
  348. <dp:closeMarker/>
  349. </a>
  350. </xsl:otherwise>
  351. </xsl:choose>
  352. </dp:close>
  353. </dp:header>
  354. <lyt:layout style="1">
  355. <lyt:section>
  356. <dp:list title="IDS_CUSTSUB_NOTIFICATION_TYPE_TITLE" width="100%">
  357. <dp:section>
  358. <dp:hint wrap="wrap">
  359. <xts:string id="IDS_CUSTSUB_NOTIFICATION_TYPE_HINT"/>
  360. </dp:hint>
  361. </dp:section>
  362. <dp:section width="100%">
  363. <div>
  364. <!-- email -->
  365. <rdsad:deliveryDisplay>
  366. <display>
  367. <option name="email">
  368. <visible>
  369. <xsl:choose>
  370. <xsl:when test="key('session-param','e_hp')!='' and key('session-param','e_hp')!='CAMID(&quot;::Anonymous&quot;)' and (/root/*[local-name()='queryResponse']/*[local-name()='account']/*[local-name()='email'] != '' or /root/*[local-name()='queryResponse']/*[local-name()='account']/*[local-name()='notificationEMail']/*[local-name()='value'] != '') " >
  371. <xsl:text>true</xsl:text>
  372. </xsl:when>
  373. <xsl:otherwise>
  374. <xsl:text>false</xsl:text>
  375. </xsl:otherwise>
  376. </xsl:choose>
  377. </visible>
  378. <icon role="img">
  379. <xsl:for-each select="/root/icon[@name='memo']/*[local-name()='baseClass']">
  380. <xsl:call-template name="gen-icon"/>
  381. </xsl:for-each>
  382. </icon>
  383. <title>
  384. <xsl:choose>
  385. <xsl:when test="/root/env/param[@name='emailSummary'] != ''">
  386. <xsl:value-of select="/root/env/param[@name='emailSummary']"/>
  387. </xsl:when>
  388. <xsl:when test="not($emailAsAttachment or $emailAsURL)">
  389. <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY"/></xsl:text>
  390. </xsl:when>
  391. <xsl:when test="$emailAsAttachment and not($emailAsURL)">
  392. <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_REPORT"/></xsl:text>
  393. </xsl:when>
  394. <xsl:when test="not($emailAsAttachment) and $emailAsURL">
  395. <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_URL"/></xsl:text>
  396. </xsl:when>
  397. <xsl:otherwise>
  398. <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_BOTH"/></xsl:text>
  399. </xsl:otherwise>
  400. </xsl:choose>
  401. </title>
  402. <description>
  403. <text><xsl:value-of select="/root/env/param[@name='emailDescription']"/></text>
  404. </description>
  405. <link>
  406. <href>document.pform.ps_nav_op.value='maintain';document.pform.controller_state.value='email|markup'</href>
  407. <target><xsl:value-of select="$mname"/></target>
  408. <text><xts:string id="IDS_OTHERRUN_SET_EMAIL"/></text>
  409. </link>
  410. </option>
  411. <!--</xsl:if>-->
  412. <option name="newsitem">
  413. <visible><xsl:text>true</xsl:text></visible>
  414. <icon>
  415. <xsl:for-each select="/root/icon[@name='newsitem']/*[local-name()='baseClass']">
  416. <xsl:call-template name="gen-icon"/>
  417. </xsl:for-each>
  418. </icon>
  419. <title>
  420. <xsl:text><xts:string id="IDS_CUSTSUB_PUBLISH_NEWSITEM"/></xsl:text>
  421. </title>
  422. <description>
  423. <path>
  424. <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
  425. <xsl:attribute name="alt">
  426. <xsl:value-of select="$newsitem_path_link"/>
  427. </xsl:attribute>
  428. </img>
  429. </path>
  430. <text>
  431. <xsl:text>&#160;</xsl:text>
  432. <xsl:text/>
  433. <xsl:value-of select="/root/env/param[@name='m_subData_newsitem_headline']"/>
  434. <xsl:text/>
  435. </text>
  436. </description>
  437. <link>
  438. <href>document.pform.ps_nav_op.value='push';</href>
  439. <target><xsl:text>subscribe/conditional_newsitem.xts</xsl:text></target>
  440. <text><xts:string id="IDS_OTHERRUN_SET_EMAIL"/></text>
  441. <ariaLabel><xts:string id="IDS_NEWSITEM_OPTIONS_A11Y_LABEL"/></ariaLabel>
  442. </link>
  443. </option>
  444. <option name="task">
  445. <visible><xsl:text>true</xsl:text></visible>
  446. <icon>
  447. <xsl:for-each select="/root/icon[@name='humanTask']/*[local-name()='baseClass']">
  448. <xsl:call-template name="gen-icon"/>
  449. </xsl:for-each>
  450. </icon>
  451. <title>
  452. <xsl:text><xts:string id="IDS_CUSTSUB_PUBLISH_TASK"/></xsl:text>
  453. </title>
  454. <description>
  455. <text><xsl:value-of select="/root/env/param[@name='taskDescription']"/></text>
  456. </description>
  457. <link>
  458. <href>document.pform.ps_nav_op.value='maintain';document.pform.controller_state.value='task|markup';</href>
  459. <target><xsl:value-of select="$mname"/></target>
  460. <text><xts:string id="IDS_OTHERRUN_SET_EMAIL"/></text>
  461. <ariaLabel><xts:string id="IDS_NOTIFICATION_OPTIONS_A11Y_LABEL"/></ariaLabel>
  462. </link>
  463. </option>
  464. </display>
  465. </rdsad:deliveryDisplay>
  466. </div>
  467. </dp:section>
  468. </dp:list>
  469. </lyt:section>
  470. </lyt:layout>
  471. <!-- page footer -->
  472. <dp:footer>
  473. <xsl:variable name="back-target">
  474. <!-- we know where we're going -->
  475. <xsl:text>subscribe/conditional_subscribe1.xts</xsl:text>
  476. </xsl:variable>
  477. <xsl:variable name="next-target">
  478. <!-- we know where we're going -->
  479. <xsl:text>subscribe/conditional_subscribe3.xts</xsl:text>
  480. </xsl:variable>
  481. <df:button df:id="IDS_CANCEL" df:style="href">
  482. <df:href>
  483. <xsl:choose>
  484. <xsl:when test="/root/env/param[@name='backURL']">
  485. <xsl:value-of select="/root/env/param[@name='backURL']"/>
  486. </xsl:when>
  487. <xsl:otherwise>
  488. <xsl:text>javascript:doCancel();</xsl:text>
  489. </xsl:otherwise>
  490. </xsl:choose>
  491. </df:href>
  492. </df:button>
  493. <df:button df:id="IDS_BACK" df:style="maintain">
  494. <df:target>
  495. <xsl:value-of select="$back-target"/>
  496. </df:target>
  497. </df:button>
  498. <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true">
  499. <df:target>
  500. <xsl:value-of select="$next-target"/>
  501. </df:target>
  502. </df:button>
  503. <df:button df:id="IDS_FINISH"/>
  504. </dp:footer>
  505. </utml:form>
  506. </dp:page>
  507. </xsl:template>
  508. <pf:gen-icon/>
  509. </xsl:stylesheet>
  510. </xts:block>
  511. <!-- Debug -->
  512. <xts:block id="debug" type="exec" dependency="format" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html">
  513. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  514. <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="xsl dbg">
  515. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  516. <dbg:templates/>
  517. <xsl:template match="/">
  518. <dbg:dumpxml select="/root"/>
  519. </xsl:template>
  520. </xsl:stylesheet>
  521. </xts:block>
  522. </xts:morphlet>