ui-template.xslt 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777
  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, 2014, 2015
  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. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  15. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  16. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  17. xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
  18. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  19. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  20. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  21. xmlns:rhu="http://developer.cognos.com/schemas/xts/historyui"
  22. xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
  23. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  24. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  25. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  26. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  27. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  28. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  29. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  30. xmlns:ms="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
  31. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  32. xmlns:x="x"
  33. xmlns:out="dummy-uri"
  34. exclude-result-prefixes="xsl cm lyt dp df cf cp rhu bus dbg cml utml xts xtsext send pf xsi x ms">
  35. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  36. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  37. <xsl:template match="rhu:variables">
  38. <xsl:if test="@responseType = 'monitorService'">
  39. <out:variable name="eventRecord" select="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]"/>
  40. </xsl:if>
  41. <xsl:choose>
  42. <xsl:when test="@responseType = 'monitorService'">
  43. <out:variable name="the-object" select="$eventRecord/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]"/>
  44. </xsl:when>
  45. <xsl:otherwise>
  46. <out:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[3]/*"/>
  47. </xsl:otherwise>
  48. </xsl:choose>
  49. <out:variable name="objectName">
  50. <xsl:choose>
  51. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/runnable/runnable/defaultName/value"/></xsl:when>
  52. <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:defaultName"/></xsl:otherwise>
  53. </xsl:choose>
  54. </out:variable>
  55. <out:variable name="targetSavedObjectName">
  56. <xsl:choose>
  57. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$the-object/options/value/*[./name='saveAs'][./objectClass='reportView']/objectName/*/value"/></xsl:when>
  58. <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[3]/cm:historyDetailRequestArguments/*[local-name() = 'options']/*[local-name() = 'value']/*[local-name() = 'item'][./*[local-name() = 'name']='saveAs'][./*[local-name() = 'objectClass']='reportView']/*[local-name() = 'objectName']/*/*[local-name() = 'value']"/></xsl:otherwise>
  59. </xsl:choose>
  60. </out:variable>
  61. <out:variable name="objectType">
  62. <xsl:choose>
  63. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/runnable/runnable/objectClass/value"/></xsl:when>
  64. <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:objectClass"/></xsl:otherwise>
  65. </xsl:choose>
  66. </out:variable>
  67. <out:variable name="targetSavedName">
  68. <out:choose>
  69. <out:when test="$targetSavedObjectName != ''">
  70. <out:value-of select="$targetSavedObjectName"/>
  71. </out:when>
  72. <out:otherwise>
  73. <out:value-of select="$objectName"/>
  74. </out:otherwise>
  75. </out:choose>
  76. </out:variable>
  77. <out:variable name="output-searchPath">
  78. <xsl:choose>
  79. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/historyDetails/*[contains(@xsi:type, ':historyDetailReportService')]/output/value/value/searchPath/value"/></xsl:when>
  80. <xsl:otherwise><out:value-of select="string(/root/cm:queryResponse/cm:queryReply[4]/*/*[local-name()='output']/*/*[local-name()='searchPath'])"/></xsl:otherwise>
  81. </xsl:choose>
  82. </out:variable>
  83. <out:variable name="js-encoded-output-searchPath">
  84. <out:value-of select="xtsext:javascriptencode($output-searchPath)"/>
  85. </out:variable>
  86. <out:variable name="js-encoded-runHistoryRequestedTime">
  87. <xsl:choose>
  88. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="xtsext:javascriptencode(string($eventRecord/history/history/actualExecutionTime/value))"/></xsl:when>
  89. <xsl:otherwise><out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:actualExecutionTime))"/></xsl:otherwise>
  90. </xsl:choose>
  91. </out:variable>
  92. <out:variable name="js-encoded-back-path">
  93. <out:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='m']))"/>
  94. </out:variable>
  95. <out:variable name="versions_target">
  96. <out:choose>
  97. <out:when test="key('system-param', 'versions')/target"><out:value-of select="key('system-param', 'versions')/target"/></out:when>
  98. <out:otherwise>outputs.xts</out:otherwise>
  99. </out:choose>
  100. </out:variable>
  101. <out:variable name="js-encoded-runnable-path">
  102. <xsl:choose>
  103. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="xtsext:javascriptencode(string($eventRecord/runnable/runnable/searchPath/value))"/></xsl:when>
  104. <xsl:otherwise><out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:searchPath))"/></xsl:otherwise>
  105. </xsl:choose>
  106. </out:variable>
  107. <xsl:if test="@responseType != 'monitorService'">
  108. <out:key name="output-location" match="/root/stepsInfo/cm:queryResponse/cm:queryReply/cm:historyDetailReportService/cm:output/*/cm:searchPath" use="../../../cm:parent/*/cm:storeID"/>
  109. </xsl:if>
  110. <!-- is the current user the owner of the history or has Monitor Activity capability and at least one permission. -->
  111. <out:variable name="isHistoryOwner" select="contains(string(/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*[local-name()='history']/*[local-name()='owner']/*/*[local-name()='searchPath']), string(/root/session/param[@name='e_hp']))"/>
  112. <out:variable name="hasAtLeastOnePermission" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*[local-name()='history']/*[local-name()='parent']/*/*[local-name()='permissions' and (contains(., 'execute') or contains(., 'read') or contains(., 'write') or contains(., 'setPolicy') or contains(., 'traverse'))]!=''"/>
  113. <out:variable name="isCapableToRerun" select="string($isHistoryOwner)='true' or (string($hasAtLeastOnePermission)='true' and string($userCanUseMonitorActivity)='true')"/>
  114. <!-- situation could arise where a complexRunnable fails but not it's contents. This variable is used to check for that situation -->
  115. <out:variable name="rerunList" select="/root/rerunList/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')]"/>
  116. <out:variable name="rerunListEventID" select="$rerunList/eventID"/>
  117. </xsl:template>
  118. <!--
  119. rhu:optionsUnavailable
  120. -->
  121. <xsl:template match="rhu:optionsUnavailable">
  122. <out:variable name="optionsTitle">
  123. <out:choose>
  124. <out:when test="string($objectType)='report'">
  125. <xts:string id="IDS_OBJ_REPORT"/>
  126. </out:when>
  127. <out:when test="string($objectType)='interactiveReport'">
  128. <xts:string id="IDS_OBJ_INTERACTIVEREPORT"/>
  129. </out:when>
  130. <out:when test="string($objectType)='query'">
  131. <xts:string id="IDS_OBJ_QUERY"/>
  132. </out:when>
  133. <out:when test="string($objectType)='analysis'">
  134. <xts:string id="IDS_OBJ_ANALYSIS"/>
  135. </out:when>
  136. <out:when test="string($objectType)='reportView'">
  137. <xts:string id="IDS_OBJ_REPORTVIEW"/>
  138. </out:when>
  139. <out:when test="string($objectType)='jobDefinition'">
  140. <xts:string id="IDS_OBJ_JOBDEFINITION"/>
  141. </out:when>
  142. <out:when test="string($objectType)='agentDefinition'">
  143. <xts:string id="IDS_OBJ_AGENT"/>
  144. </out:when>
  145. <out:when test="string($objectType)='agentDefinitionView'">
  146. <xts:string id="IDS_OBJ_AGENTVIEW"/>
  147. </out:when>
  148. <out:when test="string($objectType)='contentTask'">
  149. <xts:string id="IDS_VRH_DETAILS_CONTENT_MAINTENANCE_TASK"/>
  150. </out:when>
  151. <out:when test="string($objectType)='queryServiceTask'">
  152. <xts:string id="IDS_OBJ_QUERYSERVICETASK"/>
  153. </out:when>
  154. <out:when test="string($objectType)='metricsExportTask'">
  155. <xts:string id="IDS_VRH_DETAILS_METRICS_EXPORT"/>
  156. </out:when>
  157. <out:when test="string($objectType)='indexUpdateTask'">
  158. <xts:string id="IDS_VRH_DETAILS_INDEX_UPDATE_TASK"/>
  159. </out:when>
  160. <out:when test="string($objectType)='metricsMaintenanceTask'">
  161. <xts:string id="IDS_VRH_DETAILS_METRICS_MAINTENANCE"/>
  162. </out:when>
  163. <out:when test="string($objectType)='metricsFileImportTask'">
  164. <xts:string id="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_FILES"/>
  165. </out:when>
  166. <out:when test="string($objectType)='metricsDataSourceETLTask'">
  167. <xts:string id="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_DS"/>
  168. </out:when>
  169. </out:choose>
  170. </out:variable>
  171. <lyt:layout style="1" border="yes" longTitle="$optionsTitle">
  172. <lyt:section>
  173. <dp:list>
  174. <dp:section>
  175. <dp:label>
  176. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  177. </dp:label>
  178. </dp:section>
  179. <dp:section>
  180. <dp:text>
  181. <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
  182. </dp:text>
  183. </dp:section>
  184. </dp:list>
  185. </lyt:section>
  186. </lyt:layout>
  187. </xsl:template>
  188. <!--
  189. rhu:rerunFramework
  190. Adds the javascript and possibly a div needed for the rerun action
  191. -->
  192. <xsl:template match="rhu:rerunFramework">
  193. <!-- will be set when the user does a rerun -->
  194. <utml:input type="hidden" name="eventID" value="" utml:update="false"/>
  195. <utml:input type="hidden" name="restartEventID" value="" utml:update="false"/>
  196. <utml:input type="hidden" name="parentSearchPath" utml:update="false">
  197. <utml:value><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:searchPath"/></utml:value>
  198. </utml:input>
  199. <!-- jobs and agents are 'complex' and we may need to call a different morphlet to handle the rerun.-->
  200. <out:variable name="complexRunnable" select="contains(' jobDefinition agentDefinition agentDefinitionView ',concat(' ', $objectType,' '))"/>
  201. <script language="javascript">
  202. function rerun() {
  203. var frm = document.pform;
  204. <out:choose>
  205. <out:when test="$complexRunnable and $rerunList">
  206. frm.ps_nav_op.value = 'push';
  207. frm.m.value = '<out:value-of select="$app"/>/history/rerun.xts';
  208. doRerun();
  209. </out:when>
  210. <out:otherwise>
  211. rerunDiv.show();
  212. </out:otherwise>
  213. </out:choose>
  214. }
  215. <!-- called when the user hits OK on the popup dialog -->
  216. function rerunSimpleRunnable() {
  217. var frm = document.pform;
  218. frm.ps_nav_op.value = 'maintain';
  219. frm.ifrmcmd.value = 'rerun';
  220. frm.m.value = '<out:value-of select="$app"/>/submit.xts';
  221. doRerun();
  222. }
  223. function doRerun() {
  224. var frm = document.pform;
  225. frm.eventID.value = '<out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:eventID))"/>';
  226. frm.restartEventID.value = '<out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:restartEventID))"/>';
  227. frm.submit();
  228. }
  229. </script>
  230. <!-- for anything but jobs and agents we show a simple popup div to confirm the rerun unless the rerunList is empty-->
  231. <out:if test="not($complexRunnable and $rerunList)">
  232. <cp:genericDialog id="rerunDiv" interactive="true" align="left" width="300" positionVertical="true" positionHorizontal="true" closeOnClick="rerunDiv.hide();" role="alertdialog">
  233. <cp:param name="title"><xts:string id="IDS_COGNOS_REPORTS"/></cp:param>
  234. <cp:param name="body">
  235. <dp:box valign="top">
  236. <dp:boxSection hgap="20">
  237. <img width="32" height="32" align="top" hspace="10">
  238. <out:attribute name="alt"><xts:string id="IDS_ICON_INFORMATION"/></out:attribute>
  239. <out:attribute name="src">
  240. <out:value-of select="concat($webcontent, '/', $app, '/images/msg_information.gif')"/>
  241. </out:attribute>
  242. </img>
  243. </dp:boxSection>
  244. <dp:boxSection>
  245. <dp:list>
  246. <dp:section1>
  247. <xts:string id="IDS_VRH_RERUN_POPUP">
  248. <xts:param name="objName"><out:value-of select="key('env-param', 'm_name')"/></xts:param>
  249. </xts:string>
  250. </dp:section1>
  251. </dp:list>
  252. <br/><br/>
  253. <dp:list>
  254. <dp:section1>
  255. <xts:string id="IDS_VRH_RERUN_POPUP_CONFIRM"/>
  256. </dp:section1>
  257. </dp:list>
  258. <br/>
  259. </dp:boxSection>
  260. </dp:box>
  261. </cp:param>
  262. <cp:param name="footer">
  263. <dp:simpleFooter>
  264. <df:button df:id="IDS_OK" df:style="href" df:href="javascript:rerunDiv.hide(); rerunSimpleRunnable();"/>
  265. <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:rerunDiv.hide()"/>
  266. </dp:simpleFooter>
  267. </cp:param>
  268. </cp:genericDialog>
  269. </out:if>
  270. </xsl:template>
  271. <xsl:template match="rhu:timeAndStatus">
  272. <lyt:layout style="2" border="no">
  273. <lyt:section>
  274. <dp:list>
  275. <dp:section>
  276. <dp:label>
  277. <xts:string id="IDS_VRH_DETAILS_START_TIME"/>
  278. </dp:label>
  279. </dp:section>
  280. <dp:section>
  281. <dp:text>
  282. <out:variable name="sTime">
  283. <xsl:choose>
  284. <xsl:when test="@responseType = 'monitorService'">
  285. <out:value-of select="$eventRecord/history/history/actualExecutionTime/value"/>
  286. </xsl:when>
  287. <xsl:otherwise>
  288. <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:actualExecutionTime"/>
  289. </xsl:otherwise>
  290. </xsl:choose>
  291. </out:variable>
  292. <out:choose>
  293. <out:when test="$sTime=''"><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></out:when>
  294. <out:otherwise>
  295. <span lang="{'{$contentLocale}'}"><out:value-of select="xtsext:enforceBTD(xtsext:formatDateFromUTC( string( $sTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) ), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
  296. </out:otherwise>
  297. </out:choose>
  298. </dp:text>
  299. </dp:section>
  300. </dp:list>
  301. </lyt:section>
  302. <lyt:section>
  303. <dp:textarea>
  304. <dp:section1>
  305. <xts:string id="IDS_VRH_DETAILS_COMPLETION_TIME"/>
  306. </dp:section1>
  307. <dp:section2>
  308. <out:variable name="eTime">
  309. <xsl:choose>
  310. <xsl:when test="@responseType = 'monitorService'">
  311. <out:value-of select="$eventRecord/history/history/actualCompletionTime/value"/>
  312. </xsl:when>
  313. <xsl:otherwise>
  314. <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:actualCompletionTime"/>
  315. </xsl:otherwise>
  316. </xsl:choose>
  317. </out:variable>
  318. <out:choose>
  319. <out:when test="$eTime=''"><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></out:when>
  320. <out:otherwise>
  321. <span lang="{'{$contentLocale}'}"><out:value-of select="xtsext:enforceBTD(xtsext:formatDateFromUTC( string( $eTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) ), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
  322. </out:otherwise>
  323. </out:choose>
  324. </dp:section2>
  325. </dp:textarea>
  326. </lyt:section>
  327. <lyt:section>
  328. <dp:list>
  329. <dp:section>
  330. <dp:label>
  331. <xts:string id="IDS_DEPLOYMENT_STATUS"/>
  332. </dp:label>
  333. </dp:section>
  334. <dp:section>
  335. <dp:text>
  336. <out:choose>
  337. <out:when test="$runStatus='succeeded'">
  338. <xts:string id="IDS_STATUS_SUCCEEDED"/>
  339. </out:when>
  340. <out:when test="$runStatus='failed'">
  341. <xts:string id="IDS_STATUS_FAILED"/>
  342. </out:when>
  343. <out:when test="$runStatus='executing'">
  344. <xts:string id="IDS_STATUS_EXECUTING"/>
  345. </out:when>
  346. <out:when test="$runStatus='cancelled' or $runStatus='terminated' or $runStatus='purged'">
  347. <xts:string id="IDS_STATUS_CANCELLED"/>
  348. </out:when>
  349. <out:when test="$runStatus='pending'">
  350. <xts:string id="IDS_STATUS_PENDING"/>
  351. </out:when>
  352. <out:when test="$runStatus='scheduled'">
  353. <xts:string id="IDS_STATUS_SCHEDULED"/>
  354. </out:when>
  355. <out:when test="$runStatus='suspended'">
  356. <xts:string id="IDS_STATUS_SUSPENDED"/>
  357. </out:when>
  358. <out:when test="$runStatus='inactive'">
  359. <xts:string id="IDS_STATUS_INACTIVE"/>
  360. </out:when>
  361. <out:otherwise>
  362. <xts:string id="IDS_STATUS_UNKNOWN"/>
  363. </out:otherwise>
  364. </out:choose>
  365. <!-- if we have events that can be rerun, or the container object failed, then show the rerun link -->
  366. <xsl:variable name="requiresContentTaskType" select="count(./requiresContentTaskType) > 0"/>
  367. <out:variable name="contentTypeKnown">
  368. <xsl:choose>
  369. <xsl:when test="$requiresContentTaskType">
  370. <out:choose>
  371. <out:when test="key('env-param','contentTaskType') = 'unknown'">false</out:when>
  372. <out:otherwise>true</out:otherwise>
  373. </out:choose>
  374. </xsl:when>
  375. <xsl:otherwise>true</xsl:otherwise>
  376. </xsl:choose>
  377. </out:variable>
  378. <out:if test="$isCapableToRerun and ($rerunList or $runStatus='failed') and $rerunListEventID and $contentTypeKnown='true'">
  379. <xsl:text>&#160;&#160;&#160;&#160;</xsl:text>
  380. <a href="#" onclick="rerun()" aria-haspopup="true"><xts:string id="IDS_VRH_RERUN"/></a>
  381. </out:if>
  382. </dp:text>
  383. </dp:section>
  384. </dp:list>
  385. </lyt:section>
  386. <!-- Show message if this history was generated by a rerun OR it was part of a job or agent -->
  387. <lyt:section>
  388. <!-- if we have an ownerEventID then the history was created as part of a job or agent -->
  389. <out:variable name="ownerEventID">
  390. <xsl:choose>
  391. <xsl:when test="@responseType = 'monitorService'">
  392. <out:value-of select="$eventRecord/history/history/ownerEventID/value"/>
  393. </xsl:when>
  394. <xsl:otherwise>
  395. <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:ownerEventID"/>
  396. </xsl:otherwise>
  397. </xsl:choose>
  398. </out:variable>
  399. <!-- if we have a restartEventID then the history was created by a rerun -->
  400. <out:variable name="rerunEventID">
  401. <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:restartEventID"/>
  402. </out:variable>
  403. <out:if test="string($ownerEventID) != '' or string($rerunEventID) != ''">
  404. <dp:list>
  405. <dp:section>
  406. <dp:choice>
  407. <dp:section1 wrap="wrap">
  408. <img height="30" width="30">
  409. <out:attribute name="alt"><xts:string id="IDS_ICON_TIP"/></out:attribute>
  410. <out:attribute name="src"><out:value-of select="$skin_images"/>tip_template.gif</out:attribute>
  411. </img>
  412. </dp:section1>
  413. <dp:section2 wrap="wrap">
  414. <out:variable name="parentLink"><xts:string id="IDS_VRH_PARENT_LINK"/></out:variable>
  415. <out:if test="string($ownerEventID) != ''">
  416. <!-- get the owner class. Should be jobDefinition, agentDefinition or agentDefinitionView -->
  417. <!-- when dealing with the MS, the owerClass and ownerName will get fixed when the page loads -->
  418. <out:variable name="ownerClass">
  419. <xsl:if test="@responseType != 'monitorService'">
  420. <out:value-of select="/root/relatedHistories/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:objectClass"/>
  421. </xsl:if>
  422. </out:variable>
  423. <out:variable name="ownerName">
  424. <xsl:if test="@responseType != 'monitorService'">
  425. <out:value-of select="/root/relatedHistories/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:defaultName"/>
  426. </xsl:if>
  427. </out:variable>
  428. <xts:string id="IDS_VRH_PARENT_TEXT">
  429. <xts:param name="parentLink">
  430. <utml:a utml:op="maintain">
  431. <out:attribute name="onclick">
  432. document.pform.m_name.value = '<out:value-of select="xtsext:javascriptencode(string($ownerName))"/>';
  433. document.pform.m_class.value = '<out:value-of select="xtsext:javascriptencode(string($ownerClass))"/>';
  434. <xsl:choose>
  435. <xsl:when test="@responseType = 'monitorService'">
  436. document.pform.m.value = 'portal/history/view_executing_details.xts';
  437. document.pform.eventID.value = '<out:value-of select="xtsext:javascriptencode(string($ownerEventID))"/>';
  438. </xsl:when>
  439. <xsl:otherwise>
  440. document.pform.m.value = 'portal/history/view_details.xts';
  441. document.pform.m_obj.value = '//history[@eventID = "<out:value-of select="xtsext:javascriptencode(string($ownerEventID))"/>"]';
  442. </xsl:otherwise>
  443. </xsl:choose>
  444. </out:attribute>
  445. <out:value-of select="$parentLink"/>
  446. </utml:a>
  447. </xts:param>
  448. </xts:string>
  449. <out:if test="string($rerunEventID) != ''"><br/><br/></out:if>
  450. </out:if>
  451. <out:if test="string($rerunEventID) != ''">
  452. <xts:string id="IDS_VRH_RERUN_TEXT"/>
  453. </out:if>
  454. </dp:section2>
  455. </dp:choice>
  456. </dp:section>
  457. </dp:list>
  458. </out:if>
  459. </lyt:section>
  460. </lyt:layout>
  461. </xsl:template>
  462. <xsl:template match="rhu:stepsHistory">
  463. <out:variable name="className">
  464. <out:choose>
  465. <out:when test="string($objectType)='jobDefinition'">
  466. <xts:string id="IDS_OBJ_JOBDEFINITION"/>
  467. </out:when>
  468. <out:when test="string($objectType)='agentDefinition'">
  469. <xts:string id="IDS_OBJ_AGENT"/>
  470. </out:when>
  471. <out:when test="string($objectType)='agentDefinitionView'">
  472. <xts:string id="IDS_OBJ_AGENTVIEW"/>
  473. </out:when>
  474. <out:when test="string($objectType)='reportDataServiceAgentDefinition'">
  475. <xts:string id="IDS_OBJ_WATCHRULE"/>
  476. </out:when>
  477. <out:when test="string($objectType)='humanTask'">
  478. <xts:string id="IDS_OBJ_HUMANTASK"/>
  479. </out:when>
  480. </out:choose>
  481. </out:variable>
  482. <lyt:layout style="1" longTitle="$className" border="yes">
  483. <lyt:section>
  484. <out:if test="contains(string($objectType),'agentDefinition')">
  485. <dp:list>
  486. <dp:section>
  487. <dp:label>
  488. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  489. </dp:label>
  490. </dp:section>
  491. <dp:section>
  492. <out:choose>
  493. <out:when test="$the-object != '' ">
  494. <!-- parameters (To do: display each parameter on separate line) -->
  495. <out:if test="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']!=''">
  496. <dp:text><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']"/></dp:text>
  497. </out:if>
  498. </out:when>
  499. <out:otherwise>
  500. <dp:text><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></dp:text>
  501. </out:otherwise>
  502. </out:choose>
  503. </dp:section>
  504. </dp:list>
  505. </out:if>
  506. </lyt:section>
  507. <lyt:section>
  508. <dp:list>
  509. <dp:section>
  510. <dp:label>
  511. <out:choose>
  512. <out:when test="string($objectType)='jobDefinition'">
  513. <xts:string id="IDS_PROP_JOB_STEPS_LABEL"/>
  514. </out:when>
  515. <out:when test="contains(string($objectType),'agentDefinition')">
  516. <xts:string id="IDS_VRH_DETAILS_TASKS_EVENTS"/>
  517. </out:when>
  518. <out:when test="contains(string($objectType),'reportDataServiceAgentDefinition')">
  519. <xts:string id="IDS_VRH_DETAILS_TASKS_WATCH_RULES"/>
  520. </out:when>
  521. <out:when test="contains(string($objectType),'humanTask')">
  522. <xts:string id="IDS_VRH_DETAILS_TASKS_HUMANTASK"/>
  523. </out:when>
  524. </out:choose>
  525. </dp:label>
  526. <dp:text width="100%"/>
  527. </dp:section>
  528. </dp:list>
  529. <!-- indicate to the user that the detail level history was set to false -->
  530. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='writeCompleteHistory']/*[local-name()='value']='false'">
  531. <dp:textarea>
  532. <dp:section1></dp:section1>
  533. <dp:section2>
  534. <dp:text width="100%"><xts:string id="IDS_PROP_JOB_NO_HISTORY_DETAIL"/></dp:text>
  535. </dp:section2>
  536. </dp:textarea>
  537. </out:if>
  538. <cf:main-pager-section form="pform" name="historydetail" virtualPage="true" width="100%">
  539. <cf:param name="item-path">/root/cm:queryResponse/cm:queryReply[4]/*</cf:param>
  540. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  541. <cf:param name="lines-per-page"><out:value-of select="key('session-param', 'linesPerPage')"/></cf:param>
  542. <cf:param name="pagerSummary"><xts:string id="IDS_VRH_DETAILS_MESSAGES_SUMMARY"/></cf:param>
  543. <cf:param name="rows">
  544. <cp:tableHeader>
  545. <!-- Icon Column -->
  546. <cp:columnHeader width="20"/>
  547. <!-- Path Column -->
  548. <cp:columnHeader width="120">
  549. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  550. <out:text/><xts:string id="IDS_HEADING_REPORT_NAME"/><out:text/>
  551. </cp:columnHeader>
  552. <!-- Task Requested Column -->
  553. <cp:columnHeader width="125">
  554. <xts:string id="IDS_HEADING_REQEXECTIME"/>
  555. </cp:columnHeader>
  556. <!-- Task Started Column -->
  557. <cp:columnHeader width="125">
  558. <xts:string id="IDS_HEADING_ACTUALEXECTIME"/>
  559. </cp:columnHeader>
  560. <!-- Task Completed Column -->
  561. <cp:columnHeader width="125">
  562. <xts:string id="IDS_HEADING_ACTUALCOMPTIME"/>
  563. </cp:columnHeader>
  564. <!-- Status Column -->
  565. <cp:columnHeader width="75">
  566. <xts:string id="IDS_HEADING_STATUS"/>
  567. </cp:columnHeader>
  568. <!-- Actions Column -->
  569. <cp:columnHeader width="100%">
  570. <xts:string id="IDS_HEADING_ACTIONS"/>
  571. </cp:columnHeader>
  572. </cp:tableHeader>
  573. <!-- Column contents -->
  574. <cp:tableContent>
  575. <out:variable name="storeID" select="./cm:related/cm:history/cm:parent/*/cm:storeID"/>
  576. <out:variable name="isDangling" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:base/@nil='true'"/>
  577. <out:variable name="isOrphanHistory" select="./cm:related/@nil = 'true'"/> <!-- This show if the historyDetailReportService is really dangling. Not for broken icon. -->
  578. <out:variable name="stepSearchPath" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:searchPath"/>
  579. <out:variable name="stepHistory" select="./cm:related/*"/>
  580. <out:variable name="step-report" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]"/>
  581. <out:variable name="step-name" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:defaultName"/>
  582. <out:variable name="step-iconURI" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:iconURI"/>
  583. <out:variable name="step-ancestors" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:ancestors"/>
  584. <out:variable name="step-objectClass" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:objectClass"/>
  585. <out:variable name="step-hidden" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:hidden"/>
  586. <!-- Icon Column -->
  587. <cp:columnContent>
  588. <out:call-template name="gen-icon">
  589. <out:with-param name="baseClass" select="string(/root/stepsInfo/cm:queryResponse/cm:queryReply/cm:report[./cm:storeID = $storeID]/cm:objectClass)"/>
  590. <out:with-param name="class" select="$step-objectClass"/>
  591. <out:with-param name="isDangling" select="$isDangling"/>
  592. <out:with-param name="hiddenObject" select="$step-hidden"/>
  593. <out:with-param name="iconURIOverride" select="$step-iconURI"/>
  594. </out:call-template>
  595. </cp:columnContent>
  596. <!-- Path Column -->
  597. <cp:columnContent>
  598. <out:if test=" $step-name != '' and not(contains(' storedProcedureTask webServiceTask memo shortcutRSSTask urlRSSTask ', concat(' ',$step-objectClass,' '))) ">
  599. <img align="absmiddle" height="16" width="20" src="{'{$skin_images}'}path.gif">
  600. <out:attribute name="alt">
  601. <cf:do-the-path-link>
  602. <cf:param name="familytree">$step-ancestors</cf:param>
  603. <cf:param name="familymember">$step-name</cf:param>
  604. <cf:param name="onlyAncestors">true</cf:param>
  605. </cf:do-the-path-link>
  606. </out:attribute>
  607. </img>
  608. <out:text>&#160;</out:text>
  609. </out:if>
  610. <out:choose>
  611. <out:when test=" $step-name != '' ">
  612. <out:value-of select="$step-name"/>
  613. </out:when>
  614. <out:otherwise>
  615. <xts:string id="IDS_MISSING_STEP"/>
  616. </out:otherwise>
  617. </out:choose>
  618. </cp:columnContent>
  619. <!-- Task Requested Column -->
  620. <cp:columnContent>
  621. <out:variable name="req-time" select="xtsext:formatDateFromUTC( string( $stepHistory/cm:requestedExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  622. <out:value-of select="$req-time"/>
  623. </cp:columnContent>
  624. <!-- Task Started Column -->
  625. <cp:columnContent>
  626. <out:variable name="start-time" select="xtsext:formatDateFromUTC( string( $stepHistory/cm:actualExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  627. <out:value-of select="$start-time"/>
  628. </cp:columnContent>
  629. <!--Task Completed Column -->
  630. <cp:columnContent>
  631. <out:variable name="end-time" select="xtsext:formatDateFromUTC( string( $stepHistory/cm:actualCompletionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  632. <out:value-of select="$end-time"/>
  633. </cp:columnContent>
  634. <!-- Status Column -->
  635. <cp:columnContent>
  636. <out:variable name="step-status" select="$stepHistory/cm:status"/>
  637. <out:variable name="runStatusIconError">
  638. <out:choose>
  639. <out:when test="$stepHistory/cm:maximumDetailSeverity='fatal'">true</out:when>
  640. <out:when test="$stepHistory/cm:maximumDetailSeverity='error'">true</out:when>
  641. <out:otherwise>false</out:otherwise>
  642. </out:choose>
  643. </out:variable>
  644. <out:variable name="runStatusIconWarn">
  645. <out:choose>
  646. <out:when test="$stepHistory/cm:maximumDetailSeverity='warn'">true</out:when>
  647. <out:otherwise>false</out:otherwise>
  648. </out:choose>
  649. </out:variable>
  650. <out:call-template name="gen-status">
  651. <out:with-param name="status" select="$step-status"/>
  652. <out:with-param name="runStatusIconError" select="$runStatusIconError"/>
  653. <out:with-param name="runStatusIconWarn" select="$runStatusIconWarn"/>
  654. </out:call-template>
  655. </cp:columnContent>
  656. <!-- Actions Column -->
  657. <cp:columnContent>
  658. <out:variable name="supportViewOutputsAction">
  659. <out:choose>
  660. <out:when test="key('output-location', $stepHistory/cm:storeID)">true</out:when>
  661. <out:otherwise>false</out:otherwise>
  662. </out:choose>
  663. </out:variable>
  664. <out:if test="not($isOrphanHistory)">
  665. <out:call-template name="action-properties">
  666. <out:with-param name="obj-name" select="$step-name"/>
  667. <out:with-param name="obj-path" select="$stepSearchPath"/>
  668. <out:with-param name="history-path" select="concat('//history[@eventID=&quot;', $stepHistory/cm:eventID, '&quot;]')"/>
  669. <out:with-param name="class" select="$step-objectClass"/>
  670. <out:with-param name="reportVersion-path" select="key('output-location', $stepHistory/cm:storeID)"/>
  671. <out:with-param name="runHistoryRequestedTime" select="$stepHistory/cm:requestedExecutionTime"/>
  672. <out:with-param name="supportViewOutputsAction" select="$supportViewOutputsAction"/>
  673. <out:with-param name="supportViewRunHistoryDetails" select="'true'"/>
  674. </out:call-template>
  675. </out:if>
  676. </cp:columnContent>
  677. </cp:tableContent>
  678. </cf:param>
  679. </cf:main-pager-section>
  680. </lyt:section>
  681. </lyt:layout>
  682. </xsl:template>
  683. <xsl:template match="rhu:messages">
  684. <lyt:layout style="1" title="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES" border="yes">
  685. <lyt:section>
  686. <cf:main-pager-section name="messages" form="pform" virtualPage="true">
  687. <cf:param name="label">
  688. <div>
  689. <dp:label for="lbl_severity"><xts:string id="IDS_VRH_DETAILS_SEVERITY"/></dp:label>
  690. <xsl:call-template name="rhu:severity"/>
  691. </div>
  692. </cf:param>
  693. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  694. <cf:param name="item-path">/root/cm:queryResponse/cm:queryReply[2]/*</cf:param>
  695. <cf:param name="lines-per-page">
  696. <out:value-of select="key('session-param', 'linesPerPage')"/>
  697. </cf:param>
  698. <cf:param name="pagerSummary"><xts:string id="IDS_VRH_DETAILS_MESSAGES_SUMMARY"/></cf:param>
  699. <cf:param name="rows">
  700. <cp:tableHeader session-name="s_hd">
  701. <cp:columnHeader width="200" sort="t">
  702. <cp:sortHref>
  703. <xsl:text>javascript:document.pform.m_s_hd.value=</xsl:text><out:choose><out:when test="key('session-param', 's_hd') = 'ta' ">'td'</out:when><out:when test="key('session-param', 's_hd') = 'td'">'sa'</out:when><out:otherwise>'ta'</out:otherwise></out:choose><xsl:text>;document.pform.submit();</xsl:text>
  704. </cp:sortHref>
  705. <xts:string id="IDS_VRH_DETAILS_TIME"/>
  706. </cp:columnHeader>
  707. <cp:columnHeader width="16"/>
  708. <cp:columnHeader width="100%">
  709. <xts:string id="IDS_VRH_DETAILS_MESSAGE"/>
  710. </cp:columnHeader>
  711. </cp:tableHeader>
  712. <cp:tableContent>
  713. <cp:columnContent valign="top">
  714. <out:value-of select="xtsext:formatDateFromUTC( string( cm:detailTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  715. </cp:columnContent>
  716. <cp:columnContent valign="top">
  717. <out:call-template name="gen-message-icon"/>
  718. </cp:columnContent>
  719. <cp:columnContent wrap="wrap" valign="top">
  720. <out:value-of select="cm:detail"/>
  721. </cp:columnContent>
  722. </cp:tableContent>
  723. </cf:param>
  724. </cf:main-pager-section>
  725. </lyt:section>
  726. </lyt:layout>
  727. </xsl:template>
  728. <xsl:template name="rhu:severity" match="rhu:severity">
  729. <out:variable name="filterSeverity" select="key('env-param', 'vrh_severity')"/>
  730. <utml:select name="vrh_severity" id="lbl_severity" size="1" onChange="javascript:doApplyFilter();" style="font-weight: normal;">
  731. <utml:option value="all">
  732. <out:if test="not($filterSeverity) or ($filterSeverity = 'all')">
  733. <out:attribute name="selected">selected</out:attribute>
  734. </out:if>
  735. <xts:string id="IDS_VRH_DETAILS_SEVERITY_ALL"/>
  736. </utml:option>
  737. <utml:option value="warn">
  738. <out:if test="$filterSeverity = 'warn'">
  739. <out:attribute name="selected">selected</out:attribute>
  740. </out:if>
  741. <xts:string id="IDS_VRH_DETAILS_SEVERITY_WARN"/>
  742. </utml:option>
  743. <utml:option value="info">
  744. <out:if test="$filterSeverity = 'info'">
  745. <out:attribute name="selected">selected</out:attribute>
  746. </out:if>
  747. <xts:string id="IDS_VRH_DETAILS_SEVERITY_INFO"/>
  748. </utml:option>
  749. <utml:option value="fatal">
  750. <out:if test="$filterSeverity = 'fatal'">
  751. <out:attribute name="selected">selected</out:attribute>
  752. </out:if>
  753. <xts:string id="IDS_VRH_DETAILS_SEVERITY_FATAL"/>
  754. </utml:option>
  755. <utml:option value="error">
  756. <out:if test="$filterSeverity = 'error'">
  757. <out:attribute name="selected">selected</out:attribute>
  758. </out:if>
  759. <xts:string id="IDS_VRH_DETAILS_SEVERITY_ERROR"/>
  760. </utml:option>
  761. <utml:option value="debug">
  762. <out:if test="$filterSeverity = 'debug'">
  763. <out:attribute name="selected">selected</out:attribute>
  764. </out:if>
  765. <xts:string id="IDS_VRH_DETAILS_SEVERITY_DEBUG"/>
  766. </utml:option>
  767. </utml:select>
  768. </xsl:template>
  769. <!--
  770. Table that shows the list of events that can be rerun
  771. -->
  772. <xsl:template match="rhu:outstanding">
  773. <!--
  774. only show this section if we're dealing with a container runnable (job or agent) and we got
  775. items that can be rerun from the Monitor Service response
  776. -->
  777. <out:if test="contains(' jobDefinition agentDefinition agentDefinitionView ',concat(' ',$objectType,' ')) and $rerunList/*">
  778. <lyt:layout style="1" title="IDS_VRH_OUTSTANDING_RERUN" border="yes">
  779. <lyt:intro>
  780. <out:variable name="objectString">
  781. <out:choose>
  782. <out:when test="string($objectType)='jobDefinition'"><xts:string id="IDS_HRE_STEPS"/></out:when>
  783. <out:otherwise><xts:string id="IDS_HRE_TASKS"/></out:otherwise>
  784. </out:choose>
  785. </out:variable>
  786. <out:variable name="rerunStepsLink">
  787. <a href="#" onclick="rerun();"><xts:string id="IDS_VRH_RERUN_STEPS_IN_TEXT"/></a>
  788. </out:variable>
  789. <out:variable name="rerunTasksLink">
  790. <a href="#" onclick="rerun();"><xts:string id="IDS_VRH_RERUN_TASKS_IN_TEXT"/></a>
  791. </out:variable>
  792. <out:choose>
  793. <out:when test="string($objectType)='jobDefinition'">
  794. <out:choose>
  795. <out:when test="$isCapableToRerun">
  796. <xts:string id="IDS_VRH_OUTSTANDING_RERUN_DESC_STEPS">
  797. <xts:param name="rerunLink"><out:copy-of select="$rerunStepsLink"/></xts:param>
  798. </xts:string>
  799. </out:when>
  800. <out:otherwise>
  801. <xts:string id="IDS_VRH_OUTSTANDING_NO_RERUN_DESC_STEPS"/>
  802. </out:otherwise>
  803. </out:choose>
  804. </out:when>
  805. <out:otherwise>
  806. <out:choose>
  807. <out:when test="$isCapableToRerun">
  808. <xts:string id="IDS_VRH_OUTSTANDING_RERUN_DESC">
  809. <xts:param name="objectClass"><out:value-of select="$objectString"/></xts:param>
  810. <xts:param name="rerunLink"><out:copy-of select="$rerunTasksLink"/></xts:param>
  811. </xts:string>
  812. </out:when>
  813. <out:otherwise>
  814. <xts:string id="IDS_VRH_OUTSTANDING_NO_RERUN_DESC">
  815. <xts:param name="objectClass"><out:value-of select="$objectString"/></xts:param>
  816. </xts:string>
  817. </out:otherwise>
  818. </out:choose>
  819. </out:otherwise>
  820. </out:choose>
  821. </lyt:intro>
  822. <lyt:section>
  823. <dp:list>
  824. <dp:section>
  825. <dp:text width="100%"/>
  826. <out:choose>
  827. <out:when test="count($rerunList/*) > 0">
  828. <dp:text nospace="nospace">
  829. 1 - <out:value-of select="count($rerunList)"/>
  830. </dp:text>
  831. </out:when>
  832. <out:otherwise>
  833. <dp:text/>
  834. </out:otherwise>
  835. </out:choose>
  836. </dp:section>
  837. </dp:list>
  838. <cp:table name="outstanding" iterate="$rerunList" showEmptyMsg="true">
  839. <!-- rerun actions -->
  840. <cp:action>
  841. <out:if test="$isCapableToRerun">
  842. <a href="#" onclick="rerun();"><xts:string id="IDS_VRH_RERUN"/></a>
  843. </out:if>
  844. </cp:action>
  845. <!-- Column Headers -->
  846. <cp:tableHeader>
  847. <!-- Icon Column -->
  848. <cp:columnHeader width="20"/>
  849. <!-- Path Column -->
  850. <cp:columnHeader width="50%">
  851. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  852. <out:text/><xts:string id="IDS_HEADING_REPORT_NAME"/><out:text/>
  853. </cp:columnHeader>
  854. <cp:columnHeader width="50%">
  855. <xts:string id="IDS_HEADING_STATUS"/>
  856. </cp:columnHeader>
  857. </cp:tableHeader>
  858. <!-- Column contents -->
  859. <cp:tableContent>
  860. <!-- Icon Column -->
  861. <cp:columnContent>
  862. <out:variable name="runnable" select="runnable/runnable"/>
  863. <out:call-template name="gen-icon">
  864. <out:with-param name="class" select="$runnable/objectClass/value"/>
  865. <out:with-param name="hiddenObject" select="$runnable/hidden/value"/>
  866. <out:with-param name="iconURIOverride" select="$runnable/iconURI/value"/>
  867. </out:call-template>
  868. </cp:columnContent>
  869. <cp:columnContent>
  870. <img align="absmiddle" height="16" width="20" src="{'{$skin_images}'}path.gif">
  871. <out:attribute name="alt">
  872. <!-- we can't use the do-the-path-link template since the response didn't go through post-process -->
  873. <out:for-each select="runnable/runnable/ancestors/value/item">
  874. <out:value-of select="title"/>
  875. <out:if test="position() != last()">&#160;&gt;&#160;</out:if>
  876. </out:for-each>
  877. </out:attribute>
  878. </img>
  879. <out:text>&#160;</out:text>
  880. <out:value-of select="runnable/runnable/defaultName/value"/>
  881. </cp:columnContent>
  882. <!-- Status Column -->
  883. <cp:columnContent>
  884. <out:call-template name="gen-status">
  885. <out:with-param name="status" select="string(history/item/status/value)"/>
  886. </out:call-template>
  887. </cp:columnContent>
  888. </cp:tableContent>
  889. </cp:table>
  890. </lyt:section>
  891. </lyt:layout>
  892. </out:if>
  893. </xsl:template>
  894. <!--
  895. Table that shows the list of related runs
  896. -->
  897. <xsl:template match="rhu:relatedRuns">
  898. <out:variable name="relatedHistories" select="/root/relatedHistories/cm:queryResponse/cm:queryReply[position() = last()]/*"/>
  899. <!--
  900. Show this section if we have a restartEventID or there's more then one item in the result set. If we're
  901. at the initial runnable, then there isn't a restartEventID but if we have more then one item in the result set
  902. we know that reruns have occured.
  903. -->
  904. <out:if test="string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:restartEventID) != '' or count($relatedHistories) > 1">
  905. <lyt:layout style="1" title="IDS_VRH_RELATED_RUNS" intro="IDS_VRH_RELATED_RUNS_DESC" border="yes">
  906. <lyt:section>
  907. <dp:list>
  908. <dp:section>
  909. <dp:text width="100%"/>
  910. <out:choose>
  911. <out:when test="count($relatedHistories) > 0">
  912. <dp:text nospace="nospace">
  913. 1 - <out:value-of select="count($relatedHistories)"/>
  914. </dp:text>
  915. </out:when>
  916. <out:otherwise>
  917. <dp:text/>
  918. </out:otherwise>
  919. </out:choose>
  920. </dp:section>
  921. </dp:list>
  922. <cp:table name="related" id="relatedRuns" iterate="$relatedHistories" showEmptyMsg="true">
  923. <!-- Column Headers -->
  924. <cp:tableHeader>
  925. <!-- Request time -->
  926. <cp:columnHeader width="18%">
  927. <xts:string id="IDS_HEADING_REQEXECTIME"/>
  928. </cp:columnHeader>
  929. <!-- Start time -->
  930. <cp:columnHeader width="18%">
  931. <xts:string id="IDS_HEADING_ACTUALEXECTIME"/>
  932. </cp:columnHeader>
  933. <!-- Completion time -->
  934. <cp:columnHeader width="18%">
  935. <xts:string id="IDS_HEADING_ACTUALCOMPTIME"/>
  936. </cp:columnHeader>
  937. <!-- status -->
  938. <cp:columnHeader width="18%">
  939. <xts:string id="IDS_HEADING_STATUS"/>
  940. </cp:columnHeader>
  941. <!-- action -->
  942. <cp:columnHeader width="100%">
  943. <xts:string id="IDS_SRR_TABLE_ACTIONS"/>
  944. </cp:columnHeader>
  945. </cp:tableHeader>
  946. <!-- Column contents -->
  947. <cp:tableContent>
  948. <!-- need to put the history we're currently looking at in bold -->
  949. <out:variable name="isContextHistory" select="string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:eventID) = string(cm:eventID)"/>
  950. <out:variable name="openBold">
  951. <out:if test="$isContextHistory">&lt;b&gt;</out:if>
  952. </out:variable>
  953. <out:variable name="closeBold">
  954. <out:if test="$isContextHistory">&lt;/b&gt;</out:if>
  955. </out:variable>
  956. <out:variable name="requestTime" select="xtsext:formatDateFromUTC( string( cm:requestedExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  957. <out:variable name="annotatedRequestTime">
  958. <out:choose>
  959. <out:when test="$isContextHistory">
  960. <xts:string id="IDS_VRH_RERUN_CURRENTRUN"><xts:param name="requestTime"><out:value-of select="$requestTime"/></xts:param></xts:string>
  961. </out:when>
  962. <out:otherwise><out:value-of select="$requestTime"/></out:otherwise>
  963. </out:choose>
  964. </out:variable>
  965. <!-- Request time -->
  966. <cp:columnContent>
  967. <out:value-of select="$openBold" disable-output-escaping="yes"/><out:value-of select="$annotatedRequestTime"/><out:value-of select="$closeBold" disable-output-escaping="yes"/>
  968. </cp:columnContent>
  969. <!-- Start time -->
  970. <cp:columnContent>
  971. <out:value-of select="$openBold" disable-output-escaping="yes"/><out:value-of select="xtsext:formatDateFromUTC( string( cm:actualExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/><out:value-of select="$closeBold" disable-output-escaping="yes"/>
  972. </cp:columnContent>
  973. <!-- Completion time -->
  974. <cp:columnContent>
  975. <out:value-of select="$openBold" disable-output-escaping="yes"/><out:value-of select="xtsext:formatDateFromUTC( string( cm:actualCompletionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/><out:value-of select="$closeBold" disable-output-escaping="yes"/>
  976. </cp:columnContent>
  977. <!-- status -->
  978. <cp:columnContent>
  979. <out:value-of select="$openBold" disable-output-escaping="yes"/>
  980. <out:call-template name="gen-status">
  981. <out:with-param name="status" select="cm:status"/>
  982. <out:with-param name="runStatusIconError" select="'false'"/>
  983. <out:with-param name="runStatusIconWarn" select="'false'"/>
  984. </out:call-template>
  985. <out:value-of select="$closeBold" disable-output-escaping="yes"/>
  986. </cp:columnContent>
  987. <!-- action -->
  988. <cp:columnContent>
  989. <out:if test="not($isContextHistory)">
  990. <out:call-template name="action-properties">
  991. <out:with-param name="obj-name" select="cm:parent/*/cm:defaultName"/>
  992. <out:with-param name="history-path" select="concat('//history[@eventID=&quot;', cm:eventID, '&quot;]')"/>
  993. <out:with-param name="class" select="cm:parent/*/cm:objectClass"/>
  994. <out:with-param name="supportViewRunHistoryDetails" select="'true'"/>
  995. </out:call-template>
  996. </out:if>
  997. </cp:columnContent>
  998. </cp:tableContent>
  999. </cp:table>
  1000. </lyt:section>
  1001. </lyt:layout>
  1002. </out:if>
  1003. </xsl:template>
  1004. <xsl:template match="rhu:dataMovement">
  1005. <lyt:layout style="1" title="IDS_OBJ_DATAMOVEMENTTASK" border="yes">
  1006. <lyt:section>
  1007. <dp:list>
  1008. <dp:section>
  1009. <dp:text>
  1010. <out:variable name="isLinked" select="/root/cm:queryResponse[1]/cm:queryReply[2]/*/cm:objectClass!='history'"/>
  1011. <out:for-each select="/root/cm:queryResponse[2]/cm:queryReply/*">
  1012. <out:variable name="linkName">
  1013. <out:choose>
  1014. <out:when test="cm:detail !=''">
  1015. <out:value-of select="cm:detail"/>
  1016. </out:when>
  1017. <out:otherwise>
  1018. <span lang="{'{$contentLocale}'}"><out:value-of select="cm:defaultName"/></span>
  1019. </out:otherwise>
  1020. </out:choose>
  1021. </out:variable>
  1022. <out:choose>
  1023. <out:when test="$isLinked">
  1024. <out:variable name="searchPath">
  1025. <out:choose>
  1026. <out:when test="cm:objectClass='dataMovementTask' or cm:objectClass='dataMovementTaskAlias'">
  1027. <out:value-of select="/root/env/param[@name='m_obj']"/>
  1028. </out:when>
  1029. <out:otherwise>
  1030. <out:value-of select="cm:searchPath"/>
  1031. </out:otherwise>
  1032. </out:choose>
  1033. </out:variable>
  1034. <span class="pathLink">
  1035. <a href="#">
  1036. <out:attribute name="onclick">javascript:<xsl:text/>
  1037. var form = document.pform;<xsl:text/>
  1038. form.m_detailsPath.value="<out:value-of select="xtsext:javascriptencode(string($searchPath))"/>"<xsl:text/>
  1039. form.submit();<xsl:text/>
  1040. </out:attribute>
  1041. <out:copy-of select="$linkName"/>
  1042. </a>
  1043. </span>
  1044. </out:when>
  1045. <out:otherwise>
  1046. <span class="pathLeafNode"><out:copy-of select="$linkName"/></span>
  1047. </out:otherwise>
  1048. </out:choose>
  1049. <out:if test="position() != last()">
  1050. <span class="pathSeparator">&#160;>&#160;</span>
  1051. </out:if>
  1052. </out:for-each>
  1053. <out:if test="/root/cm:queryResponse[1]/cm:queryReply[2]/cm:historyDetailDataMovementService">
  1054. <span class="pathSeparator">&#160;>&#160;</span>
  1055. <span class="pathLeafNode">
  1056. <out:value-of select="/root/cm:queryResponse[1]/cm:queryReply[2]/cm:historyDetailDataMovementService/cm:detail"/>
  1057. </span>
  1058. </out:if>
  1059. </dp:text>
  1060. </dp:section>
  1061. <dp:section>
  1062. <dp:text width="100%"/>
  1063. <out:choose>
  1064. <out:when test="count(/root/cm:queryResponse[1]/cm:queryReply[3]/*)>0">
  1065. <dp:text nospace="nospace">
  1066. <xts:string id="IDS_ENTRIES"/>
  1067. 1 - <out:value-of select="count(/root/cm:queryResponse[1]/cm:queryReply[3]/*)"/>
  1068. </dp:text>
  1069. </out:when>
  1070. <out:otherwise>
  1071. <dp:text/>
  1072. </out:otherwise>
  1073. </out:choose>
  1074. </dp:section>
  1075. </dp:list>
  1076. <utml:input type="hidden" name="m_filename" value=""/>
  1077. <utml:input type="hidden" name="m_download_id" value=""/>
  1078. <script language="JavaScript">
  1079. function download(objID,filename)
  1080. {
  1081. with (document.pform) {
  1082. m_download_id.value = objID;
  1083. m_filename.value = filename;
  1084. m.value = "<out:value-of select="$app"/>/history/dms_download.xts";
  1085. submit();
  1086. m.value="<out:value-of select="concat($app, '/', $mname)"/>";
  1087. }
  1088. }
  1089. </script>
  1090. <cp:table name="details" iterate="/root/cm:queryResponse[1]/cm:queryReply[3]/*" showEmptyMsg="true">
  1091. <cp:tableHeader session-name="s_hd">
  1092. <cp:columnHeader width="200" sort="t">
  1093. <cp:sortHref>
  1094. <xsl:text>javascript:document.pform.m_s_hd.value=</xsl:text><out:choose><out:when test="key('session-param', 's_hd') = 'ta' ">'td'</out:when><out:when test="key('session-param', 's_hd') = 'td'">'ta'</out:when><out:otherwise>'td'</out:otherwise></out:choose><xsl:text>;document.pform.submit();</xsl:text>
  1095. </cp:sortHref>
  1096. <xts:string id="IDS_VRH_DETAILS_TIME"/>
  1097. </cp:columnHeader>
  1098. <cp:columnHeader width="16"/>
  1099. <cp:columnHeader width="100%">
  1100. <xts:string id="IDS_VRH_DETAILS_MESSAGE"/>
  1101. </cp:columnHeader>
  1102. </cp:tableHeader>
  1103. <cp:tableContent>
  1104. <cp:columnContent valign="top">
  1105. <out:value-of select="xtsext:formatDateFromUTC( string( cm:detailTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  1106. </cp:columnContent>
  1107. <cp:columnContent valign="top">
  1108. <out:call-template name="gen-message-icon"/>
  1109. </cp:columnContent>
  1110. <cp:columnContent wrap="wrap" valign="top">
  1111. <out:choose>
  1112. <out:when test="cm:objectClass='historyDetailDataMovementService'">
  1113. <out:variable name="js-encoded-searchPath">
  1114. <out:value-of select="xtsext:javascriptencode(string(cm:searchPath))"/>
  1115. </out:variable>
  1116. <out:variable name="js-encoded-name">
  1117. <span lang="{'{$contentLocale}'}"><out:value-of select="xtsext:javascriptencode(string(cm:defaultName))"/></span>
  1118. </out:variable>
  1119. <a href="#">
  1120. <out:attribute name="onclick">javascript:<xsl:text/>
  1121. var form = document.pform;<xsl:text/>
  1122. form.m_detailsPath.value="<out:value-of select="$js-encoded-searchPath"/>"<xsl:text/>
  1123. form.submit();<xsl:text/>
  1124. </out:attribute>
  1125. <out:value-of select="cm:detail"/>
  1126. </a>
  1127. <out:if test="cm:dataSize and cm:dataSize != '0'">
  1128. <out:text>&#160;</out:text>
  1129. <img align="absmiddle" style="cursor:pointer;" height="16" width="16" tabindex="0">
  1130. <out:attribute name="src"><out:value-of select="$image_root"/>action_view_log_file.gif</out:attribute>
  1131. <out:attribute name="title"><xts:string id="IDS_VRH_VIEW_DMS_LOG"/></out:attribute>
  1132. <out:attribute name="onclick">
  1133. <out:text>javascript:download('</out:text>
  1134. <out:value-of select="cm:storeID"/>
  1135. <out:text>','</out:text>
  1136. <out:value-of select="$js-encoded-name"/>
  1137. <out:text>');</out:text>
  1138. </out:attribute>
  1139. </img>
  1140. </out:if>
  1141. </out:when>
  1142. <out:otherwise>
  1143. <out:value-of select="cm:detail"/>
  1144. </out:otherwise>
  1145. </out:choose>
  1146. </cp:columnContent>
  1147. </cp:tableContent>
  1148. </cp:table>
  1149. </lyt:section>
  1150. </lyt:layout>
  1151. </xsl:template>
  1152. <xsl:template match="rhu:genStatus">
  1153. <out:template name="gen-status">
  1154. <out:param name="status" select="unknown"/>
  1155. <out:param name="runStatusIconError" select="false"/>
  1156. <out:param name="runStatusIconWarn" select="false"/>
  1157. <out:choose>
  1158. <out:when test="$status='succeeded' and $runStatusIconError='true'">
  1159. <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
  1160. <img height="8" width="8" border="0">
  1161. <out:attribute name="src"><out:value-of select="$webcontent"/>/<out:value-of select="$app"/>/images/msg_error_8.gif</out:attribute>
  1162. <out:attribute name="aria-label"><xts:string id="IDS_JOB_STATUS_WITH_ERRORS"/></out:attribute>
  1163. </img>
  1164. </out:when>
  1165. <out:when test="$status='succeeded' and $runStatusIconWarn='true'">
  1166. <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
  1167. <img height="8" width="8" border="0"><out:attribute name="src">
  1168. <out:value-of select="$webcontent"/>/<out:value-of select="$app"/>/images/msg_warning_8.gif</out:attribute>
  1169. <out:attribute name="aria-label"><xts:string id="IDS_JOB_STATUS_WITH_WARNINGS"/></out:attribute>
  1170. </img>
  1171. </out:when>
  1172. <out:when test="$status='succeeded' and $runStatusIconError='false' and $runStatusIconWarn='false'">
  1173. <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
  1174. </out:when>
  1175. <out:when test="$status='pending'">
  1176. <xts:string id="IDS_JOB_STATUS_PENDING"/>
  1177. </out:when>
  1178. <out:when test="$status='suspended'">
  1179. <xts:string id="IDS_JOB_STATUS_SUSPENDED"/>
  1180. </out:when>
  1181. <out:when test="$status='inactive'">
  1182. <xts:string id="IDS_JOB_STATUS_INACTIVE"/>
  1183. </out:when>
  1184. <out:when test="$status='executing'">
  1185. <xts:string id="IDS_JOB_STATUS_EXECUTING"/>
  1186. </out:when>
  1187. <out:when test="$status='failed'">
  1188. <xts:string id="IDS_JOB_STATUS_FAILED"/>
  1189. </out:when>
  1190. <out:when test="$status='cancelled' or $status='terminated' or $status='purged'">
  1191. <xts:string id="IDS_JOB_STATUS_CANCELLED"/>
  1192. </out:when>
  1193. </out:choose>
  1194. </out:template>
  1195. </xsl:template>
  1196. <xsl:template match="rhu:genMessageIcons">
  1197. <out:template name="gen-message-icon">
  1198. <out:param name="statusPath" select="cm:severity"/>
  1199. <out:variable name="messageIcon">
  1200. <out:choose>
  1201. <out:when test="$statusPath = 'info' or $statusPath = 'information'">
  1202. <out:text/>msg_information_16.gif<out:text/>
  1203. </out:when>
  1204. <out:when test="$statusPath = 'warn' or $statusPath = 'warning'">
  1205. <out:text/>msg_warning_16.gif<out:text/>
  1206. </out:when>
  1207. <out:when test="$statusPath = 'fatal'">
  1208. <out:text/>msg_fatal_16.gif<out:text/>
  1209. </out:when>
  1210. <out:when test="$statusPath = 'debug'">
  1211. <out:text/>msg_debug_16.gif<out:text/>
  1212. </out:when>
  1213. <out:otherwise>
  1214. <out:text/>msg_error_16.gif<out:text/>
  1215. </out:otherwise>
  1216. </out:choose>
  1217. </out:variable>
  1218. <out:variable name="iconTooltip">
  1219. <out:choose>
  1220. <out:when test="$statusPath = 'info' or $statusPath = 'information'">
  1221. <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_INFO"/><out:text/>
  1222. </out:when>
  1223. <out:when test="$statusPath = 'warn' or $statusPath = 'warning'">
  1224. <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_WARN"/><out:text/>
  1225. </out:when>
  1226. <out:when test="$statusPath = 'fatal'">
  1227. <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_FATAL"/><out:text/>
  1228. </out:when>
  1229. <out:when test="$statusPath = 'debug'">
  1230. <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_DEBUG"/><out:text/>
  1231. </out:when>
  1232. <out:otherwise>
  1233. <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_ERROR"/><out:text/>
  1234. </out:otherwise>
  1235. </out:choose>
  1236. </out:variable>
  1237. <img height="16" width="16">
  1238. <out:attribute name="src"><out:value-of select="$image_root"/><out:value-of select="$messageIcon"/></out:attribute>
  1239. <out:attribute name="alt"><out:value-of select="$iconTooltip"/></out:attribute>
  1240. <out:attribute name="title"><out:value-of select="$iconTooltip"/></out:attribute>
  1241. </img>
  1242. </out:template>
  1243. </xsl:template>
  1244. <xsl:template name="metricsImportOptionsSummary">
  1245. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='loadFromStagingTables']/*[local-name()='value']='true'">
  1246. <dp:section>
  1247. <dp:text><xts:string id="IDS_PROP_METRICS_LOAD_FROM_STAGING_AREA"/></dp:text>
  1248. </dp:section>
  1249. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearHistory']/*[local-name()='value']='true'">
  1250. <dp:section>
  1251. <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_HISTORY"/></dp:text>
  1252. </dp:section>
  1253. </out:if>
  1254. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearCalendar']/*[local-name()='value']='true'">
  1255. <dp:section>
  1256. <dp:text><img height="1" width="8" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img><xts:string id="IDS_PROP_METRICS_CLEAR_CALENDAR"/></dp:text>
  1257. </dp:section>
  1258. </out:if>
  1259. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearRejects']/*[local-name()='value']='true'">
  1260. <dp:section>
  1261. <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_REJECTS"/></dp:text>
  1262. </dp:section>
  1263. </out:if>
  1264. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='recalculateMetrics']/*[local-name()='value']='true'">
  1265. <dp:section>
  1266. <dp:text><xts:string id="IDS_PROP_METRICS_RECALCULATE_METRICS"/></dp:text>
  1267. </dp:section>
  1268. </out:if>
  1269. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='processWatchListQueue']/*[local-name()='value']='true'">
  1270. <dp:section>
  1271. <dp:text><xts:string id="IDS_PROP_METRICS_PROCESS_WATCH_LIST_QUEUE"/></dp:text>
  1272. </dp:section>
  1273. </out:if>
  1274. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='updateIndexes']/*[local-name()='value']='true'">
  1275. <dp:section>
  1276. <dp:text><xts:string id="IDS_PROP_METRICS_UPDATE_INDEXES"/></dp:text>
  1277. </dp:section>
  1278. </out:if>
  1279. </out:if>
  1280. </xsl:template>
  1281. <xsl:template match="rhu:metricsHistoryImportFromFileOptionsSummary">
  1282. <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_FILES">
  1283. <lyt:section>
  1284. <dp:list>
  1285. <dp:section>
  1286. <dp:label>
  1287. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1288. </dp:label>
  1289. </dp:section>
  1290. <dp:section>
  1291. <dp:text><xts:string id="IDS_PROP_METRICS_IMPORT_FROM_FILES"/></dp:text>
  1292. </dp:section>
  1293. <xsl:call-template name="metricsImportOptionsSummary"/>
  1294. </dp:list>
  1295. </lyt:section>
  1296. </lyt:layout>
  1297. </xsl:template>
  1298. <xsl:template match="rhu:metricsHistoryImportFromDataSourceOptionsSummary">
  1299. <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_DS">
  1300. <lyt:section>
  1301. <dp:list>
  1302. <dp:section>
  1303. <dp:label>
  1304. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1305. </dp:label>
  1306. </dp:section>
  1307. <dp:section>
  1308. <dp:text><xts:string id="IDS_PROP_METRICS_IMPORT_FROM_DATA_SOURCE"/></dp:text>
  1309. </dp:section>
  1310. <xsl:call-template name="metricsImportOptionsSummary"/>
  1311. </dp:list>
  1312. </lyt:section>
  1313. </lyt:layout>
  1314. </xsl:template>
  1315. <xsl:template match="rhu:metricsHistoryExportOptionsSummary">
  1316. <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_EXPORT">
  1317. <lyt:section>
  1318. <dp:list>
  1319. <dp:section>
  1320. <dp:label>
  1321. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1322. </dp:label>
  1323. </dp:section>
  1324. <dp:section>
  1325. <dp:text><xts:string id="IDS_PROP_METRICS_EXPORT"/></dp:text>
  1326. </dp:section>
  1327. </dp:list>
  1328. </lyt:section>
  1329. </lyt:layout>
  1330. </xsl:template>
  1331. <xsl:template match="rhu:metricsHistoryMaintenanceOptionsSummary">
  1332. <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_MAINTENANCE">
  1333. <lyt:section>
  1334. <dp:list>
  1335. <dp:section>
  1336. <dp:label>
  1337. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1338. </dp:label>
  1339. </dp:section>
  1340. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='loadFromStagingTables']/*[local-name()='value']='true'">
  1341. <dp:section>
  1342. <dp:text><xts:string id="IDS_PROP_METRICS_LOAD_FROM_STAGING_AREA"/></dp:text>
  1343. </dp:section>
  1344. </out:if>
  1345. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='recalculateMetrics']/*[local-name()='value']='true'">
  1346. <dp:section>
  1347. <dp:text><xts:string id="IDS_PROP_METRICS_RECALCULATE_METRICS"/></dp:text>
  1348. </dp:section>
  1349. </out:if>
  1350. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearHistory']/*[local-name()='value']='true'">
  1351. <dp:section>
  1352. <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_HISTORY"/></dp:text>
  1353. </dp:section>
  1354. </out:if>
  1355. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearCalendar']/*[local-name()='value']='true'">
  1356. <dp:section>
  1357. <dp:text><img height="1" width="8" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img><xts:string id="IDS_PROP_METRICS_CLEAR_CALENDAR"/></dp:text>
  1358. </dp:section>
  1359. </out:if>
  1360. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearRejects']/*[local-name()='value']='true'">
  1361. <dp:section>
  1362. <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_REJECTS"/></dp:text>
  1363. </dp:section>
  1364. </out:if>
  1365. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='processWatchListQueue']/*[local-name()='value']='true'">
  1366. <dp:section>
  1367. <dp:text><xts:string id="IDS_PROP_METRICS_PROCESS_WATCH_LIST_QUEUE"/></dp:text>
  1368. </dp:section>
  1369. </out:if>
  1370. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='synchronizeUserInformation']/*[local-name()='value']='true'">
  1371. <dp:section>
  1372. <dp:text><xts:string id="IDS_PROP_METRICS_SYNCHRONIZE_USER_INFO"/></dp:text>
  1373. </dp:section>
  1374. </out:if>
  1375. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='updateIndexes']/*[local-name()='value']='true'">
  1376. <dp:section>
  1377. <dp:text><xts:string id="IDS_PROP_METRICS_MAINTAIN_SUMMARY_INDEXES_UPDATE"/></dp:text>
  1378. </dp:section>
  1379. </out:if>
  1380. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='rebuildIndexes']/*[local-name()='value']='true'">
  1381. <dp:section>
  1382. <dp:text><xts:string id="IDS_PROP_METRICS_MAINTAIN_SUMMARY_INDEXES_REBUILD"/></dp:text>
  1383. </dp:section>
  1384. </out:if>
  1385. </dp:list>
  1386. </lyt:section>
  1387. </lyt:layout>
  1388. </xsl:template>
  1389. <!--
  1390. rhu:reportHistoryOptionsSummary
  1391. @responseType - Can be set to monitorService. Used to know if the response came from the monitor service (i.e. the runnable
  1392. is still executing) so we know where to get the option information
  1393. -->
  1394. <xsl:template match="rhu:reportHistoryOptionsSummary">
  1395. <out:variable name="className">
  1396. <out:choose>
  1397. <out:when test="string($objectType)='report'">
  1398. <xts:string id="IDS_OBJ_REPORT"/>
  1399. </out:when>
  1400. <out:when test="string($objectType)='interactiveReport'">
  1401. <xts:string id="IDS_OBJ_INTERACTIVEREPORT"/>
  1402. </out:when>
  1403. <out:when test="string($objectType)='query'">
  1404. <xts:string id="IDS_OBJ_QUERY"/>
  1405. </out:when>
  1406. <out:when test="string($objectType)='analysis'">
  1407. <xts:string id="IDS_OBJ_ANALYSIS"/>
  1408. </out:when>
  1409. <out:when test="string($objectType)='reportView'">
  1410. <xts:string id="IDS_OBJ_REPORTVIEW"/>
  1411. </out:when>
  1412. <out:when test="string($objectType)='powerPlay8Report'">
  1413. <xts:string id="IDS_OBJ_POWERPLAY8REPORT"/>
  1414. </out:when>
  1415. <out:when test="string($objectType)='powerPlay8ReportView'">
  1416. <xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/>
  1417. </out:when>
  1418. </out:choose>
  1419. </out:variable>
  1420. <lyt:layout style="1" border="yes" longTitle="$className">
  1421. <lyt:section>
  1422. <dp:list>
  1423. <dp:section>
  1424. <dp:label>
  1425. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1426. </dp:label>
  1427. </dp:section>
  1428. <out:choose>
  1429. <out:when test="not($the-object)">
  1430. <dp:section>
  1431. <dp:text>
  1432. <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
  1433. </dp:text>
  1434. </dp:section>
  1435. </out:when>
  1436. <out:otherwise>
  1437. <!-- promptCacheMode -->
  1438. <out:variable name="promptCacheMode" select="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionPromptCacheMode' and ./*[local-name()='name']='promptCacheMode']/*[local-name()='value']"/>
  1439. <out:choose>
  1440. <out:when test="$promptCacheMode='refresh'">
  1441. <dp:section>
  1442. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_REFRESH_REPORT_CACHE"/></dp:text>
  1443. </dp:section>
  1444. </out:when>
  1445. <out:when test="$promptCacheMode='none'">
  1446. <dp:section>
  1447. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_PRODUCE_REPORT_OUTPUTS"/></dp:text>
  1448. </dp:section>
  1449. </out:when>
  1450. </out:choose>
  1451. <!-- format -->
  1452. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionStringArray' and ./*[local-name()='name']='outputFormat']">
  1453. <dp:section>
  1454. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_FORMAT"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='formatSummary']"/></dp:text>
  1455. </dp:section>
  1456. </out:if>
  1457. <!-- a11y -->
  1458. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:genericOptionBoolean' and ./*[local-name()='name']='http://developer.cognos.com/ceba/constants/systemOptionEnum#accessibilityFeatures']/*[local-name()='value']='true'">
  1459. <dp:section>
  1460. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_A11Y"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='a11ySummary']"/></dp:text>
  1461. </dp:section>
  1462. </out:if>
  1463. <!-- Languages -->
  1464. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionLanguageArray' and ./*[local-name()='name']='outputLocale']">
  1465. <dp:section>
  1466. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_LANGUAGE"/><xsl:value-of select="' '"/>
  1467. <out:for-each select="/root/config/param[@name='locale']/locale[@type='contentLocale' and $the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionLanguageArray' and ./*[local-name()='name']='outputLocale']/*[local-name()='value']/*=id]">
  1468. <out:value-of select="displayName"/>
  1469. <out:if test="position() != last()"><out:text><xts:string id="IDS_LIST_SEPARATOR"/>&#160;</out:text></out:if>
  1470. </out:for-each></dp:text>
  1471. </dp:section>
  1472. </out:if>
  1473. <!-- params -->
  1474. <out:variable name="parameters-split" select="(/root/*[local-name()='parameters']!='') or (/root/*[local-name()='credentialParameters']!='')"/>
  1475. <out:variable name="parameters" select="/root/*[local-name()='parameters'][$parameters-split] | $the-object/*[local-name()='parameters'][not($parameters-split)]"/>
  1476. <out:if test="$parameters/*[local-name()='parameterValue']">
  1477. <out:for-each select="$parameters/*[local-name()='parameterValue']">
  1478. <dp:section><dp:text><out:value-of select="*[local-name()='name']"/><out:text><xts:string id="IDS_LIST_START"/></out:text><out:apply-templates mode="render-values"/></dp:text></dp:section>
  1479. </out:for-each>
  1480. </out:if>
  1481. <!-- save the report -->
  1482. <out:choose>
  1483. <out:when test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='saveOutput']/*[local-name()='value']='true'">
  1484. <out:variable name="path">
  1485. <xsl:choose>
  1486. <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/runnable/runnable/searchPath/value"/></xsl:when>
  1487. <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:searchPath"/></xsl:otherwise>
  1488. </xsl:choose>
  1489. </out:variable>
  1490. <out:variable name="rootPath">
  1491. <out:choose>
  1492. <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))"><out:value-of select="'~/folder'"/></out:when>
  1493. <out:otherwise><out:value-of select="$defaultContentRoot"/></out:otherwise>
  1494. </out:choose>
  1495. </out:variable>
  1496. <dp:section>
  1497. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_SAVE_REPORT_CONFIRM"/><out:value-of select="' '"/>
  1498. <span lang="{'{$contentLocale}'}">
  1499. <cf:do-the-path-link>
  1500. <cf:param name="familytree">
  1501. <xsl:choose>
  1502. <xsl:when test="@responseType = 'monitorService'">$eventRecord/runnable/runnable/cm:ancestors</xsl:when>
  1503. <xsl:otherwise>cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:ancestors</xsl:otherwise>
  1504. </xsl:choose>
  1505. </cf:param>
  1506. <cf:param name="familymember">
  1507. <xsl:choose>
  1508. <xsl:when test="@responseType = 'monitorService'">$eventRecord/runnable/runnable/defaultName/value</xsl:when>
  1509. <xsl:otherwise>cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:defaultName</xsl:otherwise>
  1510. </xsl:choose>
  1511. </cf:param>
  1512. <cf:param name="home"><out:value-of select="$rootPath"/></cf:param>
  1513. </cf:do-the-path-link></span></dp:text>
  1514. </dp:section>
  1515. </out:when>
  1516. <!-- save as -->
  1517. <out:when test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionSaveAs' and ./*[local-name()='name']='saveAs']">
  1518. <dp:section>
  1519. <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_SAVE_NEW_ENTRY_CONFIRM"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='saveAsSummary']"/><out:value-of select="' &#8206;&gt; '"/><out:value-of select="xtsext:enforceBTD($targetSavedName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
  1520. </dp:section>
  1521. </out:when>
  1522. </out:choose>
  1523. <!-- save to the file system -->
  1524. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='archive']/*[local-name()='value']='true'">
  1525. <dp:section>
  1526. <dp:text wrap="wrap"><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='saveToFileSystemSummary']"/></dp:text>
  1527. </dp:section>
  1528. </out:if>
  1529. <!-- print -->
  1530. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='print']/*[local-name()='value']='true'">
  1531. <dp:section>
  1532. <dp:text wrap="wrap"><xts:string id="IDS_CONFIRMATION_PRINT_REPORT"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='printerSummary']"/></dp:text>
  1533. </dp:section>
  1534. </out:if>
  1535. <!-- email -->
  1536. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='email']/*[local-name()='value']='true'">
  1537. <dp:section>
  1538. <dp:text wrap="wrap"><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='emailSummary']"/>
  1539. <out:if test="not($the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='burst']) or $the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='burst']/*[local-name()='value']!='true'">
  1540. <out:value-of select="concat(': ',/root/*[local-name()='UIHelpers']/*[local-name()='emailRecipients'])"/>
  1541. </out:if></dp:text>
  1542. </dp:section>
  1543. </out:if>
  1544. <!-- mobile -->
  1545. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='mobile']/*[local-name()='value']='true'">
  1546. <dp:section>
  1547. <dp:text wrap="wrap">
  1548. <out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='mobileSummary']"/>
  1549. <out:value-of select="concat(': ',/root/*[local-name()='UIHelpers']/*[local-name()='mobileRecipients'])"/>
  1550. </dp:text>
  1551. </dp:section>
  1552. </out:if>
  1553. <!-- burst -->
  1554. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='burst']/*[local-name()='value']='true'">
  1555. <dp:section>
  1556. <dp:text wrap="wrap">
  1557. <xts:string id="IDS_OTHERRUN_BURST"/>
  1558. <out:value-of select="concat(': ',/root/*[local-name()='UIHelpers']/*[local-name()='burstSummary'])"/>
  1559. </dp:text>
  1560. </dp:section>
  1561. </out:if>
  1562. </out:otherwise>
  1563. </out:choose>
  1564. </dp:list>
  1565. </lyt:section>
  1566. <lyt:section noTitle="true">
  1567. <dp:list >
  1568. <dp:section >
  1569. <dp:label >
  1570. <xts:string id="IDS_VRH_DETAILS_REPORT_OUTPUTS"/>
  1571. </dp:label>
  1572. </dp:section>
  1573. <dp:section>
  1574. <out:choose>
  1575. <!-- checking for children of reportVersion ensures that there is actually output available -->
  1576. <out:when test="$js-encoded-output-searchPath != '' and /root/cm:queryResponse/cm:queryReply[4]/*/*[local-name()='output']/*[local-name()='reportVersion']/*[local-name()='hasChildren']='true'">
  1577. <dp:link>
  1578. <a href="#">
  1579. <out:attribute name="onclick">javascript:<xsl:text/>
  1580. var form = document.pform;<xsl:text/>
  1581. form.reportVersionPath.value="<out:value-of select="$js-encoded-output-searchPath"/>"<xsl:text/>
  1582. form.runHistoryRequestedTime.value="<out:value-of select="$js-encoded-runHistoryRequestedTime"/>";<xsl:text/>
  1583. form.m_obj.value="<out:value-of select="$js-encoded-runnable-path"/>";<xsl:text/>
  1584. form.m_name.value="<out:value-of select="xtsext:javascriptencode(string(key('env-param','m_name')))"/>";<xsl:text/>
  1585. form.m.value = "portal/<out:value-of select="$versions_target"/>";<xsl:text/>
  1586. form.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";<xsl:text/>
  1587. form.submit();<xsl:text/>
  1588. </out:attribute>
  1589. <xts:string id="IDS_VRH_DETAILS_OUTPUTS_EXIST"/><xsl:text/>
  1590. </a>
  1591. </dp:link>
  1592. </out:when>
  1593. <out:otherwise>
  1594. <dp:text><xts:string id="IDS_VRH_DETAILS_OUTPUTS_DO_NOT_EXIST"/></dp:text>
  1595. </out:otherwise>
  1596. </out:choose>
  1597. </dp:section>
  1598. </dp:list>
  1599. </lyt:section>
  1600. </lyt:layout>
  1601. </xsl:template>
  1602. <xsl:template match="rhu:indexUpdateTaskOptionsSummary">
  1603. <lyt:layout style="1" border="yes" title="IDS_INDEX_UPDATE_TASK_TABLE_TITLE_INCLUDE">
  1604. <lyt:section>
  1605. <cp:table name="indexUpdateOptionsSummary" iterate="/root/indexUpdates/*" width="20%">
  1606. <cp:tableHeader>
  1607. <cp:columnHeader width="20"/>
  1608. <cp:columnHeader>
  1609. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  1610. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  1611. <xts:string id="IDS_INDEX_UPDATE_TASK_NAME_COLUMN"/>
  1612. </cp:columnHeader>
  1613. </cp:tableHeader>
  1614. <cp:tableContent>
  1615. <!-- Icon Column -->
  1616. <cp:columnContent>
  1617. <out:call-template name="gen-icon">
  1618. <out:with-param name="class" select="runnable/runnable/objectClass/value"/>
  1619. </out:call-template>
  1620. </cp:columnContent>
  1621. <cp:columnContent>
  1622. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  1623. <out:attribute name="alt">
  1624. <cf:do-the-path-link>
  1625. <cf:param name="familytree">cm:ancestors</cf:param>
  1626. <cf:param name="familymember">cm:defaultName</cf:param>
  1627. <cf:param name="onlyAncestors">true</cf:param>
  1628. </cf:do-the-path-link>
  1629. </out:attribute>
  1630. </img>
  1631. <xsl:text>&#160;</xsl:text>
  1632. <out:value-of select="cm:defaultName"/>
  1633. </cp:columnContent>
  1634. </cp:tableContent>
  1635. </cp:table>
  1636. </lyt:section>
  1637. </lyt:layout>
  1638. <lyt:layout style="1" border="yes" title="IDS_INDEX_UPDATE_RUN_OPTIONS">
  1639. <lyt:section>
  1640. <dp:list>
  1641. <dp:section>
  1642. <dp:text>
  1643. <out:variable name="options" select="{@optionsPath}/*[local-name()='value']/*[local-name()='item']"/>
  1644. <out:variable name="forceOption" select="$options[*[local-name()='name']='force' and *[local-name()='name'][substring-after(@*[local-name()='type'],':')='indexOptionEnum']]"/>
  1645. <out:variable name="indexOptions" select="$options[starts-with(*[local-name()='name'],'index') and *[local-name()='name'][substring-after(@*[local-name()='type'],':')='indexOptionEnum']]"/>
  1646. <out:choose>
  1647. <out:when test="$forceOption or $indexOptions">
  1648. <out:if test="$forceOption">
  1649. <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_TITLE"/>
  1650. <li>
  1651. <out:choose>
  1652. <out:when test="$forceOption/*[local-name()='value'] = 'true'">
  1653. <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_ALL_ENTRIES"/>
  1654. </out:when>
  1655. <out:otherwise>
  1656. <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_CHANGED_ENTRIES"/>
  1657. </out:otherwise>
  1658. </out:choose>
  1659. </li>
  1660. <br/>
  1661. </out:if>
  1662. <out:if test="$indexOptions">
  1663. <xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_TITLE"/><br/>
  1664. <out:if test="$indexOptions[*[local-name()='name']='indexObjectTypes' and *[local-name()='value']='true']">
  1665. <li><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_PROP_AND_METADATA"/></li>
  1666. </out:if>
  1667. <out:if test="$indexOptions[*[local-name()='name']='indexReferencedData' and *[local-name()='value']='true']">
  1668. <li><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES_REF_DATA"/></li>
  1669. </out:if>
  1670. <out:if test="$indexOptions[*[local-name()='name']='indexModeledData' and *[local-name()='value']='true']">
  1671. <li><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES_ALL_DATA"/></li>
  1672. </out:if>
  1673. </out:if>
  1674. </out:when>
  1675. <out:otherwise>
  1676. <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
  1677. </out:otherwise>
  1678. </out:choose>
  1679. </dp:text>
  1680. </dp:section>
  1681. </dp:list>
  1682. </lyt:section>
  1683. </lyt:layout>
  1684. </xsl:template>
  1685. <xsl:template match="*">
  1686. <xsl:copy>
  1687. <xsl:copy-of select="@*"/>
  1688. <xsl:apply-templates/>
  1689. </xsl:copy>
  1690. </xsl:template>
  1691. </xsl:stylesheet>