myDatasets.xts 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  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. 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. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseMyDataSets">
  13. <!--
  14. ===============================================================================================
  15. If external backURLs are not allowed then verify the backURL is in the crn domain and replace it if it isn't
  16. ===============================================================================================
  17. -->
  18. <xts:block id="secureBackURL" path="portal/secureBackURL.xml" processor="XSLT" type="exec" condition=".[/root/system/param[@name = 'allowExternalURLs'] = 'false']" mandatory="false"/>
  19. <!-- ======================================================== -->
  20. <!-- Session Management -->
  21. <!-- ======================================================== -->
  22. <!-- Reads session-sensitive info from CM -->
  23. <xts:block processor="XSLT" type="exec" mandatory="false"
  24. id="refreshSession"
  25. path="portal/cc/read_session.xml"
  26. condition=".[
  27. string(/root/cookies/cookie[@name = 'cc_session']) = ''
  28. or /root/env/param[@name='m_reload']
  29. or /root/env/param[@name='m_root'] ]">
  30. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  31. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  32. </xts:block>
  33. <!-- Update the <session> element for this request. -->
  34. <xts:block id="buildSession" path="portal/session.xml" dependency="refreshSession impersonateTenant secureBackURL" processor="XSLT" type="exec"
  35. condition=".[
  36. /root/newSession
  37. or /root/env/param[@name='ui']
  38. or /root/env/param[@name='d']
  39. or /root/env/param[starts-with(@name,'m_s_')]
  40. or /root/env/param[@name = 'resetSort'] ]"
  41. mandatory="false"/>
  42. <xts:block id="impersonateTenant" path="/portal/tenants/impersonateTenant.xsl" processor="XSLT" type="exec" mode="interpret" condition=".[/root/env/param[@name='impersonateTenantCmd']!='']" mandatory="false">
  43. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  44. </xts:block>
  45. <!-- Save changes to the state info in a cookie -->
  46. <xts:block mode="interpret" processor="XSLT" type="exec"
  47. id="setSession"
  48. path="portal/set_session.xml"
  49. dependency="buildSession getContent"
  50. condition=".[/root/updateSession]"
  51. mandatory="false"/>
  52. <!--
  53. =============================================
  54. Request properties of the current container
  55. =============================================
  56. -->
  57. <xts:block id="getPath" processor="XSLT" type="exec" dependency="buildSession">
  58. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  59. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  60. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/">
  61. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  62. <cml:object-predicates/>
  63. <xsl:template match="root">
  64. <xsl:variable name="m_path" select="/root/env/param[@name='m_path']"/>
  65. <xsl:variable name="path">
  66. <xsl:choose>
  67. <xsl:when test="not($m_path='/content')">
  68. <xsl:value-of select="$m_path"/>
  69. </xsl:when>
  70. <xsl:otherwise>
  71. <xsl:value-of select="'~/dataSetFolder'"/>
  72. </xsl:otherwise>
  73. </xsl:choose>
  74. </xsl:variable>
  75. <xsl:if test="$path != ''">
  76. <xts:sequence>
  77. <xts:append>
  78. <path>
  79. <!-- Request properties of the current container. -->
  80. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  81. <send:request provider="cm">
  82. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  83. <cm:query>
  84. <cm:search>
  85. <xsl:value-of select="$path"/><xsl:value-of select="$hidden-objects-predicate"/>
  86. </cm:search>
  87. <cm:properties>
  88. <cm:property name="objectClass"/>
  89. <cm:property name="defaultName"/>
  90. <cm:property name="ancestors"/>
  91. <cm:property name="permissions"/>
  92. <cm:property name="searchPath"/>
  93. <cm:property name="storeID"/>
  94. <cm:property name="credentialNamespaces"/>
  95. <cm:property name="hidden"/>
  96. <cm:property name="userInterfaces"/>
  97. </cm:properties>
  98. </cm:query>
  99. </xts:transform>
  100. </send:request>
  101. </xts:transform>
  102. </path>
  103. </xts:append>
  104. </xts:sequence>
  105. </xsl:if>
  106. </xsl:template>
  107. </xsl:stylesheet>
  108. </xts:block>
  109. <!--
  110. ======================================
  111. Generate the search expression
  112. ======================================
  113. -->
  114. <xts:block id="generateSearchExp" processor="XSLT" type="exec" dependency="getPath" condition=".[/root/env/param[@name='search']]" mandatory="false">
  115. <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
  116. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  117. <xsl:stylesheet version="1.0"
  118. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  119. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  120. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  121. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  122. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  123. xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/" exclude-result-prefixes="xsl xts xtsext pf cml search">
  124. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  125. <cml:object-predicates/>
  126. <xsl:template match="/root">
  127. <xsl:variable name="path">
  128. <xsl:choose>
  129. <xsl:when test=" /root/env/param[@name='m_path'] != '' ">
  130. <xsl:value-of select="/root/env/param[@name='m_path']"/>
  131. </xsl:when>
  132. <xsl:otherwise>
  133. <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder</xsl:text>
  134. </xsl:otherwise>
  135. </xsl:choose>
  136. </xsl:variable>
  137. <xsl:if test="/root/env/param[@name='m_path']=''">
  138. <xts:sequence>
  139. <xts:replace select="/root/env/param[@name='m_path']">
  140. <!--param name="m_path">/content</param-->
  141. <param name="m_path">~/dataSetFolder</param>
  142. </xts:replace>
  143. </xts:sequence>
  144. </xsl:if>
  145. <xts:sequence>
  146. <search:gen-search-exp>
  147. <search:defaultTypes>
  148. <search:defaultType>dataSetFolder</search:defaultType>
  149. <search:defaultType>dataSet</search:defaultType>
  150. </search:defaultTypes>
  151. </search:gen-search-exp>
  152. </xts:sequence>
  153. </xsl:template>
  154. </xsl:stylesheet>
  155. </xts:block>
  156. <!--
  157. =============================================
  158. Request properties of the dataSet
  159. =============================================
  160. -->
  161. <xts:block id="getContent" processor="XSLT" type="exec" dependency="generateSearchExp" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/">
  162. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  163. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  164. <xsl:stylesheet version="1.0"
  165. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  166. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  167. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  168. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  169. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  170. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" exclude-result-prefixes="xsl xts xtsext cm cml send">
  171. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
  172. <cml:object-predicates/>
  173. <xsl:template match="root">
  174. <xsl:variable name="userPrefs" select="/root/session/param"/>
  175. <xsl:variable name="userPrefsDefault" select="/root/system/param[@name='defaultPortalPreferences']"/>
  176. <xsl:variable name="dataSetPath">
  177. <xsl:choose>
  178. <xsl:when test=" /root/env/param[@name='m_path'] != '' ">
  179. <xsl:value-of select="/root/env/param[@name='m_path']"/>
  180. </xsl:when>
  181. <xsl:otherwise>
  182. <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder</xsl:text>
  183. </xsl:otherwise>
  184. </xsl:choose>
  185. </xsl:variable>
  186. <xsl:variable name="maxObjects">
  187. <xsl:choose>
  188. <xsl:when test="string(/root/env/param[@name = 'm_pagerto']) !='' and string(/root/env/param[@name = 'm_pagerfrom']) !=''">
  189. <xsl:value-of select="(/root/env/param[@name = 'm_pagerto'] - /root/env/param[@name = 'm_pagerfrom']) + 1"/>
  190. </xsl:when>
  191. <xsl:when test="$userPrefs[@name='linesPerPage']!=''">
  192. <xsl:value-of select="$userPrefs[@name='linesPerPage']"/>
  193. </xsl:when>
  194. <xsl:otherwise>
  195. <xsl:value-of select="$userPrefsDefault/pref[@name='lines']"/>
  196. </xsl:otherwise>
  197. </xsl:choose>
  198. </xsl:variable>
  199. <xsl:variable name="skipObjects">
  200. <xsl:choose>
  201. <xsl:when test="/root/env/param[@name = 'm_pagerfrom'] and /root/env/param[@name = 'm_pagerfrom']!=''">
  202. <xsl:value-of select="(/root/env/param[@name = 'm_pagerfrom'])-1"/>
  203. </xsl:when>
  204. <xsl:when test="/root/env/param[@name='m_section']!=''">
  205. <xsl:choose>
  206. <xsl:when test="/root/env/param[@name='m_section']!='-1'">
  207. <xsl:value-of select="((/root/env/param[@name='m_section']) -1)"/>
  208. </xsl:when>
  209. <xsl:otherwise>
  210. <xsl:value-of select="($maxObjects) * -1"/>
  211. </xsl:otherwise>
  212. </xsl:choose>
  213. </xsl:when>
  214. <xsl:otherwise>0</xsl:otherwise>
  215. </xsl:choose>
  216. </xsl:variable>
  217. <xsl:variable name="m_sort" select="/root/session/param[@name='s_ct']"/>
  218. <xsl:variable name="parentPath">
  219. <xsl:choose>
  220. <xsl:when test="string(/root/env/param[@name='m_path'])!=''">
  221. <xsl:value-of select="/root/env/param[@name='m_path']"/>
  222. </xsl:when>
  223. <xsl:otherwise>
  224. <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder</xsl:text>
  225. </xsl:otherwise>
  226. </xsl:choose>
  227. </xsl:variable>
  228. <xsl:variable name="path">
  229. <xsl:choose>
  230. <xsl:when test="string(/root/env/param[@name='m_path'])!='' and /root/env/param[@name='m_path'] != '~'">
  231. <xsl:value-of select="/root/env/param[@name='m_path']"/><xsl:text>/*[@objectClass='dataSetFolder' or @objectClass='dataSet']</xsl:text>
  232. </xsl:when>
  233. <xsl:otherwise>
  234. <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder/*[@objectClass='dataSetFolder' or @objectClass='dataSet']</xsl:text>
  235. </xsl:otherwise>
  236. </xsl:choose>
  237. <!-- Append permission restrictions -->
  238. <!--xsl:value-of select="'[permission(&quot;read&quot;)]'"/-->
  239. </xsl:variable>
  240. <xsl:variable name="myDataSetsPath">
  241. <!--xsl:value-of select="/root/session/param[@name='e_mrootpath']"/-->
  242. <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder/*</xsl:text>
  243. </xsl:variable>
  244. <xsl:variable name="atRoot">
  245. <xsl:choose>
  246. <xsl:when test="/root/env/param[@name='m_pathRoot']">true</xsl:when>
  247. <xsl:otherwise>false</xsl:otherwise>
  248. </xsl:choose>
  249. </xsl:variable>
  250. <xts:sequence>
  251. <xts:append>
  252. <content>
  253. <!-- Request properties of the datasets. -->
  254. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  255. <send:request provider="cm">
  256. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  257. <cm:query>
  258. <cm:requests>
  259. <cm:query>
  260. <cm:search><xsl:value-of select="$parentPath"/><xsl:value-of select="$visibility-predicate"/></cm:search>
  261. <cm:properties>
  262. <cm:property name="defaultName"/>
  263. <cm:property name="permissions"/>
  264. <cm:property name="ancestors"/>
  265. <cm:property name="searchPath"/>
  266. <cm:property name="storeID"/>
  267. <cm:property name="hidden"/>
  268. <cm:property name="disabled"/>
  269. </cm:properties>
  270. </cm:query>
  271. <xsl:if test="/root/search/expression or not(/root/search)">
  272. <cm:query>
  273. <cm:search>
  274. <xsl:choose>
  275. <xsl:when test="/root/search/expression">
  276. <xsl:value-of select="/root/search/expression"/><xsl:value-of select="$visibility-predicate"/>
  277. </xsl:when>
  278. <xsl:otherwise>
  279. <xsl:value-of select="$path"/><xsl:value-of select="$visibility-predicate"/>
  280. </xsl:otherwise>
  281. </xsl:choose>
  282. </cm:search>
  283. <cm:properties>
  284. <cm:property name="defaultName"/>
  285. <cm:property name="hasChildren"/>
  286. <cm:property name="ancestors"/>
  287. <cm:property name="permissions"/>
  288. <cm:property name="searchPath"/>
  289. <cm:property name="storeID"/>
  290. <cm:property name="modificationTime"/>
  291. <cm:property name="dataSetSize"/>
  292. <cm:property name="dataModificationTime"/>
  293. <cm:property name="disabled"/>
  294. <cm:property name="userInterfaces"/>
  295. <cm:property name="displaySequence"/>
  296. <cm:property name="position"/>
  297. <cm:property name="defaultScreenTip"/>
  298. <cm:property name="target"/>
  299. <!-- We need this property to get the target information for Abacab Targets -->
  300. <cm:property name="deploymentReferences"/>
  301. <cm:property name="iconURI"/>
  302. <cm:property name="usage"/>
  303. <cm:property name="hidden"/>
  304. <cm:property name="packageBase"/>
  305. <cm:property name="specification"/>
  306. </cm:properties>
  307. <cm:options schemaInfo="true">
  308. <cm:maxObjects><xsl:value-of select="$maxObjects + 1"/></cm:maxObjects>
  309. <cm:skipObjects><xsl:value-of select="$skipObjects"/></cm:skipObjects>
  310. <cm:refProps>
  311. <!-- Get target info for shortcut objects -->
  312. <cm:refProp refPropName="packageBase">
  313. <cm:properties>
  314. <cm:property name="ancestors"/>
  315. <cm:property name="defaultName"/>
  316. <cm:property name="searchPath"/>
  317. <cm:property name="storeID"/>
  318. <cm:property name="permissions"/>
  319. <cm:property name="hidden"/>
  320. <cm:property name="disabled"/>
  321. <cm:property name="permissions"/>
  322. </cm:properties>
  323. </cm:refProp>
  324. </cm:refProps>
  325. </cm:options>
  326. <cm:sortBy>
  327. <xsl:if test="/root/session/param[@name='eom'] != '2'">
  328. <xsl:choose>
  329. <xsl:when test="/root/session/param[@name='eom'] = '0'">
  330. <cm:sort name="usage" order="ascending"/>
  331. </xsl:when>
  332. <xsl:otherwise>
  333. <cm:sort name="usage" order="descending"/>
  334. </xsl:otherwise>
  335. </xsl:choose>
  336. </xsl:if>
  337. <xsl:choose>
  338. <xsl:when test="$m_sort = 'da'">
  339. <cm:sort name="modificationTime" order="ascending"/>
  340. </xsl:when>
  341. <xsl:when test="$m_sort = 'dd'">
  342. <cm:sort name="modificationTime" order="descending"/>
  343. </xsl:when>
  344. <xsl:when test="$m_sort = 'nd'">
  345. <cm:sort name="defaultName" order="descending"/>
  346. </xsl:when>
  347. <xsl:when test="$m_sort = 'na'">
  348. <cm:sort name="defaultName" order="ascending"/>
  349. </xsl:when>
  350. <xsl:when test="$m_sort = 'md'">
  351. <cm:sort name="dataModificationTime" order="descending"/>
  352. </xsl:when>
  353. <xsl:when test="$m_sort = 'ma'">
  354. <cm:sort name="dataModificationTime" order="ascending"/>
  355. </xsl:when>
  356. <xsl:when test="$m_sort = 'sd'">
  357. <cm:sort name="dataSetSize" order="descending"/>
  358. </xsl:when>
  359. <xsl:when test="$m_sort = 'sa'">
  360. <cm:sort name="dataSetSize" order="ascending"/>
  361. </xsl:when>
  362. <xsl:otherwise>
  363. <cm:sort name="displaySequence" order="ascending"/>
  364. </xsl:otherwise>
  365. </xsl:choose>
  366. </cm:sortBy>
  367. </cm:query>
  368. </xsl:if>
  369. </cm:requests>
  370. </cm:query>
  371. </xts:transform>
  372. </send:request>
  373. </xts:transform>
  374. </content>
  375. </xts:append>
  376. <xts:delete select="/root/env/param[@name='pagerfrom' or @name='pagerto' or @name='pagerfrom_d' or @name='pagerto_d']"/>
  377. <xsl:variable name="stateEnvParams">
  378. <xsl:choose>
  379. <xsl:when test="/root/search">m_path</xsl:when>
  380. <xsl:otherwise>m_path m_section m_pagerfrom m_pagerto</xsl:otherwise>
  381. </xsl:choose>
  382. </xsl:variable>
  383. <xts:delete select="root/env/param[@name='m_stateEnvParams']"/>
  384. <xts:append select="/root/env">
  385. <param name="m_stateEnvParams"><xsl:value-of select="$stateEnvParams"/></param>
  386. </xts:append>
  387. </xts:sequence>
  388. </xsl:template>
  389. </xsl:stylesheet>
  390. </xts:block>
  391. <!--
  392. ============================================================================
  393. Block: mergeTenantNames
  394. Purpose: merge the tenant names into the response
  395. output: replaces tenantID with defaultName from applicable tenant object
  396. =============================================================================
  397. -->
  398. <xts:block processor="XSLT" type="exec" mandatory="false"
  399. path="/portal/tenancy/mergeTenantNames.xslt"
  400. id="mergeTenantNames"
  401. dependency="getContent"
  402. condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
  403. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  404. </xts:block>
  405. <!--
  406. ===============================================================================================
  407. head - This block generates the HTML <head> tag.
  408. ===============================================================================================
  409. -->
  410. <xts:block id="head" type="exec" mode="output" processor="XSLT" dependency="getContent" mimeType="text/html" contentId="head" partId="1" xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/">
  411. <xts:logicsheet path="logicsheets/toollogic2.xslt"/>
  412. <xts:logicsheet path="logicsheets/portal.xsl"/>
  413. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  414. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  415. <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  416. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="cm tool pf mt mf cf cp xsl xts xtsext">
  417. <xsl:output method="html" encoding="utf-8" indent="no"/>
  418. <!-- current file name -->
  419. <xsl:variable name="mname" select="'myDatasets/myDatasets.xts'"/>
  420. <tool:variables formName="frmEntryAdmin" useEnvParams="/root/env/param[@name='m_stateEnvParams']"/>
  421. <xsl:template match="/">
  422. <tool:head title="IDS_MYDS_MYDATASETS" helpid="HID_DRILL_THROUGH_ACTIONS"/>
  423. </xsl:template>
  424. </xsl:stylesheet>
  425. </xts:block>
  426. <!--
  427. ===============================================================================================
  428. banner - This block generates the portal banner at the top of the tool.
  429. ===============================================================================================
  430. -->
  431. <xts:block id="banner" type="exec" mode="output" processor="XSLT" dependency="getContent mergeTenantNames" mimeType="text/html" contentId="banner" partId="1"
  432. xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/"
  433. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  434. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  435. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  436. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  437. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  438. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/">
  439. <xts:logicsheet path="logicsheets/toollogic2.xslt"/>
  440. <!-- Cognos Central main behaviour logic -->
  441. <xts:logicsheet path="logicsheets/portal.xsl"/>
  442. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  443. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  444. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  445. <!-- Cognos Central controls logic -->
  446. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  447. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  448. <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
  449. <xts:logicsheet path="logicsheets/validation.xslt"/>
  450. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  451. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="tool pf mf mt cf cp dp cm xtsext xts">
  452. <xsl:output method="html" encoding="utf-8" indent="no"/>
  453. <!-- current file name -->
  454. <xsl:variable name="mname" select="'myDatasets/myDatasets.xts'"/>
  455. <tool:variables formName="frmEntryAdmin" useEnvParams="/root/env/param[@name='m_stateEnvParams']" type="drillthru"/>
  456. <xsl:variable name="rootPath" select="count(/root/path/cm:queryResponse/*/cm:ancestors/cm:ancestorInfo)=0"/>
  457. <xsl:variable name="startPathTitle"><xts:string id="IDS_MYDS_MYDATASETS"/></xsl:variable>
  458. <xsl:variable name="atRoot">
  459. <xsl:choose>
  460. <xsl:when test="/root/env/param[@name='m_pathRoot']">true</xsl:when>
  461. <xsl:otherwise>false</xsl:otherwise>
  462. </xsl:choose>
  463. </xsl:variable>
  464. <xsl:variable name="start-at-path">
  465. <!-- xsl:if test="starts-with(/root/path/cm:queryResponse/*/cm:searchPath, 'CAMID')"-->
  466. <xsl:variable name="sq"><xsl:text>'</xsl:text></xsl:variable>
  467. <xsl:value-of select="concat(/root/session/param[@name='e_hp'],'/dataSetFolder')"/>
  468. <!--/xsl:if-->
  469. <!-- xsl:text>CAMID("::Anonymous")/dataSetFolder</xsl:text-->
  470. </xsl:variable>
  471. <cp:flyoutControl/>
  472. <xsl:template match="/">
  473. <tool:banner title="IDS_MYDS_MYDATASETS" mode="mydatasets" jumpToMain="true" id="headerBackA11Y">
  474. <tool:path>
  475. <div role="navigation" lang="{$contentLocale}">
  476. <xsl:choose>
  477. <xsl:when test="/root/search">
  478. <a>
  479. <xsl:attribute name="href">
  480. <xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="key('env-param','m')"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&amp;backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if>&amp;m_pathRoot123<xsl:text/>
  481. </xsl:attribute>
  482. <xsl:text/><xsl:value-of select="$startPathTitle"/><xsl:text/>
  483. </a>
  484. <xsl:text/><span class="pathSeparator"> &gt; </span><xsl:text/>
  485. <xsl:text/><xts:string id="IDS_SEARCH"/><xsl:text/>
  486. </xsl:when>
  487. <xsl:otherwise>
  488. <!-- breadcrumb -->
  489. <cf:do-the-path-link>
  490. <cf:param name="familytree">/root/content/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='ancestors']</cf:param>
  491. <cf:param name="familymember">/root/content/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='defaultName']</cf:param>
  492. <cf:param name="isRootPath"><xsl:value-of select="$rootPath"/></cf:param>
  493. <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
  494. <cf:param name="home-title">
  495. <xsl:if test="$atRoot='true'"><xsl:value-of select="$startPathTitle"/></xsl:if>
  496. </cf:param>
  497. <cf:param name="anchorpath">
  498. <xsl:choose>
  499. <xsl:when test="$home-title!='' and (string(position())=$start-position or position() = 1)">
  500. <a>
  501. <xsl:attribute name="href"><xsl:value-of select="concat($gateway, '?b_action=xts.run')"/><xsl:value-of select="concat('&amp;m=', key('env-param', 'm'))"/><xsl:value-of select="concat('&amp;m_path=', xtsext:protect(xtsext:urlencode(string(cm:searchPath)),'url','searchPath','getdata'))"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&amp;backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if></xsl:attribute>
  502. <xsl:if test="$isBidiEnabled = 'true'">
  503. <xsl:attribute name="dir">
  504. <xsl:value-of select="xtsext:getBTD($home-title, $baseTextDirection, $productLocale)"/>
  505. </xsl:attribute>
  506. </xsl:if>
  507. <xsl:text/><xsl:value-of select="$home-title"/><xsl:text/>
  508. </a>
  509. </xsl:when>
  510. <xsl:otherwise>
  511. <a>
  512. <xsl:attribute name="href"><xsl:value-of select="concat($gateway, '?b_action=xts.run')"/><xsl:value-of select="concat('&amp;m=', key('env-param', 'm'))"/><xsl:value-of select="concat('&amp;m_path=', xtsext:protect(xtsext:urlencode(string(cm:searchPath)),'url','searchPath','getdata'))"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&amp;backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if></xsl:attribute>
  513. <xsl:if test="$isBidiEnabled = 'true'">
  514. <xsl:attribute name="dir">
  515. <xsl:value-of select="xtsext:getBTD(cm:title, $baseTextDirection, $productLocale)"/>
  516. </xsl:attribute>
  517. </xsl:if>
  518. <xsl:text/><xsl:value-of select="cm:title"/><xsl:text/>
  519. </a>
  520. </xsl:otherwise>
  521. </xsl:choose>
  522. </cf:param>
  523. </cf:do-the-path-link>
  524. </xsl:otherwise>
  525. </xsl:choose>
  526. </div>
  527. </tool:path>
  528. <tool:actions>
  529. <mt:toolbar>
  530. <mt:tool-group hideDivider="true">
  531. <mt:tool-group hideDivider="true">
  532. <mt:tool name="importPersonalData"/>
  533. </mt:tool-group>
  534. <mt:tool name="deleteDataset"/>
  535. <!-- xsl:if test="$atRoot!='true' and not(/root/search)">
  536. <mt:tool name="search"/>
  537. </xsl:if>
  538. <xsl:if test="$atRoot='true'">
  539. <mt:tool name="search" disable="true"/>
  540. </xsl:if-->
  541. <mt:tool name="search"/>
  542. </mt:tool-group>
  543. </mt:toolbar>
  544. </tool:actions>
  545. </tool:banner>
  546. </xsl:template>
  547. </xsl:stylesheet>
  548. </xts:block>
  549. <xts:block id="classNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml" >
  550. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
  551. </xts:block>
  552. <!--
  553. ===============================================================================================
  554. body - This block generates the tool contents.
  555. ===============================================================================================
  556. -->
  557. <xts:block id="body" type="exec" mode="output" processor="XSLT" dependency="getContent classNames" mimeType="text/html" contentId="body" partId="1" xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:pm="http://developer.cognos.com/schemas/xts/pm" xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/">
  558. <xts:logicsheet path="logicsheets/toollogic2.xslt"/>
  559. <!-- Cognos Central main behaviour logic -->
  560. <xts:logicsheet path="logicsheets/portal.xsl"/>
  561. <xts:logicsheet path="logicsheets/permissions.xsl"/>
  562. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  563. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  564. <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
  565. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  566. <!-- Cognos Central controls logic -->
  567. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  568. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  569. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  570. <xts:logicsheet path="logicsheets/validation.xslt"/>
  571. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  572. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="tool pf pm mf mt cf cp dp cm xtsext xts">
  573. <xsl:output method="html" encoding="utf-8" indent="no"/>
  574. <!-- current file name -->
  575. <xsl:variable name="mname" select="'myDatasets/myDatasets.xts'"/>
  576. <xsl:variable name="user_permissions">
  577. <xsl:choose>
  578. <xsl:when test="/root/path/cm:queryResponse/*/*">
  579. <xsl:value-of select="/root/path/cm:queryResponse/*/cm:permissions"/>
  580. </xsl:when>
  581. <xsl:otherwise>na</xsl:otherwise>
  582. </xsl:choose>
  583. </xsl:variable>
  584. <xsl:variable name="userCanNotTraverse" select="not(contains($user_permissions, 'traverse')) and not(contains($user_permissions, 'na'))"/>
  585. <tool:variables formName="frmEntryAdmin" useEnvParams="/root/env/param[@name='m_stateEnvParams']"/>
  586. <cp:flyoutControl/>
  587. <xsl:template match="/">
  588. <xsl:variable name="showTenantInfo" select="/root/session/param[@name='e_showTenantInfo']='true'"/>
  589. <xsl:if test="/root/search">
  590. <xsl:variable name="isPanelMain" select="not($userCanNotTraverse) and not(/root/search/emptySearchExpression) and not(/root/env/param[@name='m_pathRoot']) and not(/root/search/expression or not(root/search))"/>
  591. <xsl:choose>
  592. <xsl:when test="$isPanelMain">
  593. <div role="main" tabindex="-1">
  594. <xsl:call-template name="search-panel"/>
  595. </div>
  596. </xsl:when>
  597. <xsl:otherwise>
  598. <xsl:call-template name="search-panel"/>
  599. </xsl:otherwise>
  600. </xsl:choose>
  601. <!-- Insert search control panel -->
  602. </xsl:if>
  603. <tool:content formName="frmEntryAdmin" nomode="true">
  604. <xsl:choose>
  605. <xsl:when test="$userCanNotTraverse">
  606. <div tabindex="-1">
  607. <mt:objectNoneFound id="IDS_NO_TRAVERSE_CONTAINER"/>
  608. </div>
  609. </xsl:when>
  610. <xsl:when test="/root/search/emptySearchExpression">
  611. <div tabindex="-1">
  612. <mt:objectNoneFound id="IDS_EMPTY_QUERY"/>
  613. </div>
  614. </xsl:when>
  615. <xsl:when test="/root/search/expression or not(root/search)">
  616. <input type="hidden" name="includePackages"/>
  617. <cf:main-pager-section virtualPage="true" width="100%" role="main">
  618. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  619. <cf:param name="item-path">root/content/cm:queryResponse/cm:queryReply[2]/*</cf:param>
  620. <cf:param name="lines-per-page">
  621. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  622. </cf:param>
  623. <cf:param name="rows">
  624. <cp:tableHeader session-name="s_ct">
  625. <cp:columnHeader toggleName="checkbox_" form="pfrmEntryAdmin" noLabel="true" id="checkbox_0"/>
  626. <cp:columnHeader width="20px"/>
  627. <xsl:variable name="sizing">100</xsl:variable>
  628. <cp:columnHeader sort="n" width="{$sizing}%" id="columnHeaderName">
  629. <cp:sortHref>
  630. <xsl:value-of select="$back-url"/><xsl:value-of select="concat('&amp;m_path=', xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='m_path'])),'url','searchPath','getdata'))"/>&amp;m_s_ct=<xsl:choose>
  631. <xsl:when test="key('session-param', 's_ct') = 'na' ">nd</xsl:when>
  632. <xsl:when test="key('session-param', 's_ct') = 'nd' "/>
  633. <xsl:otherwise>na</xsl:otherwise>
  634. </xsl:choose>
  635. </cp:sortHref>
  636. <xsl:if test="/root/search">
  637. <img height="5" width="1" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
  638. <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/><xsl:text>&#160;</xsl:text>
  639. <img height="5" width="1" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
  640. </xsl:if>
  641. <xts:string id="IDS_NAME"/>
  642. </cp:columnHeader>
  643. <cp:columnHeader width="200px" id="columnHeaderPackage">
  644. <xts:string id="IDS_MYDS_HEADING_PACKAGE"/>
  645. </cp:columnHeader>
  646. <cp:columnHeader sort="m" width="200px" id="columnHeaderRefreshed">
  647. <cp:sortHref>
  648. <xsl:value-of select="$back-url"/><xsl:value-of select="concat('&amp;m_path=', xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='m_path'])),'url','searchPath','getdata'))"/>&amp;m_s_ct=<xsl:choose>
  649. <xsl:when test="key('session-param', 's_ct') = 'ma' ">md</xsl:when>
  650. <xsl:when test="key('session-param', 's_ct') = 'md' "/>
  651. <xsl:otherwise>ma</xsl:otherwise>
  652. </xsl:choose>
  653. </cp:sortHref>
  654. <xts:string id="IDS_MYDS_HEADING_REFRESHED"/>
  655. </cp:columnHeader>
  656. <cp:columnHeader sort="s" width="100px" id="columnHeaderSize">
  657. <cp:sortHref>
  658. <xsl:value-of select="$back-url"/><xsl:value-of select="concat('&amp;m_path=', xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='m_path'])),'url','searchPath','getdata'))"/>&amp;m_s_ct=<xsl:choose>
  659. <xsl:when test="key('session-param', 's_ct') = 'sa' ">sd</xsl:when>
  660. <xsl:when test="key('session-param', 's_ct') = 'sd' "/>
  661. <xsl:otherwise>sa</xsl:otherwise>
  662. </xsl:choose>
  663. </cp:sortHref>
  664. <xts:string id="IDS_MYDS_HEADING_SIZE"/>
  665. </cp:columnHeader>
  666. <cp:columnHeader id="columnHeaderRowCount">
  667. <xts:string id="IDS_MYDS_HEADING_ROW_COUNT"/>
  668. </cp:columnHeader>
  669. <cp:columnHeader sort="d" width="200px" id="columnHeaderModified">
  670. <cp:sortHref>
  671. <xsl:value-of select="$back-url"/>&amp;m_s_ct=<xsl:choose>
  672. <xsl:when test="key('session-param', 's_ct') = 'da' ">dd</xsl:when>
  673. <xsl:when test="key('session-param', 's_ct') = 'dd' "/>
  674. <xsl:otherwise>da</xsl:otherwise>
  675. </xsl:choose>
  676. </cp:sortHref>
  677. <xts:string id="IDS_MODIFIED"/>
  678. </cp:columnHeader>
  679. <cp:columnHeader width="100">
  680. <xsl:if test="@valign and @valign!=''">
  681. <xsl:attribute name="valign">
  682. <xsl:value-of select="@valign"/>
  683. </xsl:attribute>
  684. </xsl:if>
  685. <cp:columnCondition><xsl:value-of select="$showTenantInfo"/></cp:columnCondition>
  686. <xts:string id="IDS_OBJ_TENANT"/>
  687. </cp:columnHeader>
  688. <cp:columnHeader width="170px">
  689. <xts:string id="IDS_HEADING_ACTIONS"/>
  690. </cp:columnHeader>
  691. </cp:tableHeader>
  692. <cp:tableContent>
  693. <cp:common-render-variables>
  694. <!-- Common variables used in rendering icons, actions .. etc. -->
  695. <pm:permissions/>
  696. <mf:common-entry-varaibles/>
  697. </cp:common-render-variables>
  698. <cp:columnContent>
  699. <xsl:variable name="checkboxLabel"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><xsl:value-of select="cm:defaultName"/></xts:param></xts:string></xsl:variable>
  700. <input type="checkbox" value="{xtsext:urlencode(string(cm:storeID))}" name="checkbox_{position()}" id="checkbox_{position()}" aria-label="{$checkboxLabel}"/>
  701. </cp:columnContent>
  702. <cp:columnContent>
  703. <xsl:call-template name="gen-icon">
  704. <xsl:with-param name="class" select="$class"/>
  705. <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
  706. <xsl:with-param name="hiddenObject" select="cm:hidden"/>
  707. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  708. </xsl:call-template>
  709. </cp:columnContent>
  710. <cp:columnContent width="50%" scope="row">
  711. <xsl:if test="/root/search">
  712. <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
  713. <xsl:attribute name="alt">
  714. <cf:do-the-path-link>
  715. <cf:param name="familytree">cm:ancestors</cf:param>
  716. <cf:param name="familymember">cm:defaultName</cf:param>
  717. </cf:do-the-path-link>
  718. </xsl:attribute>
  719. </img><xsl:text>&#160;</xsl:text>
  720. </xsl:if>
  721. <!-- Logic to figure out if an entry is to be hyperlinked and if it is what the URL should be -->
  722. <xsl:choose>
  723. <xsl:when test="cm:hasChildren='true'">
  724. <mf:entry-name/>
  725. </xsl:when>
  726. <xsl:otherwise>
  727. <xsl:value-of select="xtsext:enforceBTD(string(cm:defaultName), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  728. <!-- Render the disabled icon if this entry is disabled -->
  729. <xsl:choose>
  730. <xsl:when test="cm:disabled = 'true'">
  731. <img height="16" width="16" hspace="4" align="absmiddle" src="{$image_root}state_disabled.gif">
  732. <xsl:attribute name="alt"><xts:string id="IDS_DISABLED"/></xsl:attribute>
  733. </img>
  734. </xsl:when>
  735. <xsl:when test="cm:target/*/cm:disabled = 'true' or cm:base/*/cm:disabled = 'true'">
  736. <img height="16" width="16" hspace="4" align="absmiddle" src="{$image_root}state_source_disabled.gif">
  737. <xsl:attribute name="alt"><xts:string id="IDS_DISABLED"/></xsl:attribute>
  738. </img>
  739. </xsl:when>
  740. </xsl:choose>
  741. </xsl:otherwise>
  742. </xsl:choose>
  743. <xsl:text>&#160;&#160;</xsl:text>
  744. </cp:columnContent>
  745. <cp:columnContent width="200px">
  746. <xsl:if test="string(cm:objectClass)='dataSet'">
  747. <nobr>
  748. <xsl:variable name="packageName" select="cm:packageBase/cm:package/cm:defaultName"/>
  749. <xsl:variable name="canTraverseTargetPackage" select="contains(cm:packageBase/cm:package/cm:permissions, 'traverse')"/>
  750. <xsl:choose>
  751. <xsl:when test="$packageName != '' and $canTraverseTargetPackage">
  752. <a href="{$gateway}?b_action=xts.run&amp;m={$app}/cc.xts&amp;m_folder={cm:packageBase/cm:package/cm:storeID}">
  753. <xsl:value-of select="$packageName"/>
  754. </a>
  755. </xsl:when>
  756. <xsl:when test="$packageName != '' and not($canTraverseTargetPackage)">
  757. <xsl:value-of select="$packageName"/>
  758. </xsl:when>
  759. <xsl:otherwise><xts:string id="IDS_MYDS_PACKAGE_UNAVAILABLE"/></xsl:otherwise>
  760. </xsl:choose>
  761. </nobr>
  762. </xsl:if>
  763. </cp:columnContent>
  764. <cp:columnContent width="200px">
  765. <xsl:if test="string(cm:objectClass)='dataSet'">
  766. <nobr>
  767. <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
  768. <xsl:variable name="modifTime">
  769. <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:dataModificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  770. </xsl:variable>
  771. <xsl:value-of select="xtsext:enforceBTD($modifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
  772. </nobr>
  773. </xsl:if>
  774. </cp:columnContent>
  775. <cp:columnContent width="100px">
  776. <xsl:if test="string(cm:objectClass)='dataSet'">
  777. <nobr>
  778. <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
  779. <xsl:variable name="dataSetSize">
  780. <xsl:variable name="dataSize" select="round((number(cm:dataSetSize) div 1024)+.499)"/>
  781. <xsl:value-of select="xtsext:formatNumber(string($dataSize),string('#,##0'),string($contentLocale), number(1))"/>
  782. </xsl:variable>
  783. <xsl:value-of select="xtsext:enforceBTD($dataSetSize, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
  784. </nobr>
  785. </xsl:if>
  786. </cp:columnContent>
  787. <cp:columnContent>
  788. <xsl:if test="string(cm:objectClass)='dataSet'">
  789. <nobr>
  790. <xsl:variable name="rowCount">
  791. <xsl:variable name="rawCount" select="number(cm:specification/cm:pdSpec/cm:dataSet/cm:rowCount)"/>
  792. <xsl:value-of select="xtsext:formatNumber(string($rawCount),string($contentLocale), number(2))"/>
  793. </xsl:variable>
  794. <xsl:value-of select="xtsext:enforceBTD($rowCount, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
  795. </nobr>
  796. </xsl:if>
  797. </cp:columnContent>
  798. <cp:columnContent width="200px">
  799. <nobr>
  800. <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
  801. <xsl:variable name="modifTime">
  802. <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  803. </xsl:variable>
  804. <xsl:value-of select="xtsext:enforceBTD($modifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
  805. </nobr>
  806. </cp:columnContent>
  807. <cp:columnContent>
  808. <cp:columnCondition><xsl:value-of select="$showTenantInfo"/></cp:columnCondition>
  809. <xsl:value-of select="cm:tenantName"/>
  810. </cp:columnContent>
  811. <cp:columnContent width="170px">
  812. <nobr>
  813. <xsl:call-template name="action-properties">
  814. <xsl:with-param name="class" select="$class"/>
  815. <xsl:with-param name="supportPropertiesAction" select="true()"/>
  816. <xsl:with-param name="supportEditDataSet" select="true()"/>
  817. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  818. <xsl:with-param name="dataSetName" select="cm:defaultName"/>
  819. </xsl:call-template>
  820. </nobr>
  821. </cp:columnContent>
  822. </cp:tableContent>
  823. </cf:param>
  824. </cf:main-pager-section>
  825. </xsl:when>
  826. </xsl:choose>
  827. </tool:content>
  828. </xsl:template>
  829. <xsl:template name="search-panel">
  830. <mt:search type="tools">
  831. <mt:close-params>
  832. <param>backURL</param>
  833. <param>m_path</param>
  834. </mt:close-params>
  835. </mt:search>
  836. </xsl:template>
  837. <!-- Insert common templates -->
  838. <mt:actions mode="tools"/>
  839. <pf:gen-action/>
  840. <pf:gen-icon/>
  841. <pf:gen-url/>
  842. </xsl:stylesheet>
  843. </xts:block>
  844. <!--
  845. ===============================================================================================
  846. render-page - Main page rendering block.
  847. ===============================================================================================
  848. -->
  849. <xts:block id="render-page" type="exec" mode="interpret" processor="XSLT" dependency="head banner body" mimeType="text/html" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt">
  850. <xts:logicsheet path="logicsheets/portal.xsl"/>
  851. <!-- Cognos Central main behaviour logic -->
  852. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  853. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xos="http://developer.cognos.com/schemas/xts/output/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/theme/main/mf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xts="http://developer.cognos.com/schemas/xts/" exclude-result-prefixes="xsl cm pf mt mf bus xts xos SOAP-ENV">
  854. <xsl:output method="xml" version="1.0" encoding="utf-8" indent="no"/>
  855. <pf:variables/>
  856. <xsl:template match="/root">
  857. <xts:sequence>
  858. <xts:replace select="/root/output/*[local-name() = 'part']">
  859. <xos:part>
  860. <xos:entityHeader>
  861. <xos:param name="Content-Type">text/html; charset=utf-8</xos:param>
  862. </xos:entityHeader>
  863. <xos:entityBody>
  864. <html lang="{$productLocale}">
  865. <!-- copy in the head content -->
  866. <xsl:copy-of select="output/xos:part/xos:entityBody/xos:content[@id = 'head']"/>
  867. <mt:page region="IDS_MYDS_MYDATASETS">
  868. <!-- copy in the banner -->
  869. <xsl:copy-of select="output/xos:part/xos:entityBody/xos:content[@id = 'banner']"/>
  870. <!-- copy in the body -->
  871. <xsl:copy-of select="output/xos:part/xos:entityBody/xos:content[@id = 'body']"/>
  872. </mt:page>
  873. </html>
  874. </xos:entityBody>
  875. </xos:part>
  876. </xts:replace>
  877. </xts:sequence>
  878. </xsl:template>
  879. </xsl:stylesheet>
  880. </xts:block>
  881. <!--
  882. =============================================
  883. Output debug dump
  884. =============================================
  885. -->
  886. <xts:block id="debug" type="exec" mode="output" processor="XSLT" condition=".[/root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']" mandatory="false" mimeType="text/html" dependency="render-page">
  887. <!-- get the debug logic sheet -->
  888. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  889. <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">
  890. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  891. <xsl:template match="/">
  892. <dbg:dumpxml select="/root"/>
  893. </xsl:template>
  894. </xsl:stylesheet>
  895. </xts:block>
  896. </xts:morphlet>