subscriptions.xslt 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  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, 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. <!--
  13. Renders the contents of the "Public Folders/My Folders" tab.
  14. -->
  15. <xsl:stylesheet version="1.0"
  16. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  17. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  18. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  19. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  20. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  21. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  22. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  23. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  24. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  25. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  26. xmlns:out="dummy-uri"
  27. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  28. exclude-result-prefixes="xsl cm pf pm mt mf xts xtsext cf cp out lyt">
  29. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  30. <xsl:variable name="mname" select="'subscriptions/subscriptions.xts'"/>
  31. <pf:variables/>
  32. <cp:flyoutControl/>
  33. <mf:variables stateParams="m_subfldr m_section m_pagerfrom m_pagerto m_pg_e rui backURL m_path search m_pagerfromsearch m_pagertosearch m_pg_esearch m_searchsection m_searchcontext stext sscope smethod sfield sstatus stype stype_is smodified sshortcuts stime m_isRule"/>
  34. <xsl:variable name="cmd-form" select="'cform'"/>
  35. <xsl:variable name="edit-form" select="'pform'"/>
  36. <!-- for alert tab -->
  37. <xsl:variable name="alert-path" select="/root/cmContent/cm:queryResponse/cm:queryReply/*"/>
  38. <!-- for rule tab -->
  39. <xsl:variable name="rule-path" select="/root/cmContent/cm:queryResponse/cm:queryReply[3]/*"/>
  40. <xsl:variable name="current-fldr" select="/root/cmContent/cm:queryResponse/cm:queryReply[2]/*"/>
  41. <xsl:variable name="start-at-path" select="/root/cmContent/cm:queryResponse/cm:queryReply[1]/*/cm:searchPath"/>
  42. <xsl:variable name="isSearch" select="/root/search"/>
  43. <xsl:variable name="isSearchExp" select="/root/search/expression"/>
  44. <xsl:variable name="isSearchExpEmpty" select="/root/search/emptySearchExpression"/>
  45. <xsl:variable name="canTraverse">
  46. <xsl:choose>
  47. <xsl:when test="$isSearchExp"><xsl:value-of select="contains(string($rule-path/cm:permissions), 'traverse')"/></xsl:when>
  48. <xsl:when test="key('env-param', 'm_isRule')"><xsl:value-of select="contains(string($current-fldr/cm:permissions), 'traverse')"/></xsl:when>
  49. </xsl:choose>
  50. </xsl:variable>
  51. <xsl:variable name="canWrite">
  52. <xsl:choose>
  53. <xsl:when test="$isSearchExp"><xsl:value-of select="contains(string($rule-path/cm:permissions), 'write')"/></xsl:when>
  54. <xsl:when test="key('env-param', 'm_isRule')"><xsl:value-of select="contains(string($current-fldr/cm:permissions), 'write')"/></xsl:when>
  55. </xsl:choose>
  56. </xsl:variable>
  57. <xsl:variable name="objectType">
  58. <class name="shortcutRSSTask">
  59. <typeName><xts:string id="IDS_MYSUB_TYPE_NI"/></typeName>
  60. </class>
  61. <class name="humanTask">
  62. <typeName><xts:string id="IDS_PROP_SETTINGS_CATEGORY_NOTIFICATION"/></typeName>
  63. </class>
  64. <class name="memo">
  65. <typeName><xts:string id="IDS_MYSUB_TYPE_TEXT"/></typeName>
  66. </class>
  67. </xsl:variable>
  68. <mt:actions mode="mysub"/>
  69. <pf:gen-action/>
  70. <pf:gen-icon/>
  71. <pf:gen-url/>
  72. <!-- start the output -->
  73. <xsl:template match="/root">
  74. <html lang="{$productLocale}" encodeDocType="false">
  75. <head>
  76. <pf:meta expires="false"/>
  77. <title>
  78. <xts:string id="IDS_MYSUB_MYSUBSCRIPTIONS"/>
  79. </title>
  80. <mt:stylesheet/>
  81. <mf:head/>
  82. <xsl:choose>
  83. <xsl:when test="key('env-param', 'm_isRule')">
  84. <pf:help context="HID_RULE_PROPERTIES"/>
  85. </xsl:when>
  86. <xsl:otherwise>
  87. <pf:help context=""/>
  88. </xsl:otherwise>
  89. </xsl:choose>
  90. <pf:launch/>
  91. </head>
  92. <mt:page region="IDS_MYSUB_MYSUBSCRIPTIONS">
  93. <xsl:call-template name="render-header"/>
  94. <xsl:if test="$isSearch">
  95. <xsl:call-template name="search-panel"/>
  96. </xsl:if>
  97. <form name="pform" method="post" action="{$gateway}" style="margin:0px">
  98. <xsl:choose>
  99. <xsl:when test="$isSearch">
  100. <xsl:choose>
  101. <xsl:when test="$isSearchExp"><xsl:call-template name="render-search"/></xsl:when>
  102. <xsl:when test="$isSearchExpEmpty"><mt:objectNoneFound id="IDS_EMPTY_QUERY"/></xsl:when>
  103. </xsl:choose>
  104. </xsl:when>
  105. <xsl:otherwise>
  106. <xsl:call-template name="render-body"/>
  107. </xsl:otherwise>
  108. </xsl:choose>
  109. <mf:edit-vars/>
  110. </form>
  111. <form name="cform" method="post" action="{$gateway}">
  112. <mf:cmd-vars/>
  113. </form>
  114. </mt:page>
  115. </html>
  116. </xsl:template>
  117. <xsl:template name="render-header">
  118. <mt:h1 mode="subscriptions" id="headerBackA11Y">
  119. <mt:title>
  120. <xts:string id="IDS_MYSUB_MYSUBSCRIPTIONS"/>
  121. </mt:title>
  122. </mt:h1>
  123. <mt:h3>
  124. <mt:tabs>
  125. <xsl:variable name="tabs">
  126. <tab>
  127. <xsl:if test="not(key('env-param', 'm_isRule')) and not($isSearch)">
  128. <xsl:attribute name="selected">true</xsl:attribute>
  129. </xsl:if>
  130. <!-- Render the link -->
  131. <a class="tabAnchor" >
  132. <xsl:attribute name="href">
  133. <xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>
  134. <xsl:value-of select="$request-url-params"/>
  135. <xsl:if test="key('env-param', 'skin')">&amp;skin=<xsl:value-of select="key('env-param','skin')"/></xsl:if>
  136. <xsl:if test="key('env-param', 'backURL')">&amp;backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
  137. </xsl:attribute>
  138. <xts:string id="IDS_MYSUB_ALERTS"/>
  139. </a>
  140. </tab>
  141. <tab>
  142. <xsl:if test="key('env-param', 'm_isRule') or $isSearch">
  143. <xsl:attribute name="selected">true</xsl:attribute>
  144. </xsl:if>
  145. <!-- Render the link -->
  146. <a class="tabAnchor" >
  147. <xsl:attribute name="href">
  148. <xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>
  149. <xsl:text/>&amp;m_subfldr=<xsl:value-of select="cm:storeID"/><xsl:text>&amp;m_isRule</xsl:text>
  150. <xsl:value-of select="$request-url-params"/>
  151. <xsl:if test="key('env-param', 'skin')">&amp;skin=<xsl:value-of select="key('env-param','skin')"/></xsl:if>
  152. <xsl:if test="key('env-param', 'backURL')">&amp;backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
  153. </xsl:attribute>
  154. <xts:string id="IDS_MYSUB_SUBSCRIPTIONS"/>
  155. </a>
  156. </tab>
  157. </xsl:variable>
  158. <xsl:call-template name="renderTabs">
  159. <xsl:with-param name="tabs" select="$tabs"/>
  160. <xsl:with-param name="scroll" select="false()"/>
  161. </xsl:call-template>
  162. </mt:tabs>
  163. </mt:h3>
  164. <mt:h4>
  165. <mt:path>
  166. <xsl:choose>
  167. <xsl:when test="$isSearch">
  168. <cf:do-the-path-link>
  169. <cf:param name="familytree">$current-fldr/cm:ancestors</cf:param>
  170. <cf:param name="familymember">$current-fldr/cm:defaultName</cf:param>
  171. <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
  172. <cf:param name="lastIsLink">true</cf:param>
  173. <cf:param name="anchorpath">
  174. <a>
  175. <xsl:attribute name="href">
  176. <xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="key('env-param','m')"/>
  177. <xsl:text/>&amp;m_subfldr=<xsl:value-of select="cm:storeID"/>&amp;m_isRule<xsl:text/>
  178. <xsl:value-of select="$request-url-params"/>
  179. <xsl:if test="key('env-param', 'backURL')">&amp;backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
  180. </xsl:attribute>
  181. <xsl:choose>
  182. <xsl:when test="cm:title">
  183. <xsl:value-of select="cm:title"/>
  184. </xsl:when>
  185. <xsl:otherwise>
  186. <xsl:value-of select="$current-fldr/cm:defaultName"/>
  187. </xsl:otherwise>
  188. </xsl:choose>
  189. </a>
  190. </cf:param>
  191. </cf:do-the-path-link>
  192. &#160;-&#160;
  193. <span class="bold"><xts:string id="IDS_SEARCH"/></span>
  194. </xsl:when>
  195. <xsl:when test="key('env-param', 'm_isRule')">
  196. <cf:do-the-path-link>
  197. <cf:param name="familytree">$current-fldr/cm:ancestors</cf:param>
  198. <cf:param name="familymember">$current-fldr/cm:defaultName</cf:param>
  199. <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
  200. <cf:param name="anchorpath">
  201. <a>
  202. <xsl:attribute name="href">
  203. <xsl:value-of select="$gateway"/>?b_action=xts.run&amp;m=<xsl:value-of select="key('env-param','m')"/>
  204. <xsl:text/>&amp;m_subfldr=<xsl:value-of select="cm:storeID"/>&amp;m_isRule<xsl:text/>
  205. <xsl:value-of select="$request-url-params"/>
  206. <xsl:if test="key('env-param', 'backURL')">&amp;backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
  207. </xsl:attribute>
  208. <xsl:value-of select="cm:title"/>
  209. </a>
  210. </cf:param>
  211. </cf:do-the-path-link>
  212. </xsl:when>
  213. </xsl:choose>
  214. </mt:path>
  215. <mt:toolbar>
  216. <xsl:if test="key('env-param', 'm_isRule') and not($isSearch)">
  217. <mt:tool-group hideDivider="true">
  218. <xsl:choose>
  219. <xsl:when test="$canWrite='true'"><mt:tool name="new" new-class="subscriptionFolder"/></xsl:when>
  220. <xsl:otherwise><mt:tool name="new" new-class="subscriptionFolder" disable="true"/></xsl:otherwise>
  221. </xsl:choose>
  222. </mt:tool-group>
  223. <mt:tool-group>
  224. <xsl:call-template name="cutandpaste"/>
  225. </mt:tool-group>
  226. </xsl:if>
  227. <xsl:if test="$isSearch">
  228. <mt:tool-group hideDivider="true">
  229. <xsl:call-template name="cutandpaste"/>
  230. </mt:tool-group>
  231. </xsl:if>
  232. <xsl:if test="key('env-param', 'm_isRule') and not($isSearch)">
  233. <mt:tool-group>
  234. <xsl:if test="$hasCondSubscriptionsCapability">
  235. <mt:tool name="enable_sched"/>
  236. <mt:tool name="disable_sched"/>
  237. </xsl:if>
  238. <mt:tool name="properties"/>
  239. <mt:tool name="search"/>
  240. </mt:tool-group>
  241. </xsl:if>
  242. <xsl:if test="not(key('env-param', 'm_isRule')) and not($isSearch)">
  243. <mt:tool-group hideDivider="true">
  244. <mt:tool name="removeMeAlert"/>
  245. </mt:tool-group>
  246. </xsl:if>
  247. </mt:toolbar>
  248. </mt:h4>
  249. </xsl:template>
  250. <xsl:template name="cutandpaste">
  251. <xsl:choose>
  252. <xsl:when test="$canTraverse='true' and $canWrite='true'">
  253. <mt:tool name="cut"/>
  254. <mt:tool name="paste"/>
  255. <mt:tool name="delete"/>
  256. </xsl:when>
  257. <xsl:otherwise>
  258. <mt:tool name="cut" disable="true"/>
  259. <mt:tool name="paste" disable="true"/>
  260. <mt:tool name="delete" disable="true"/>
  261. </xsl:otherwise>
  262. </xsl:choose>
  263. </xsl:template>
  264. <xsl:template name="render-body">
  265. <!-- Build warning on Rule tab is user doesn't have capability -->
  266. <xsl:if test="$isSearch or key('env-param', 'm_isRule')">
  267. <xsl:variable name="warning">
  268. <xsl:if test="not($hasCondSubscriptionsCapability)"><xts:string id="IDS_MYSUB_RULE_WARN"/></xsl:if>
  269. </xsl:variable>
  270. <xsl:if test="$warning != ''">
  271. <div>
  272. <table cellspacing="0" cellpadding="0" class="messageText">
  273. <tr>
  274. <td valign="bottom">
  275. <img style="margin-right:5px;" src="{$image_root}state_warning.gif" title="$warning" alt="$warning"/>
  276. </td>
  277. <td valign="middle">&#160;<xsl:value-of select="$warning"/></td>
  278. </tr>
  279. </table>
  280. </div>
  281. </xsl:if>
  282. </xsl:if>
  283. <xsl:choose>
  284. <xsl:when test="key('env-param', 'm_isRule')">
  285. <cf:main-pager-section width="100%" virtualPage="true" noEntriesMsgID="IDS_NO_ITEMS_FOUND">
  286. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  287. <cf:param name="item-path">$rule-path</cf:param>
  288. <cf:param name="lines-per-page">
  289. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  290. </cf:param>
  291. <cf:param name="rows">
  292. <cp:tableHeader>
  293. <cp:columnHeader toggleName="checkbox_" form="pform" width="16" noLabel="true" id="checkbox_0"/>
  294. <cp:columnHeader width="20"/>
  295. <cp:columnHeader width="150">
  296. <xsl:text/><xts:string id="IDS_NAME"/><xsl:text/>
  297. </cp:columnHeader>
  298. <cp:columnHeader width="100%">
  299. <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/>&#160;<xts:string id="IDS_MYSUB_RPT_NAME"/><xsl:text/>
  300. </cp:columnHeader>
  301. <cp:columnHeader width="70">
  302. <xsl:text/><xts:string id="IDS_PERS_TAB_PERSONAL_TYPE_HEADER"/><xsl:text/>
  303. </cp:columnHeader>
  304. <cp:columnHeader width="70">
  305. <xsl:text/><xts:string id="IDS_HEADING_STATUS"/><xsl:text/>
  306. </cp:columnHeader>
  307. <cp:columnHeader width="120">
  308. <xsl:text/><xts:string id="IDS_HEADING_ACTIONS"/><xsl:text/>
  309. </cp:columnHeader>
  310. </cp:tableHeader>
  311. <cp:tableContent>
  312. <cp:common-render-variables>
  313. <pm:permissions/>
  314. <mf:common-entry-varaibles/>
  315. </cp:common-render-variables>
  316. <cp:columnContent>
  317. <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>
  318. <input type="checkbox" name="checkbox_{position()}_{./cm:objectClass}" id="checkbox_{position()}_{./cm:objectClass}">
  319. <xsl:attribute name="value"><xsl:value-of select="string(concat('storeID(&quot;', normalize-space(./cm:storeID), '&quot;)'))"/></xsl:attribute>
  320. <xsl:if test="key('env-param',concat('checkbox_' , position()))">
  321. <xsl:attribute name="checked">checked</xsl:attribute>
  322. </xsl:if>
  323. </input>
  324. <label for="checkbox_{position()}_{./cm:objectClass}" style="position: absolute;margin-left: -9999px; margin-top: -9999px;"><xsl:value-of select="cm:defaultName"/></label>
  325. </cp:columnContent>
  326. <cp:columnContent>
  327. <xsl:call-template name="gen-icon">
  328. <xsl:with-param name="class" select="$class"/>
  329. <xsl:with-param name="canRead" select="$canRead"/>
  330. <xsl:with-param name="canWrite" select="$canWrite"/>
  331. <xsl:with-param name="canExecute" select="$canExecute"/>
  332. <xsl:with-param name="canTraverse" select="$canTraverse"/>
  333. <xsl:with-param name="isDangling" select="$isDangling"/>
  334. <xsl:with-param name="output_format" select="$output_format"/>
  335. <xsl:with-param name="hiddenObject" select="cm:hidden"/>
  336. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  337. </xsl:call-template>
  338. </cp:columnContent>
  339. <cp:columnContent>
  340. <!-- Logic to figure out if an entry is to be hyperlinked and if it is what the URL should be -->
  341. <mf:entry-name/>
  342. </cp:columnContent>
  343. <cp:columnContent>
  344. <xsl:variable name="rpt_path" select="./cm:periodicalProducer/*"/>
  345. <xsl:if test="$rpt_path">
  346. <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
  347. <xsl:attribute name="alt">
  348. <xsl:variable name="object-start-at-path">
  349. <xsl:if test="starts-with($rpt_path/cm:searchPath, '~') or starts-with($rpt_path/cm:searchPath,key('session-param', 'e_hp'))">
  350. <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
  351. </xsl:if>
  352. <xsl:if test="starts-with($rpt_path/cm:searchPath,'/content')">
  353. <xsl:value-of select="$defaultContentRoot"/>
  354. </xsl:if>
  355. </xsl:variable>
  356. <cf:do-the-path-link>
  357. <cf:param name="familytree">$rpt_path/cm:ancestors</cf:param>
  358. <cf:param name="familymember">$rpt_path/cm:defaultName</cf:param>
  359. <cf:param name="onlyAncestors">true</cf:param>
  360. </cf:do-the-path-link>
  361. </xsl:attribute>
  362. </img><xsl:text>&#160;</xsl:text><xsl:value-of select="$rpt_path/cm:defaultName"/><xsl:text/>
  363. </xsl:if>
  364. </cp:columnContent>
  365. <cp:columnContent>
  366. <xsl:if test="cm:objectClass = 'reportDataServiceAgentDefinition'">
  367. <xsl:for-each select="/root/cmContent/cm:queryResponse/cm:queryReply[4]/*">
  368. <xsl:variable name="objectClass" select="."/>
  369. <xsl:value-of select="$objectType/class[@name= $objectClass]/typeName"/>
  370. <xsl:if test="position()!=last()">
  371. <xsl:text>,&#160;</xsl:text>
  372. </xsl:if>
  373. </xsl:for-each>
  374. </xsl:if>
  375. </cp:columnContent>
  376. <cp:columnContent>
  377. <xsl:if test="cm:objectClass = 'reportDataServiceAgentDefinition'">
  378. <xsl:choose>
  379. <xsl:when test="cm:active = 'true'"><xts:string id="IDS_SCHED_STATUS_ENABLED"/></xsl:when>
  380. <xsl:otherwise><xts:string id="IDS_SCHED_STATUS_DISABLED"/></xsl:otherwise>
  381. </xsl:choose>
  382. </xsl:if>
  383. </cp:columnContent>
  384. <cp:columnContent>
  385. <nobr>
  386. <xsl:call-template name="action-properties">
  387. <xsl:with-param name="supportScheduleAction" select="true()"/>
  388. <xsl:with-param name="canRead" select="$canRead"/>
  389. <xsl:with-param name="canWrite" select="$canWrite"/>
  390. <xsl:with-param name="canExecute" select="$canExecute"/>
  391. <xsl:with-param name="canTraverse" select="$canTraverse"/>
  392. <xsl:with-param name="class" select="$class"/>
  393. <xsl:with-param name="output_format" select="$output_format"/>
  394. <xsl:with-param name="isDangling" select="$isDangling"/>
  395. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  396. </xsl:call-template>
  397. </nobr>
  398. </cp:columnContent>
  399. </cp:tableContent>
  400. </cf:param>
  401. </cf:main-pager-section>
  402. </xsl:when>
  403. <xsl:otherwise> <!-- render alert tab-->
  404. <cf:main-pager-section width="100%" virtualPage="true" noEntriesMsgID="IDS_NO_ITEMS_FOUND">
  405. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  406. <cf:param name="item-path">$alert-path</cf:param>
  407. <cf:param name="lines-per-page">
  408. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  409. </cf:param>
  410. <cf:param name="rows">
  411. <cp:tableHeader>
  412. <cp:columnHeader toggleName="checkbox_" form="pform" width="16" noLabel="true" id="checkbox_0" />
  413. <cp:columnHeader width="20"/>
  414. <cp:columnHeader width="100%">
  415. <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/><xsl:text>&#160;</xsl:text><xts:string id="IDS_MYSUB_RPT_NAME"/><xsl:text/>
  416. </cp:columnHeader>
  417. <cp:columnHeader width="120">
  418. <xsl:text/><xts:string id="IDS_RT_HELP_DESC"/><xsl:text/>
  419. </cp:columnHeader>
  420. <cp:columnHeader width="120">
  421. <xsl:text/><xts:string id="IDS_PERS_TAB_PERSONAL_TYPE_HEADER"/><xsl:text/>
  422. </cp:columnHeader>
  423. </cp:tableHeader>
  424. <cp:tableContent>
  425. <cp:common-render-variables>
  426. <pm:permissions/>
  427. <mf:common-entry-varaibles/>
  428. </cp:common-render-variables>
  429. <cp:columnContent>
  430. <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>
  431. <input type="checkbox" name="checkbox_{position()}_{./cm:objectClass}" id="checkbox_{position()}_{./cm:objectClass}" aria-label="{$checkboxLabel}">
  432. <xsl:attribute name="value"><xsl:value-of select="string(concat('storeID(&quot;', normalize-space(./cm:storeID), '&quot;)'))"/></xsl:attribute>
  433. <xsl:if test="key('env-param',concat('checkbox_' , position()))">
  434. <xsl:attribute name="checked">checked</xsl:attribute>
  435. </xsl:if>
  436. </input>
  437. </cp:columnContent>
  438. <cp:columnContent>
  439. <xsl:call-template name="gen-icon">
  440. <xsl:with-param name="class" select="$class"/>
  441. <xsl:with-param name="canRead" select="$canRead"/>
  442. <xsl:with-param name="canWrite" select="$canWrite"/>
  443. <xsl:with-param name="canExecute" select="$canExecute"/>
  444. <xsl:with-param name="canTraverse" select="$canTraverse"/>
  445. <xsl:with-param name="isDangling" select="$isDangling"/>
  446. <xsl:with-param name="output_format" select="$output_format"/>
  447. <xsl:with-param name="hiddenObject" select="$hiddenObject"/>
  448. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  449. </xsl:call-template>
  450. </cp:columnContent>
  451. <cp:columnContent>
  452. <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
  453. <xsl:attribute name="alt">
  454. <xsl:variable name="object-start-at-path">
  455. <xsl:if test="starts-with(cm:searchPath, '~') or starts-with(cm:searchPath,key('session-param', 'e_hp'))">
  456. <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
  457. </xsl:if>
  458. <xsl:if test="starts-with(cm:searchPath,'/content')">
  459. <xsl:value-of select="$defaultContentRoot"/>
  460. </xsl:if>
  461. </xsl:variable>
  462. <cf:do-the-path-link>
  463. <cf:param name="familytree">cm:ancestors</cf:param>
  464. <cf:param name="familymember">cm:defaultName</cf:param>
  465. <cf:param name="home"><xsl:value-of select="$object-start-at-path"/></cf:param>
  466. </cf:do-the-path-link>
  467. </xsl:attribute>
  468. </img><xsl:text>&#160;</xsl:text><xsl:value-of select="cm:defaultName"/><xsl:text/>
  469. </cp:columnContent>
  470. <cp:columnContent>
  471. <xts:string id="IDS_MYSUB_DESC_TEXT"/>
  472. </cp:columnContent>
  473. <cp:columnContent>
  474. <xts:string id="IDS_MYSUB_TYPE_TEXT"/>
  475. </cp:columnContent>
  476. </cp:tableContent>
  477. </cf:param>
  478. </cf:main-pager-section>
  479. </xsl:otherwise>
  480. </xsl:choose>
  481. </xsl:template>
  482. <xsl:template name="render-search">
  483. <cf:main-pager-section width="100%" virtualPage="true" name="search" noEntriesMsgID="IDS_NO_ITEMS_FOUND">
  484. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  485. <cf:param name="item-path">$rule-path</cf:param>
  486. <cf:param name="lines-per-page">
  487. <xsl:value-of select="key('session-param', 'linesPerPage')"/>
  488. </cf:param>
  489. <cf:param name="rows">
  490. <cp:tableHeader>
  491. <xsl:if test = "not(@noSelection)">
  492. <cp:columnHeader width="16" toggleName="checkbox_" noLabel="true" id="checkbox_0"/>
  493. </xsl:if>
  494. <cp:columnHeader width="20"/>
  495. <cp:columnHeader width="100%">
  496. <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/><xsl:text>&#160;</xsl:text>
  497. <xsl:text/><xts:string id="IDS_NAME"/><xsl:text/>
  498. </cp:columnHeader>
  499. <cp:columnHeader width="150">
  500. <xsl:text/><xts:string id="IDS_HEADING_ACTIONS"/><xsl:text/>
  501. </cp:columnHeader>
  502. </cp:tableHeader>
  503. <cp:tableContent>
  504. <cp:common-render-variables>
  505. <pm:permissions/>
  506. <mf:common-entry-varaibles/>
  507. </cp:common-render-variables>
  508. <xsl:if test = "not(@noSelection)">
  509. <cp:columnContent valign="top">
  510. <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>
  511. <input type="checkbox" name="checkbox_{position()}" aria-label="{$checkboxLabel}">
  512. <xsl:attribute name="value"><xsl:value-of select="concat('storeID(&quot;', normalize-space(./cm:storeID), '&quot;)')"/></xsl:attribute>
  513. <xsl:if test="key('env-param',concat('checkbox_' , position()))">
  514. <xsl:attribute name="checked">checked</xsl:attribute>
  515. </xsl:if>
  516. </input>
  517. </cp:columnContent>
  518. </xsl:if>
  519. <cp:columnContent valign="top" style="padding-top:6px;">
  520. <xsl:call-template name="gen-icon">
  521. <xsl:with-param name="class" select="$class"/>
  522. <xsl:with-param name="canRead" select="$canRead"/>
  523. <xsl:with-param name="canWrite" select="$canWrite"/>
  524. <xsl:with-param name="canExecute" select="$canExecute"/>
  525. <xsl:with-param name="canTraverse" select="$canTraverse"/>
  526. <xsl:with-param name="isDangling" select="$isDangling"/>
  527. <xsl:with-param name="output_format" select="$output_format"/>
  528. <xsl:with-param name="hiddenObject" select="$hiddenObject"/>
  529. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  530. </xsl:call-template>
  531. </cp:columnContent>
  532. <cp:columnContent valign="top">
  533. <div>
  534. <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif" style="margin-right:4px;">
  535. <xsl:attribute name="alt">
  536. <cf:do-the-path-link>
  537. <cf:param name="familytree">cm:ancestors</cf:param>
  538. <cf:param name="familymember">cm:defaultName</cf:param>
  539. <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
  540. <cf:param name="onlyAncestors">true</cf:param>
  541. </cf:do-the-path-link>
  542. </xsl:attribute>
  543. </img>
  544. <mf:entry-name/>
  545. </div>
  546. <div style="padding-left:24px; padding-top:2px;padding-bottom:2px;">
  547. <xsl:text/><xts:string id="IDS_SEARCH_LAST_MODIFIED_TEXT"/><xsl:text/>
  548. <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  549. </div>
  550. </cp:columnContent>
  551. <cp:columnContent valign="top">
  552. <nobr>
  553. <xsl:call-template name="action-properties">
  554. <xsl:with-param name="supportScheduleAction" select="true()"/>
  555. <xsl:with-param name="canRead" select="$canRead"/>
  556. <xsl:with-param name="canWrite" select="$canWrite"/>
  557. <xsl:with-param name="canExecute" select="$canExecute"/>
  558. <xsl:with-param name="canTraverse" select="$canTraverse"/>
  559. <xsl:with-param name="class" select="$class"/>
  560. <xsl:with-param name="output_format" select="$output_format"/>
  561. <xsl:with-param name="isDangling" select="$isDangling"/>
  562. <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  563. </xsl:call-template>
  564. </nobr>
  565. </cp:columnContent>
  566. </cp:tableContent>
  567. </cf:param>
  568. </cf:main-pager-section>
  569. </xsl:template>
  570. <xsl:template name="search-panel">
  571. <mt:search>
  572. <mt:scopes>
  573. <mt:scope>fb</mt:scope>
  574. <mt:scope>fo</mt:scope>
  575. <mt:scope>s</mt:scope>
  576. </mt:scopes>
  577. <mt:close-params>
  578. <param>backURL</param>
  579. <param>m_subfldr</param>
  580. <param>m_section</param>
  581. </mt:close-params>
  582. <mt:stypes>
  583. <mt:stype name="subscriptionFolder"><xts:string id="IDS_OBJ_SUBSCRIPTION_FOLDER"/></mt:stype>
  584. <mt:stype name="reportDataServiceAgentDefinition"><xts:string id="IDS_OBJ_SUBSCRIPTION"/></mt:stype>
  585. </mt:stypes>
  586. </mt:search>
  587. </xsl:template>
  588. <cp:tabControl/>
  589. </xsl:stylesheet>