new_general.xts 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736
  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, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" resolverBase="prompting">
  9. <!--
  10. This morphlet (new_general.xts) is used when creating one of following:
  11. shortcut
  12. folder
  13. namespaceFolder
  14. configurationFolder
  15. portletFolder
  16. reportView
  17. URL
  18. dataSource
  19. dataSourceConnection
  20. contact
  21. distributionList
  22. role
  23. group
  24. dataSourceSignon
  25. jobDefinition
  26. printer
  27. importDeployment
  28. exportDeployment
  29. pageDefinition
  30. archiveLocation
  31. tenant
  32. The morphlet consists of the following blocks:
  33. formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
  34. getRootNames - build to /root/cmRoots structure and the /root/session/param with name attributes e_proot (public), e_mroot (private) and e_hp (home page).
  35. getRootMap - build the /root/CMRootMap/class structure with name and root attributes.
  36. readDeploymentArchive - build the /root/archiveOptions structure.
  37. processDeploymentArchive - define variables and update /root/env/param entries with name attributes m_p_defaultName and m_p_defaultDescription.
  38. getContent - retrieve CM Information for this page.
  39. format - render the new folder wizard page to create object in location specified by m_path.
  40. -->
  41. <!--
  42. ===============================================================================================
  43. formlogic_init - standard form logic initialization
  44. ===============================================================================================
  45. -->
  46. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  47. <!--
  48. ===============================================================================================
  49. get_system_root - get system root from Configuration
  50. ===============================================================================================
  51. -->
  52. <xts:block id="get_system_root" type="exec" processor="XSLT" mode="interpret" condition=".[/root/env/param[@name='m_new_class']='archiveLocation' or /root/env/param[@name='m_new_class']='URL']" mandatory="false">
  53. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  54. <xsl:template match="/">
  55. <!-- get file system root from the Configuration -->
  56. <xts:sequence>
  57. <xts:append>
  58. <xts:function name="getConfiguration">
  59. <xts:param name="archiveLocationFileSchemeRoot"/>
  60. <xts:param name="CAF"/>
  61. </xts:function>
  62. </xts:append>
  63. </xts:sequence>
  64. </xsl:template>
  65. </xsl:stylesheet>
  66. </xts:block>
  67. <!-- Reads session-sensitive info from CM -->
  68. <xts:block
  69. processor="XSLT"
  70. type="exec"
  71. mandatory="false"
  72. id="refreshSession"
  73. path="portal/cc/read_session.xml"
  74. condition=".[
  75. string(/root/cookies/cookie[@name = 'cc_session']) = '']">
  76. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  77. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  78. </xts:block>
  79. <!-- Update the <session> element for this request. -->
  80. <xts:block
  81. id="buildSession"
  82. path="portal/session.xml"
  83. dependency="refreshSession"
  84. processor="XSLT"
  85. type="exec"
  86. condition=".[
  87. /root/newSession
  88. or /root/env/param[@name='ui']
  89. or /root/env/param[@name='d']
  90. or /root/env/param[starts-with(@name,'m_s_')]
  91. or /root/env/param[@name = 'resetSort'] ]"
  92. mandatory="false"/>
  93. <!-- Save changes to the state info in a cookie -->
  94. <xts:block mode="interpret" processor="XSLT" type="exec"
  95. id="setSession"
  96. path="portal/set_session.xml"
  97. dependency="buildSession"
  98. condition=".[/root/updateSession]"
  99. mandatory="false"/>
  100. <!--
  101. ===============================================================================================
  102. processReponse - Process the response from the callMorphlet block and either displays
  103. the markup or processes the results
  104. ===============================================================================================
  105. -->
  106. <xts:block id="processResponse" path="/portal/addEntries/logicsheets/process_added_entries.xslt" condition=".[/root/env/param[@name='controller_state']!='']" mandatory="false" dependency="formlogic_init get_system_root setSession" processor="XSLT" type="exec">
  107. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  108. <xts:logicsheet path="logicsheets/portal.xsl"/>
  109. </xts:block>
  110. <!-- If the CM roots (personal/public) have not been determined (i.e. exist in the session) then get them. ======================= -->
  111. <xts:block id="getRootNames" path="portal/cmroots.xml" condition=".[not(/root/session/param[@name = 'e_proot'])]" processor="XSLT" type="exec" mandatory="false">
  112. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  113. </xts:block>
  114. <!-- Load default root map for CM objects ==================================== -->
  115. <xts:block id="getRootMap" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml" mandatory="false">
  116. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_roots.xslt"/>
  117. </xts:block>
  118. <!--
  119. ===============================================================================================
  120. read_deployment_archive is executed in import wizard only
  121. ===============================================================================================
  122. -->
  123. <xts:block id="read_deployment_archive" type="exec" mode="interpret" processor="XSLT" path="/portal/read_deployment_archive.xml" condition=".[/root/env/param[@name='m_new_class']='importDeployment']" mandatory="false">
  124. <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
  125. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  126. <xts:logicsheet path="logicsheets/portal.xsl"/>
  127. </xts:block>
  128. <!--
  129. ===============================================================================================
  130. process_deployment_archive is executed in import wizard only
  131. ===============================================================================================
  132. -->
  133. <xts:block id="process_deployment_archive" type="exec" mode="interpret" processor="XSLT" path="/portal/process_deployment_archive.xml" dependency="read_deployment_archive" condition=".[/root/env/param[@name='m_new_class']='importDeployment' and /root/env/param[@name='m_namesSet'] = 'false']" mandatory="false">
  134. <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
  135. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  136. <xts:logicsheet path="logicsheets/portal.xsl"/>
  137. </xts:block>
  138. <!--
  139. ===============================================================================================
  140. Query for the default destination container
  141. ===============================================================================================
  142. -->
  143. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init getRootNames getRootMap processResponse">
  144. <xts:logicsheet path="logicsheets/tenantlogic.xsl"/>
  145. <xts:logicsheet path="logicsheets/portal.xsl"/>
  146. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  147. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  148. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  149. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  150. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  151. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  152. <xsl:key name="session-param" match="/root/session/param" use="@name"/>
  153. <xsl:template match="/">
  154. <xsl:variable name="class" select="/root/env/param[@name='m_new_class']"/>
  155. <xsl:variable name="CMRoot" select="/root/CMRootMap/class[@name=$class]"/>
  156. <xsl:variable name="usePath">
  157. <xsl:choose>
  158. <xsl:when test="not($class='drillPath')">
  159. <xsl:choose>
  160. <xsl:when test="string(/root/env/param[@name='so.searchPath'])!=''"><xsl:value-of select="/root/env/param[@name='so.searchPath']"/></xsl:when>
  161. <xsl:otherwise><xsl:value-of select="string(/root/env/param[@name='m_path'])"/></xsl:otherwise>
  162. </xsl:choose>
  163. </xsl:when>
  164. <xsl:otherwise>
  165. <xsl:value-of select="string(/root/env/param[@name='m_path'])"/>
  166. </xsl:otherwise>
  167. </xsl:choose>
  168. </xsl:variable>
  169. <xsl:variable name="isCMM" select="$class = 'metricsExportTask' and string(/root/env/param[@name='m_p_metadataModelPackage'])!=''"/>
  170. <xsl:variable name="path">
  171. <xsl:choose>
  172. <xsl:when test="starts-with($class,'metrics') and string(/root/env/param[@name='m_p_metadataModelPackage'])!='' and $usePath='/content'">
  173. <xsl:value-of select="/root/env/param[@name='m_p_metadataModelPackage']"/>
  174. </xsl:when>
  175. <xsl:when test="$usePath != '' and (not($CMRoot/@fixedRoot) or $CMRoot/@fixedRoot!='T')">
  176. <xsl:value-of select="$usePath"/>
  177. </xsl:when>
  178. <xsl:otherwise>
  179. <xsl:value-of select="$CMRoot/@root"/>
  180. </xsl:otherwise>
  181. </xsl:choose>
  182. </xsl:variable>
  183. <xts:sequence>
  184. <xts:append>
  185. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  186. <send:request provider="cm">
  187. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  188. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  189. <cm:requests>
  190. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  191. <cm:search>
  192. <xsl:value-of select="$path"/>
  193. </cm:search>
  194. <cm:properties>
  195. <cm:property name="defaultName"/>
  196. <cm:property name="searchPath"/>
  197. <cm:property name="ancestors"/>
  198. <cm:property name="permissions"/>
  199. <cm:property name="storeID"/>
  200. <cm:property name="tenantID"/>
  201. <xsl:if test="$isCMM">
  202. <cm:property name="routingServerGroup"/>
  203. </xsl:if>
  204. </cm:properties>
  205. </cm:query>
  206. <xsl:if test="string($CMRoot/@root) = '/content' and $class != 'drillPath'">
  207. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  208. <cm:search><xsl:value-of select="/root/session/param[@name='e_hp']"/>/folder[permission("write") and permission("traverse")]</cm:search>
  209. <cm:properties>
  210. <cm:property name="defaultName"/>
  211. <cm:property name="permissions"/>
  212. <cm:property name="storeID"/>
  213. </cm:properties>
  214. </cm:query>
  215. </xsl:if>
  216. </cm:requests>
  217. </cm:query>
  218. </xts:transform>
  219. </send:request>
  220. </xts:transform>
  221. <!--
  222. "Enhancement" 543922.1:
  223. Fetch the multi-lingual screentip/description text of source objects when creating references to these objects (e.g. shortcut, reportview, agentDefinitionView or powerPlay8ReportView)
  224. -->
  225. <xsl:if test="$class = 'shortcut' or $class = 'reportView' or $class = 'agentDefinitionView' or $class = 'powerPlay8ReportView'">
  226. <sourceEntry>
  227. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  228. <send:request provider="cm">
  229. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  230. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  231. <cm:requests>
  232. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  233. <cm:search>
  234. <xsl:value-of select="/root/env/param[@name='m_obj']"/>
  235. </cm:search>
  236. <cm:properties>
  237. <cm:property name="name"/>
  238. <cm:property name="description"/>
  239. <cm:property name="screenTip"/>
  240. <xsl:if test="$class = 'reportView' or $class='powerPlay8ReportView'">
  241. <cm:property name="executionFormat"/>
  242. <cm:property name="executionLocale"/>
  243. <cm:property name="options"/>
  244. <cm:property name="parameters"/>
  245. </xsl:if>
  246. </cm:properties>
  247. </cm:query>
  248. </cm:requests>
  249. </cm:query>
  250. </xts:transform>
  251. </send:request>
  252. </xts:transform>
  253. </sourceEntry>
  254. </xsl:if>
  255. </xts:append>
  256. <xts:delete select="/root/env/param[contains(string(@name),'pagerfrom')]"/>
  257. <xts:delete select="/root/env/param[contains(string(@name),'pagerto')]"/>
  258. <xts:delete select="/root/env/param[@name='pageitem']"/>
  259. <xsl:if test="starts-with($class,'metrics') and string(/root/env/param[@name='m_p_metadataModelPackage'])!='' and $usePath='/content'">
  260. <xts:replace select="/root/env/param[@name='m_path']">
  261. <param name="m_path"><xsl:value-of select="/root/env/param[@name='m_p_metadataModelPackage']"/></param>
  262. </xts:replace>
  263. </xsl:if>
  264. <xsl:if test="/root/env/param[@name='contentTaskType'] = 'createContentUtilizationInfo'">
  265. <xts:append select="/root/env">
  266. <param name="cto_utilization_info">true</param>
  267. </xts:append>
  268. </xsl:if>
  269. </xts:sequence>
  270. </xsl:template>
  271. </xsl:stylesheet>
  272. </xts:block>
  273. <!-- Update these environment variables -->
  274. <xts:block
  275. id="updateEnv"
  276. type="exec"
  277. dependency="formlogic_init get_system_root getContent"
  278. mode="interpret"
  279. processor="XSLT"
  280. mandatory="false"
  281. condition=".[/root/env/param[@name='m_new_class'] != 'tenant']">
  282. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  283. <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:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:x="x" exclude-result-prefixes="xsl cm xtsext xts send x">
  284. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  285. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  286. <xsl:key name="session-param" match="/root/session/param" use="@name"/>
  287. <xsl:template match="/">
  288. <xts:sequence>
  289. <xts:delete select="/root/env/param[@name='selectedTenantName']"/>
  290. <xsl:variable name="sessionTenantId" select="key('session-param', 'e_tenantID')"/>
  291. <xsl:variable name="writeTenantId" select="key('session-param', 'e_writeTenantID')"/>
  292. <xsl:variable name="parentTenantId" select="/root/cm:queryResponse[1]//cm:tenantID"/>
  293. <xsl:variable name="newTenantId" select="key('env-param','newTenantID')"/>
  294. <xsl:variable name="previousTenantId">
  295. <xsl:choose>
  296. <xsl:when test="key('env-param','m_p_tenantID')">
  297. <xsl:value-of select="key('env-param','m_p_tenantID')"/>
  298. </xsl:when>
  299. <xsl:otherwise>
  300. <xsl:value-of select="$sessionTenantId"/>
  301. </xsl:otherwise>
  302. </xsl:choose>
  303. </xsl:variable>
  304. <xsl:variable name="m_p_tenantID">
  305. <xsl:choose>
  306. <xsl:when test="$newTenantId">
  307. <xsl:value-of select="$newTenantId"/>
  308. </xsl:when>
  309. <xsl:when test="$parentTenantId and string($parentTenantId)!=''">
  310. <xsl:value-of select="$parentTenantId"/>
  311. </xsl:when>
  312. <xsl:when test="boolean($writeTenantId)">
  313. <xsl:value-of select="$writeTenantId"/>
  314. </xsl:when>
  315. <xsl:otherwise>
  316. <xsl:value-of select="$sessionTenantId"/>
  317. </xsl:otherwise>
  318. </xsl:choose>
  319. </xsl:variable>
  320. <xsl:variable name="tenantChanged" select="key('env-param','m_p_tenantID') and $previousTenantId != $m_p_tenantID"/>
  321. <xsl:variable name="tenantChangedByUser" select="key('env-param','tenantChanged')='true'"/>
  322. <xsl:if test="$tenantChanged and not($tenantChangedByUser)">
  323. <xts:append select="/root">
  324. <tenantChanged/>
  325. </xts:append>
  326. </xsl:if>
  327. <xsl:if test="$tenantChanged or string(key('env-param','tenantChanged'))='true'">
  328. <xts:delete select="/root/env/param[@name='tenantChanged' or @name='newTenantID' or @name='newTenantName' or @name='m_p_tenantID' or @name='changed_m_p_tenantID' or @name='objTenantName']"/>
  329. <xts:append select="/root/env">
  330. <param name="objTenantName"><xsl:value-of select="string(key('env-param','newTenantName'))"/></param>
  331. <param name="changed_m_p_tenantID">1</param>
  332. </xts:append>
  333. </xsl:if>
  334. <xts:delete select="/root/env/param[@name='previousTenantId' or @name='m_p_tenantID']"/>
  335. <xts:append select="/root/env">
  336. <param name="m_p_tenantID"><xsl:value-of select="$m_p_tenantID"/></param>
  337. <param name="previousTenantId"><xsl:value-of select="$previousTenantId"/></param>
  338. </xts:append>
  339. </xts:sequence>
  340. </xsl:template>
  341. </xsl:stylesheet>
  342. </xts:block>
  343. <!--
  344. ===============================================================================================
  345. getObjTenantInfo - TenantID & DefaultName from tenant object.
  346. ===============================================================================================
  347. -->
  348. <xts:block id="getObjTenantInfo" path="/portal/tenants/getObjTenantInfo.xsl" mode="interpret" processor="XSLT" type="exec" mandatory="false" dependency="getContent" condition=".[/root/env/param[@name='m_new_class'] != 'tenant']">
  349. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  350. </xts:block>
  351. <!--
  352. ===============================================================================================
  353. format - render the page
  354. ===============================================================================================
  355. -->
  356. <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="updateEnv getObjTenantInfo process_deployment_archive">
  357. <xts:logicsheet path="logicsheets/tenantlogic.xsl"/>
  358. <xts:logicsheet path="logicsheets/portal.xsl"/>
  359. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  360. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  361. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  362. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  363. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  364. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  365. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  366. <xts:logicsheet path="logicsheets/validation.xslt"/>
  367. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  368. <xsl:stylesheet version="1.0"
  369. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  370. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  371. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  372. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  373. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  374. xmlns:crn="http://developer.cognos.com/crconfig/1/"
  375. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  376. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  377. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  378. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  379. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  380. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  381. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  382. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  383. exclude-result-prefixes="xsl cf cp pf df dp lyt cm cml utml xts xtsext">
  384. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  385. <!-- current file name -->
  386. <xsl:variable name="mname" select="'new_general.xts'"/>
  387. <xsl:variable name="promptLocale" select="$productLocale"/>
  388. <xsl:variable name="promptFormName" select="'pform'"/>
  389. <xsl:variable name="skin" select="key('user-param', 'skin')"/>
  390. <pf:variables/>
  391. <!-- variables for modal dialogs -->
  392. <pf:modalVariables/>
  393. <!-- Prompt Control XSL include -->
  394. <xsl:include href="p_include.xsl"/>
  395. <pf:serialize-xml/>
  396. <!-- start the output -->
  397. <xsl:template match="/root">
  398. <!-- The object type we are about to create -->
  399. <xsl:variable name="new-class" select="key('env-param', 'm_new_class')"/>
  400. <!-- Current destination folder. -->
  401. <xsl:variable name="usePath">
  402. <xsl:choose>
  403. <xsl:when test="not($new-class='drillPath')">
  404. <xsl:choose>
  405. <xsl:when test="string(/root/env/param[@name='so.searchPath'])!=''"><xsl:value-of select="/root/env/param[@name='so.searchPath']"/></xsl:when>
  406. <xsl:otherwise><xsl:value-of select="string(/root/env/param[@name='m_path'])"/></xsl:otherwise>
  407. </xsl:choose>
  408. </xsl:when>
  409. <xsl:otherwise>
  410. <xsl:value-of select="string(/root/env/param[@name='m_path'])"/>
  411. </xsl:otherwise>
  412. </xsl:choose>
  413. </xsl:variable>
  414. <!-- path shortcut -->
  415. <xsl:variable name="destinationFldrRef" select="/root/cm:queryResponse/cm:queryReply[1]/*"/>
  416. <!-- myfolder shortcut -->
  417. <xsl:variable name="myfolderRef" select="/root/cm:queryResponse/cm:queryReply[2]/*"/>
  418. <xsl:variable name="path">
  419. <xsl:choose>
  420. <xsl:when test="$usePath!=''">
  421. <xsl:if test="($new-class != 'URL' and $new-class != 'jobDefinition' and $new-class != 'pagelet' and not(starts-with($new-class,'metrics'))) or $usePath != '/content'">
  422. <xsl:choose>
  423. <xsl:when test="not(starts-with($usePath,'storeID'))">
  424. <xsl:value-of select="$usePath"/>
  425. </xsl:when>
  426. <xsl:otherwise>
  427. <xsl:value-of select="$destinationFldrRef/cm:searchPath"/>
  428. </xsl:otherwise>
  429. </xsl:choose>
  430. </xsl:if>
  431. </xsl:when>
  432. <xsl:otherwise>
  433. <xsl:value-of select="/root/CMRootMap/class[@name=$new-class]/@root"/>
  434. </xsl:otherwise>
  435. </xsl:choose>
  436. </xsl:variable>
  437. <!-- Determine if we can write to the currently selected folder. -->
  438. <xsl:variable name="canWriteDestination" select="contains($destinationFldrRef/cm:permissions, 'write') and contains($destinationFldrRef/cm:permissions, 'traverse')"/>
  439. <!-- Determine if we can write to My folder. -->
  440. <xsl:variable name="canWriteMyFldr" select="contains($myfolderRef/cm:permissions, 'write') and contains($myfolderRef/cm:permissions, 'traverse')"/>
  441. <!-- Determine if path coming in is My Folders -->
  442. <xsl:variable name="myFldrId" select="string($myfolderRef/cm:storeID)"/>
  443. <xsl:variable name="myFldrPath" select="concat('storeID(&quot;' , $myfolderRef/cm:storeID , '&quot;)')"/>
  444. <xsl:variable name="pathId" select="string($destinationFldrRef/cm:storeID)"/>
  445. <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
  446. <xsl:variable name="isPersonalPath" select="$myFldrId = $pathId"/>
  447. <!-- determine if current path is under personal folder -->
  448. <xsl:variable name="underMyFldr" select="boolean($destinationFldrRef/cm:ancestors/*/cm:storeID[ . =$myFldrId])"/>
  449. <xsl:variable name="isAdminPath" select="$destinationFldrRef/cm:objectClass = 'adminFolder'"/>
  450. <!-- If the current path leads to the personal folder space OR the object we are creating does not belong in the main portal content space then do not show the option to place the new entry in "My Folders" -->
  451. <xsl:variable name="showMyFoldersChoice" select="not($isPersonalPath) and not($isAdminPath) and (/root/CMRootMap/class[@name=$new-class]/@root = '/content' and $new-class != 'drillPath') and $canWriteMyFldr"/>
  452. <!-- Determine if we are creating a shortcut at the root of public folders. If so, we will not allow it and force the user to select another destination. -->
  453. <xsl:variable name="isShortcutAtRoot" select="$path = '/content' and $new-class = 'shortcut'"/>
  454. <xsl:variable name="rule" select="$isShortcutAtRoot or ( ($path='/content' or $path='') and ($new-class='jobDefinition' or $new-class='URL' or $new-class='pagelet' or starts-with($new-class,'metrics')))"/>
  455. <!-- get the title -->
  456. <xsl:variable name="wizardTitle">
  457. <xsl:call-template name="generate-title">
  458. <xsl:with-param name="new-class" select="$new-class"/>
  459. </xsl:call-template>
  460. </xsl:variable>
  461. <xsl:variable name="new-general-title">
  462. <xts:string id="IDS_NEW_TITLE_NAME_LOCATION">
  463. <xts:param name="wizardTitle"><xsl:value-of select="$wizardTitle"/></xts:param>
  464. </xts:string>
  465. </xsl:variable>
  466. <xsl:variable name="target-obj">
  467. <xsl:choose>
  468. <xsl:when test="key('env-param','sc_target_obj')"><xsl:value-of select="key('env-param','sc_target_obj')"/></xsl:when>
  469. <xsl:otherwise><xsl:value-of select="key('env-param','m_obj')"/></xsl:otherwise>
  470. </xsl:choose>
  471. </xsl:variable>
  472. <xsl:variable name="target-name">
  473. <xsl:choose>
  474. <xsl:when test="key('env-param','sc_target_name')"><xsl:value-of select="key('env-param','sc_target_name')"/></xsl:when>
  475. <xsl:otherwise><xsl:value-of select="key('env-param','m_name')"/></xsl:otherwise>
  476. </xsl:choose>
  477. </xsl:variable>
  478. <!-- This is the "default" string that we will display in the name field -->
  479. <xsl:variable name="default_new_name">
  480. <xsl:choose>
  481. <xsl:when test="$new-class = 'shortcut'"><xts:string id="IDS_NEW_SHORTCUT_PREFIX"><xts:param name="ObjectClass"><xsl:value-of select="key('env-param', 'm_name')"/></xts:param></xts:string></xsl:when>
  482. <xsl:when test="$new-class = 'reportView'"><xts:string id="IDS_ACT_CUSTOM_OF"><xts:param name="curName"><xsl:value-of select="$target-name"/></xts:param></xts:string>
  483. </xsl:when>
  484. <xsl:when test="$new-class = 'agentDefinitionView'"><xts:string id="IDS_ACT_CUSTOM_AGENT_OF"><xts:param name="curName"><xsl:value-of select="$target-name"/></xts:param></xts:string>
  485. </xsl:when>
  486. <xsl:when test="$new-class = 'powerPlay8ReportView'"><xts:string id="IDS_ACT_CUSTOM_PP8_OF"><xts:param name="curName"><xsl:value-of select="$target-name"/></xts:param></xts:string>
  487. </xsl:when>
  488. <xsl:when test="$new-class = 'dataMovementTaskAlias'"><xts:string id="IDS_ACT_CUSTOM_DMT_OF"><xts:param name="curName"><xsl:value-of select="$target-name"/></xts:param></xts:string>
  489. </xsl:when>
  490. </xsl:choose>
  491. </xsl:variable>
  492. <!--
  493. "Enhancement" 543922.1:
  494. Pre-fill screentip/description text if a matching language is found.
  495. -->
  496. <xsl:variable name="default_description_inputvalue">
  497. <xsl:if test="/root/sourceEntry">
  498. <xsl:value-of select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:description/*[@xml:lang=string($contentLocale)]"/>
  499. </xsl:if>
  500. </xsl:variable>
  501. <xsl:variable name="default_screentip_inputvalue">
  502. <xsl:if test="/root/sourceEntry">
  503. <xsl:value-of select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:screenTip/*[@xml:lang=string($contentLocale)]"/>
  504. </xsl:if>
  505. </xsl:variable>
  506. <xsl:variable name="CMRoot" select="/root/CMRootMap/class[@name=$new-class]"/>
  507. <xsl:variable name="fullTask">
  508. <xsl:value-of select="$new-class"/>.container<xsl:if test="string(/root/env/param[@name='from_tool'])='true' and $new-class='jobDefinition'">.admin</xsl:if><xsl:text/>
  509. </xsl:variable>
  510. <xsl:variable name="the-object" select="/root/cm:queryResponse[1]//*[local-name()='queryReply']/*"/>
  511. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$new-general-title" class="tundra">
  512. <dp:meta>
  513. <pf:meta/> <!-- Standard meta tags -->
  514. </dp:meta>
  515. <dp:script>
  516. <xsl:if test="key('env-param','m_new_class') != 'tenant'">
  517. <tenantSelectionUIDojoInit/>
  518. </xsl:if>
  519. <xsl:choose>
  520. <xsl:when test="$new-class='drillPath'">
  521. <pf:help context="HID_DRILL_THROUGH_ACTIONS"/> <!-- Help system -->
  522. </xsl:when>
  523. <xsl:otherwise>
  524. <pf:help context=""/> <!-- Help system -->
  525. </xsl:otherwise>
  526. </xsl:choose>
  527. <xsl:if test="$new-class = 'pageDefinition'">
  528. <xsl:call-template name="getPromptCommonIncludes"/>
  529. <xsl:call-template name="gettextBoxIncludes">
  530. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  531. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  532. </xsl:call-template>
  533. <dt:FloatTextBoxJavaScript/>
  534. </xsl:if>
  535. <script language="javascript">
  536. <!-- XTS strings used in validation -->
  537. <xsl:variable name="label_name"><xts:string id="IDS_NEW_NAME" encode="javascript"/></xsl:variable>
  538. <xsl:variable name="label_url">
  539. <xsl:choose>
  540. <xsl:when test="$new-class = 'archiveLocation'"><xts:string id="IDS_PROP_FILE_SYSTEM_LOCATION_LABEL" encode="javascript"/></xsl:when>
  541. <xsl:otherwise><xts:string id="IDS_NEW_URL" encode="javascript"/></xsl:otherwise>
  542. </xsl:choose>
  543. </xsl:variable>
  544. <xsl:variable name="label_printerAddress"><xts:string id="IDS_PROP_PRINTER_ADDRESS" encode="javascript"/></xsl:variable>
  545. <xsl:variable name="label_tenantID"><xts:string id="IDS_PROP_TENANTID" encode="javascript"/></xsl:variable>
  546. <xsl:variable name="errmsg">
  547. <xts:string id="IDS_ERR_MANDATORY" encode="javascript">
  548. <xts:param name="field">" + label + "</xts:param>
  549. </xts:string>
  550. </xsl:variable>
  551. var MY_FOLDER_PATH = "<xsl:value-of select="xtsext:javascriptencode(string($myFldrPath))"/>";
  552. var MY_FOLDER_ID = "<xsl:value-of select="xtsext:javascriptencode(string($myFldrId))"/>";
  553. var clickMyFldr = false;
  554. <xsl:if test="$isModal">
  555. <xsl:variable name="returnXML_prefix">
  556. <xsl:text>"&amp;lt;return&amp;gt;&amp;lt;object&amp;gt;" + </xsl:text>
  557. </xsl:variable>
  558. <xsl:variable name="returnXML_suffix">
  559. <xsl:text> + "&amp;lt;/object&amp;gt;&amp;lt;/return&amp;gt;"</xsl:text>
  560. </xsl:variable>
  561. <xsl:variable name="returnXML_baseInfo">
  562. <xsl:text>"&amp;lt;item&amp;gt;&amp;lt;name&amp;gt;defaultName&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;" + encodeValue(document.pform.m_p_defaultName.value) + "&amp;lt;/value&amp;gt;&amp;lt;/item&amp;gt;</xsl:text>
  563. <xsl:text>&amp;lt;item&amp;gt;&amp;lt;name&amp;gt;defaultDescription&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;" + encodeValue(document.pform.m_p_defaultDescription.value) + "&amp;lt;/value&amp;gt;&amp;lt;/item&amp;gt;</xsl:text>
  564. <xsl:text>&amp;lt;item&amp;gt;&amp;lt;name&amp;gt;defaultScreenTip&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;" + encodeValue(document.pform.m_p_defaultScreenTip.value) + "&amp;lt;/value&amp;gt;&amp;lt;/item&amp;gt;</xsl:text>
  565. <xsl:text>&amp;lt;item&amp;gt;&amp;lt;name&amp;gt;searchPath&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;" + encodeValue(document.pform.m_path.value) + "&amp;lt;/value&amp;gt;&amp;lt;/item&amp;gt;"</xsl:text>
  566. </xsl:variable>
  567. function encodeValue(elemValue)
  568. {
  569. var amp_re = /&amp;/g;
  570. var lt_re = /&lt;/g;
  571. var gt_re = /&gt;/g;
  572. var apos_re = /&apos;/g;
  573. // Encode special characters for proper processing.
  574. // ORDER IS IMPORTANT - amp_re must be the first value to replace!
  575. var text = elemValue.replace(amp_re, "&amp;amp;amp;");
  576. text = text.replace(lt_re, "&amp;amp;lt;");
  577. text = text.replace(gt_re, "&amp;amp;gt;");
  578. text = text.replace(apos_re, "&amp;amp;apos;");
  579. return text;
  580. }
  581. function newFolder()
  582. {
  583. var action;
  584. var folderInfo;
  585. }
  586. function processModalCommand(sAction)
  587. {
  588. <!-- Set the right call back target -->
  589. var callBackTarget = <xsl:value-of select="$callBackTargetJSVar"/>;
  590. if( callBackTarget )
  591. {
  592. var folder = new Array();
  593. folder[0] = new newFolder();
  594. if ( sAction == 'ok')
  595. {
  596. if (validate())
  597. {
  598. folder[0].action = sAction;
  599. folder[0].folderInfo =
  600. <xsl:value-of select="$returnXML_prefix"/>
  601. <xsl:value-of select="$returnXML_baseInfo"/>
  602. <xsl:value-of select="$returnXML_suffix"/>;
  603. callBackTarget.<xsl:value-of select="$callBackFunctionName"/>(folder[0].action, folder[0].folderInfo);
  604. }
  605. }
  606. else
  607. {
  608. resetPageState();
  609. folder[0].action = sAction;
  610. folder[0].folderInfo = "";
  611. callBackTarget.<xsl:value-of select="$callBackFunctionName"/>(folder[0].action, folder[0].folderInfo);
  612. }
  613. }
  614. }
  615. </xsl:if>
  616. function init()
  617. {
  618. try {
  619. if (document.pform.m_p_defaultName)
  620. document.pform.m_p_defaultName.focus();
  621. } catch (e) {
  622. //possibly when the control's container is not (yet) visible
  623. }
  624. }
  625. function doBMTCancel()
  626. {
  627. window.external.OnClose(1);
  628. }
  629. <xsl:if test="key('env-param','fromCMM')">
  630. function doCMMCancel()
  631. {
  632. document.cmmform.submit();
  633. }
  634. </xsl:if>
  635. function validateInputField(field, label)
  636. {
  637. field.value = trim(field.value);
  638. if (field.value == '')
  639. {
  640. alert("<xsl:value-of select="normalize-space($errmsg)"/>");
  641. field.focus();
  642. return false;
  643. }
  644. return true;
  645. }
  646. function validate()
  647. {
  648. var f = document.pform;
  649. <!-- Validate the name -->
  650. if ( !validateInputField(f.m_p_defaultName, "<xsl:value-of select="normalize-space($label_name)"/>") )
  651. return false;
  652. <!-- Validate the url if it exists -->
  653. <xsl:if test="$new-class = 'archiveLocation'">
  654. if ( !validateInputField(f.m_p_archiveLocation_uri, "<xsl:value-of select="normalize-space($label_url)"/>") )
  655. return false;
  656. </xsl:if>
  657. <xsl:if test="$new-class = 'URL'">
  658. if ( !validateInputField(f.m_p_uri, "<xsl:value-of select="normalize-space($label_url)"/>") )
  659. return false;
  660. </xsl:if>
  661. <!-- Validate the printer address if it new class is printer -->
  662. <xsl:if test="$new-class = 'printer'">
  663. if ( !validateInputField(f.m_p_printerAddress, "<xsl:value-of select="normalize-space($label_printerAddress)"/>") )
  664. return false;
  665. if (!f.m_p_printerAddress.value.match('^(\s+)?[^&amp;;$*?`^{}|"&lt;>]{1,512}(\s+)?$')) {
  666. alert('<xts:string id="IDS_ERR_NETWORKADDRESS_RESERVED_CHARS" encode="javascript"/>');
  667. return false;
  668. }
  669. </xsl:if>
  670. <!-- Validate the tenantID if new class is tenant -->
  671. <xsl:if test="$new-class = 'tenant'">
  672. if ( !validateInputField(f.m_p_tenantID, "<xsl:value-of select="normalize-space($label_tenantID)"/>") )
  673. return false;
  674. </xsl:if>
  675. <!-- Validate the destination -->
  676. if (!canSave())
  677. {
  678. alert( "<xts:string id="IDS_SAVE_AS_NO_DESTINATION" encode="javascript"/>" );
  679. return false;
  680. }
  681. <!-- Validate the paper size and width -->
  682. <xsl:if test="$new-class = 'pageDefinition'">
  683. var widthDisplayBoxName = getDisplayBoxName(f,f.m_p_width);
  684. var heightDisplayBoxName = getDisplayBoxName(f,f.m_p_height);
  685. <!-- the width and height must be positive integers -->
  686. if (f.m_p_width.value &lt;= 0 || isNaN(f.m_p_width.value) || f.m_p_width.value == '')
  687. {
  688. window.alert("<xts:string id="IDS_ERR_NON_NEGATIVE" encode="javascript"/>");
  689. f.elements[widthDisplayBoxName].focus();
  690. return false;
  691. }
  692. if (f.m_p_height.value &lt;= 0 || isNaN(f.m_p_height.value) || f.m_p_height.value == '')
  693. {
  694. window.alert("<xts:string id="IDS_ERR_NON_NEGATIVE" encode="javascript"/>");
  695. f.elements[heightDisplayBoxName].focus();
  696. return false;
  697. }
  698. </xsl:if>
  699. <xsl:if test="$new-class != 'portalSkin'">
  700. resetPageState();
  701. </xsl:if>
  702. return true;
  703. }
  704. function canSave()
  705. {
  706. var p = document.pform.m_path.value;
  707. var canWrite = <xsl:value-of select="$canWriteDestination"/>;
  708. var canNotSaveObjectInRootFolder = <xsl:value-of select="$rule"/>;
  709. // Cannot save to an empty path
  710. if (p == "")
  711. return false;
  712. // know MyFolders has been clicked and permissions have been checked
  713. else if (p == MY_FOLDER_PATH &amp;&amp; clickMyFldr)
  714. return true;
  715. // No write permission on this folder
  716. else if (!canWrite)
  717. return false;
  718. // Cannot save certain type of objects in root folder
  719. else if (canNotSaveObjectInRootFolder)
  720. return false;
  721. return true;
  722. }
  723. function processBackButton()
  724. {
  725. <xsl:if test="$new-class = 'importDeployment'">
  726. document.pform.m_deploymentWizardPage.value = 'select-archive';
  727. </xsl:if>
  728. }
  729. function processNextButton()
  730. {
  731. <xsl:choose>
  732. <xsl:when test="$new-class = 'metricsExportTask'">
  733. document.pform.b_action.value='mms.run';
  734. </xsl:when>
  735. <xsl:when test="$new-class = 'importDeployment'">
  736. document.pform.m_deploymentWizardPage.value = 'firstOptions';
  737. </xsl:when>
  738. </xsl:choose>
  739. <xsl:if test="$new-class != 'portalSkin'">
  740. resetPageState();
  741. </xsl:if>
  742. }
  743. </script>
  744. <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"></script>
  745. </dp:script>
  746. <utml:form name="pform" id="pform" method="post" action="{$gateway}">
  747. <!--
  748. "Enhancement" 543922.1:
  749. Manually account for multilingual description and screen tip fields.
  750. -->
  751. <utml:exclude-prefix>m_ml_</utml:exclude-prefix>
  752. <utml:exclusion-list>m_p_width m_p_height _FLOATDISPLAY_m_p_width _FLOATDISPLAY_m_p_height</utml:exclusion-list>
  753. <xsl:if test="/root/sourceEntry">
  754. <xsl:for-each select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:description/cm:multilingualString">
  755. <xsl:variable name="langName" select="@xml:lang"/>
  756. <xsl:if test="$langName != $contentLocale">
  757. <input type="hidden">
  758. <xsl:attribute name="name"><xsl:value-of select="concat('m_ml_description_',string($langName))"/></xsl:attribute>
  759. <xsl:attribute name="value">
  760. <xsl:choose>
  761. <xsl:when test="key('env-param', concat('m_ml_description_',string($langName)))">
  762. <xsl:value-of select="key('env-param', concat('m_ml_description_',string($langName)))"/>
  763. </xsl:when>
  764. <xsl:otherwise>
  765. <xsl:value-of select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:description/*[@xml:lang=string($langName)]"/>
  766. </xsl:otherwise>
  767. </xsl:choose>
  768. </xsl:attribute>
  769. </input>
  770. </xsl:if>
  771. </xsl:for-each>
  772. <!-- fix for bug#579839.1 copy the parameter and the options of a reportView -->
  773. <xsl:if test="$new-class = 'reportView'">
  774. <xsl:variable name="options">
  775. <xsl:apply-templates mode="markup" select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/*[local-name()= 'options']"/>
  776. </xsl:variable>
  777. <xsl:variable name="executionFormat">
  778. <xsl:apply-templates mode="markup" select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/*[local-name()= 'executionFormat']"/>
  779. </xsl:variable>
  780. <xsl:variable name="executionLocale">
  781. <xsl:apply-templates mode="markup" select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/*[local-name()= 'executionLocale']"/>
  782. </xsl:variable>
  783. <!-- COGCQ00227606 - Error when saving report views to different location - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  784. Modify the hidden field definition for the following parameters to use utml:input instead of generic input html tags - this prevents duplicate
  785. input tags being created when changing locations (round-trip to new_general.xts):
  786. + m_p_allowSubscription
  787. + reportViewExecutionFormat
  788. + reportViewExecutionLocale
  789. + reportViewOptions
  790. + reportViewParameters
  791. Also change the parameter for powerPlay8ReportView:
  792. + powerPlay8ReportViewOptions
  793. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  794. <!-- some tweaking is involved for advancedOuput options. Need to create allowSubscription env variable if advancedOuput is set to true -->
  795. <xsl:if test="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/*[local-name()= 'options']/value/item[name='advancedOutput']/value='true'">
  796. <utml:input name="m_p_allowSubscription" type="hidden" value="true" utml:update="false"/>
  797. </xsl:if>
  798. <xsl:variable name="parameters">
  799. <xsl:call-template name="serialize-xml">
  800. <xsl:with-param name="node-set" select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:parameters"/>
  801. </xsl:call-template>
  802. </xsl:variable>
  803. <utml:input name="reportViewExecutionFormat" type="hidden">
  804. <utml:value><xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($executionFormat), true()))"/></utml:value>
  805. </utml:input>
  806. <utml:input name="reportViewExecutionLocale" type="hidden">
  807. <utml:value><xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($executionLocale), true()))"/></utml:value>
  808. </utml:input>
  809. <utml:input name="reportViewOptions" type="hidden">
  810. <utml:value><xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($options), true()))"/></utml:value>
  811. </utml:input>
  812. <utml:input name="reportViewParameters" type="hidden">
  813. <utml:value><xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($parameters), true()))"/></utml:value>
  814. </utml:input>
  815. </xsl:if>
  816. <xsl:if test="$new-class='powerPlay8ReportView'">
  817. <xsl:variable name="options">
  818. <xsl:apply-templates mode="markup" select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/*[local-name()= 'options']"/>
  819. </xsl:variable>
  820. <utml:input type="hidden" name="powerPlay8ReportViewOptions">
  821. <utml:value><xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($options), true()))"/></utml:value>
  822. </utml:input>
  823. </xsl:if>
  824. <xsl:for-each select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:screenTip/cm:multilingualString">
  825. <xsl:variable name="langName" select="@xml:lang"/>
  826. <xsl:if test="$langName != $contentLocale">
  827. <input type="hidden">
  828. <xsl:attribute name="name"><xsl:value-of select="concat('m_ml_screenTip_',string($langName))"/></xsl:attribute>
  829. <xsl:attribute name="value">
  830. <xsl:choose>
  831. <xsl:when test="key('env-param', concat('m_ml_screenTip_',string($langName)))">
  832. <xsl:value-of select="key('env-param', concat('m_ml_screenTip_',string($langName)))"/>
  833. </xsl:when>
  834. <xsl:otherwise>
  835. <xsl:value-of select="/root/sourceEntry/cm:queryResponse/cm:queryReply/*/cm:screenTip/*[@xml:lang=string($langName)]"/>
  836. </xsl:otherwise>
  837. </xsl:choose>
  838. </xsl:attribute>
  839. </input>
  840. </xsl:if>
  841. </xsl:for-each>
  842. </xsl:if>
  843. <input type="hidden" name="ui.backURL" value="{/root/env/param[@name='backURL']}"/>
  844. <!-- this defines the form command operation to be performed when all the collected properties are submitted... -->
  845. <utml:input type="hidden" name="ifrmcmd" value="create" utml:update="false"/>
  846. <utml:input type="hidden" name="m_new_class" value=""/>
  847. <utml:input type="hidden" name="changed_genprop" value="0"/>
  848. <xsl:choose>
  849. <xsl:when test="$new-class = 'metricsExportTask'">
  850. <utml:input name="pid" type="hidden" value="export_objects" utml:update="false"/>
  851. <utml:input name="disp.routingServerGroup" type="hidden" utml:update="false">
  852. <utml:value><xsl:value-of select="$destinationFldrRef/cm:routingServerGroup"/></utml:value>
  853. </utml:input>
  854. </xsl:when>
  855. <xsl:when test="key('env-param','pid')">
  856. <utml:input name="pid" type="hidden" utml:update="false">
  857. <utml:value><xsl:value-of select="key('env-param','pid')"/></utml:value>
  858. </utml:input>
  859. </xsl:when>
  860. </xsl:choose>
  861. <utml:input type="hidden" name="m_class" utml:update="false">
  862. <utml:value><xsl:value-of select="$new-class"/></utml:value>
  863. </utml:input>
  864. <utml:input type="hidden" name="so.select" utml:update="false">
  865. <utml:value><xsl:value-of select="$fullTask"/></utml:value>
  866. </utml:input>
  867. <utml:input type="hidden" name="so.return.m" utml:update="false">
  868. <utml:value><xsl:value-of select="concat($app,'/',$mname)"/></utml:value>
  869. </utml:input>
  870. <utml:input name="so.defaultLocation" type="hidden">
  871. <xsl:attribute name="value"><xsl:value-of select="$path"/></xsl:attribute>
  872. </utml:input>
  873. <!-- Following type used by faultHandler when cannot create folder. Performs faultHandler's doCancel function. -->
  874. <!-- By Default if errURL is specified but empty - doCancel() is done.-->
  875. <utml:input type="hidden" name="errURL" utml:update="false">
  876. <xsl:choose>
  877. <xsl:when test="/root/env/param[@name='errURL']">
  878. <utml:value><xsl:value-of select="/root/env/param[@name='errURL']"/></utml:value>
  879. </xsl:when>
  880. <xsl:otherwise><utml:value/></xsl:otherwise>
  881. </xsl:choose>
  882. </utml:input>
  883. <!-- Header -->
  884. <!-- ================================================================ -->
  885. <dp:header dp:kbA11y="true">
  886. <dp:title>
  887. <xsl:value-of select="$new-general-title"/>
  888. </dp:title>
  889. <dp:close>
  890. <span id="xbuttonClose" style="position: absolute;margin-top: -9999px; "><xts:string id="IDS_CLOSE"/></span>
  891. <xsl:choose>
  892. <xsl:when test="$isModal">
  893. <a href="javascript:processModalCommand('close')" aria-labelledby="xbuttonClose">
  894. <dp:closeMarker/>
  895. </a>
  896. </xsl:when>
  897. <xsl:when test="key('env-param','from_bmt')">
  898. <a href="javascript:doBMTCancel()" aria-labelledby="xbuttonClose">
  899. <dp:closeMarker/>
  900. </a>
  901. </xsl:when>
  902. <xsl:when test="key('env-param', 'fromCMM')">
  903. <a href="javascript:doCMMCancel()" aria-labelledby="xbuttonClose">
  904. <dp:closeMarker/>
  905. </a>
  906. </xsl:when>
  907. <xsl:when test="(/root/env/param[@name = 'ps_nav_stack']) and not(/root/env/param[@name = 'ps_nav_stack'] = '') ">
  908. <utml:a utml:op="stack-down">
  909. <xsl:attribute name="onClick">javascript:resetPageState()</xsl:attribute>
  910. <xsl:attribute name="aria-labelledby">xbuttonClose</xsl:attribute>
  911. <dp:closeMarker/>
  912. </utml:a>
  913. </xsl:when>
  914. <xsl:otherwise>
  915. <a href="{xtsext:htmlencode(/root/env/param[@name = 'backURL'])}">
  916. <xsl:attribute name="onClick">javascript:resetPageState()</xsl:attribute>
  917. <xsl:attribute name="aria-labelledby">xbuttonClose</xsl:attribute>
  918. <dp:closeMarker/>
  919. </a>
  920. </xsl:otherwise>
  921. </xsl:choose>
  922. </dp:close>
  923. <dp:description>
  924. <xsl:choose>
  925. <xsl:when test="$new-class = 'printer'">
  926. <xts:string id="IDS_NEW_PRINTER_INTRO"/>
  927. </xsl:when>
  928. <xsl:when test="$new-class = 'exportDeployment' or $new-class = 'importDeployment'">
  929. <xts:string id="IDS_NEW_DEPLOYMENT_INTRO"/>
  930. </xsl:when>
  931. <xsl:when test="$new-class = 'URL'">
  932. <xts:string id="IDS_NEW_URL_INTRO"/>
  933. </xsl:when>
  934. <xsl:when test="$new-class = 'contact'">
  935. <xts:string id="IDS_NEW_CONTACT_INTRO"/>
  936. </xsl:when>
  937. <xsl:when test="$new-class = 'archiveLocation'">
  938. <xts:string id="IDS_NEW_FILE_SYSTEM_LOCATION_INTRO"/>
  939. </xsl:when>
  940. <xsl:otherwise>
  941. <xts:string id="IDS_NEW_INTRO"/>
  942. </xsl:otherwise>
  943. </xsl:choose>
  944. </dp:description>
  945. </dp:header>
  946. <!-- Name and Description -->
  947. <!-- ================================================================ -->
  948. <lyt:layout style="1" lyt:kbA11y="true">
  949. <lyt:section>
  950. <!-- Name -->
  951. <dp:input dp:kbA11y="true">
  952. <dp:section1>
  953. <label for="defaultName"><xts:string id="IDS_NEW_NAME"/></label>
  954. </dp:section1>
  955. <dp:section2>
  956. <utml:input id="defaultName" type="text" size="30" name="m_p_defaultName" class="pInput" maxlength="256">
  957. <utml:value>
  958. <xsl:choose>
  959. <xsl:when test="not(key('env-param', 'm_p_defaultName')) and string-length($default_new_name) &lt;= 256">
  960. <xsl:value-of select="$default_new_name"/>
  961. </xsl:when>
  962. <xsl:when test="not(key('env-param', 'm_p_defaultName')) and string-length($default_new_name) &gt; 256">
  963. <xsl:value-of select="substring($default_new_name,0,257)"/>
  964. </xsl:when>
  965. <xsl:otherwise>
  966. <xsl:text/>
  967. </xsl:otherwise>
  968. </xsl:choose>
  969. </utml:value>
  970. </utml:input>
  971. </dp:section2>
  972. </dp:input>
  973. <!-- Description -->
  974. <dp:input dp:kbA11y="true">
  975. <dp:section1>
  976. <label for="defaultDescription"><xts:string id="IDS_NEW_DESCRIPTION"/></label>
  977. </dp:section1>
  978. <dp:section2>
  979. <utml:textarea id="defaultDescription" name="m_p_defaultDescription" class="pTextarea" cols="30" rows="4">
  980. <utml:value>
  981. <xsl:value-of select="$default_description_inputvalue"/>
  982. </utml:value>
  983. </utml:textarea>
  984. </dp:section2>
  985. </dp:input>
  986. <!-- ScreenTip -->
  987. <dp:input dp:kbA11y="true">
  988. <dp:section1>
  989. <label for="defaultScreenTip"><xts:string id="IDS_NEW_SCREENTIP"/></label>
  990. </dp:section1>
  991. <dp:section2>
  992. <utml:input id="defaultScreenTip" type="text" name="m_p_defaultScreenTip" class="pInput" maxlength="100" size="30">
  993. <utml:value>
  994. <xsl:value-of select="$default_screentip_inputvalue"/>
  995. </utml:value>
  996. </utml:input>
  997. </dp:section2>
  998. </dp:input>
  999. <!-- Object-Specific input/hidden fields -->
  1000. <!-- ================================================================ -->
  1001. <xsl:choose>
  1002. <xsl:when test="$new-class = 'URL' and not(string(key('system-param', 'disableURLObjectCreation')) = 'true')">
  1003. <dt:domainListPopup/>
  1004. <dp:input>
  1005. <dp:section1>
  1006. <label for="ctrl_m_p_newurl"><xts:string id="IDS_NEW_URL"/></label>
  1007. <dp:list>
  1008. <dp:section>
  1009. <dp:hint>
  1010. <div><xts:string id="IDS_NEW_URL_HINT"/>&#160;&#160;<a href="javascript:validDomains.show()"><xts:string id="IDS_NEW_URL_VIEW_VALID_DOMAINS"/></a>
  1011. </div>
  1012. </dp:hint>
  1013. </dp:section>
  1014. </dp:list>
  1015. </dp:section1>
  1016. <dp:section2>
  1017. <utml:input id="ctrl_m_p_newurl" type="text" name="m_p_uri" size="30" class="pInput" maxlength="2048" stttype="url"/>
  1018. </dp:section2>
  1019. </dp:input>
  1020. </xsl:when>
  1021. <xsl:when test="$new-class = 'contact'">
  1022. <dp:input>
  1023. <dp:section1><label for="ctrl_m_p_email"><xts:string id="IDS_CONTACT_EMAIL"/></label></dp:section1>
  1024. <dp:section2><utml:input type="text" name="m_p_email" size="30" class="pInput" maxlength="128" id="ctrl_m_p_email"/></dp:section2>
  1025. </dp:input>
  1026. </xsl:when>
  1027. <xsl:when test="$new-class = 'printer'">
  1028. <dp:input>
  1029. <dp:section1><label for="ctrl_m_p_printerAddress"><xts:string id="IDS_PROP_PRINTER_ADDRESS"/></label></dp:section1>
  1030. <dp:section2><utml:input type="text" name="m_p_printerAddress" size="30" class="pInput" id="ctrl_m_p_printerAddress"/></dp:section2>
  1031. </dp:input>
  1032. </xsl:when>
  1033. <xsl:when test="$new-class = 'tenant'">
  1034. <dp:input>
  1035. <dp:section1><label for="ctrl_m_p_tenantID"><xts:string id="IDS_PROP_TENANTID"/></label></dp:section1>
  1036. <dp:section2><utml:input type="text" name="m_p_tenantID" size="30" class="pInput" id="ctrl_m_p_tenantID"/></dp:section2>
  1037. </dp:input>
  1038. </xsl:when>
  1039. <xsl:when test="$new-class = 'reportView' or $new-class='agentDefinitionView' or $new-class='powerPlay8ReportView' or $new-class='dataMovementTaskAlias'">
  1040. <utml:input type="hidden" name="m_p_base"><!-- base report/query -->
  1041. <utml:value><xsl:value-of select="$target-obj"/></utml:value>
  1042. </utml:input>
  1043. </xsl:when>
  1044. <xsl:when test="$new-class = 'shortcut'">
  1045. <utml:input name="m_p_target" type="hidden">
  1046. <utml:value>
  1047. <xsl:choose>
  1048. <xsl:when test="key('env-param', 'm_obj_search_path')"><xsl:value-of select="key('env-param', 'm_obj_search_path')"/></xsl:when>
  1049. <xsl:otherwise><xsl:value-of select="key('env-param','m_obj')"/></xsl:otherwise>
  1050. </xsl:choose>
  1051. </utml:value>
  1052. </utml:input>
  1053. </xsl:when>
  1054. <xsl:when test="$new-class = 'metricsExportTask'">
  1055. <utml:input name="path" type="hidden" value="/controller" utml:update="false"/>
  1056. </xsl:when>
  1057. <xsl:when test="$new-class='pageDefinition'">
  1058. <xsl:call-template name="paperSizeInputFields">
  1059. <xsl:with-param name="widthValue" select="key('env-param', 'm_p_width')"/>
  1060. <xsl:with-param name="heightValue" select="key('env-param', 'm_p_height')"/>
  1061. <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
  1062. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  1063. <xsl:with-param name="isUnitInchSelected" select="true()"/>
  1064. <xsl:with-param name="isUnitCentimeterSelected" select="false()"/>
  1065. </xsl:call-template>
  1066. <dp:choice width="100%">
  1067. <dp:section1><utml:input type="checkbox" name="m_pagedef_allow_everyone" id="isAllowEveryone" value="true" style="margin-left:0"/></dp:section1>
  1068. <dp:section2>
  1069. <label for="isAllowEveryone"><xts:string id="IDS_PROP_PAGE_SIZE_ALLOW_EVERYONE"/></label>
  1070. </dp:section2>
  1071. </dp:choice>
  1072. </xsl:when>
  1073. <xsl:when test="$new-class='archiveLocation'">
  1074. <!-- get ROOT value from configuration -->
  1075. <xsl:variable name="fileSystemRoot" select="string(/root/configuration/property[@name='archiveLocationFileSchemeRoot'])"/>
  1076. <dp:input>
  1077. <dp:section1>
  1078. <xts:string id="IDS_PROP_FILE_SYSTEM_ROOT_LOCATION_LABEL"/>
  1079. <dp:list>
  1080. <dp:section>
  1081. <dp:hint>
  1082. <xts:string id="IDS_PROP_FILE_SYSTEM_ROOT_LOCATION_INTRO"/>
  1083. </dp:hint>
  1084. </dp:section>
  1085. </dp:list>
  1086. </dp:section1>
  1087. <dp:section2>
  1088. <xsl:choose>
  1089. <xsl:when test="$fileSystemRoot=''">
  1090. <xts:string id="IDS_PROP_FILE_SYSTEM_ROOT_LOCATION_MISSING"/>
  1091. </xsl:when>
  1092. <xsl:otherwise>
  1093. <xsl:value-of select="$fileSystemRoot"/>
  1094. </xsl:otherwise>
  1095. </xsl:choose>
  1096. </dp:section2>
  1097. </dp:input>
  1098. <dp:input>
  1099. <dp:section1>
  1100. <label for="ctrl_m_p_archiveLocation_uri"><xts:string id="IDS_PROP_FILE_SYSTEM_LOCATION_LABEL"/></label>
  1101. <dp:list>
  1102. <dp:section>
  1103. <dp:hint>
  1104. <xts:string id="IDS_PROP_FILE_SYSTEM_LOCATION_INTRO"/>
  1105. </dp:hint>
  1106. </dp:section>
  1107. </dp:list>
  1108. </dp:section1>
  1109. <dp:section2>
  1110. <utml:input type="text" name="m_p_archiveLocation_uri" size="30" class="pInput" id="ctrl_m_p_archiveLocation_uri"/>
  1111. </dp:section2>
  1112. </dp:input>
  1113. </xsl:when>
  1114. </xsl:choose>
  1115. <xsl:if test="key('session-param', 'e_showTenantInfo')='true'">
  1116. <tenantSelectionUI/>
  1117. </xsl:if>
  1118. </lyt:section>
  1119. </lyt:layout>
  1120. <!-- only show this if the desitnation is not ~/folder or /content for anything other than folders -->
  1121. <!-- Path / Destination folder -->
  1122. <!-- =============================================================================== -->
  1123. <lyt:layout style="1" joinSection="yes" lyt:kbA11y="true">
  1124. <lyt:section>
  1125. <dp:list dp:kbA11y="true" role="presentation">
  1126. <xsl:if test="$new-class != 'portalSkin'">
  1127. <dp:section>
  1128. <dp:label>
  1129. <label><xts:string id="IDS_NEW_DESTINATION"/></label>
  1130. </dp:label>
  1131. </dp:section>
  1132. <dp:section wrap="wrap">
  1133. <div id="ng_path" style="padding:0px; display:none; ">
  1134. <label>
  1135. <xsl:if test="$productLocale != $contentLocale">
  1136. <xsl:attribute name="lang">
  1137. <xsl:value-of select="$contentLocale"/>
  1138. </xsl:attribute>
  1139. </xsl:if>
  1140. <xsl:choose>
  1141. <xsl:when test=" $canWriteDestination and not($rule)">
  1142. <dp:text valign="top" wrap="wrap">
  1143. <xsl:variable name="rootPath">
  1144. <xsl:choose>
  1145. <xsl:when test="$isPersonalPath or $underMyFldr">
  1146. <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
  1147. </xsl:when>
  1148. <xsl:when test="starts-with($path, '/content')">
  1149. <xsl:value-of select="$defaultContentRoot"/>
  1150. </xsl:when>
  1151. </xsl:choose>
  1152. </xsl:variable>
  1153. <cf:do-the-path-link>
  1154. <cf:param name="familytree">$destinationFldrRef/cm:ancestors</cf:param>
  1155. <cf:param name="familymember">$destinationFldrRef/cm:defaultName</cf:param>
  1156. <cf:param name="home"><xsl:value-of select="$rootPath"/></cf:param>
  1157. </cf:do-the-path-link>
  1158. </dp:text>
  1159. </xsl:when>
  1160. <xsl:otherwise>
  1161. <dp:inactiveText><i><xts:string id="IDS_NONE"/></i>&#160;&#160;</dp:inactiveText>
  1162. </xsl:otherwise>
  1163. </xsl:choose>
  1164. </label>
  1165. </div>
  1166. </dp:section>
  1167. </xsl:if>
  1168. <dp:section wrap="wrap">
  1169. <div id="ng_myfolder" style="padding:0px; display:none; ">
  1170. <label tabindex="0">
  1171. <xsl:choose>
  1172. <xsl:when test="key('session-param', 'e_mroot') != ''">
  1173. <dp:text><xsl:value-of select="key('session-param', 'e_mroot')"/></dp:text>
  1174. </xsl:when>
  1175. <xsl:when test="$canWriteMyFldr">
  1176. <xts:string id="IDS_PERSONAL"/>
  1177. </xsl:when>
  1178. <xsl:otherwise>
  1179. <dp:inactiveText><i><xts:string id="IDS_NONE"/></i>&#160;&#160;</dp:inactiveText>
  1180. </xsl:otherwise>
  1181. </xsl:choose>
  1182. </label>
  1183. </div>
  1184. </dp:section>
  1185. <dp:section>
  1186. <dp:group>
  1187. <xsl:if test="(not($CMRoot/@fixedRoot) or $CMRoot/@fixedRoot!='T') and not(contains(' drillPath portalSkin dataSourceSignon ', concat(' ', $new-class, ' '))) and not(($new-class = 'exportDeployment' or $new-class = 'importDeployment') and key('env-param','m_obj') != '')">
  1188. <dp:groupItem valign="top">
  1189. <utml:a utml:op="maintain">
  1190. <utml:target>
  1191. <xsl:value-of select="$app"/>/select/select.xts<xsl:text/>
  1192. </utml:target>
  1193. <xsl:attribute name="onclick">javascript:resetPageState()</xsl:attribute>
  1194. <xsl:attribute name="onkeypress">if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) resetPageState(); window.location=this.href;return false;</xsl:attribute>
  1195. <xsl:text/><xts:string id="IDS_SELECT_ANOTHER_FOLDER"/><xsl:text/>
  1196. </utml:a>
  1197. </dp:groupItem>
  1198. </xsl:if>
  1199. <dp:groupItem valign="top">
  1200. <div id="showMyFldr" style="padding:0px; display:none; ">
  1201. <xsl:if test="$showMyFoldersChoice">
  1202. <img height="1" width="10" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
  1203. <xsl:text/>
  1204. <a href="#" id="destinationMF"><xsl:text/>
  1205. <xsl:if test="$new-class != 'portalSkin'">
  1206. <xsl:attribute name="onclick">javascript:changeSelection('myfolder')</xsl:attribute>
  1207. <xsl:attribute name="onkeypress">if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) changeSelection('myfolder'); return false;</xsl:attribute>
  1208. </xsl:if>
  1209. <xsl:text/><xts:string id="IDS_SELECT_MY_FLDR_CM_NAME">
  1210. <xts:param name="myfldr">
  1211. <span>
  1212. <xsl:if test="$productLocale != $contentLocale">
  1213. <xsl:attribute name="lang">
  1214. <xsl:value-of select="$contentLocale"/>
  1215. </xsl:attribute>
  1216. </xsl:if>
  1217. <xsl:value-of select="string($myfolderRef/cm:defaultName)"/>
  1218. </span>
  1219. </xts:param>
  1220. </xts:string><xsl:text/>
  1221. </a>
  1222. <xsl:text/>
  1223. </xsl:if>
  1224. </div>
  1225. </dp:groupItem>
  1226. </dp:group>
  1227. </dp:section>
  1228. </dp:list>
  1229. <utml:input name="m_path" type="hidden">
  1230. <xsl:attribute name="value"><xsl:value-of select="$path"/></xsl:attribute>
  1231. </utml:input>
  1232. </lyt:section>
  1233. </lyt:layout>
  1234. <xsl:if test="$new-class != 'portalSkin'">
  1235. <script language="javascript">
  1236. function changeSelection(divName)
  1237. {
  1238. var pathdiv = document.getElementById('ng_path');
  1239. var mfdiv = document.getElementById('ng_myfolder');
  1240. var sMF = document.getElementById('showMyFldr');
  1241. switch (divName)
  1242. {
  1243. case "myfolder":
  1244. {
  1245. mfdiv.style.display = "";
  1246. pathdiv.style.display = "none";
  1247. sMF.style.display = "none";
  1248. setMyFolder();
  1249. break;
  1250. }
  1251. default:
  1252. {
  1253. mfdiv.style.display = "none";
  1254. pathdiv.style.display = "";
  1255. sMF.style.display = "";
  1256. break;
  1257. }
  1258. }
  1259. }
  1260. function setMyFolder()
  1261. {
  1262. setStateValue("mfst",1);
  1263. // Update state params for the alternate location page so it knows that we switched the target.
  1264. document.pform.m_path.value= MY_FOLDER_PATH;
  1265. if (document.pform.elements["so.id"]) {
  1266. document.pform["so.id"].value = MY_FOLDER_ID;
  1267. }
  1268. if (document.pform.elements["so.searchPath"]) {
  1269. document.pform["so.searchPath"].value = MY_FOLDER_PATH;
  1270. }
  1271. if (document.pform.elements["so.storeID"]) {
  1272. document.pform["so.storeID"].value = MY_FOLDER_ID;
  1273. }
  1274. clickMyFldr = true;
  1275. document.pform.submit();
  1276. }
  1277. </script>
  1278. <script language="javascript">
  1279. var mf = getSessionValue("mfst");
  1280. if ( mf !=null &amp;&amp; mf != "" )
  1281. {
  1282. var ngp = document.getElementById('ng_path');
  1283. var ngm = document.getElementById('ng_myfolder');
  1284. var sMF = document.getElementById('showMyFldr');
  1285. if( mf == 1 ) {
  1286. ngm.style.display = "";
  1287. ngp.style.display = "none";
  1288. sMF.style.display ="none";
  1289. }
  1290. else {
  1291. ngp.style.display = "";
  1292. ngm.style.display = "none";
  1293. sMF.style.display ="";
  1294. }
  1295. } else
  1296. {
  1297. var ngp = document.getElementById('ng_path');
  1298. var ngm = document.getElementById('ng_myfolder');
  1299. var sMF = document.getElementById('showMyFldr');
  1300. <xsl:choose>
  1301. <xsl:when test="($path!='' or ($path='' and ($new-class='jobDefinition' or $new-class='URL' or $new-class='pagelet' or starts-with($new-class,'metrics')))) and (not($isPersonalPath)) ">
  1302. ngp.style.display = "";
  1303. ngm.style.display = "none";
  1304. sMF.style.display = "";
  1305. setStateValue("mfst",0);
  1306. </xsl:when>
  1307. <xsl:otherwise>
  1308. ngm.style.display = "";
  1309. ngp.style.display = "none";
  1310. sMF.style.display ="none";
  1311. setStateValue("mfst",1);
  1312. </xsl:otherwise>
  1313. </xsl:choose>
  1314. }
  1315. </script>
  1316. </xsl:if>
  1317. <script language="javascript">
  1318. function resetPageState()
  1319. {
  1320. <!-- Clear the cookie value mfst -->
  1321. clearSessionEntry('mfst');
  1322. }
  1323. </script>
  1324. <!-- Footer -->
  1325. <!-- ================================================================ -->
  1326. <dp:footer>
  1327. <xsl:choose>
  1328. <xsl:when test="$isModal">
  1329. <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:processModalCommand('cancel')" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) processModalCommand('cancel'); window.location=this.href;return false;" tabindex="0"/>
  1330. </xsl:when>
  1331. <xsl:when test="key('env-param', 'from_bmt')">
  1332. <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:doBMTCancel()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doBMTCancel(); window.location=this.href;return false;" tabindex="0"/>
  1333. </xsl:when>
  1334. <xsl:when test="key('env-param', 'fromCMM')">
  1335. <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:doCMMCancel()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doCMMCancel(); window.location=this.href;return false;" tabindex="0"/>
  1336. </xsl:when>
  1337. <xsl:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
  1338. <df:button df:id="IDS_CANCEL" df:style="stack-down" onClick="javascript:resetPageState();" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) resetPageState(); window.location=this.href;return false;" tabindex="0"/>
  1339. </xsl:when>
  1340. <xsl:otherwise>
  1341. <df:button df:id="IDS_CANCEL" df:style="back-url" onClick="javascript:resetPageState();" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) resetPageState(); window.location=this.href;return false;" tabindex="0"/>
  1342. </xsl:otherwise>
  1343. </xsl:choose>
  1344. <xsl:variable name="back-target">
  1345. <xsl:choose>
  1346. <xsl:when test="key('env-param', 'from_bmt')">
  1347. <xsl:value-of select="concat($app,'/new_connection.xts')"/>
  1348. </xsl:when>
  1349. <xsl:when test="$new-class = 'importDeployment'">
  1350. <xsl:value-of select="concat($app,'/new_deployment2.xts')"/>
  1351. </xsl:when>
  1352. </xsl:choose>
  1353. </xsl:variable>
  1354. <xsl:choose>
  1355. <xsl:when test="$back-target =''">
  1356. <df:button df:id="IDS_BACK"/>
  1357. </xsl:when>
  1358. <xsl:otherwise>
  1359. <df:button df:id="IDS_BACK" df:style="maintain" df:label="IDS_BACK_LABEL" onClick="javascript:processBackButton();" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) processBackButton(); window.location=this.href;return false;">
  1360. <df:target>
  1361. <xsl:value-of select="$back-target"/>
  1362. </df:target>
  1363. </df:button>
  1364. </xsl:otherwise>
  1365. </xsl:choose>
  1366. <xsl:variable name="next-target">
  1367. <xsl:choose>
  1368. <xsl:when test="($new-class = 'dataSourceConnection' or $new-class = 'dataSource') and (not(/root/env/param[@name='from_transf']) or /root/env/param[@name='from_transf']='')">
  1369. <xsl:value-of select="concat($app, '/new_connection2.xts')"/>
  1370. </xsl:when>
  1371. <xsl:when test="($new-class = 'dataSourceConnection' or $new-class = 'dataSource') and ((/root/env/param[@name='from_transf'] and /root/env/param[@name='from_transf']!='') or (/root/env/param[@name='m_connection_type'] and /root/env/param[@name='m_connection_type']!=''))">
  1372. <xsl:value-of select="concat($app, '/new_connection3.xts')"/>
  1373. </xsl:when>
  1374. <xsl:when test="$new-class = 'distributionList' or $new-class = 'role' or $new-class = 'group'">
  1375. <xsl:value-of select="concat($app, '/properties_members.xts')"/>
  1376. </xsl:when>
  1377. <xsl:when test="$new-class = 'dataSourceSignon'">
  1378. <xsl:value-of select="concat($app, '/new_signon.xts')"/>
  1379. </xsl:when>
  1380. <xsl:when test="$new-class = 'importDeployment' or $new-class = 'exportDeployment'">
  1381. <xsl:value-of select="concat($app, '/new_deployment2.xts')"/>
  1382. </xsl:when>
  1383. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'consistency'">
  1384. <xsl:value-of select="concat($app, '/new_consistency_scan1.xts')"/>
  1385. </xsl:when>
  1386. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'reportUpgrade'">
  1387. <xsl:value-of select="concat($app, '/new_contentTask_reportUpgrade.xts')"/>
  1388. </xsl:when>
  1389. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'retentionRuleUpdate'">
  1390. <xsl:value-of select="concat($app, '/new_contentTask_retentionRuleUpdate.xts')"/>
  1391. </xsl:when>
  1392. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'contentArchival'">
  1393. <xsl:value-of select="concat($app, '/new_contentTask_contentArchival.xts')"/>
  1394. </xsl:when>
  1395. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'contentRemoval'">
  1396. <xsl:value-of select="concat($app, '/new_contentTask_contentRemoval.xts')"/>
  1397. </xsl:when>
  1398. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'createContentUtilizationInfo'">
  1399. <xsl:value-of select="concat($app, '/new_content_utilization.xts')"/>
  1400. </xsl:when>
  1401. <xsl:when test="$new-class = 'indexUpdateTask'">
  1402. <xsl:value-of select="concat($app, '/new_indexUpdate.xts')"/>
  1403. </xsl:when>
  1404. <xsl:when test="$new-class = 'jobDefinition'">
  1405. <xsl:value-of select="concat($app, '/new_job2.xts')"/>
  1406. </xsl:when>
  1407. <xsl:when test="$new-class = 'pagelet'">
  1408. <xsl:value-of select="concat($app, '/mypages/create/layout.xts')"/>
  1409. </xsl:when>
  1410. <xsl:when test="$new-class = 'launchable' and string(key('env-param', 'm_classSubtype')) = 'application/vnd.ibm.cognos.instance'">
  1411. <xsl:if test="$mvc-N-enabled">
  1412. <xsl:value-of select="concat($app, '/mvc/config/new_launchable.xts')"/>
  1413. </xsl:if>
  1414. </xsl:when>
  1415. <xsl:when test="$new-class = 'drillPath'">
  1416. <xsl:value-of select="concat($app, '/new_drillthru_def2.xts')"/>
  1417. </xsl:when>
  1418. <xsl:when test="$new-class = 'portalSkin'">
  1419. <xsl:value-of select="concat($app, '/new_skin2.xts')"/>
  1420. </xsl:when>
  1421. <xsl:when test="$new-class = 'metricsFileImportTask'">
  1422. <xsl:value-of select="concat($app, '/new_metrics_import2.xts')"/>
  1423. </xsl:when>
  1424. <xsl:when test="$new-class = 'metricsMaintenanceTask'">
  1425. <xsl:value-of select="concat($app, '/new_metrics_maintenance2.xts')"/>
  1426. </xsl:when>
  1427. <xsl:when test="$new-class = 'metricsExportTask'">
  1428. <xsl:value-of select="concat($app, '/new_select_action.xts')"/>
  1429. </xsl:when>
  1430. <xsl:when test="$new-class = 'migrationTask'">
  1431. <xsl:value-of select="concat($app, '/migration/new_migration.xts')"/>
  1432. </xsl:when>
  1433. <xsl:when test="$new-class = 'queryServiceTask'">
  1434. <xsl:value-of select="concat($app, '/new_queryServiceTask.xts')"/>
  1435. </xsl:when>
  1436. </xsl:choose>
  1437. </xsl:variable>
  1438. <xsl:choose>
  1439. <xsl:when test="$next-target =''">
  1440. <df:button df:id="IDS_NEXT"/>
  1441. <xsl:choose>
  1442. <xsl:when test="$isModal">
  1443. <df:button df:id="IDS_FINISH" df:style="href" df:href="javascript:processModalCommand('ok')" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) processModalCommand('ok'); window.location=this.href;return false;"/>
  1444. </xsl:when>
  1445. <xsl:otherwise>
  1446. <df:button df:id="IDS_FINISH" utml:validate="true" df:style="submit" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) window.location=this.href;return false;" tabindex="0"/>
  1447. </xsl:otherwise>
  1448. </xsl:choose>
  1449. </xsl:when>
  1450. <xsl:otherwise>
  1451. <df:button df:id="IDS_NEXT" df:style="maintain" df:label="IDS_NEXT_LABEL" utml:validate="true" onClick="javascript:processNextButton();" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) processNextButton(); window.location=this.href;return false;">
  1452. <df:target>
  1453. <xsl:value-of select="$next-target"/>
  1454. </df:target>
  1455. </df:button>
  1456. <xsl:choose>
  1457. <!-- We let the user finish right here when creating a pagelet -->
  1458. <xsl:when test="$new-class = 'pagelet'">
  1459. <xsl:choose>
  1460. <xsl:when test="$isModal">
  1461. <df:button df:id="IDS_FINISH" df:style="href" df:href="javascript:processModalCommand('ok')" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) processModalCommand('ok'); window.location=this.href;return false;"/>
  1462. </xsl:when>
  1463. <xsl:otherwise>
  1464. <df:button df:id="IDS_FINISH" utml:validate="true" df:style="submit" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) window.location=this.href;return false;" tabindex="0"/>
  1465. </xsl:otherwise>
  1466. </xsl:choose>
  1467. </xsl:when>
  1468. <xsl:otherwise>
  1469. <df:button df:id="IDS_FINISH"/>
  1470. </xsl:otherwise>
  1471. </xsl:choose>
  1472. </xsl:otherwise>
  1473. </xsl:choose>
  1474. </dp:footer>
  1475. </utml:form>
  1476. <xsl:if test="key('env-param','fromCMM')">
  1477. <dt:cmmPostBackForm/>
  1478. </xsl:if>
  1479. </dp:page>
  1480. </xsl:template>
  1481. <xsl:template name="generate-title">
  1482. <xsl:param name="new-class"/>
  1483. <xsl:variable name="isFolderClass" select="contains(' folder namespaceFolder configurationFolder adminFolder portletFolder subscriptionFolder capability ', concat(' ', $new-class, ' '))"/>
  1484. <xsl:choose>
  1485. <xsl:when test="$new-class = 'shortcut'">
  1486. <xts:string id="IDS_NEW_SHORTCUT_TITLE"/>
  1487. </xsl:when>
  1488. <xsl:when test="$isFolderClass">
  1489. <xts:string id="IDS_NEW_FOLDER_TITLE"/>
  1490. </xsl:when>
  1491. <xsl:when test="$new-class = 'reportView'">
  1492. <xts:string id="IDS_NEW_REPORT_VIEW_TITLE"/>
  1493. </xsl:when>
  1494. <xsl:when test="$new-class = 'package'">
  1495. <xts:string id="IDS_NEW_PACKAGE_TITLE"/>
  1496. </xsl:when>
  1497. <xsl:when test="$new-class = 'pagelet'">
  1498. <xts:string id="IDS_NEW_PAGE_TITLE"/>
  1499. </xsl:when>
  1500. <xsl:when test="$new-class = 'launchable'">
  1501. <xts:string id="IDS_NEW_LAUNCHABLE_TITLE"/>
  1502. </xsl:when>
  1503. <xsl:when test="$new-class = 'agentDefinitionView'">
  1504. <xts:string id="IDS_NEW_AGENT_VIEW_TITLE"/>
  1505. </xsl:when>
  1506. <xsl:when test="$new-class = 'dataMovementTaskAlias'">
  1507. <xts:string id="IDS_NEW_DMT_VIEW_TITLE"/>
  1508. </xsl:when>
  1509. <xsl:when test="$new-class = 'powerPlay8ReportView'">
  1510. <xts:string id="IDS_NEW_PP8REPORT_VIEW_TITLE"/>
  1511. </xsl:when>
  1512. <xsl:when test="$new-class = 'URL'">
  1513. <xts:string id="IDS_NEW_URL_TITLE"/>
  1514. </xsl:when>
  1515. <xsl:when test="$new-class = 'dataSource'">
  1516. <xts:string id="IDS_NEW_DATA_SOURCE_TITLE"/>
  1517. </xsl:when>
  1518. <xsl:when test="$new-class = 'dataSourceConnection'">
  1519. <xts:string id="IDS_NEW_CONNECTION_TITLE"/>
  1520. </xsl:when>
  1521. <xsl:when test="$new-class = 'contact'">
  1522. <xts:string id="IDS_NEW_CONTACT_TITLE"/>
  1523. </xsl:when>
  1524. <xsl:when test="$new-class = 'distributionList'">
  1525. <xts:string id="IDS_NEW_DISTRIBUTION_LIST_TITLE"/>
  1526. </xsl:when>
  1527. <xsl:when test="$new-class = 'role'">
  1528. <xts:string id="IDS_NEW_COGNOS_ROLE_TITLE"/>
  1529. </xsl:when>
  1530. <xsl:when test="$new-class = 'group'">
  1531. <xts:string id="IDS_NEW_COGNOS_GROUP_TITLE"/>
  1532. </xsl:when>
  1533. <xsl:when test="$new-class = 'dataSourceSignon'">
  1534. <xts:string id="IDS_NEW_DATA_SOURCE_SIGNON_TITLE"/>
  1535. </xsl:when>
  1536. <xsl:when test="$new-class = 'jobDefinition'">
  1537. <xts:string id="IDS_NEW_JOB_TITLE"/>
  1538. </xsl:when>
  1539. <xsl:when test="$new-class = 'pageDefinition'">
  1540. <xts:string id="IDS_NEW_PAGE_SIZE_TITLE"/>
  1541. </xsl:when>
  1542. <xsl:when test="$new-class = 'archiveLocation'">
  1543. <xts:string id="IDS_NEW_FILE_SYSTEM_LOCATION_TITLE"/>
  1544. </xsl:when>
  1545. <xsl:when test="$new-class = 'printer'">
  1546. <xts:string id="IDS_NEW_PRINTER_TITLE"/>
  1547. </xsl:when>
  1548. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'consistency'">
  1549. <xts:string id="IDS_NEW_CONTENT_TASK_CONSISTENCY_TITLE"/>
  1550. </xsl:when>
  1551. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'reportUpgrade'">
  1552. <xts:string id="IDS_NEW_CONTENT_TASK_REPORT_UPGRADE_TITLE"/>
  1553. </xsl:when>
  1554. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'retentionRuleUpdate'">
  1555. <xts:string id="IDS_NEW_CONTENT_TASK_RETENTION_RULE_UPDATE_TITLE"/>
  1556. </xsl:when>
  1557. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'createContentUtilizationInfo'">
  1558. <xts:string id="IDS_NEW_CONTENT_UTILIZATION_INFO_TITLE"/>
  1559. </xsl:when>
  1560. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'contentArchival'">
  1561. <xts:string id="IDS_NEW_CONTENT_TASK_CONTENT_ARCHIVAL_TITLE"/>
  1562. </xsl:when>
  1563. <xsl:when test="$new-class = 'contentTask' and key('env-param','contentTaskType') = 'contentRemoval'">
  1564. <xts:string id="IDS_NEW_CONTENT_TASK_CONTENT_REMOVAL_TITLE"/>
  1565. </xsl:when>
  1566. <xsl:when test="$new-class = 'indexUpdateTask'">
  1567. <xts:string id="IDS_NEW_INDEX_UPDATE_TASK_TITLE"/>
  1568. </xsl:when>
  1569. <xsl:when test="$new-class = 'importDeployment'">
  1570. <xsl:choose>
  1571. <xsl:when test="key('env-param','m_obj') != '' ">
  1572. <xts:string id="IDS_DEPLOYMENT_UPDATE_IMPORT_TITLE"/>
  1573. </xsl:when>
  1574. <xsl:otherwise>
  1575. <xts:string id="IDS_NEW_IMPORT_DEPLOYMENT_TITLE"/>
  1576. </xsl:otherwise>
  1577. </xsl:choose>
  1578. </xsl:when>
  1579. <xsl:when test="$new-class = 'exportDeployment'">
  1580. <xsl:choose>
  1581. <xsl:when test="key('env-param','m_obj') != '' ">
  1582. <xts:string id="IDS_DEPLOYMENT_UPDATE_EXPORT_TITLE"/>
  1583. </xsl:when>
  1584. <xsl:otherwise>
  1585. <xts:string id="IDS_NEW_EXPORT_DEPLOYMENT_TITLE"/>
  1586. </xsl:otherwise>
  1587. </xsl:choose>
  1588. </xsl:when>
  1589. <xsl:when test="$new-class = 'metricsFileImportTask'">
  1590. <xts:string id="IDS_NEW_METRICS_WIZARD_FILE_IMPORT_TITLE"/>
  1591. </xsl:when>
  1592. <xsl:when test="$new-class = 'metricsMaintenanceTask'">
  1593. <xts:string id="IDS_NEW_METRICS_WIZARD_MAINTENANCE_TITLE"/>
  1594. </xsl:when>
  1595. <xsl:when test="$new-class = 'metricsExportTask'">
  1596. <xts:string id="IDS_NEW_METRICS_WIZARD_EXPORT_TITLE"/>
  1597. </xsl:when>
  1598. <xsl:when test="$new-class = 'drillPath'">
  1599. <xts:string id="IDS_NEW_DRILLPATH_TITLE"/>
  1600. </xsl:when>
  1601. <xsl:when test="$new-class = 'portalSkin'">
  1602. <xts:string id="IDS_NEW_PORTALSKIN_TITLE"/>
  1603. </xsl:when>
  1604. <xsl:when test="$new-class = 'migrationTask'">
  1605. <xts:string id="IDS_NEW_MIGRATION_TITLE"/>
  1606. </xsl:when>
  1607. <xsl:when test="$new-class = 'queryServiceTask'">
  1608. <xts:string id="IDS_NEW_QUERYSERVICETASK_TITLE"/>
  1609. </xsl:when>
  1610. <xsl:when test="$new-class = 'tenant'">
  1611. <xts:string id="IDS_NEW_TENANT_TITLE"/>
  1612. </xsl:when>
  1613. <xsl:otherwise>
  1614. <xts:string id="IDS_NEW_TITLE"/> (Unknown object!)
  1615. </xsl:otherwise>
  1616. </xsl:choose>
  1617. </xsl:template>
  1618. <dt:paperSizeInputFields/>
  1619. <dt:localizedFloatTextBox/>
  1620. </xsl:stylesheet>
  1621. </xts:block>
  1622. <!-- Debug -->
  1623. <!-- ============================================================================= -->
  1624. <xts:block id="debug" dependency="format" condition=".[ /root/session/param[@name='debug'] = '1' ]" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  1625. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  1626. <!-- debug logic sheet -->
  1627. <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">
  1628. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  1629. <xsl:template match="/">
  1630. <dbg:dumpxml select="/root"/>
  1631. </xsl:template>
  1632. </xsl:stylesheet>
  1633. </xts:block>
  1634. </xts:morphlet>