search-frame.xts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <xts:block id="getInfo" type="exec" mode="interpret" mandatory="false" processor="XSLT">
  14. <xsl:stylesheet version="1.0"
  15. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  16. xmlns:xts="http://developer.cognos.com/schemas/xts/">
  17. <xsl:output method="xml" encoding="UTF-8" version="1.0" indent="no"/>
  18. <xsl:template match="/root">
  19. <xts:sequence>
  20. <xts:append>
  21. <mvcSettings>
  22. <xts:function name="getConfiguration">
  23. <xts:param name="MVC_gateway"/> <!-- N gateway -->
  24. <xts:param name="MVC_domain"/> <!-- MVC domain -->
  25. </xts:function>
  26. </mvcSettings>
  27. </xts:append>
  28. </xts:sequence>
  29. </xsl:template>
  30. </xsl:stylesheet>
  31. </xts:block>
  32. <xts:block id="response" mode="output" processor="XSLT" type="exec"
  33. dependency="getInfo" mimeType="text/html" condition=".[true()]" mandatory="false">
  34. <xts:logicsheet path="portal/mvc/remote/frag-handler.xsl"/>
  35. <xts:logicsheet path="logicsheets/portal.xsl"/>
  36. <xts:logicsheet path="logicsheets/permissions.xsl"/>
  37. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  38. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  39. <xts:logicsheet path="logicsheets/validation.xslt"/>
  40. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  41. <xsl:stylesheet version="1.0"
  42. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  43. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  44. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  45. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  46. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  47. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  48. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  49. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  50. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  51. xmlns:cps="http://developer.cognos.com/schemas/cps/asm/objects/1/"
  52. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  53. xmlns:mvc="http://developer.cognos.com/schemas/xts/mvc"
  54. exclude-result-prefixes="xsl cps cm pf pm mt mf xts xtsext bus xts SOAP-ENV mvc">
  55. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  56. <!-- Global vars -->
  57. <!-- ================================================= -->
  58. <mf:variables stateParams="" mode="main"/>
  59. <pf:variables/>
  60. <pf:utilities/>
  61. <mf:main-variables/>
  62. <xsl:variable name="cmd-form" select="'cform'"/>
  63. <xsl:template match="/root">
  64. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
  65. <html>
  66. <meta http-equiv="Cache-Control" content="no-cache"/>
  67. <head>
  68. <pf:meta expires="false"/>
  69. <mt:stylesheet/>
  70. <mf:head/>
  71. <mvc:include-fragment-controller/>
  72. </head>
  73. <table width="100%" cellspacing="0" cellpadding="0" border="0">
  74. <tr>
  75. <td>
  76. <mvc:add-fragment-content-div id="$fragment-id"/>
  77. <xsl:call-template name="mvcSearchRemoteContent"/>
  78. </td>
  79. </tr>
  80. </table>
  81. </html>
  82. </xsl:template>
  83. <mvc:fragment-vars/>
  84. <xsl:template name="mvcSearchRemoteContent">
  85. <mvc:add-fragment name="'searchFragment'" id="$fragment-id" path="'/fragmentproducer/mvc/search'"/>
  86. <script>
  87. searchFragment.addEventListener("fragment.search.navigateTo",
  88. function(evt) {
  89. var id = evt.payload["folder-id"];
  90. var context = evt.payload["context"];
  91. parent.mvcNavigateTo(id);
  92. }
  93. );
  94. </script>
  95. </xsl:template>
  96. </xsl:stylesheet>
  97. </xts:block>
  98. </xts:morphlet>