show_relatedreports.xts 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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, 2011
  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. <!-- Session Management -->
  15. <!-- ======================================================== -->
  16. <!-- Reads session-sensitive info from CM -->
  17. <xts:block processor="XSLT" type="exec" mandatory="false"
  18. id="refreshSession"
  19. path="portal/cc/read_session.xml"
  20. condition=".[
  21. string(/root/cookies/cookie[@name = 'cc_session']) = ''
  22. or /root/env/param[@name='m_reload']
  23. or /root/env/param[@name='m_root'] ]">
  24. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  25. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  26. </xts:block>
  27. <!-- Update the <session> element for this request. -->
  28. <xts:block id="buildSession" path="portal/session.xml"
  29. dependency="refreshSession" processor="XSLT" type="exec"
  30. condition=".[
  31. /root/newSession
  32. or /root/env/param[@name='ui']
  33. or /root/env/param[@name='d']
  34. or /root/env/param[starts-with(@name,'m_s_')]
  35. or /root/env/param[@name = 'resetSort'] ]"
  36. mandatory="false"/>
  37. <!-- Save changes to the state info in a cookie -->
  38. <xts:block mode="interpret" processor="XSLT" type="exec"
  39. id="setSession"
  40. path="portal/set_session.xml"
  41. dependency="buildSession"
  42. condition=".[/root/updateSession]"
  43. mandatory="false"/>
  44. <!-- -->
  45. <!-- sourceContext : Opaque XML describing current location (context) in the calling product (e.g. Report Viewer) -->
  46. <!-- -->
  47. <xts:block processor="XSLT" type="exec" mandatory="false"
  48. id="init"
  49. dependency="buildSession">
  50. <xts:logicsheet path="logicsheets/portal.xsl"/>
  51. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  52. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  53. <xsl:stylesheet version="1.0"
  54. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  55. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  56. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  57. xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
  58. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  59. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  60. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  61. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  62. exclude-result-prefixes="xsl pf pg">
  63. <pf:sessionpassport/>
  64. <xsl:template match="/">
  65. <xts:sequence>
  66. <xsl:if test="string(/root/env/param[@name='stext']) != '' or string(/root/env/param[@name='sourceContext']) != ''">
  67. <!-- Nav Java code will occasionally filter out search terms.
  68. Adding cs_text parameter ensures they are always available to the IndexSearch Service. -->
  69. <xts:append select="/root/env">
  70. <param name="cs_text"><xsl:value-of select="/root/env/param[@name='stext']"/></param>
  71. </xts:append>
  72. <xsl:if test="string(/root/env/param[@name='sourceContext']) != ''">
  73. <xts:delete select="/root/env/param[@name='sfield']"/>
  74. <xts:append select="/root/env">
  75. <param name="sfield">k</param> <!-- index search mode -->
  76. <param name="cs_contextversion">2</param> <!-- Context version -->
  77. <param name="cs_tree">true</param>
  78. </xts:append>
  79. </xsl:if>
  80. </xsl:if>
  81. <!-- attempt to read any applicable previously saved index search filter -->
  82. <pg:read_cs_filter/>
  83. </xts:sequence>
  84. </xsl:template>
  85. </xsl:stylesheet>
  86. </xts:block>
  87. <xts:block mandatory="false" processor="XSLT" type="exec"
  88. id="setSearch"
  89. dependency="buildSession init"
  90. condition=".[true()]"
  91. nodelist="cookies, env, session, system, user, configProps">
  92. <xts:logicsheet path="logicsheets/portal.xsl"/>
  93. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  94. <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
  95. <xsl:stylesheet version="1.0"
  96. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  97. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  98. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  99. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  100. xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/">
  101. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  102. <pf:variables/>
  103. <cml:object-predicates/>
  104. <xsl:template match="/root">
  105. <!-- If we have a search command then append a <search> element -->
  106. <xsl:variable name="path">
  107. <xsl:choose>
  108. <xsl:when test="string(/root/env/param[@name='m_folder']) != ''">
  109. <xsl:value-of select="concat('storeID(&quot;', /root/env/param[@name='m_folder'], '&quot;)')"/>
  110. </xsl:when>
  111. <xsl:when test="string(/root/env/param[@name='m_path']) != ''">
  112. <xsl:value-of select="string(/root/env/param[@name='m_path'])"/>
  113. </xsl:when>
  114. <xsl:otherwise>
  115. <xsl:value-of select="string(/root/system/param[@name='consumer-root'])"/>
  116. </xsl:otherwise>
  117. </xsl:choose>
  118. </xsl:variable>
  119. <xts:sequence>
  120. <search:gen-search-exp navInterface="true">
  121. <!-- index search object types -->
  122. <search:defaultTypes indexSearch="true">
  123. <search:defaultType>analysis</search:defaultType>
  124. <search:defaultType>agentDefinition</search:defaultType>
  125. <search:defaultType>agentDefinitionView</search:defaultType>
  126. <search:defaultType>report</search:defaultType>
  127. <search:defaultType>query</search:defaultType>
  128. <search:defaultType>reportView</search:defaultType>
  129. <search:defaultType>folder</search:defaultType>
  130. <search:defaultType>URL</search:defaultType>
  131. <search:defaultType>package</search:defaultType>
  132. <search:defaultType>pagelet</search:defaultType>
  133. <search:defaultType>powerPlayCube</search:defaultType>
  134. <search:defaultType>powerPlayReport</search:defaultType>
  135. <search:defaultType>powerPlay8Cube</search:defaultType>
  136. <search:defaultType>powerPlay8Report</search:defaultType>
  137. <search:defaultType>powerPlay8ReportView</search:defaultType>
  138. <search:defaultType>reportTemplate</search:defaultType>
  139. <search:defaultType>shortcut</search:defaultType>
  140. <search:defaultType>metric</search:defaultType>
  141. <search:defaultType>metricType</search:defaultType>
  142. <search:defaultType>scorecard</search:defaultType>
  143. </search:defaultTypes>
  144. <!-- basic search object types -->
  145. <search:defaultTypes>
  146. <search:defaultType>analysis</search:defaultType>
  147. <search:defaultType>agentDefinition</search:defaultType>
  148. <search:defaultType>agentDefinitionView</search:defaultType>
  149. <search:defaultType>document</search:defaultType>
  150. <search:defaultType>report</search:defaultType>
  151. <search:defaultType>query</search:defaultType>
  152. <search:defaultType>reportView</search:defaultType>
  153. <search:defaultType>folder</search:defaultType>
  154. <search:defaultType>pagelet</search:defaultType>
  155. <search:defaultType>package</search:defaultType>
  156. <search:defaultType>jobDefinition</search:defaultType>
  157. <search:defaultType>planningTask</search:defaultType>
  158. <search:defaultType>powerPlayCube</search:defaultType>
  159. <search:defaultType>powerPlayReport</search:defaultType>
  160. <search:defaultType>powerPlay8Report</search:defaultType>
  161. <search:defaultType>powerPlay8ReportView</search:defaultType>
  162. <search:defaultType>reportTemplate</search:defaultType>
  163. <search:defaultType>metricsFileImportTask</search:defaultType>
  164. <search:defaultType>metricsDataSourceETLTask</search:defaultType>
  165. <search:defaultType>metricsMaintenanceTask</search:defaultType>
  166. <search:defaultType>metricsExportTask</search:defaultType>
  167. <search:defaultType>shortcut</search:defaultType>
  168. <search:defaultType>URL</search:defaultType>
  169. <search:defaultType>contentReference</search:defaultType>
  170. </search:defaultTypes>
  171. </search:gen-search-exp>
  172. </xts:sequence>
  173. </xsl:template>
  174. </xsl:stylesheet>
  175. </xts:block>
  176. <xts:block processor="XSLT" type="exec" mandatory="false"
  177. id="getContent"
  178. path="portal/cc/get_content_nav.xslt"
  179. condition=".[/root/search/navSearchSpec]"
  180. dependency="init setSearch"
  181. nodelist="header, http, env, system, session, search, cookies, setCookies, user, credential, configProps, page, tabPath_id">
  182. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  183. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  184. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  185. <xts:logicsheet path="logicsheets/portal.xsl"/>
  186. </xts:block>
  187. <xts:block mandatory="false" processor="XSLT" type="exec"
  188. id="process"
  189. dependency="getContent"
  190. condition=".[/root/search/navSearchSpec]">
  191. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  192. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  193. <xts:logicsheet path="logicsheets/portal.xsl"/>
  194. <xsl:stylesheet version="1.0"
  195. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  196. xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
  197. xmlns:cs="http://developer.cognos.com/schemas/cs"
  198. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  199. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  200. xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
  201. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  202. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  203. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  204. <pf:sessionpassport/>
  205. <xsl:template match="/root">
  206. <xts:sequence>
  207. <xsl:if test="string(/root/env/param[@name='sourceContext']) != '' and
  208. string(/root/env/param[@name='stext']) = ''">
  209. <xts:delete select="/root/env/param[@name='stext']"/>
  210. <xts:append select="/root/env">
  211. <param name="stext"><xsl:value-of select="/root/navContent/nav:searchResponse/nav:extensions/cs:terms"/></param>
  212. </xts:append>
  213. </xsl:if>
  214. <!-- Save the filter, if any, that is produced from the sourceContext -->
  215. <xsl:if test="string(/root/env/param[@name='sourceContext']) != ''">
  216. <xsl:variable name="filterContext" select="/root/navContent/nav:searchResponse/nav:extensions/cs:filterContext/filterContext/FilterSpecification"/>
  217. <!-- first, build the filter from the content response -->
  218. <xsl:variable name="cs_filter">
  219. <filterContext>
  220. <xsl:for-each select="$filterContext">
  221. <FilterSpecification>
  222. <Name><xsl:value-of select="xtsext:xmlencode(string(Name))"/></Name>
  223. <Type><xsl:value-of select="xtsext:xmlencode(string(Type))"/></Type>
  224. <UID><xsl:value-of select="xtsext:xmlencode(string(UID))"/></UID>
  225. <xsl:for-each select="Filter">
  226. <Filter><xsl:value-of select="xtsext:xmlencode(string(.))"/></Filter>
  227. </xsl:for-each>
  228. </FilterSpecification>
  229. </xsl:for-each>
  230. </filterContext>
  231. </xsl:variable>
  232. <xsl:variable name="cs_filter_encoded">
  233. <xsl:call-template name="serialize-xml">
  234. <xsl:with-param name="node-set" select="$cs_filter"/>
  235. </xsl:call-template>
  236. </xsl:variable>
  237. <!-- save index drill search context -->
  238. <pg:store_cs_filter>
  239. <pg:cs_filter>$cs_filter_encoded</pg:cs_filter>
  240. </pg:store_cs_filter>
  241. <xts:append select="/root/env">
  242. <param name="t_cs_filter_saved">true</param>
  243. </xts:append>
  244. </xsl:if>
  245. </xts:sequence>
  246. </xsl:template>
  247. <pf:serialize-xml/>
  248. </xsl:stylesheet>
  249. </xts:block>
  250. <!-- main block -->
  251. <xts:block id="renderPage" mode="output" processor="XSLT" type="exec" mimeType="text/html"
  252. dependency="getContent process">
  253. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  254. <xts:logicsheet path="logicsheets/portal.xsl"/>
  255. <xts:logicsheet path="logicsheets/permissions.xsl"/>
  256. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  257. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  258. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  259. <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
  260. <xts:logicsheet path="logicsheets/indextree.xslt"/>
  261. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  262. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  263. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  264. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  265. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  266. <xts:logicsheet path="logicsheets/validation.xslt"/>
  267. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  268. <xsl:stylesheet version="1.0"
  269. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  270. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  271. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  272. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  273. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  274. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  275. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  276. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  277. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  278. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  279. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  280. xmlns:out="http://www.w3.org/1999/XSL/Transform"
  281. xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
  282. xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
  283. xmlns:cs="http://developer.cognos.com/schemas/cs"
  284. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  285. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  286. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  287. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  288. exclude-result-prefixes="xsl cm cml pf mt mf xts xtsext cf cp out bus utml dp lyt pm">
  289. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  290. <pm:permissions/>
  291. <pf:variables/>
  292. <mf:variables stateParams="t_cs_filter_saved cs_tree cs_requestversion desc_expanded m_folder m_folder2 m_searchsection m_searchcontext search stext sscope smethod sfield sstatus stype stype_is smodified sshortcuts stime rui "/>
  293. <xsl:variable name="mname" select="'show_relatedreports.xts'"/>
  294. <xsl:variable name="js-encoded-path" select="xtsext:javascriptencode( string( $m_path ) )"/><!-- Required -->
  295. <xsl:variable name="cmd-form" select="'cform'"/> <!-- Required -->
  296. <xsl:variable name="edit-form" select="'pform'"/><!-- Required -->
  297. <cp:flyoutControl/>
  298. <xsl:variable name="isIndexSearch" select="string(/root/env/param[@name = 'sfield']) = 'k' or (string(/root/env/param[@name = 'sfield']) = '' and $userCanUseIndexSearch)"/>
  299. <mt:common-variables/>
  300. <!-- start the output -->
  301. <xsl:template match="/root">
  302. <!-- Note: DOCTYPE is handled by mt:page -->
  303. <html encodeDocType="false">
  304. <head>
  305. <pf:meta/><!-- Standard meta tags -->
  306. <title><xts:string id="IDS_PORTAL"/></title>
  307. <mt:stylesheet/><!-- add the theme style sheet -->
  308. <mf:head/><!-- Common framework logic for Cognos Central main view -->
  309. <pf:help context="HID_SEARCH"/><!-- Help system -->
  310. <pf:launch/><!-- adds functions to launch the studios.... -->
  311. </head>
  312. <!-- HTML body -->
  313. <mt:page mode="search">
  314. <xsl:call-template name="render-header"/><!-- Render the top headers. -->
  315. <xsl:call-template name="search-panel"/><!-- Insert search control panel -->
  316. <form action="{$gateway}" method="post" name="pform" style="margin:0px">
  317. <div id="wsrp_rewrite_div_result_busy_container" style="height:0px;display:none;"/>
  318. <pg:busyIndicator/>
  319. <div id="wsrp_rewrite_div_results">
  320. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  321. <tr>
  322. <!-- tree section -->
  323. <xsl:if test="$isIndexSearch">
  324. <td valign="top" width="200px">
  325. <table cellpadding="0" cellspacing="0">
  326. <tr>
  327. <td>
  328. <img width="10" height="1" border="0" src="{$webcontent}/images/space.gif"/>
  329. </td>
  330. <td>
  331. <xsl:if test="/root/search/navSearchSpec or string(/root/search/expression) != ''">
  332. <img width="1" height="26" border="0" src="{$webcontent}/images/space.gif"/>
  333. <pg:treeResult width="200px" caller="cc">
  334. <pg:isIndexSearch>$isIndexSearch</pg:isIndexSearch>
  335. <pg:treeContent>/root/navContent/nav:searchResponse/nav:extensions/cs:subjectTree/QueryDescription/SubjectTree</pg:treeContent>
  336. </pg:treeResult>
  337. </xsl:if>
  338. </td>
  339. </tr>
  340. </table>
  341. </td>
  342. </xsl:if>
  343. <!-- result content section -->
  344. <td valign="top" width="100%">
  345. <lyt:layout style="1" joinSection="yes">
  346. <lyt:section width="100%">
  347. <xsl:choose>
  348. <xsl:when test="/root/search/indexSearchNotAllowed">
  349. <mt:errorMessage>
  350. <xts:string id="IDS_SEARCH_NO_INDEX_CAPABILITY"/>
  351. </mt:errorMessage>
  352. </xsl:when>
  353. <xsl:when test="/root/search/emptySearchExpression">
  354. <mt:objectNoneFound id="IDS_EMPTY_QUERY"/>
  355. </xsl:when>
  356. <xsl:when test="/root/search/navSearchSpec">
  357. <xsl:choose>
  358. <xsl:when test="$isIndexSearch">
  359. <!-- index search -->
  360. <pg:pager-indexSearch is-scrolling="true" id="wsrp_rewrite_div_results_content" noSelection='true'/>
  361. </xsl:when>
  362. <xsl:otherwise>
  363. <!-- basic search -->
  364. <pg:pager-basicSearch navContent='true' noSelection='true'/>
  365. </xsl:otherwise>
  366. </xsl:choose>
  367. </xsl:when>
  368. </xsl:choose>
  369. </lyt:section>
  370. </lyt:layout>
  371. </td>
  372. </tr>
  373. </table>
  374. </div>
  375. <mf:edit-vars/>
  376. </form>
  377. <form name="cform" method="post" action="{$gateway}" style="margin:0px">
  378. <mf:cmd-vars/>
  379. </form>
  380. <!-- End of HTML body -->
  381. </mt:page>
  382. <pg:common-script/>
  383. <pg:common-popup-script/>
  384. <pg:common-tree-script caller="cc">
  385. <pg:isIndexSearch>$isIndexSearch</pg:isIndexSearch>
  386. <pg:filterContext>/root/navContent/nav:searchResponse/nav:extensions/cs:filterContext/filterContext/FilterSpecification</pg:filterContext>
  387. <pg:searchFunctionName>doSearch</pg:searchFunctionName>
  388. <pg:gateway>gateway</pg:gateway>
  389. <pg:openList>/root/env/param[@name='open_list']</pg:openList>
  390. </pg:common-tree-script>
  391. </html>
  392. </xsl:template>
  393. <!-- Insert common templates -->
  394. <pg:do-the-path-link-nav/>
  395. <pf:ccinav-gen-icon/>
  396. <pf:ccinav-gen-url/>
  397. <pf:ccinav-gen-action-properties/>
  398. <pg:commonSupportTemplates/>
  399. <pf:gen-action/>
  400. <xsl:template name="render-header">
  401. <mt:h1 mode="basic">
  402. <mt:title><xts:string id="IDS_PORTAL"/></mt:title>
  403. </mt:h1>
  404. <mt:h4>
  405. <mt:path>
  406. <span class="bold"><xts:string id="IDS_SEARCH"/></span>
  407. </mt:path>
  408. <mt:toolbar>
  409. <!-- Show the toolbar when we have data to display -->
  410. <xsl:choose>
  411. <xsl:when test="count(/root/navContent/nav:searchResponse/nav:content/*) > 0">
  412. <mt:tool-group hideDivider="true">
  413. <mt:tool name="refresh"/>
  414. </mt:tool-group>
  415. </xsl:when>
  416. <xsl:otherwise>
  417. <mt:tool-group hideDivider="true">
  418. <mt:tool name="refresh" disable="true"/>
  419. </mt:tool-group>
  420. </xsl:otherwise>
  421. </xsl:choose>
  422. </mt:toolbar>
  423. </mt:h4>
  424. </xsl:template>
  425. <xsl:template name="search-panel">
  426. <mt:search indexSearch="true">
  427. <mt:scopes>
  428. <mt:scope>fb</mt:scope>
  429. <mt:scope>fo</mt:scope>
  430. <mt:scope>m</mt:scope>
  431. <mt:scope>p</mt:scope>
  432. </mt:scopes>
  433. <mt:stypes>
  434. <!--
  435. *******************************************************************************************
  436. NOTE: Any changes made to this list of objects should also be made in tools_directory.xts
  437. *******************************************************************************************
  438. -->
  439. <mt:stype name="agentDefinition"><xts:string id="IDS_OBJ_AGENT"/></mt:stype>
  440. <mt:stype name="agentDefinitionView"><xts:string id="IDS_OBJ_AGENTVIEW"/></mt:stype>
  441. <mt:stype name="analysis"><xts:string id="IDS_OBJ_ANALYSIS"/></mt:stype>
  442. <mt:stype name="document"><xts:string id="IDS_OBJ_DOCUMENT"/></mt:stype>
  443. <mt:stype name="folder"><xts:string id="IDS_OBJ_FOLDER"/></mt:stype>
  444. <mt:stype name="jobDefinition"><xts:string id="IDS_OBJ_JOBDEFINITION"/></mt:stype>
  445. <mt:stype name="metricsExportTask"><xts:string id="IDS_OBJ_METRICSEXPORTTASK"/></mt:stype>
  446. <mt:stype name="metricsDataSourceETLTask"><xts:string id="IDS_OBJ_METRICSDATASOURCEETLTASK"/></mt:stype>
  447. <mt:stype name="metricsFileImportTask"><xts:string id="IDS_OBJ_METRICSFILEIMPORTTASK"/></mt:stype>
  448. <mt:stype name="metricsMaintenanceTask"><xts:string id="IDS_OBJ_METRICSMAINTENANCETASK"/></mt:stype>
  449. <mt:stype name="metricsPackage"><xts:string id="IDS_OBJ_METRICSPACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for metrics manager-->
  450. <mt:stype name="package"><xts:string id="IDS_OBJ_PACKAGE"/></mt:stype>
  451. <mt:stype name="pagelet"><xts:string id="IDS_OBJ_PAGELET"/></mt:stype>
  452. <mt:stype name="planningPackage"><xts:string id="IDS_OBJ_PLANNING_PACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for planning package-->
  453. <mt:stype name="planningTask"><xts:string id="IDS_OBJ_PLANNING_TASK"/></mt:stype>
  454. <mt:stype name="powerPlayCube"><xts:string id="IDS_OBJ_POWERPLAYCUBE"/></mt:stype>
  455. <mt:stype name="powerPlayReport"><xts:string id="IDS_OBJ_POWERPLAYREPORT"/></mt:stype>
  456. <mt:stype name="powerPlay8Report"><xts:string id="IDS_OBJ_POWERPLAY8REPORT"/></mt:stype>
  457. <mt:stype name="powerPlay8ReportView"><xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/></mt:stype>
  458. <mt:stype name="query"><xts:string id="IDS_OBJ_QUERY"/></mt:stype>
  459. <mt:stype name="report"><xts:string id="IDS_OBJ_REPORT"/></mt:stype>
  460. <mt:stype name="interactiveReport"><xts:string id="IDS_OBJ_INTERACTIVEREPORT"/></mt:stype>
  461. <mt:stype name="reportTemplate"><xts:string id="IDS_OBJ_REPORTTEMPLATE"/></mt:stype>
  462. <mt:stype name="reportView"><xts:string id="IDS_OBJ_REPORTVIEW"/></mt:stype>
  463. <mt:stype name="shortcut"><xts:string id="IDS_SHORTCUTS"/></mt:stype>
  464. <mt:stype name="URL"><xts:string id="IDS_OBJ_URL"/></mt:stype>
  465. </mt:stypes>
  466. <!-- index search object types -->
  467. <mt:stypes indexSearch="true">
  468. <mt:stype name="agentDefinition"><xts:string id="IDS_OBJ_AGENT"/></mt:stype>
  469. <mt:stype name="agentDefinitionView"><xts:string id="IDS_OBJ_AGENTVIEW"/></mt:stype>
  470. <mt:stype name="analysis"><xts:string id="IDS_OBJ_ANALYSIS"/></mt:stype>
  471. <mt:stype name="folder"><xts:string id="IDS_OBJ_FOLDER"/></mt:stype>
  472. <mt:stype name="metric"><xts:string id="IDS_OBJ_METRICS_METRIC"/></mt:stype>
  473. <mt:stype name="metricsPackage"><xts:string id="IDS_OBJ_METRICSPACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for metrics manager-->
  474. <mt:stype name="metricType"><xts:string id="IDS_OBJ_METRICS_METRIC_TYPE"/></mt:stype>
  475. <mt:stype name="package"><xts:string id="IDS_OBJ_PACKAGE"/></mt:stype>
  476. <mt:stype name="pagelet"><xts:string id="IDS_OBJ_PAGELET"/></mt:stype>
  477. <mt:stype name="planningPackage"><xts:string id="IDS_OBJ_PLANNING_PACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for planning package-->
  478. <mt:stype name="powerPlayCube"><xts:string id="IDS_OBJ_POWERPLAYCUBE"/></mt:stype>
  479. <mt:stype name="powerPlayReport"><xts:string id="IDS_OBJ_POWERPLAYREPORT"/></mt:stype>
  480. <mt:stype name="powerPlay8Cube"><xts:string id="IDS_OBJ_POWERPLAY8CUBE"/></mt:stype>
  481. <mt:stype name="powerPlay8Report"><xts:string id="IDS_OBJ_POWERPLAY8REPORT"/></mt:stype>
  482. <mt:stype name="powerPlay8ReportView"><xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/></mt:stype>
  483. <mt:stype name="query"><xts:string id="IDS_OBJ_QUERY"/></mt:stype>
  484. <mt:stype name="report"><xts:string id="IDS_OBJ_REPORT"/></mt:stype>
  485. <mt:stype name="interactiveReport"><xts:string id="IDS_OBJ_INTERACTIVEREPORT"/></mt:stype>
  486. <mt:stype name="reportTemplate"><xts:string id="IDS_OBJ_REPORTTEMPLATE"/></mt:stype>
  487. <mt:stype name="reportView"><xts:string id="IDS_OBJ_REPORTVIEW"/></mt:stype>
  488. <mt:stype name="scorecard"><xts:string id="IDS_OBJ_SCORECARD"/></mt:stype>
  489. <mt:stype name="shortcut"><xts:string id="IDS_SHORTCUTS"/></mt:stype>
  490. <mt:stype name="URL"><xts:string id="IDS_OBJ_URL"/></mt:stype>
  491. </mt:stypes>
  492. </mt:search>
  493. </xsl:template>
  494. </xsl:stylesheet>
  495. </xts:block>
  496. <!-- Debug -->
  497. <xts:block type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html"
  498. id="debug"
  499. condition=".[ /root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']"
  500. dependency="renderPage">
  501. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  502. <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">
  503. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  504. <dbg:templates/>
  505. <xsl:template match="/">
  506. <dbg:dumpxml select="/root"/>
  507. </xsl:template>
  508. </xsl:stylesheet>
  509. </xts:block>
  510. </xts:morphlet>