search.xts 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cogadmin
  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/" resolverBase="cogadmin" messageBase="messages/cogadminuimsgs.xml">
  13. <xts:block id="frag_init" nodelist="env, credential" type="exec" mode="interpret" processor="XSLT" path="cogadmin/logicsheets/fragment_init.xslt" condition=".[not(/root/env/param[@name='frag-directive']='meta-only')]" mandatory="true"/>
  14. <xts:block id="getContent" dependency="frag_init" nodelist="env, header, session, system, http, configProps" type="exec" mode="interpret" processor="XSLT">
  15. <xts:logicsheet path="logicsheets/tenantlogic.xsl"/>
  16. <xts:logicsheet path="cogadmin/logicsheets/admin.xslt"/>
  17. <xts:logicsheet path="cogadmin/logicsheets/presentation/filters.xslt"/>
  18. <xts:logicsheet path="/cogadmin/logicsheets/buslogic.xslt"/>
  19. <xsl:stylesheet version="1.0"
  20. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  21. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  22. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  23. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  24. xmlns:flt="http://developer.cognos.com/schemas/uic/presentation/filters/"
  25. xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
  26. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  27. exclude-result-prefixes="xsl xts SOAP-ENV bus admui xtsext flt send">
  28. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  29. <!-- common pager variables -->
  30. <admui:pagerVariables pagerName="search"/>
  31. <!-- common variables -->
  32. <admui:variables/>
  33. <xsl:variable name="search_string" select="string(/root/env/param[@name = 'stext'])"/>
  34. <xsl:variable name="search_modified_filter" select="/root/env/param[@name = 'smodified']"/>
  35. <xsl:variable name="search_type_filter" select="/root/env/param[@name = 'stype']"/>
  36. <xsl:variable name="search_method_filter" select="/root/env/param[@name = 'smethod']"/>
  37. <xsl:variable name="sfield" select="string(/root/env/param[@name = 'sfield'])"/>
  38. <xsl:variable name="scope" select="string(/root/env/param[@name = 'sscope'])"/>
  39. <xsl:variable name="type" select="string(/root/env/param[@name = 'type'])"/>
  40. <xsl:variable name="showNotSpecific" select="string(/root/env/param[@name = 'bshowNotSpecific'])"/>
  41. <xsl:variable name="search_from" select="string(/root/env/param[@name = 'search_from'])"/>
  42. <xsl:variable name="search_skip" select="string(/root/env/param[@name = 'search_skip'])"/>
  43. <xsl:variable name="search_to" select="string(/root/env/param[@name = 'search_to'])"/>
  44. <xsl:variable name="sort_column" select="string(/root/env/param[@name = 'sort_column'])"/>
  45. <xsl:variable name="sort_order" select="string(/root/env/param[@name = 'sort_order'])"/>
  46. <xsl:variable name="path">
  47. <xsl:choose>
  48. <xsl:when test="$type = 'printers'"><xsl:value-of select="'path:CAMID(&quot;:&quot;)/*[@objectClass=&quot;printer&quot;]'" /></xsl:when>
  49. <xsl:when test="$type = 'styles'"><xsl:value-of select="'path:/portal/portalSkinFolder/descendant::*[@objectClass=&quot;portalSkin&quot; or @objectClass=&quot;securedFeature&quot;]'"/></xsl:when>
  50. <xsl:when test="$type = 'portlets_import'"><xsl:value-of select="'path:/portal/portalPackage[@defaultName=&quot;connection&quot;]/portletFolder/descendant::*[@objectClass=&quot;portletProducer&quot; or @objectClass=&quot;portlet&quot;]'"/></xsl:when>
  51. <xsl:when test="$type = 'tenants'"><xsl:value-of select="'path:/directory/tenants/*[@objectClass=&quot;tenant&quot;]'" /></xsl:when>
  52. <xsl:when test="$type = 'visualizations'"><xsl:value-of select="'path:/catalog/catalogFolder/*'"/></xsl:when>
  53. </xsl:choose>
  54. </xsl:variable>
  55. <xsl:variable name="typeFilter">
  56. <xsl:choose>
  57. <xsl:when test="$type = 'visualizations' and ($search_type_filter = 'catalogFolder' or $search_type_filter = 'visualization')">
  58. <xsl:text/>[@objectClass=&quot;<xsl:value-of select="$search_type_filter"/>&quot;]<xsl:text/>
  59. </xsl:when>
  60. </xsl:choose>
  61. </xsl:variable>
  62. <xsl:variable name="methodFilter">
  63. <xsl:choose>
  64. <xsl:when test="not($search_string) or $search_string=''"></xsl:when>
  65. <xsl:when test="$sfield = 'n'">
  66. <xsl:choose>
  67. <xsl:when test="$search_method_filter = '3'">[@defaultName = '<xsl:value-of select="$search_string"/>']</xsl:when>
  68. <xsl:when test="$search_method_filter = '2'">[starts-with(@defaultName, '<xsl:value-of select="$search_string"/>')]</xsl:when>
  69. <xsl:otherwise>[contains(@defaultName, '<xsl:value-of select="$search_string"/>')]</xsl:otherwise>
  70. </xsl:choose>
  71. </xsl:when>
  72. <xsl:when test="/root/env/param[@name = 'sfield'] = 'd'">
  73. <xsl:choose>
  74. <xsl:when test="$search_method_filter = '3'">[@defaultDescription = '<xsl:value-of select="$search_string"/>']</xsl:when>
  75. <xsl:when test="$search_method_filter = '2'">[starts-with(@defaultDescription, '<xsl:value-of select="$search_string"/>' )]</xsl:when>
  76. <xsl:otherwise>[contains(@defaultDescription, '<xsl:value-of select="$search_string"/>' )]</xsl:otherwise>
  77. </xsl:choose>
  78. </xsl:when>
  79. <xsl:otherwise>
  80. <xsl:choose>
  81. <xsl:when test="$search_method_filter = '3'">[@defaultDescription = '<xsl:value-of select="$search_string"/>' or @defaultName = '<xsl:value-of select="$search_string"/>']</xsl:when>
  82. <xsl:when test="$search_method_filter = '2'">[starts-with(@defaultDescription, '<xsl:value-of select="$search_string"/>' ) or starts-with(@defaultName, '<xsl:value-of select="$search_string"/>')]</xsl:when>
  83. <xsl:otherwise>[contains(@defaultDescription, '<xsl:value-of select="$search_string"/>' ) or contains(@defaultName, '<xsl:value-of select="$search_string"/>')]</xsl:otherwise>
  84. </xsl:choose>
  85. </xsl:otherwise>
  86. </xsl:choose>
  87. </xsl:variable>
  88. <xsl:variable name="modifiedFilter">
  89. <xsl:if test="$search_modified_filter != 'any' and string($search_modified_filter)!=''">
  90. <xsl:variable name="offsetamt">
  91. <xsl:choose>
  92. <xsl:when test="$search_modified_filter = 't'">0</xsl:when>
  93. <xsl:when test="$search_modified_filter = 'l3d'">-259200</xsl:when>
  94. <xsl:when test="$search_modified_filter = 'lw'">-604800</xsl:when>
  95. <xsl:when test="$search_modified_filter = 'lm'">-2592000</xsl:when>
  96. <xsl:when test="$search_modified_filter = 'l3m'">-7776000</xsl:when>
  97. <xsl:when test="$search_modified_filter = 'l6m'">-15552000</xsl:when>
  98. <xsl:when test="$search_modified_filter = 'ly'">-31536000</xsl:when>
  99. <xsl:when test="$search_modified_filter = 'l3y'">-94608000</xsl:when>
  100. </xsl:choose>
  101. </xsl:variable>
  102. <xsl:variable name="offsetunit">second</xsl:variable>
  103. <xsl:text/>[@modificationTime &gt; '<xsl:value-of select="xtsext:formatDateToUTC(xtsext:getDateTimeOffset(concat(xtsext:substringBeforeLast(xtsext:getCurrentDateTime(/root/user/param[@name='timeZoneID']), 'T'), 'T00:00:00Z'), $offsetamt, $offsetunit), /root/user/param[@name='timeZoneID'])"/>']<xsl:text/>
  104. </xsl:if>
  105. </xsl:variable>
  106. <!-- The NAV requests accept the prefix "path:". When this one is added then we are overriding the path and NAV will just pass it to CM
  107. This allow us to construct our own path with different filter.
  108. The admin mode is more appropriate to be used with schedule and history.
  109. -->
  110. <xsl:variable name="filteredPath">
  111. <xsl:choose>
  112. <xsl:when test="string($scope) = 'p'">
  113. <xsl:value-of select="'systemDefault'"/>
  114. </xsl:when>
  115. <xsl:when test="string($scope) = 'm'">
  116. <xsl:value-of select="'userDefault'"/>
  117. </xsl:when>
  118. <xsl:when test="string($scope) = 'fo' or string($scope) = 'fb'">
  119. <xsl:value-of select="concat($path, string($methodFilter), string($modifiedFilter), string(/root/system/param[@name='visible']))"/>
  120. </xsl:when>
  121. <xsl:otherwise><xsl:value-of select="concat($path, string($typeFilter), string($methodFilter), string($modifiedFilter), string(/root/system/param[@name='visible']))"/></xsl:otherwise>
  122. </xsl:choose>
  123. </xsl:variable>
  124. <xsl:template match="/">
  125. <xsl:if test="not($showNotSpecific = 'true')"><!-- No need to query if the search criteria is not specific enough -->
  126. <xts:sequence>
  127. <xts:append select="/root">
  128. <response>
  129. <xts:request href="bus://dispatcher" protocol="NAV" responseEnvelope="false" outputHeader="false">
  130. <SOAP-ENV:Envelope xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  131. <SOAP-ENV:Header>
  132. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  133. </SOAP-ENV:Header>
  134. <SOAP-ENV:Body>
  135. <nav:search>
  136. <nav:validateTag fault="true"/>
  137. <!-- Fields -->
  138. <nav:fields>
  139. <xsl:choose>
  140. <xsl:when test="$sfield = 'n'">
  141. <xsl:value-of select="'nf'"/>
  142. </xsl:when>
  143. <xsl:when test="$sfield = 'd'">
  144. <xsl:value-of select="'df'"/>
  145. </xsl:when>
  146. <xsl:when test="$sfield = 'nd'">
  147. <xsl:value-of select="'ndf'"/>
  148. </xsl:when>
  149. </xsl:choose>
  150. </nav:fields>
  151. <!-- Method -->
  152. <nav:match>
  153. <xsl:choose>
  154. <xsl:when test="$search_method_filter = '1'">
  155. <xsl:value-of select="'contains'"/>
  156. </xsl:when>
  157. <xsl:when test="$search_method_filter = '2'">
  158. <xsl:value-of select="'starts'"/>
  159. </xsl:when>
  160. <xsl:when test="$search_method_filter = '3'">
  161. <xsl:value-of select="'exact'"/>
  162. </xsl:when>
  163. <xsl:otherwise>
  164. <xsl:value-of select="'contains'"/>
  165. </xsl:otherwise>
  166. </xsl:choose>
  167. </nav:match>
  168. <!-- Search text -->
  169. <nav:string><xsl:value-of select="$search_string"/></nav:string>
  170. <!-- Modified -->
  171. <xsl:if test="$search_modified_filter != 'any'">
  172. <nav:itemModified>
  173. <xsl:choose>
  174. <xsl:when test="$search_modified_filter = 't'">0</xsl:when>
  175. <xsl:when test="$search_modified_filter = 'l3d'">-259200</xsl:when>
  176. <xsl:when test="$search_modified_filter = 'lw'">-604800</xsl:when>
  177. <xsl:when test="$search_modified_filter = 'lm'">-2592000</xsl:when>
  178. <xsl:when test="$search_modified_filter = 'l3m'">-7776000</xsl:when>
  179. <xsl:when test="$search_modified_filter = 'l6m'">-15552000</xsl:when>
  180. <xsl:when test="$search_modified_filter = 'ly'">-31536000</xsl:when>
  181. <xsl:when test="$search_modified_filter = 'l3y'">-94608000</xsl:when>
  182. </xsl:choose>
  183. </nav:itemModified>
  184. </xsl:if>
  185. <!-- Scope -->
  186. <nav:scope>
  187. <xsl:value-of select="$filteredPath"/>
  188. </nav:scope>
  189. <nav:recursive>
  190. <xsl:choose>
  191. <xsl:when test="string($scope) = 'fo'">
  192. <xsl:value-of select="'false'"/>
  193. </xsl:when>
  194. <xsl:otherwise>
  195. <xsl:value-of select="'false'"/> <!-- original value: true -->
  196. </xsl:otherwise>
  197. </xsl:choose>
  198. </nav:recursive>
  199. <nav:property name="name"/>
  200. <nav:property name="tenantID"/>
  201. <nav:property name="permissions"/>
  202. <nav:property name="lastModifiedDate"/>
  203. <nav:property name="searchPath"/>
  204. <nav:property name="imgURL"/>
  205. <nav:property name="fullName"/>
  206. <nav:property name="documentType"/>
  207. <nav:property name="userName"/>
  208. <nav:property name="hasChildren"/>
  209. <nav:property name="position"/>
  210. <nav:property name="connectionString"/>
  211. <nav:property name="screenTip"/>
  212. <nav:property name="internalId"/>
  213. <nav:property name="type"/>
  214. <nav:property name="icons"/>
  215. <nav:property name="tenantID"/>
  216. <!-- nav properties -->
  217. <nav:param name="backUrl">false</nav:param>
  218. <nav:param name="urlFlags">h1cu</nav:param>
  219. <nav:param name="newSearch">false</nav:param>
  220. <xsl:choose>
  221. <xsl:when test="string($scope) = 'm' or string($scope) = 'p'">
  222. <nav:param name="mode">admin</nav:param>
  223. </xsl:when>
  224. </xsl:choose>
  225. <nav:maxObjects><xsl:value-of select="$maxObjects"/></nav:maxObjects>
  226. <nav:skipObjects><xsl:value-of select="$skipObjects"/></nav:skipObjects>
  227. <nav:sort>
  228. <xsl:attribute name="order">
  229. <xsl:choose>
  230. <xsl:when test="key('env-param', 'sort_order')='ascending'">ascending</xsl:when>
  231. <xsl:otherwise>descending</xsl:otherwise>
  232. </xsl:choose>
  233. </xsl:attribute>
  234. <xsl:choose>
  235. <xsl:when test="key('env-param', 'sort_column') != ''">
  236. <xsl:value-of select="key('env-param', 'sort_column')"/>
  237. </xsl:when>
  238. <xsl:otherwise>
  239. <xsl:text>name</xsl:text>
  240. </xsl:otherwise>
  241. </xsl:choose>
  242. </nav:sort>
  243. <!-- common nav params -->
  244. <admui:commonNavParams/>
  245. </nav:search>
  246. </SOAP-ENV:Body>
  247. </SOAP-ENV:Envelope>
  248. </xts:request>
  249. </response>
  250. </xts:append>
  251. </xts:sequence>
  252. </xsl:if>
  253. </xsl:template>
  254. </xsl:stylesheet>
  255. </xts:block>
  256. <!-- Merge the tenantNames into the response -->
  257. <xts:block processor="XSLT" type="exec" mandatory="false"
  258. path="/portal/tenancy/mergeTenantNames.xslt"
  259. id="mergeTenantNames"
  260. dependency="getContent"
  261. condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
  262. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  263. </xts:block>
  264. <xts:block id="getMeta" type="exec" mode="interpret" nodelist="env" processor="XSLT">
  265. <xsl:stylesheet version="1.0"
  266. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  267. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  268. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  269. xmlns:val="http://developer.cognos.com/schemas/validator/1/"
  270. exclude-result-prefixes="xsl xts xos xtsext val">
  271. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  272. <xsl:template match="/">
  273. <xts:sequence>
  274. <xts:append select="/root/output">
  275. <xos:part>
  276. <xos:entityHeader>
  277. <xos:param name="Content-Type">text/xml; charset=utf-8</xos:param>
  278. </xos:entityHeader>
  279. <xos:entityBody>
  280. <fragment>
  281. <libraries>
  282. <library type="text/javascript" href="$WEB$/dojo16/dojo/dojo.js"/>
  283. <library type="text/javascript" href="$WEB$/ps/cogadmin/js/com/ibm/cognos/admin/dojoInit.js"/>
  284. <library type="text/javascript" href="$WEB$/ps/cogadmin/js/com/ibm/cognos/admin/xts/search.js"/>
  285. </libraries>
  286. <meta/>
  287. <info>
  288. <title>
  289. <xts:string id="IDS_ADM_SEARCH"/>
  290. </title>
  291. </info>
  292. <state>
  293. <xsl:variable name="state">
  294. <xsl:text>&lt;param name="bshowSearchCriteria"&gt;</xsl:text>
  295. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='bshowSearchCriteria']))"/>
  296. <xsl:text>&lt;/param&gt;</xsl:text>
  297. <xsl:text>&lt;param name="sscope"&gt;</xsl:text>
  298. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='sscope']))"/>
  299. <xsl:text>&lt;/param&gt;</xsl:text>
  300. <xsl:text>&lt;param name="smodified"&gt;</xsl:text>
  301. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='smodified']))"/>
  302. <xsl:text>&lt;/param&gt;</xsl:text>
  303. <xsl:text>&lt;param name="stype"&gt;</xsl:text>
  304. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='stype']))"/>
  305. <xsl:text>&lt;/param&gt;</xsl:text>
  306. <xsl:text>&lt;param name="smethod"&gt;</xsl:text>
  307. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='smethod']))"/>
  308. <xsl:text>&lt;/param&gt;</xsl:text>
  309. <xsl:text>&lt;param name="sfield"&gt;</xsl:text>
  310. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='sfield']))"/>
  311. <xsl:text>&lt;/param&gt;</xsl:text>
  312. <xsl:text>&lt;param name="stext"&gt;</xsl:text>
  313. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='stext']))"/>
  314. <xsl:text>&lt;/param&gt;</xsl:text>
  315. <xsl:text>&lt;param name="bshowNotSpecific"&gt;</xsl:text>
  316. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='bshowNotSpecific']))"/>
  317. <xsl:text>&lt;/param&gt;</xsl:text>
  318. <xsl:text>&lt;param name="search_from"&gt;</xsl:text>
  319. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='search_from']))"/>
  320. <xsl:text>&lt;/param&gt;</xsl:text>
  321. <xsl:text>&lt;param name="search_skip"&gt;</xsl:text>
  322. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='search_skip']))"/>
  323. <xsl:text>&lt;/param&gt;</xsl:text>
  324. <xsl:text>&lt;param name="search_to"&gt;</xsl:text>
  325. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='search_to']))"/>
  326. <xsl:text>&lt;/param&gt;</xsl:text>
  327. <xsl:text>&lt;param name="sort_column"&gt;</xsl:text>
  328. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='sort_column']))"/>
  329. <xsl:text>&lt;/param&gt;</xsl:text>
  330. <xsl:text>&lt;param name="sort_order"&gt;</xsl:text>
  331. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='sort_order']))"/>
  332. <xsl:text>&lt;/param&gt;</xsl:text>
  333. </xsl:variable>
  334. <xsl:value-of select="xtsext:base64encode($state,true())"/>
  335. </state>
  336. </fragment>
  337. </xos:entityBody>
  338. </xos:part>
  339. </xts:append>
  340. </xts:sequence>
  341. </xsl:template>
  342. </xsl:stylesheet>
  343. </xts:block>
  344. <xts:block id="renderMarkup" dependency="mergeTenantNames frag_init getMeta" nodelist="env, user, system, state" type="exec" mode="interpret" processor="XSLT">
  345. <xts:logicsheet path="cogadmin/logicsheets/admin.xslt"/>
  346. <xsl:stylesheet version="1.0"
  347. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  348. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  349. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  350. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  351. xmlns:nemo="http://developer.cognos.com/nemo"
  352. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  353. xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
  354. xmlns:fragment="urn:cognos:fragments:validator"
  355. xmlns:fragment-cogadmin="urn:cognos:fragments:validator:cogadmin"
  356. exclude-result-prefixes="xsl nemo xts SOAP-ENV xos bus admui">
  357. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  358. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  359. <xsl:template match="/">
  360. <xts:sequence>
  361. <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
  362. <markup>
  363. <mimeType>text/html</mimeType>
  364. <markupXml>
  365. <xts:transform src="/cogadmin/transforms/presentation/renderFragment.xslt" processor="XSLT">
  366. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  367. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  368. <root>
  369. <xts:transform src="/cogadmin/transforms/gen-ui-markup/search.xslt" processor="XSLT">
  370. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  371. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
  372. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/pager.xslt</xts:param>
  373. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  374. <root>
  375. <xts:queryNode select="/root/*[local-name()='queryResponse'] | /root/response/* | /root/scheduledBy | /root/user | /root/metadata | /root/system | /root/session | /root/env"/>
  376. </root>
  377. </xts:transform>
  378. <xts:queryNode select="/root/system | /root/session | /root/user"/>
  379. <objectType><xsl:value-of select="string(/root/env/param[@name = 'type'])" /></objectType>
  380. <newSearch><xsl:value-of select="string(/root/env/param[@name = 'newSearch'])" /></newSearch>
  381. </root>
  382. </xts:transform>
  383. </markupXml>
  384. </markup>
  385. </xts:append>
  386. </xts:sequence>
  387. </xsl:template>
  388. </xsl:stylesheet>
  389. </xts:block>
  390. </xts:morphlet>