deployment_details.xts 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191
  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, 2017
  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">
  13. <!--
  14. ===============================================================================================
  15. formlogic_init :
  16. ===============================================================================================
  17. -->
  18. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  19. <!--
  20. ===============================================================================================
  21. getObjectDisplayNames :
  22. ===============================================================================================
  23. -->
  24. <xts:block id="getObjectDisplayNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
  25. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
  26. </xts:block>
  27. <!--
  28. ===============================================================================================
  29. getContent :
  30. send the searchpath of the deployment record object passed from the previous page (view.xts) to CM. CM returns the
  31. requested properties.
  32. ===============================================================================================
  33. -->
  34. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init getObjectDisplayNames">
  35. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  36. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  37. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  38. <send:variables/>
  39. <xsl:template match="/">
  40. <xsl:variable name="m_sort">
  41. <xsl:choose>
  42. <xsl:when test=" /root/env/param[@name='m_sort']">
  43. <xsl:value-of select="/root/env/param[@name='m_sort']"/>
  44. </xsl:when>
  45. <xsl:otherwise>
  46. <xsl:value-of select="/root/session/param[@name='s_dep']"/>
  47. </xsl:otherwise>
  48. </xsl:choose>
  49. </xsl:variable>
  50. <xsl:variable name="object">
  51. <xsl:value-of select="/root/env/param[@name='m_obj']"/>
  52. </xsl:variable>
  53. <xsl:variable name="maxObjects">
  54. <xsl:choose>
  55. <xsl:when test="string(/root/env/param[@name = 'm_pagertoEntries']) !='' and string(/root/env/param[@name = 'm_pagerfromEntries']) !=''"><xsl:value-of select="(/root/env/param[@name = 'm_pagertoEntries'] - /root/env/param[@name = 'm_pagerfromEntries']) + 1"/></xsl:when>
  56. <xsl:when test="/root/session/param[@name = 'linesPerPage'] != ''">
  57. <xsl:value-of select="/root/session/param[@name='linesPerPage']"/>
  58. </xsl:when>
  59. <xsl:otherwise>
  60. <xsl:value-of select="/root/system/param[@name = 'defaultPortalPreferences']/pref[@name = 'lines']"/>
  61. </xsl:otherwise>
  62. </xsl:choose>
  63. </xsl:variable>
  64. <xsl:variable name="maxObjectsMessages">
  65. <xsl:choose>
  66. <xsl:when test="string(/root/env/param[@name = 'm_pagertoMessages']) !='' and string(/root/env/param[@name = 'm_pagerfromMessages']) !=''"><xsl:value-of select="(/root/env/param[@name = 'm_pagertoMessages'] - /root/env/param[@name = 'm_pagerfromMessages']) + 1"/></xsl:when>
  67. <xsl:when test="/root/session/param[@name = 'linesPerPage'] != ''">
  68. <xsl:value-of select="/root/session/param[@name='linesPerPage']"/>
  69. </xsl:when>
  70. <xsl:otherwise>
  71. <xsl:value-of select="/root/system/param[@name = 'defaultPortalPreferences']/pref[@name = 'lines']"/>
  72. </xsl:otherwise>
  73. </xsl:choose>
  74. </xsl:variable>
  75. <xsl:variable name="skipObjectsEntries">
  76. <xsl:choose>
  77. <xsl:when test="/root/env/param[@name = 'm_pagerfromEntries'] and /root/env/param[@name = 'm_pagerfromEntries']!=''">
  78. <xsl:value-of select="(/root/env/param[@name = 'm_pagerfromEntries'])-1"/>
  79. </xsl:when>
  80. <xsl:when test="/root/env/param[@name='m_Entriessection']!=''">
  81. <xsl:choose>
  82. <xsl:when test="/root/env/param[@name='m_Entriessection']!='-1'">
  83. <xsl:value-of select="((/root/env/param[@name='m_Entriessection']) -1)"/>
  84. </xsl:when>
  85. <xsl:otherwise>
  86. <xsl:value-of select="($maxObjects) * -1"/>
  87. </xsl:otherwise>
  88. </xsl:choose>
  89. </xsl:when>
  90. <xsl:otherwise>0</xsl:otherwise>
  91. </xsl:choose>
  92. </xsl:variable>
  93. <xsl:variable name="skipObjectsMessages">
  94. <xsl:choose>
  95. <xsl:when test="/root/env/param[@name = 'm_pagerfromMessages'] and /root/env/param[@name = 'm_pagerfromMessages']!=''">
  96. <xsl:value-of select="(/root/env/param[@name = 'm_pagerfromMessages'])-1"/>
  97. </xsl:when>
  98. <xsl:when test="/root/env/param[@name='m_Messagessection']!=''">
  99. <xsl:choose>
  100. <xsl:when test="/root/env/param[@name='m_Messagessection']!='-1'">
  101. <xsl:value-of select="((/root/env/param[@name='m_Messagessection']) -1)"/>
  102. </xsl:when>
  103. <xsl:otherwise>
  104. <xsl:value-of select="($maxObjectsMessages) * -1"/>
  105. </xsl:otherwise>
  106. </xsl:choose>
  107. </xsl:when>
  108. <xsl:otherwise>0</xsl:otherwise>
  109. </xsl:choose>
  110. </xsl:variable>
  111. <xts:sequence>
  112. <xts:append>
  113. <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
  114. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  115. <xts:transform src="transforms/portal/deploymentOptions/post-process-nil.xslt" processor="XSLT">
  116. <xts:transform src="portal/history/transforms/processDetails.xslt" processor="XSLT">
  117. <send:request provider="cm">
  118. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  119. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  120. <cm:requests>
  121. <cm:query>
  122. <cm:search>
  123. <xsl:value-of select="$object"/>[permission('read')]
  124. </cm:search>
  125. <cm:properties>
  126. <cm:property name="searchPath"/>
  127. <cm:property name="modificationTime"/>
  128. <cm:property name="contentLocale"/>
  129. <cm:property name="permissions"/>
  130. <cm:property name="usage"/>
  131. <cm:property name="disabled"/>
  132. <cm:property name="owner"/>
  133. <cm:property name="status"/>
  134. <cm:property name="actualExecutionTime"/>
  135. <cm:property name="actualCompletionTime"/>
  136. <cm:property name="status"/>
  137. <cm:property name="iconURI"/>
  138. <cm:property name="eventID"/>
  139. <cm:property name="ownerEventID"/>
  140. <cm:property name="restartEventID"/>
  141. </cm:properties>
  142. <cm:options>
  143. <cm:refProps>
  144. <cm:refProp refPropName="parent">
  145. <cm:properties>
  146. <cm:property name="defaultName"/>
  147. <cm:property name="permissions"/>
  148. <cm:property name="searchPath"/>
  149. <cm:property name="objectClass"/>
  150. </cm:properties>
  151. </cm:refProp>
  152. </cm:refProps>
  153. </cm:options>
  154. </cm:query>
  155. <cm:query>
  156. <cm:search><xsl:value-of select="$object"/>[permission('read')]//deploymentDetail[@deployedObjectUsage != 'subObject' and @deployedObjectStatus != 'existing']</cm:search>
  157. <!-- enable this when CM adds support -->
  158. <cm:sortBy>
  159. <xsl:choose>
  160. <xsl:when test="$m_sort='nd'">
  161. <cm:sort name="defaultName" order="descending"/>
  162. </xsl:when>
  163. <xsl:otherwise>
  164. <cm:sort name="defaultName" order="ascending"/>
  165. </xsl:otherwise>
  166. </xsl:choose>
  167. </cm:sortBy>
  168. <cm:properties>
  169. <cm:property name="deployedObjectClass"/>
  170. <cm:property name="defaultName"/>
  171. <cm:property name="ancestors"/>
  172. <cm:property name="position"/>
  173. <cm:property name="hasMessage"/>
  174. <cm:property name="deployedObjectUsage"/>
  175. <cm:property name="deployedObjectStatus"/>
  176. <cm:property name="iconURI"/>
  177. </cm:properties>
  178. <cm:options maxObjects="{($maxObjects)+1}" skipObjects="{$skipObjectsEntries}"/>
  179. </cm:query>
  180. <cm:query>
  181. <cm:search><xsl:value-of select="$object"/>[permission('read')]//*[(@objectClass='deploymentDetail' and @hasMessage = 'true' and @deployedObjectStatus != 'existing') or @objectClass='historyDetail']</cm:search>
  182. <cm:properties>
  183. <cm:property name="message"/>
  184. <cm:property name="deployedObjectClass"/>
  185. <cm:property name="defaultName"/>
  186. <cm:property name="ancestors"/>
  187. <cm:property name="position"/>
  188. <cm:property name="severity"/>
  189. <cm:property name="detail"/>
  190. <cm:property name="iconURI"/>
  191. </cm:properties>
  192. <cm:options maxObjects="{($maxObjectsMessages)+1}" skipObjects="{$skipObjectsMessages}"/>
  193. </cm:query>
  194. <cm:query>
  195. <cm:search><xsl:value-of select="$object"/>[permission('read')]/historyDetailRequestArguments</cm:search>
  196. <cm:properties>
  197. <cm:property name="options"/>
  198. <cm:property name="defaultName"/>
  199. </cm:properties>
  200. </cm:query>
  201. </cm:requests>
  202. </cm:query>
  203. </xts:transform>
  204. </send:request>
  205. </xts:transform>
  206. </xts:transform>
  207. </xts:transform>
  208. </xts:transform>
  209. </xts:append>
  210. <xts:delete select="/root/env/param[@name='pagerfromMessages']"/>
  211. <xts:delete select="/root/env/param[@name='pagertoMessages']"/>
  212. <xts:delete select="/root/env/param[@name='pagerfrom_dMessages']"/>
  213. <xts:delete select="/root/env/param[@name='pagerto_dMessages']"/>
  214. <xts:delete select="/root/env/param[@name='pagerfromEntries']"/>
  215. <xts:delete select="/root/env/param[@name='pagertoEntries']"/>
  216. <xts:delete select="/root/env/param[@name='pagerfrom_dEntries']"/>
  217. <xts:delete select="/root/env/param[@name='pagerto_dEntries']"/>
  218. </xts:sequence>
  219. </xsl:template>
  220. </xsl:stylesheet>
  221. </xts:block>
  222. <!--
  223. ===============================================================================================
  224. getRerunList: Query the Monitor service to find out if anything can be rerun.
  225. Should only do this when the status is failed
  226. ===============================================================================================
  227. -->
  228. <xts:block id="getRerunList" path="/portal/history/getRerunList.xsl" nodelist="header, env, queryResponse" type="exec" mode="interpret" processor="XSLT" dependency="getContent" mandatory="false" condition=".[/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*[local-name()='history']/*[local-name()='status' and (.='failed' or .='purged')]]">
  229. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  230. </xts:block>
  231. <!--
  232. ===============================================================================================
  233. eatFault - eat up any fault that occured while trying to release the conversation
  234. ===============================================================================================
  235. -->
  236. <xts:block id="eatFault" type="fault" processor="XSLT">
  237. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  238. <xsl:output method="xml"/>
  239. <xsl:template match="/">
  240. <eatFault/>
  241. </xsl:template>
  242. </xsl:stylesheet>
  243. </xts:block>
  244. <!--
  245. ===============================================================================================
  246. faultHandler - copy fault
  247. ===============================================================================================
  248. -->
  249. <xts:block id="faultHandler" type="fault" processor="XSLT">
  250. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  251. <xsl:output method="xml"/>
  252. <xsl:template match="/root/fault">
  253. <copyFault>
  254. <xsl:copy-of select="."/>
  255. </copyFault>
  256. </xsl:template>
  257. <xsl:template match="text()"/>
  258. </xsl:stylesheet>
  259. </xts:block>
  260. <!--
  261. ===============================================================================================
  262. getRelatedHistories: get the owner information and also all the rerun histories
  263. ===============================================================================================
  264. -->
  265. <xts:block id="getRelatedHistories" path="/portal/history/getRelatedHistories.xsl" nodelist="header, queryResponse" type="exec" mode="interpret" processor="XSLT" dependency="getContent">
  266. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  267. </xts:block>
  268. <!--
  269. ===============================================================================================
  270. getDeploymentInfo - get the multilingual names and default Name of the source packages.
  271. ===============================================================================================
  272. -->
  273. <xts:block id="getDeploymentInfo" processor="XSLT" type="exec" dependency="getContent">
  274. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  275. <xts:logicsheet path="logicsheets/portal.xsl"/>
  276. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  277. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  278. <xsl:template match="/">
  279. <xsl:variable name="archive" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='deploymentReport']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='archive']"/>
  280. <xsl:variable name="archiveEncryptPassword" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='deploymentReport']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='archiveEncryptPassword']"/>
  281. <xts:sequence>
  282. <xts:append>
  283. <archiveInformation>
  284. <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
  285. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  286. <send:request provider="cm" faultBlock="faultHandler">
  287. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  288. <xtscm:getDeploymentOptions xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/">
  289. <cm:inputOptions>
  290. <xsl:attribute name="archive">
  291. <xsl:value-of select="$archive"/>
  292. </xsl:attribute>
  293. <xsl:attribute name="archiveEncryptPassword">
  294. <xsl:value-of select="$archiveEncryptPassword"/>
  295. </xsl:attribute>
  296. <xsl:attribute name="upgradeArchiveOptions">true</xsl:attribute>
  297. </cm:inputOptions>
  298. </xtscm:getDeploymentOptions>
  299. </xts:transform>
  300. </send:request>
  301. </xts:transform>
  302. </xts:transform>
  303. </archiveInformation>
  304. </xts:append>
  305. </xts:sequence>
  306. </xsl:template>
  307. </xsl:stylesheet>
  308. </xts:block>
  309. <!--
  310. ===============================================================================================
  311. processArchiveOptions
  312. ===============================================================================================
  313. -->
  314. <xts:block id="processArchiveOptions"
  315. processor="XSLT"
  316. type="exec"
  317. nodelist="archiveInformation"
  318. condition=".[/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*]"
  319. mandatory="false"
  320. dependency="getDeploymentInfo">
  321. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  322. <xsl:template match="/">
  323. <xts:sequence>
  324. <xts:delete select="/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption'][@name='preserveStoreIDs']"/>
  325. </xts:sequence>
  326. </xsl:template>
  327. </xsl:stylesheet>
  328. </xts:block>
  329. ===============================================================================================
  330. getArchiveSourcePackageInfo - get the searchPath from the original source packages/folders to create a map of storeIDs and searchPaths.
  331. ===============================================================================================
  332. -->
  333. <xts:block id="getArchiveSourcePackageInfo"
  334. processor="XSLT"
  335. type="exec"
  336. nodelist="env, http, credential, cookies, header, user, system, archiveInformation"
  337. condition=".[/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*]"
  338. mandatory="false"
  339. dependency="getDeploymentInfo processArchiveOptions">
  340. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  341. <xts:logicsheet path="logicsheets/portal.xsl"/>
  342. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  343. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  344. <xsl:template match="/">
  345. <xts:sequence>
  346. <xts:append>
  347. <archiveSourcePackageInfo>
  348. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  349. <!-- older archives have an invalid cm:archiveSearchPath, therefore the bad searchPath error needs to be ignored -->
  350. <send:request provider="cm" faultBlock="eatFault">
  351. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  352. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  353. <cm:requests>
  354. <xsl:for-each select="/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*[local-name()='packageDeploymentInfo']">
  355. <cm:query>
  356. <cm:search>
  357. <xsl:value-of select="cm:archiveSearchPath"/>
  358. </cm:search>
  359. <cm:properties>
  360. <cm:property name="searchPath"/>
  361. <cm:property name="storeID"/>
  362. </cm:properties>
  363. </cm:query>
  364. </xsl:for-each>
  365. </cm:requests>
  366. </cm:query>
  367. </xts:transform>
  368. </send:request>
  369. </xts:transform>
  370. </archiveSourcePackageInfo>
  371. </xts:append>
  372. </xts:sequence>
  373. </xsl:template>
  374. </xsl:stylesheet>
  375. </xts:block>
  376. <!--
  377. ===============================================================================================
  378. getDeploymentRecordOptions
  379. ===============================================================================================
  380. -->
  381. <xts:block id="getDeploymentRecordOptions" processor="XSLT" type="exec" dependency="getArchiveSourcePackageInfo">
  382. <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
  383. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  384. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  385. <xts:logicsheet path="logicsheets/portal.xsl"/>
  386. <xsl:stylesheet version="1.0"
  387. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  388. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  389. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  390. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  391. xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
  392. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  393. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  394. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  395. exclude-result-prefixes="xsl xtsext cml send dpl pf cm bus">
  396. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  397. <pf:variables/>
  398. <dpl:variables/>
  399. <dpl:getDefaultPackageName/>
  400. <send:variables/>
  401. <xsl:variable name="archiveOptions" select="/root/cm:queryResponse/cm:queryReply[4]"/>
  402. <xsl:variable name="deploymentObjects" select="/root/cm:queryResponse/cm:queryReply[2]"/>
  403. <xsl:variable name="deploymentMessages" select="/root/cm:queryResponse/cm:queryReply[3]"/>
  404. <xsl:variable name="defaultName" select="/root/tempDefaultName/cm:queryResponse/*"/>
  405. <xsl:variable name="objectType" select="/root/objectClass/*"/>
  406. <xsl:key name="archive-info" match="/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*[local-name()='packageDeploymentInfo']" use="cm:archiveSearchPath"/>
  407. <xsl:template match="/">
  408. <xts:sequence>
  409. <xts:append>
  410. <xts:transform src="transforms/portal/deploymentOptions/packages_sort.xslt" processor="XSLT">
  411. <deploymentOptionsUI xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
  412. <deploymentOption name="message">
  413. <xsl:for-each select="$deploymentMessages/*[local-name() = 'deploymentDetail']">
  414. <messageDeployment>
  415. <xsl:for-each select="child::*[local-name() != 'ancestors' and local-name() != 'message']">
  416. <xsl:choose>
  417. <xsl:when test="./cm:value">
  418. <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
  419. <xsl:value-of select="./cm:value"/>
  420. </xsl:element>
  421. </xsl:when>
  422. <xsl:otherwise>
  423. <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
  424. <xsl:value-of select="."/>
  425. </xsl:element>
  426. </xsl:otherwise>
  427. </xsl:choose>
  428. </xsl:for-each>
  429. <xsl:for-each select="cm:message/cm:faultDetail">
  430. <msg>
  431. <messageType>
  432. <xsl:value-of select="cm:severity"/>
  433. </messageType>
  434. <code>
  435. <xsl:value-of select="cm:errorCode"/>
  436. </code>
  437. <message>
  438. <xsl:for-each select="cm:faultDetailMessage">
  439. <xsl:value-of select="cm:message"/>
  440. <xsl:value-of select="' '"/>
  441. </xsl:for-each>
  442. </message>
  443. </msg>
  444. </xsl:for-each>
  445. <ancestorDefaultNames>
  446. <xsl:for-each select="cm:ancestors/child::*[local-name() = 'ancestorInfo' and cm:objectClass = 'deploymentDetail']">
  447. <xsl:value-of select="./cm:title"/>
  448. <xsl:if test="position() != last()">
  449. <xsl:text/> &gt; <xsl:text/>
  450. </xsl:if>
  451. </xsl:for-each>
  452. </ancestorDefaultNames>
  453. </messageDeployment>
  454. </xsl:for-each>
  455. <xsl:for-each select="$deploymentMessages/*[local-name() = 'historyDetail']">
  456. <messageDeployment>
  457. <msg>
  458. <messageType>
  459. <xsl:value-of select="cm:severity"/>
  460. </messageType>
  461. <message>
  462. <xsl:value-of select="cm:detail"/>
  463. </message>
  464. </msg>
  465. <position><xsl:value-of select="cm:position"/></position>
  466. </messageDeployment>
  467. </xsl:for-each>
  468. </deploymentOption>
  469. <deploymentOption name="deploymentObject">
  470. <xsl:for-each select="$deploymentObjects/*[local-name() = 'deploymentDetail']">
  471. <objectDeployment>
  472. <xsl:variable name="objectClass">
  473. <xsl:value-of select="cm:deployedObjectClass"/>
  474. </xsl:variable>
  475. <xsl:for-each select="child::*[local-name() != 'ancestors']">
  476. <xsl:choose>
  477. <xsl:when test="./cm:value">
  478. <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
  479. <xsl:value-of select="./cm:value"/>
  480. </xsl:element>
  481. </xsl:when>
  482. <xsl:otherwise>
  483. <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
  484. <xsl:value-of select="."/>
  485. </xsl:element>
  486. </xsl:otherwise>
  487. </xsl:choose>
  488. </xsl:for-each>
  489. <ancestorDefaultNames>
  490. <xsl:for-each select="cm:ancestors/child::*[local-name() = 'ancestorInfo' and cm:objectClass = 'deploymentDetail']">
  491. <xsl:value-of select="./cm:title"/>
  492. <xsl:if test="position() != last()">
  493. <xsl:text/> &gt; <xsl:text/>
  494. </xsl:if>
  495. </xsl:for-each>
  496. </ancestorDefaultNames>
  497. <objectType>
  498. <xsl:value-of select="$objectType[@name=$objectClass]"/>
  499. </objectType>
  500. </objectDeployment>
  501. </xsl:for-each>
  502. </deploymentOption>
  503. <deploymentOption name="package">
  504. <xsl:for-each select="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/cm:deploymentOption/*[local-name() = 'packageDeploymentInfo']">
  505. <packageDeploymentInfo>
  506. <xsl:variable name="archiveSearchPath"><xsl:value-of select="cm:archiveSearchPath"/></xsl:variable>
  507. <!-- following 2 variables used to convert a storeID to the format storeID('XXXXXXXXX') -->
  508. <xsl:variable name="storeIDPrefix"><xsl:text>storeID(&apos;</xsl:text></xsl:variable>
  509. <xsl:variable name="storeIDSuffix"><xsl:text>&apos;)</xsl:text></xsl:variable>
  510. <!-- get the searchPath from the information retrieved from the deployment object in the getArchiveSourcePackageInfo block -->
  511. <xsl:variable name="query-pkg" select="/root/archiveSourcePackageInfo/cm:queryResponse/cm:queryReply/*[(local-name() = 'package' or local-name() = 'folder' or local-name() = 'account' or local-name() = 'catalogFolder' or local-name() = 'visualization')][concat($storeIDPrefix,*[local-name()='storeID'],$storeIDSuffix)=$archiveSearchPath or *[local-name()='searchPath']=$archiveSearchPath]"/>
  512. <xsl:variable name="query-using-searchPath" select="$query-pkg/*[local-name()='searchPath']"/>
  513. <xsl:variable name="query-using-storeIDSearchPath">
  514. <xsl:choose>
  515. <xsl:when test="$query-pkg/*[local-name()='storeID']">
  516. <xsl:value-of select="concat($storeIDPrefix, $query-pkg/*[local-name()='storeID'] | $archiveSearchPath, $storeIDSuffix)"/>
  517. </xsl:when>
  518. <xsl:otherwise>
  519. <xsl:value-of select="$archiveSearchPath"/>
  520. </xsl:otherwise>
  521. </xsl:choose>
  522. </xsl:variable>
  523. <xsl:variable name="packageInfoFromArchiveInformation" select="key('archive-info', $query-using-searchPath) | key('archive-info', $query-using-storeIDSearchPath)"/>
  524. <xsl:if test="$packageInfoFromArchiveInformation">
  525. <sourceName>
  526. <xsl:copy-of select="$packageInfoFromArchiveInformation/cm:sourceName/cm:multilingualToken"/>
  527. </sourceName>
  528. <objectClass>
  529. <xsl:value-of select="$packageInfoFromArchiveInformation/cm:objectClass"/>
  530. </objectClass>
  531. </xsl:if>
  532. <defaultSourceName>
  533. <xsl:choose>
  534. <xsl:when test="$packageInfoFromArchiveInformation">
  535. <xsl:value-of select="$packageInfoFromArchiveInformation/cm:defaultName"/>
  536. </xsl:when>
  537. <xsl:otherwise><xts:string id="IDS_PROP_ENTRY_NOT_FOUND"/></xsl:otherwise>
  538. </xsl:choose>
  539. </defaultSourceName>
  540. <targetName>
  541. <xsl:copy-of select="cm:targetName/cm:multilingualToken"/>
  542. </targetName>
  543. <defaultTargetName>
  544. <xsl:call-template name="get-default-package-name">
  545. <xsl:with-param name="package-name" select="cm:targetName/cm:multilingualToken"/>
  546. <xsl:with-param name="defaultName">
  547. <xsl:value-of select="cm:targetName/cm:multilingualToken/self::node()[1]"/>
  548. </xsl:with-param>
  549. </xsl:call-template>
  550. </defaultTargetName>
  551. <enabled>
  552. <xsl:value-of select="cm:enabled"/>
  553. </enabled>
  554. </packageDeploymentInfo>
  555. </xsl:for-each>
  556. </deploymentOption>
  557. <xsl:if test="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/*[@name='tenants']">
  558. <deploymentOption name="tenants">
  559. <xsl:copy-of select="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/*[@name='tenants']/*"/>
  560. </deploymentOption>
  561. </xsl:if>
  562. <xsl:for-each select="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/*[@class != 'cm:deploymentOptionPackageInfo' and @class != 'cm:deploymentOptionStringArray']">
  563. <deploymentOption>
  564. <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
  565. <xsl:variable name="optionValue" select="."/>
  566. <xsl:attribute name="enabled"><xsl:if test="$optionValue = 'false' "><xsl:text>false</xsl:text></xsl:if><xsl:if test="$optionValue = 'true' "><xsl:text>true</xsl:text></xsl:if></xsl:attribute>
  567. <xsl:value-of select="$optionValue"/>
  568. </deploymentOption>
  569. </xsl:for-each>
  570. </deploymentOptionsUI>
  571. </xts:transform>
  572. </xts:append>
  573. </xts:sequence>
  574. </xsl:template>
  575. </xsl:stylesheet>
  576. </xts:block>
  577. <!--
  578. ===============================================================================================
  579. Get Number of Packages.
  580. ===============================================================================================
  581. -->
  582. <xts:block id="getNumberOfPackages" processor="XSLT" type="exec" dependency="getDeploymentRecordOptions" mandatory="false">
  583. <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
  584. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  585. <xts:logicsheet path="logicsheets/portal.xsl"/>
  586. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  587. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  588. <!-- add any theme variables -->
  589. <dpl:getNumberOfPackages/>
  590. </xsl:stylesheet>
  591. </xts:block>
  592. <!--
  593. ===============================================================================================
  594. Main
  595. ===============================================================================================
  596. -->
  597. <xts:block id="main" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="getRerunList getRelatedHistories getContent getDeploymentRecordOptions getNumberOfPackages formlogic_init" mandatory="false">
  598. <xts:logicsheet path="portal/history/logicsheets/ui-template.xslt"/>
  599. <!-- deployment packages part -->
  600. <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
  601. <!-- get the new theme stuff -->
  602. <xts:logicsheet path="logicsheets/portal.xsl"/>
  603. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  604. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  605. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  606. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  607. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  608. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  609. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  610. <!-- apply the form logic -->
  611. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  612. <xts:logicsheet path="logicsheets/validation.xslt"/>
  613. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  614. <xsl:stylesheet version="1.0"
  615. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  616. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  617. xmlns:out="http://www.w3.org/1999/XSL/Transform"
  618. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  619. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  620. xmlns:rhu="http://developer.cognos.com/schemas/xts/historyui"
  621. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  622. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  623. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  624. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  625. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  626. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  627. xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
  628. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  629. xmlns:ctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/controls/"
  630. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  631. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  632. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  633. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  634. xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
  635. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  636. xmlns:x="x" exclude-result-prefixes="xsl xsi cm cf cp df dp lyt ctrl cml bus utml xtsext dpl rhu dbg mf mt pf xts">
  637. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  638. <!-- current file name -->
  639. <xsl:variable name="mname" select="'history/deployment_details.xts'"/>
  640. <xsl:variable name="argumentsObject" select="/root/cm:queryResponse/cm:queryReply[4]"/>
  641. <xsl:variable name="specName">
  642. <xsl:choose>
  643. <xsl:when test="/root/env/param[@name='m_p_defaultName']">
  644. <xsl:value-of select="/root/env/param[@name='m_p_defaultName']"/>
  645. </xsl:when>
  646. <xsl:otherwise>
  647. <xsl:value-of select="/root/env/param[@name='m_name']"/>
  648. </xsl:otherwise>
  649. </xsl:choose>
  650. </xsl:variable>
  651. <!-- dpl:packagesToInclude template needs this variable. -->
  652. <xsl:variable name="numberOfPackages">
  653. <xsl:choose>
  654. <xsl:when test="/root/numberOfPackages">
  655. <xsl:value-of select="/root/numberOfPackages"/>
  656. </xsl:when>
  657. <xsl:otherwise>
  658. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  659. </xsl:otherwise>
  660. </xsl:choose>
  661. </xsl:variable>
  662. <rhu:variables/>
  663. <!-- add any theme variables -->
  664. <pf:variables/>
  665. <!-- deployment variables -->
  666. <dpl:variables/>
  667. <mf:variables/>
  668. <xsl:variable name="runStatus">
  669. <xsl:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:status"/>
  670. </xsl:variable>
  671. <xsl:variable name="timeUnformated">
  672. <xsl:value-of select="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='actualExecutionTime']"/>
  673. </xsl:variable>
  674. <xsl:variable name="defaultNameTitle">
  675. <xsl:text/><xsl:value-of select="' '"/><xsl:value-of select="xtsext:formatDateFromUTC( string( $timeUnformated ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/><xsl:text/>
  676. </xsl:variable>
  677. <xsl:variable name="browserTitle">
  678. <xsl:choose>
  679. <xsl:when test="$deployment-method='export'">
  680. <xts:string id="IDS_DEPLOYMENT_DETAILED_EXPORT_RECORD_TITLE">
  681. <xts:param name="SpecTitle">
  682. <span lang="{$contentLocale}"><xsl:value-of select="$specName"/></span>
  683. </xts:param>
  684. <xts:param name="TimeTitle">
  685. <span lang="{$contentLocale}"><xsl:value-of select="$defaultNameTitle"/></span>
  686. </xts:param>
  687. </xts:string>
  688. </xsl:when>
  689. <xsl:when test="$deployment-method='import'">
  690. <xts:string id="IDS_DEPLOYMENT_DETAILED_IMPORT_RECORD_TITLE">
  691. <xts:param name="SpecTitle">
  692. <span lang="{$contentLocale}"><xsl:value-of select="$specName"/></span>
  693. </xts:param>
  694. <xts:param name="TimeTitle">
  695. <span lang="{$contentLocale}"><xsl:value-of select="$defaultNameTitle"/></span>
  696. </xts:param>
  697. </xts:string>
  698. </xsl:when>
  699. </xsl:choose>
  700. </xsl:variable>
  701. <xsl:key name="deploymentOptions" match="/root/cm:deploymentOptionsUI/cm:deploymentOption" use="@name"/>
  702. <!-- start the output -->
  703. <xsl:template match="/root">
  704. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  705. <dp:meta>
  706. <pf:meta/>
  707. <!-- Standard meta tags -->
  708. </dp:meta>
  709. <dp:script>
  710. <pf:help context="HID_VIEW_RUN_HISTORY"/>
  711. <!-- Help system -->
  712. <script language="JavaScript">
  713. function init()
  714. {
  715. if (window.document.anchors != null &amp;&amp; window.document.anchors.length &gt; 0)
  716. {
  717. window.location.hash="entriesTable";
  718. }
  719. }
  720. function doSort(column)
  721. {
  722. var form = document.pform;
  723. if (form == null)
  724. return;
  725. sortBy = form.m_s_dep;
  726. <!-- Sorting by type is not currently supported. -->
  727. if (column == 't')
  728. {
  729. if (sortBy.value == 'ta')
  730. sortBy.value = 'td';
  731. else
  732. sortBy.value = 'ta';
  733. }
  734. else
  735. {
  736. if (sortBy.value == 'na')
  737. sortBy.value = 'nd';
  738. else
  739. sortBy.value = 'na';
  740. }
  741. form.submit();
  742. }
  743. </script>
  744. </dp:script>
  745. <utml:form name="pform" method="post" action="{$gateway}">
  746. <utml:read-only>true</utml:read-only>
  747. <utml:input type="hidden" name="m_s_dep" utml:update="false">
  748. <utml:value>
  749. <xsl:value-of select="/root/session/param[@name='s_dep']"/>
  750. </utml:value>
  751. </utml:input>
  752. <utml:input type="hidden" name="m_previousEntriesPage" utml:update="false">
  753. <utml:value>
  754. <xsl:choose>
  755. <xsl:when test="/root/env/param[@name='m_Entriessection'] and /root/env/param[@name='m_Entriessection'] != ''">
  756. <xsl:value-of select="/root/env/param[@name='m_Entriessection']"/>
  757. </xsl:when>
  758. <xsl:otherwise>
  759. <xsl:value-of select="'1'"/>
  760. </xsl:otherwise>
  761. </xsl:choose>
  762. </utml:value>
  763. </utml:input>
  764. <utml:input type="hidden" name="ifrmcmd" value="" utml:update="false"/>
  765. <!-- Set input for submitting -->
  766. <xsl:variable name="m" select="concat($app, '/history/view.xts')"/>
  767. <xsl:call-template name="summary-header">
  768. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  769. <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
  770. </xsl:call-template>
  771. <!-- add the js and any divs we'll need for the rerun action -->
  772. <rhu:rerunFramework/>
  773. <!-- time and status -->
  774. <rhu:timeAndStatus/>
  775. <xsl:call-template name="messages">
  776. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  777. <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
  778. </xsl:call-template>
  779. <!-- deployment file and location -->
  780. <lyt:layout style="2" title="IDS_DEPLOYMENT_FOLDER" border="yes">
  781. <lyt:section>
  782. <dp:list>
  783. <dp:section>
  784. <!-- if CM threw an archvive not found exception display a warning message -->
  785. <xsl:if test="/root/archiveInformation/copyFault//messageString[contains(.,'CM-REQ-4136')]">
  786. <dp:choice>
  787. <dp:section1 wrap="wrap">
  788. <img height="16" width="16">
  789. <xsl:attribute name="src"><xsl:value-of select="$image_root"/>msg_warning_16.gif</xsl:attribute>
  790. <xsl:attribute name="alt"><xts:string id="IDS_STATUS_WARN" encode="html"/></xsl:attribute>
  791. </img>
  792. </dp:section1>
  793. <dp:section2 wrap="wrap">
  794. <xts:string id="IDS_VRH_DETAILS_ARCHIVE_MISSING"/>
  795. </dp:section2>
  796. </dp:choice>
  797. </xsl:if>
  798. </dp:section>
  799. <dp:section>
  800. <dp:label>
  801. <xts:string id="IDS_NEW_NAME"/>
  802. </dp:label>
  803. </dp:section>
  804. <dp:section>
  805. <dp:text>
  806. <xsl:choose>
  807. <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='archive'] != ''"><xsl:value-of select="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='archive']"/></xsl:when>
  808. <xsl:otherwise>
  809. <dp:section>
  810. <dp:text>
  811. <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
  812. </dp:text>
  813. </dp:section>
  814. </xsl:otherwise>
  815. </xsl:choose>
  816. </dp:text>
  817. </dp:section>
  818. </dp:list>
  819. </lyt:section>
  820. </lyt:layout>
  821. <xsl:call-template name="summary-options">
  822. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  823. <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
  824. </xsl:call-template>
  825. <!-- objects imported/exported -->
  826. <xsl:call-template name="objects">
  827. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  828. <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
  829. </xsl:call-template>
  830. <rhu:relatedRuns/>
  831. <!-- footer: Close button. -->
  832. <dp:footer div="div">
  833. <df:button df:id="IDS_CLOSE" df:style="back-url"/>
  834. </dp:footer>
  835. </utml:form>
  836. </dp:page>
  837. </xsl:template>
  838. <xsl:template name="summary-header">
  839. <xsl:param name="form-read-only"/>
  840. <xsl:param name="utml-form-name"/>
  841. <xsl:copy>
  842. <dp:header div="div">
  843. <dp:title>
  844. <xsl:copy-of select="$browserTitle"/>
  845. </dp:title>
  846. <dp:description>
  847. <xts:string id="IDS_VRH_DETAILS_DESCRIPTION"/>
  848. </dp:description>
  849. <dp:close>
  850. <a href="{string(key('env-param', 'backURL'))}">
  851. <dp:closeMarker/>
  852. </a>
  853. </dp:close>
  854. </dp:header>
  855. </xsl:copy>
  856. </xsl:template>
  857. <xsl:template name="messages">
  858. <xsl:param name="form-read-only"/>
  859. <xsl:param name="utml-form-name"/>
  860. <xsl:copy>
  861. <lyt:layout style="1" title="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES" border="yes">
  862. <lyt:section>
  863. <xsl:choose>
  864. <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='message'] != '' ">
  865. <cf:main-pager-section name="Messages" form="pform" virtualPage="true" deploymentMessage="true">
  866. <cf:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='message']/cm:messageDeployment/cm:msg</cf:param>
  867. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  868. <cf:param name="lines-per-page">
  869. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  870. </cf:param>
  871. <cf:param name="pagerSummary"><xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES_SUMMARY"/></cf:param>
  872. <cf:param name="rows">
  873. <cp:tableHeader>
  874. <cp:columnHeader width="16"/>
  875. <cp:columnHeader width="100%">
  876. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES_MESSAGE"/>
  877. </cp:columnHeader>
  878. <cp:columnHeader width="16"/>
  879. <cp:columnHeader width="300">
  880. <xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/>
  881. </cp:columnHeader>
  882. </cp:tableHeader>
  883. <cp:tableContent>
  884. <cp:columnContent>
  885. <xsl:call-template name="gen-message-icon">
  886. <xsl:with-param name="statusPath" select="cm:messageType"/>
  887. </xsl:call-template>
  888. </cp:columnContent>
  889. <cp:columnContent wrap="wrap">
  890. <xsl:value-of select="cm:message"/>
  891. </cp:columnContent>
  892. <cp:columnContent>
  893. <xsl:if test="../cm:deployedObjectClass">
  894. <xsl:call-template name="gen-icon">
  895. <xsl:with-param name="class" select="../cm:deployedObjectClass"/>
  896. </xsl:call-template>
  897. </xsl:if>
  898. </cp:columnContent>
  899. <cp:columnContent lang="{$contentLocale}">
  900. <xsl:if test="../cm:ancestorDefaultNames and ../cm:ancestorDefaultNames != ''">
  901. <img height="16" width="20">
  902. <xsl:attribute name="alt"><xsl:value-of select="../cm:ancestorDefaultNames"/></xsl:attribute>
  903. <xsl:attribute name="src"><xsl:value-of select="$skin_images"/>path.gif</xsl:attribute>
  904. </img>
  905. <img height="8" width="8">
  906. <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif<xsl:text/></xsl:attribute>
  907. </img>
  908. </xsl:if>
  909. <xsl:value-of select="../cm:defaultName"/>
  910. </cp:columnContent>
  911. </cp:tableContent>
  912. </cf:param>
  913. </cf:main-pager-section>
  914. </xsl:when>
  915. <xsl:otherwise>
  916. <dp:choice>
  917. <dp:section1/>
  918. <dp:section2>
  919. <xts:string id="IDS_DEPLOYMENT_NO_MESSAGES"/>
  920. </dp:section2>
  921. </dp:choice>
  922. </xsl:otherwise>
  923. </xsl:choose>
  924. </lyt:section>
  925. </lyt:layout>
  926. </xsl:copy>
  927. </xsl:template>
  928. <xsl:template name="objects">
  929. <xsl:param name="form-read-only"/>
  930. <xsl:param name="utml-form-name"/>
  931. <xsl:copy>
  932. <lyt:layout style="2" title="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES" border="yes">
  933. <lyt:section>
  934. <xsl:choose>
  935. <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='deploymentObject'] != '' ">
  936. <xsl:if test="/root/env/param[@name='m_previousEntriesPage'] and /root/env/param[@name='m_Entriessection'] and /root/env/param[@name='m_Entriessection'] != '' and /root/env/param[@name='m_previousEntriesPage'] != /root/env/param[@name='m_Entriessection']">
  937. <a name="entriesTable"/>
  938. </xsl:if>
  939. <dpl:recordEntriesPager/>
  940. </xsl:when>
  941. <xsl:otherwise>
  942. <dp:choice>
  943. <dp:section1/>
  944. <dp:section2>
  945. <xsl:choose>
  946. <xsl:when test="$deployment-method= 'export' ">
  947. <xts:string id="IDS_DEPLOYMENT_NO_ENTRIES_EXPORT"/>
  948. </xsl:when>
  949. <xsl:when test="$deployment-method= 'import' ">
  950. <xts:string id="IDS_DEPLOYMENT_NO_ENTRIES_IMPORT"/>
  951. </xsl:when>
  952. </xsl:choose>
  953. </dp:section2>
  954. </dp:choice>
  955. </xsl:otherwise>
  956. </xsl:choose>
  957. </lyt:section>
  958. </lyt:layout>
  959. </xsl:copy>
  960. </xsl:template>
  961. <xsl:template name="summary-options">
  962. <xsl:param name="form-read-only"/>
  963. <xsl:param name="utml-form-name"/>
  964. <xsl:copy>
  965. <xsl:choose>
  966. <xsl:when test="key('deploymentOptions', 'entireContentStoreSelect')='true'">
  967. <xsl:call-template name="entireContentStoreOptionsSummary"/>
  968. </xsl:when>
  969. <xsl:otherwise>
  970. <xsl:call-template name="packagesSummary"/>
  971. <xsl:call-template name="packagesOptionsSummary"/>
  972. <xsl:call-template name="directoryContentOptionsSummary"/>
  973. <xsl:call-template name="generalOptionsSummary"/>
  974. </xsl:otherwise>
  975. </xsl:choose>
  976. <xsl:if test="$deployment-method= 'import' ">
  977. <xsl:call-template name="upgradeOptionsSummary"/>
  978. </xsl:if>
  979. </xsl:copy>
  980. </xsl:template>
  981. <xsl:template name="entireContentStoreOptionsSummary">
  982. <xsl:param name="form-read-only"/>
  983. <xsl:param name="utml-form-name"/>
  984. <xsl:choose>
  985. <xsl:when test="$argumentsObject/* != ''">
  986. <xsl:copy>
  987. <xsl:choose>
  988. <xsl:when test="key('deploymentOptions', 'tenants')/*">
  989. <dpl:tenantsOptionsSummary>
  990. <dpl:param name="tenant-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenants']/*</dpl:param>
  991. </dpl:tenantsOptionsSummary>
  992. </xsl:when>
  993. <xsl:otherwise>
  994. <dpl:entireContentStoreOptionsSummary/>
  995. </xsl:otherwise>
  996. </xsl:choose>
  997. </xsl:copy>
  998. </xsl:when>
  999. <xsl:otherwise>
  1000. <lyt:layout style="1" title="IDS_DEPLOYMENT_METHOD_CONTENT_STORE" border="yes">
  1001. <lyt:section>
  1002. <xsl:call-template name="noOptionsAvailable"/>
  1003. </lyt:section>
  1004. </lyt:layout>
  1005. </xsl:otherwise>
  1006. </xsl:choose>
  1007. </xsl:template>
  1008. <xsl:template name="packagesSummary">
  1009. <xsl:param name="form-read-only"/>
  1010. <xsl:param name="utml-form-name"/>
  1011. <xsl:copy>
  1012. <lyt:layout style="1" title="IDS_DEPLOYMENT_RECORD_SUMMARY_PACKAGE" border="yes">
  1013. <lyt:section>
  1014. <xsl:choose>
  1015. <xsl:when test="$argumentsObject/* != ''">
  1016. <dpl:packagesToInclude>
  1017. <dpl:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*</dpl:param>
  1018. <dpl:param name="summaryId">IDS_DEPLOYMENT_PACKAGES_THAT_WERE_IMPORTED</dpl:param>
  1019. </dpl:packagesToInclude>
  1020. </xsl:when>
  1021. <xsl:otherwise>
  1022. <xsl:call-template name="noOptionsAvailable"/>
  1023. </xsl:otherwise>
  1024. </xsl:choose>
  1025. </lyt:section>
  1026. </lyt:layout>
  1027. </xsl:copy>
  1028. </xsl:template>
  1029. <xsl:template name="upgradeOptionsSummary">
  1030. <xsl:param name="form-read-only"/>
  1031. <xsl:param name="utml-form-name"/>
  1032. <lyt:layout style="1" title="IDS_DEPLOYMENT_SELECT_UPGRADE_TITLE_DETAILS" border="yes">
  1033. <lyt:section>
  1034. <xsl:choose>
  1035. <xsl:when test="$argumentsObject/* != ''">
  1036. <dp:list>
  1037. <!-- upgrade options summary -->
  1038. <dp:section>
  1039. <dp:text>
  1040. <xsl:choose>
  1041. <xsl:when test="$argumentsObject/*/*[local-name()='deploymentOptions']/child::node()[@name='upgradeClasses']!=''"><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_UPGRADE"/></xsl:when>
  1042. <xsl:otherwise><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_KEEP"/></xsl:otherwise>
  1043. </xsl:choose>
  1044. </dp:text>
  1045. </dp:section>
  1046. <!-- preserveStoreIDs option summary -->
  1047. <dp:section>
  1048. <dp:text>
  1049. <xsl:choose>
  1050. <xsl:when test="$argumentsObject/*/*[local-name()='deploymentOptions']/child::node()[@name='preserveStoreIDs']='true'"><xts:string id="IDS_DEPLOYMENT_OPTIONS_INCLUDE_PRESERVE_STOREIDS"/></xsl:when>
  1051. <xsl:otherwise><xts:string id="IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_PRESERVE_STOREIDS"/></xsl:otherwise>
  1052. </xsl:choose>
  1053. </dp:text>
  1054. </dp:section>
  1055. </dp:list>
  1056. </xsl:when>
  1057. <xsl:otherwise>
  1058. <xsl:call-template name="noOptionsAvailable"/>
  1059. </xsl:otherwise>
  1060. </xsl:choose>
  1061. </lyt:section>
  1062. </lyt:layout>
  1063. </xsl:template>
  1064. <xsl:template name="packagesOptionsSummary">
  1065. <xsl:param name="form-read-only"/>
  1066. <xsl:param name="utml-form-name"/>
  1067. <xsl:copy>
  1068. <dpl:packagesOptionsSummary/>
  1069. </xsl:copy>
  1070. </xsl:template>
  1071. <xsl:template name="directoryContentOptionsSummary">
  1072. <xsl:param name="form-read-only"/>
  1073. <xsl:param name="utml-form-name"/>
  1074. <xsl:choose>
  1075. <xsl:when test="$argumentsObject/* != ''">
  1076. <xsl:copy>
  1077. <dpl:directoryContentOptionsSummary/>
  1078. </xsl:copy>
  1079. </xsl:when>
  1080. <xsl:otherwise>
  1081. <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_DIRECTORY_CONTENT" border="yes">
  1082. <lyt:section>
  1083. <xsl:call-template name="noOptionsAvailable"/>
  1084. </lyt:section>
  1085. </lyt:layout>
  1086. </xsl:otherwise>
  1087. </xsl:choose>
  1088. </xsl:template>
  1089. <xsl:template name="generalOptionsSummary">
  1090. <xsl:param name="form-read-only"/>
  1091. <xsl:param name="utml-form-name"/>
  1092. <xsl:choose>
  1093. <xsl:when test="$argumentsObject/* != ''">
  1094. <xsl:copy>
  1095. <dpl:generalOptionsSummary/>
  1096. </xsl:copy>
  1097. </xsl:when>
  1098. <xsl:otherwise>
  1099. <lyt:layout style="1" title="IDS_DEPLOYMENT_GENERAL_OPTIONS" border="yes">
  1100. <lyt:section>
  1101. <xsl:call-template name="noOptionsAvailable"/>
  1102. </lyt:section>
  1103. </lyt:layout>
  1104. </xsl:otherwise>
  1105. </xsl:choose>
  1106. </xsl:template>
  1107. <xsl:template name="noOptionsAvailable">
  1108. <dp:list>
  1109. <dp:section>
  1110. <dp:text>
  1111. <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
  1112. </dp:text>
  1113. </dp:section>
  1114. </dp:list>
  1115. </xsl:template>
  1116. <pf:gen-icon/>
  1117. <rhu:genMessageIcons/>
  1118. <rhu:genStatus/>
  1119. <mt:actions mode="tools" maintain="true" viewOutputForm="pform"/>
  1120. </xsl:stylesheet>
  1121. </xts:block>
  1122. <!--
  1123. ===============================================================================================
  1124. Debug
  1125. ===============================================================================================
  1126. -->
  1127. <xts:block id="debug" dependency="main" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  1128. <!-- get the debug logic sheet -->
  1129. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  1130. <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">
  1131. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  1132. <xsl:template match="/">
  1133. <dbg:dumpxml select="/root"/>
  1134. </xsl:template>
  1135. </xsl:stylesheet>
  1136. </xts:block>
  1137. </xts:morphlet>