general.xts 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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, 2013
  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" includeConfig="true">
  13. <!-- Navigation control -->
  14. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  15. <!--
  16. ================================================================================
  17. Content request to get basic preferences
  18. ================================================================================
  19. -->
  20. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init">
  21. <xts:logicsheet path="portal/preferences/common/request/request.xslt"/>
  22. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  23. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  24. <xsl:stylesheet version="1.0"
  25. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  26. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  27. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  28. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  29. xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
  30. xmlns:xts="http://developer.cognos.com/schemas/xts/">
  31. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  32. <xsl:template match="/root">
  33. <rdr:Requests>
  34. <rdr:Request type="preferences" mode="preferences">
  35. <rdr:searchPath>~</rdr:searchPath>
  36. </rdr:Request>
  37. <rdr:Request type="skins" mode="preferences">
  38. <rdr:searchPath>/portal/*[@objectClass='portalSkinFolder']/*[@objectClass='portalSkin' and permission('execute')]</rdr:searchPath>
  39. </rdr:Request>
  40. </rdr:Requests>
  41. </xsl:template>
  42. </xsl:stylesheet>
  43. </xts:block>
  44. <xts:block id="resolveSkinPath" processor="XSLT" type="exec" dependency="getContent">
  45. <xts:logicsheet path="portal/preferences/common/request/request.xslt"/>
  46. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  47. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  48. <xsl:stylesheet version="1.0"
  49. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  50. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  51. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  52. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  53. xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
  54. xmlns:xts="http://developer.cognos.com/schemas/xts/">
  55. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  56. <xsl:template match="/root">
  57. <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/cm:account"/>
  58. <xsl:if test="string($the-object/options/value/item[name = 'skin']/value) != ''">
  59. <rdr:resolveSkinPath>
  60. <rdr:searchPath><xsl:value-of select="$the-object/options/value/item[name = 'skin']/value"/></rdr:searchPath>
  61. </rdr:resolveSkinPath>
  62. </xsl:if>
  63. </xsl:template>
  64. </xsl:stylesheet>
  65. </xts:block>
  66. <!-- Response -->
  67. <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getContent resolveSkinPath" >
  68. <xts:logicsheet path="portal/preferences/common/response/preferences.xslt"/>
  69. <xts:logicsheet path="logicsheets/portal.xsl"/>
  70. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  71. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  72. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  73. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  74. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  75. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  76. <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
  77. <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  78. <xsl:stylesheet version="1.0"
  79. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  80. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  81. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  82. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  83. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  84. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  85. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  86. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  87. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  88. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  89. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  90. xmlns:out="http://www.w3.org/1999/XSL/Transform"
  91. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  92. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  93. xmlns:x="x"
  94. xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
  95. exclude-result-prefixes="rdb xsl out cm lyt pf df dp dt cp dc cf utml x xts xtsext">
  96. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  97. <!-- morphlet -->
  98. <xsl:variable name="mname" select="'preferences/general.xts'"/>
  99. <!-- Global vars -->
  100. <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/cm:account"/>
  101. <xsl:variable name="skin-objects" select="/root/cm:queryResponse/cm:queryReply[2]"/>
  102. <xsl:variable name="resolved-skin-object" select="/root/resolvedSkinPath/cm:queryResponse[1]"/>
  103. <xsl:variable name="XLSenabled" select="xtsext:cafaction('get_configsignedreporturls','')!='true'"/>
  104. <xsl:variable name="isNamedAccountReadOnly" select="(not(contains($the-object/cm:permissions,'write')) and ($is-named='1'))"/>
  105. <pf:modalVariables/>
  106. <!-- start the output -->
  107. <xsl:template match="/root">
  108. <xsl:variable name="browserTitle">
  109. <xts:string id="IDS_PREFERENCES"/>
  110. </xsl:variable>
  111. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  112. <dp:meta>
  113. <pf:meta/>
  114. </dp:meta>
  115. <dp:script>
  116. <pf:help context="HID_PERSONALIZE"/>
  117. </dp:script>
  118. <utml:form name="pform" method="post" action="{$gateway}">
  119. <utml:read-only><xsl:value-of select="$isNamedAccountReadOnly"/></utml:read-only>
  120. <dp:header div="div">
  121. <dp:title><xsl:value-of select="$browserTitle"/></dp:title>
  122. </dp:header>
  123. <!-- Tab control -->
  124. <df:personalizeTabs select="general"/>
  125. <!-- Intro text -->
  126. <dp:description dp:kbA11y="true" aria-labelledby="genIntro">
  127. <xts:string id="IDS_PERS_TAB_GENERAL_INTRO"/>
  128. </dp:description>
  129. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="genIntro"><xts:string id="IDS_PREFERENCES"/>&#160;<xts:string id="IDS_PERS_TAB_GENERAL_INTRO"/></span>
  130. <utml:input type="hidden" name="ifrmcmd" value="save" utml:update="false"/>
  131. <utml:input type="hidden" name="m_return" value="" utml:update="false"/>
  132. <!-- Render the body of this tab -->
  133. <rdb:preferences mode="preferences"/>
  134. <!-- Footer -->
  135. <dp:footer div="div">
  136. <xsl:if test="$isNamedAccountReadOnly != 'true'">
  137. <df:button df:id="IDS_OK" utml:validate="true" df:style="submit"/>
  138. </xsl:if>
  139. <xsl:choose>
  140. <xsl:when test="$isModal">
  141. <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:processModalCommand('cancel')"/>
  142. </xsl:when>
  143. <xsl:otherwise>
  144. <df:button df:id="IDS_CANCEL" df:style="back-url"/>
  145. </xsl:otherwise>
  146. </xsl:choose>
  147. </dp:footer>
  148. </utml:form>
  149. </dp:page>
  150. </xsl:template>
  151. <!-- Generic templates -->
  152. <pf:variables/>
  153. <pf:gen-icon/>
  154. </xsl:stylesheet>
  155. </xts:block>
  156. <!-- debug -->
  157. <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  158. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  159. <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">
  160. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  161. <xsl:template match="/">
  162. <dbg:dumpxml select="/root"/>
  163. </xsl:template>
  164. </xsl:stylesheet>
  165. </xts:block>
  166. </xts:morphlet>