open.xts 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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. <xts:block processor="XSLT" type="exec" mandatory="false"
  45. id="init"
  46. dependency="">
  47. <xts:logicsheet path="logicsheets/portal.xsl"/>
  48. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  49. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  50. <xsl:stylesheet version="1.0"
  51. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  52. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  53. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  54. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  55. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  56. xmlns:out="http://www.w3.org/1999/XSL/Transform"
  57. xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
  58. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  59. exclude-result-prefixes="xsl">
  60. <pf:sessionpassport/>
  61. <xsl:template match="/">
  62. <xts:sequence>
  63. <xts:delete select="/root/env/param[@name='sfield']"/>
  64. <xts:append select="/root/env">
  65. <param name="sfield">k</param> <!-- index search mode -->
  66. <param name="open">true</param><!-- index search mode with open-->
  67. <param name="cs_contextversion">2</param> <!-- Context version -->
  68. <param name="cs_tree">true</param>
  69. </xts:append>
  70. <!-- attempt to read any applicable previously saved index search filter -->
  71. <pg:read_cs_filter/>
  72. </xts:sequence>
  73. </xsl:template>
  74. </xsl:stylesheet>
  75. </xts:block>
  76. <xts:block mandatory="false" processor="XSLT" type="exec"
  77. id="setSearch"
  78. dependency="buildSession init"
  79. condition=".[true()]"
  80. nodelist="cookies, env, session, system, user, configProps">
  81. <xts:logicsheet path="logicsheets/portal.xsl"/>
  82. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  83. <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
  84. <xsl:stylesheet version="1.0"
  85. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  86. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  87. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  88. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  89. xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/">
  90. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  91. <pf:variables/>
  92. <cml:object-predicates/>
  93. <xsl:template match="/root">
  94. <!-- If we have a search command then append a <search> element -->
  95. <xsl:variable name="path">
  96. <xsl:choose>
  97. <xsl:when test="string(/root/env/param[@name='m_folder']) != ''">
  98. <xsl:value-of select="concat('storeID(&quot;', /root/env/param[@name='m_folder'], '&quot;)')"/>
  99. </xsl:when>
  100. <xsl:when test="string(/root/env/param[@name='m_path']) != ''">
  101. <xsl:value-of select="string(/root/env/param[@name='m_path'])"/>
  102. </xsl:when>
  103. <xsl:otherwise>
  104. <xsl:value-of select="string(/root/system/param[@name='consumer-root'])"/>
  105. </xsl:otherwise>
  106. </xsl:choose>
  107. </xsl:variable>
  108. <xts:sequence>
  109. <search:gen-search-exp navInterface="true">
  110. <!-- index search object types -->
  111. <!-- note: only index search is supported by this morphlet -->
  112. <search:defaultTypes indexSearch="true">
  113. <search:defaultType>analysis</search:defaultType>
  114. <search:defaultType>agentDefinition</search:defaultType>
  115. <search:defaultType>agentDefinitionView</search:defaultType>
  116. <search:defaultType>report</search:defaultType>
  117. <search:defaultType>query</search:defaultType>
  118. <search:defaultType>reportView</search:defaultType>
  119. <search:defaultType>folder</search:defaultType>
  120. <search:defaultType>URL</search:defaultType>
  121. <search:defaultType>package</search:defaultType>
  122. <search:defaultType>pagelet</search:defaultType>
  123. <search:defaultType>powerPlayCube</search:defaultType>
  124. <search:defaultType>powerPlayReport</search:defaultType>
  125. <search:defaultType>powerPlay8Cube</search:defaultType>
  126. <search:defaultType>powerPlay8Report</search:defaultType>
  127. <search:defaultType>powerPlay8ReportView</search:defaultType>
  128. <search:defaultType>reportTemplate</search:defaultType>
  129. <search:defaultType>shortcut</search:defaultType>
  130. <search:defaultType>metric</search:defaultType>
  131. <search:defaultType>metricType</search:defaultType>
  132. <search:defaultType>scorecard</search:defaultType>
  133. </search:defaultTypes>
  134. </search:gen-search-exp>
  135. </xts:sequence>
  136. </xsl:template>
  137. </xsl:stylesheet>
  138. </xts:block>
  139. <xts:block processor="XSLT" type="exec" mandatory="false"
  140. id="getContent"
  141. path="portal/cc/get_content_nav.xslt"
  142. condition=".[/root/search/navSearchSpec]"
  143. dependency="init setSearch"
  144. nodelist="header, http, env, system, session, search, cookies, setCookies, user, credential, configProps, page, tabPath_id">
  145. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  146. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  147. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  148. <xts:logicsheet path="logicsheets/portal.xsl"/>
  149. </xts:block>
  150. <xts:block mandatory="false" processor="XSLT" type="exec"
  151. id="process"
  152. dependency="getContent">
  153. <xts:logicsheet path="logicsheets/portal.xsl"/>
  154. <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
  155. <xsl:stylesheet version="1.0"
  156. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  157. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  158. xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
  159. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  160. xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/">
  161. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  162. <pf:variables/>
  163. <xsl:template match="/root">
  164. <xts:sequence>
  165. <xts:append select="/root">
  166. <xsl:choose>
  167. <xsl:when test="/root/navContent/nav:searchResponse/nav:open">
  168. <xsl:choose>
  169. <xsl:when test="/root/navContent/nav:searchResponse/nav:content/nav:item[1]/nav:defaultAction">
  170. <redirect/>
  171. </xsl:when>
  172. <xsl:otherwise>
  173. <error><xts:string id="IDS_OPEN_OBJECT_ERROR"/></error>
  174. </xsl:otherwise>
  175. </xsl:choose>
  176. </xsl:when>
  177. <xsl:otherwise>
  178. <renderResultset/>
  179. </xsl:otherwise>
  180. </xsl:choose>
  181. </xts:append>
  182. </xts:sequence>
  183. </xsl:template>
  184. </xsl:stylesheet>
  185. </xts:block>
  186. <xts:block id="renderItems" mode="output" processor="XSLT" type="exec" mimeType="text/html"
  187. condition=".[/root/renderResultset]"
  188. dependency="getContent process">
  189. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  190. <xts:logicsheet path="logicsheets/portal.xsl"/>
  191. <xts:logicsheet path="logicsheets/permissions.xsl"/>
  192. <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
  193. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  194. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  195. <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
  196. <xts:logicsheet path="logicsheets/indextree.xslt"/>
  197. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  198. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  199. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  200. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  201. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  202. <xts:logicsheet path="logicsheets/validation.xslt"/>
  203. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  204. <xsl:stylesheet version="1.0"
  205. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  206. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  207. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  208. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  209. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  210. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  211. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  212. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  213. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  214. xmlns:cs="http://developer.cognos.com/schemas/cs"
  215. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  216. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  217. xmlns:out="http://www.w3.org/1999/XSL/Transform"
  218. xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
  219. xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
  220. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  221. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  222. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  223. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  224. exclude-result-prefixes="xsl cm cml pf mt mf xts xtsext cf cp out bus utml dp lyt pm">
  225. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  226. <pm:permissions/>
  227. <pf:variables/>
  228. <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 id "/>
  229. <xsl:variable name="mname" select="'open.xts'"/>
  230. <xsl:variable name="js-encoded-path" select="xtsext:javascriptencode( string( $m_path ) )"/><!-- Required -->
  231. <xsl:variable name="cmd-form" select="'cform'"/> <!-- Required -->
  232. <xsl:variable name="edit-form" select="'pform'"/><!-- Required -->
  233. <xsl:variable name="isIndexSearch" select="string(/root/env/param[@name = 'sfield']) = 'k' or (string(/root/env/param[@name = 'sfield']) = '' and $userCanUseIndexSearch)"/>
  234. <cp:flyoutControl/>
  235. <mt:common-variables/>
  236. <!-- start the output -->
  237. <xsl:template match="/root">
  238. <!-- Note: DOCTYPE is handled by mt:page -->
  239. <html encodeDocType="false">
  240. <head>
  241. <pf:meta/><!-- Standard meta tags -->
  242. <title><xts:string id="IDS_PORTAL"/></title>
  243. <mt:stylesheet/><!-- add the theme style sheet -->
  244. <mf:head/><!-- Common framework logic for Cognos Central main view -->
  245. <pf:help context="HID_SEARCH"/><!-- Help system -->
  246. <pf:launch/><!-- adds functions to launch the studios.... -->
  247. </head>
  248. <!-- HTML body -->
  249. <mt:page mode="search">
  250. <xsl:call-template name="render-header"/><!-- Render the top headers. -->
  251. <xsl:call-template name="search-panel"/><!-- Insert search control panel -->
  252. <form action="{$gateway}" method="post" name="pform" style="margin:0px">
  253. <div id="wsrp_rewrite_div_result_busy_container" style="height:0px;display:none;"/>
  254. <pg:busyIndicator/>
  255. <div id="wsrp_rewrite_div_results">
  256. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  257. <tr>
  258. <!-- tree section -->
  259. <xsl:if test="$isIndexSearch">
  260. <td valign="top" width="200px">
  261. <table cellpadding="0" cellspacing="0">
  262. <tr>
  263. <td>
  264. <img width="10" height="1" border="0" src="{$webcontent}/images/space.gif"/>
  265. </td>
  266. <td>
  267. <xsl:if test="/root/search/navSearchSpec or string(/root/search/expression) != ''">
  268. <img width="1" height="26" border="0" src="{$webcontent}/images/space.gif"/>
  269. <pg:treeResult width="200px" caller="cc">
  270. <pg:isIndexSearch>$isIndexSearch</pg:isIndexSearch>
  271. <pg:treeContent>/root/navContent/nav:searchResponse/nav:extensions/cs:subjectTree/QueryDescription/SubjectTree</pg:treeContent>
  272. </pg:treeResult>
  273. </xsl:if>
  274. </td>
  275. </tr>
  276. </table>
  277. </td>
  278. </xsl:if>
  279. <!-- result content section -->
  280. <td valign="top" width="100%">
  281. <lyt:layout style="1" joinSection="yes">
  282. <lyt:section width="100%">
  283. <xsl:choose>
  284. <xsl:when test="/root/search/indexSearchNotAllowed">
  285. <mt:errorMessage>
  286. <xts:string id="IDS_SEARCH_NO_INDEX_CAPABILITY"/>
  287. </mt:errorMessage>
  288. </xsl:when>
  289. <xsl:when test="/root/search/emptySearchExpression">
  290. <mt:objectNoneFound id="IDS_EMPTY_QUERY"/>
  291. </xsl:when>
  292. <xsl:when test="/root/search/navSearchSpec">
  293. <xsl:choose>
  294. <xsl:when test="$isIndexSearch">
  295. <!-- index search -->
  296. <pg:pager-indexSearch is-scrolling="true" id="wsrp_rewrite_div_results_content" noSelection='true'/>
  297. </xsl:when>
  298. <xsl:otherwise>
  299. <!-- basic search -->
  300. <pg:pager-basicSearch navContent='true' noSelection='true'/>
  301. </xsl:otherwise>
  302. </xsl:choose>
  303. </xsl:when>
  304. </xsl:choose>
  305. </lyt:section>
  306. </lyt:layout>
  307. </td>
  308. </tr>
  309. </table>
  310. </div>
  311. <mf:edit-vars/>
  312. </form>
  313. <form name="cform" method="post" action="{$gateway}" style="margin:0px">
  314. <mf:cmd-vars/>
  315. </form>
  316. </mt:page>
  317. <pg:common-script/>
  318. <pg:common-popup-script/>
  319. <pg:common-tree-script caller="cc">
  320. <pg:isIndexSearch>$isIndexSearch</pg:isIndexSearch>
  321. <pg:filterContext>/root/navContent/nav:searchResponse/nav:extensions/cs:filterContext/filterContext/FilterSpecification</pg:filterContext>
  322. <pg:searchFunctionName>doSearch</pg:searchFunctionName>
  323. <pg:gateway>gateway</pg:gateway>
  324. <pg:openList>/root/env/param[@name='open_list']</pg:openList>
  325. </pg:common-tree-script>
  326. <!-- End of HTML body -->
  327. </html>
  328. </xsl:template>
  329. <!-- Insert common templates -->
  330. <pg:do-the-path-link-nav/>
  331. <pf:ccinav-gen-icon/>
  332. <pf:ccinav-gen-url/>
  333. <pf:ccinav-gen-action-properties/>
  334. <pg:commonSupportTemplates/>
  335. <pf:gen-action/>
  336. <xsl:template name="render-header">
  337. <mt:h1 mode="basic">
  338. <mt:title><xts:string id="IDS_PORTAL"/></mt:title>
  339. </mt:h1>
  340. <mt:h4>
  341. <mt:path>
  342. <span class="bold"><xts:string id="IDS_SEARCH"/></span>
  343. </mt:path>
  344. <mt:toolbar>
  345. <!-- Show the toolbar when we have data to display -->
  346. <xsl:choose>
  347. <xsl:when test="count(/root/navContent/nav:searchResponse/nav:content/*) > 0">
  348. <mt:tool-group hideDivider="true">
  349. <mt:tool name="refresh"/>
  350. </mt:tool-group>
  351. </xsl:when>
  352. <xsl:otherwise>
  353. <mt:tool-group hideDivider="true">
  354. <mt:tool name="refresh" disable="true"/>
  355. </mt:tool-group>
  356. </xsl:otherwise>
  357. </xsl:choose>
  358. </mt:toolbar>
  359. </mt:h4>
  360. </xsl:template>
  361. <xsl:template name="search-panel">
  362. <mt:search indexSearch="true">
  363. <!-- TODO: open.xts most likely _only_ handle burgundy search -->
  364. <!-- In the case where user not having the burgundy capability (or burgundy not installed) -->
  365. <!-- an error page could be issued when open.xts is invoked -->
  366. <mt:fields>
  367. <mt:field>k</mt:field>
  368. </mt:fields>
  369. <!-- index search object types -->
  370. <mt:stypes indexSearch='true'>
  371. <mt:stype name="agentDefinition"><xts:string id="IDS_OBJ_AGENT"/></mt:stype>
  372. <mt:stype name="agentDefinitionView"><xts:string id="IDS_OBJ_AGENTVIEW"/></mt:stype>
  373. <mt:stype name="analysis"><xts:string id="IDS_OBJ_ANALYSIS"/></mt:stype>
  374. <mt:stype name="folder"><xts:string id="IDS_OBJ_FOLDER"/></mt:stype>
  375. <mt:stype name="metric"><xts:string id="IDS_OBJ_METRICS_METRIC"/></mt:stype>
  376. <mt:stype name="metricsPackage"><xts:string id="IDS_OBJ_METRICSPACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for metrics manager-->
  377. <mt:stype name="metricType"><xts:string id="IDS_OBJ_METRICS_METRIC_TYPE"/></mt:stype>
  378. <mt:stype name="package"><xts:string id="IDS_OBJ_PACKAGE"/></mt:stype>
  379. <mt:stype name="pagelet"><xts:string id="IDS_OBJ_PAGELET"/></mt:stype>
  380. <mt:stype name="planningPackage"><xts:string id="IDS_OBJ_PLANNING_PACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for planning package-->
  381. <mt:stype name="powerPlayCube"><xts:string id="IDS_OBJ_POWERPLAYCUBE"/></mt:stype>
  382. <mt:stype name="powerPlayReport"><xts:string id="IDS_OBJ_POWERPLAYREPORT"/></mt:stype>
  383. <mt:stype name="powerPlay8Cube"><xts:string id="IDS_OBJ_POWERPLAY8CUBE"/></mt:stype>
  384. <mt:stype name="powerPlay8Report"><xts:string id="IDS_OBJ_POWERPLAY8REPORT"/></mt:stype>
  385. <mt:stype name="powerPlay8ReportView"><xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/></mt:stype>
  386. <mt:stype name="query"><xts:string id="IDS_OBJ_QUERY"/></mt:stype>
  387. <mt:stype name="report"><xts:string id="IDS_OBJ_REPORT"/></mt:stype>
  388. <mt:stype name="interactiveReport"><xts:string id="IDS_OBJ_INTERACTIVEREPORT"/></mt:stype>
  389. <mt:stype name="reportTemplate"><xts:string id="IDS_OBJ_REPORTTEMPLATE"/></mt:stype>
  390. <mt:stype name="reportView"><xts:string id="IDS_OBJ_REPORTVIEW"/></mt:stype>
  391. <mt:stype name="scorecard"><xts:string id="IDS_OBJ_SCORECARD"/></mt:stype>
  392. <mt:stype name="shortcut"><xts:string id="IDS_SHORTCUTS"/></mt:stype>
  393. <mt:stype name="URL"><xts:string id="IDS_OBJ_URL"/></mt:stype>
  394. </mt:stypes>
  395. <mt:close-params>
  396. <param>id</param>
  397. </mt:close-params>
  398. </mt:search>
  399. </xsl:template>
  400. </xsl:stylesheet>
  401. </xts:block>
  402. <xts:block id="redirect" mode="output" processor="XSLT" type="exec" mimeType="text/html"
  403. condition=".[/root/redirect]"
  404. dependency="getContent process">
  405. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  406. <xts:logicsheet path="logicsheets/portal.xsl"/>
  407. <xts:logicsheet path="logicsheets/permissions.xsl"/>
  408. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  409. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  410. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  411. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  412. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  413. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  414. <xts:logicsheet path="logicsheets/validation.xslt"/>
  415. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  416. <xsl:stylesheet version="1.0"
  417. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  418. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  419. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  420. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  421. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  422. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  423. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  424. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  425. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  426. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  427. xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
  428. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  429. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  430. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  431. exclude-result-prefixes="xsl cm cml pf mf xts xtsext cf cp bus dp lyt pm">
  432. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  433. <pm:permissions/>
  434. <pf:variables/>
  435. <mf:variables/>
  436. <xsl:variable name="cmd-form" select="'cform'"/>
  437. <xsl:template match="/root">
  438. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
  439. <dp:meta>
  440. <pf:meta/>
  441. </dp:meta>
  442. <dp:script>
  443. <!--<pf:launch/>--> <!-- Requires $cmd-form, $back-url to be defined -->
  444. <script language="javascript">
  445. function init()
  446. {
  447. <xsl:variable name="the-obj" select="/root/navContent/nav:searchResponse/nav:content/nav:item[1]/nav:defaultAction/nav:urlParts"/>
  448. <xsl:variable name="href">
  449. <xsl:value-of select="$the-obj/nav:gateway"/>?<xsl:text/>
  450. <xsl:for-each select="$the-obj/nav:param">
  451. <xsl:value-of select="@name"/>=<xsl:value-of select="."/>&amp;<xsl:text/>
  452. </xsl:for-each>
  453. <xsl:text/>launch.openJSStudioInFrame=true<xsl:text/>
  454. </xsl:variable>
  455. var href = '<xsl:value-of select="$href"/>';
  456. document.location = href;
  457. }
  458. </script>
  459. </dp:script>
  460. </dp:page>
  461. </xsl:template>
  462. </xsl:stylesheet>
  463. </xts:block>
  464. <xts:block id="renderError" mode="output" processor="XSLT" type="exec" mimeType="text/html"
  465. condition=".[/root/error]"
  466. dependency="getContent process">
  467. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  468. <xts:logicsheet path="logicsheets/portal.xsl"/>
  469. <xts:logicsheet path="logicsheets/permissions.xsl"/>
  470. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  471. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  472. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  473. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  474. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  475. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  476. <xts:logicsheet path="logicsheets/validation.xslt"/>
  477. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  478. <xsl:stylesheet version="1.0"
  479. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  480. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  481. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  482. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  483. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  484. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  485. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  486. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  487. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  488. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  489. xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
  490. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  491. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  492. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  493. exclude-result-prefixes="xsl cm cml pf mf xts xtsext cf cp bus dp lyt pm">
  494. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  495. <pm:permissions/>
  496. <pf:variables/>
  497. <mf:variables/>
  498. <xsl:template match="/root">
  499. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
  500. <dp:script>
  501. <script type="text/javascript">
  502. function doCancel() {
  503. close();
  504. }
  505. </script>
  506. </dp:script>
  507. <dp:meta>
  508. <!-- Add standard meta tags -->
  509. <pf:meta/>
  510. <dp:script>
  511. <pf:help context=""/> <!-- Help system -->
  512. </dp:script>
  513. <!-- dialog header -->
  514. </dp:meta>
  515. <!-- dialog header -->
  516. <dp:header help="false">
  517. <!-- header titles -->
  518. <dp:title><xsl:value-of select="$product_name"/></dp:title>
  519. <!-- close link for the header -->
  520. <dp:close>
  521. <a href="javascript:doCancel()">
  522. <dp:closeMarker/>
  523. </a>
  524. </dp:close>
  525. <!-- description (hint text) -->
  526. <dp:description><xsl:value-of select="substring-before(string(/root/selectionSpec),',')"/></dp:description>
  527. </dp:header>
  528. <lyt:layout style="1">
  529. <lyt:section>
  530. <dp:group>
  531. <dp:groupItem>
  532. <img height="32" width="32" border="0">
  533. <xsl:attribute name="src">
  534. <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>
  535. <xsl:text/>/images/msg_error.gif<xsl:text/>
  536. </xsl:attribute>
  537. </img>
  538. </dp:groupItem>
  539. <dp:groupItem>
  540. <!-- used for alignment -->
  541. <dp:text/><xsl:text>&#160;</xsl:text>
  542. </dp:groupItem>
  543. <dp:groupItem valign="top">
  544. <dp:text nospace="nospace" wrap="wrap">
  545. <xsl:value-of select="/root/error"/>
  546. </dp:text>
  547. </dp:groupItem>
  548. </dp:group>
  549. </lyt:section>
  550. </lyt:layout>
  551. </dp:page>
  552. </xsl:template>
  553. </xsl:stylesheet>
  554. </xts:block>
  555. <!-- Debug -->
  556. <xts:block type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html"
  557. id="debug"
  558. condition=".[ /root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']"
  559. dependency="renderItems">
  560. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  561. <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">
  562. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  563. <dbg:templates/>
  564. <xsl:template match="/">
  565. <dbg:dumpxml select="/root"/>
  566. </xsl:template>
  567. </xsl:stylesheet>
  568. </xts:block>
  569. </xts:morphlet>