contentadmin.xsl 109 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311
  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, 2016
  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. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  15. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  16. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  17. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  18. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  19. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  20. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  21. xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
  22. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  23. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  24. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  25. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  26. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  27. xmlns:out="dummy-uri"
  28. xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
  29. xmlns:set="http://exslt.org/sets"
  30. exclude-result-prefixes="xsl cm lyt dp df cf cp adm bus utml xts xtsext pf send">
  31. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  32. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  33. <!--
  34. ======================================================================
  35. Javascript needed for the content maintenance consistency scan UI
  36. ======================================================================
  37. -->
  38. <xsl:template match="adm:optionScripts">
  39. <script language="JavaScript">
  40. function initContentMaintenanceOptions()
  41. {
  42. if(document.pform.cto_consistency_check)
  43. {
  44. for (var i=0; document.pform.cto_consistency_check.length > i ; i++)
  45. {
  46. if (document.pform.cto_consistency_check[i].checked)
  47. {
  48. document.pform.cto_consistency_check[i].click();
  49. }
  50. }
  51. }
  52. if (document.pform.cto_externalnamespace)
  53. {
  54. for(var i=0; document.pform.cto_externalnamespace.length > i; i++)
  55. {
  56. if (document.pform.cto_externalnamespace[i].value=='all' &amp;&amp; document.pform.cto_externalnamespace[i].checked)
  57. {
  58. disableDependentCheckBoxes();
  59. }
  60. }
  61. }
  62. }
  63. function disableDependentCheckBoxes()
  64. {
  65. for(var i=0; document.pform.length > i; i++)
  66. {
  67. if (document.pform.elements[i].name.substring( 0, 11) == 'm_namespace')
  68. document.pform.elements[i].disabled = true;
  69. }
  70. }
  71. function enableDependentCheckBoxes()
  72. {
  73. for(var i=0; document.pform.length > i; i++)
  74. {
  75. if (document.pform.elements[i].name.substring( 0, 11) == 'm_namespace')
  76. document.pform.elements[i].disabled = false;
  77. }
  78. }
  79. function disableNamespaceCheckBox()
  80. {
  81. if (document.pform.cto_externalnamespace)
  82. {
  83. for(var i=0; document.pform.cto_externalnamespace.length > i; i++)
  84. {
  85. document.pform.cto_externalnamespace[i].disabled=true;
  86. disableDependentCheckBoxes();
  87. }
  88. }
  89. }
  90. function enableNamespaceCheckBox()
  91. {
  92. if (document.pform.cto_externalnamespace)
  93. {
  94. for(var i=0; document.pform.cto_externalnamespace.length > i; i++)
  95. {
  96. document.pform.cto_externalnamespace[i].disabled=false;
  97. enableDependentCheckBoxes();
  98. }
  99. }
  100. }
  101. </script>
  102. </xsl:template>
  103. <!--
  104. =============================================================
  105. adm:parseContentTaskOptions
  106. create any queries that need to be sent to CM for the report upgrade options.
  107. Also create the params that should be copied into the env
  108. =============================================================
  109. -->
  110. <xsl:template match="adm:parseContentTaskOptions">
  111. <!-- create any queries that need to be sent to CM for the content task options.
  112. Also create the params that should be copied into the env -->
  113. <xts:append>
  114. <contentTaskQueries>
  115. <xts:transform src="transforms/portal/options/generateCMQueriesForContentTaskInfo.xslt" processor="XSLT">
  116. <root>
  117. <xts:queryNode select="{@optionsPath}"/>
  118. </root>
  119. </xts:transform>
  120. </contentTaskQueries>
  121. </xts:append>
  122. <xts:delete select="/root/env/param[@name='contentTaskType']"/>
  123. <xts:append select="/root/env">
  124. <xts:queryNode select="/root/contentTaskQueries/env/*[local-name()='param' and @name='contentTaskType']"/>
  125. </xts:append>
  126. </xsl:template>
  127. <!--
  128. =============================================================
  129. adm:parseIndexUpdateTaskOptions
  130. create any queries that need to be sent to CM for the indexUpdateTask options.
  131. Also create the params that should be copied into the env
  132. =============================================================
  133. -->
  134. <xsl:template match="adm:parseIndexUpdateTaskOptions">
  135. <xts:append>
  136. <indexUpdateTaskSearchPaths>
  137. <xts:transform src="transforms/portal/options/generateCMQueriesForIndexUpdateInfo.xslt" processor="XSLT">
  138. <root>
  139. <xts:queryNode select="{@optionsPath}"/>
  140. </root>
  141. </xts:transform>
  142. </indexUpdateTaskSearchPaths>
  143. </xts:append>
  144. <xts:delete select="/root/env/param[@name='indexUpdateTaskType']"/>
  145. <xts:append select="/root/env">
  146. <xts:queryNode select="/root/indexUpdateTaskSearchPaths/env/*[local-name()='param' and @name='indexUpdateTaskType']"/>
  147. </xts:append>
  148. </xsl:template>
  149. <!--
  150. =============================================================
  151. adm:queryContentTaskInfoForSummary
  152. Need to query CM for all the information needed to display
  153. the summary
  154. =============================================================
  155. -->
  156. <xsl:template match="adm:queryContentTaskInfoForSummary">
  157. <xts:append select="/root">
  158. <contentTaskContext>
  159. <xts:transform src="transforms/portal/options/swapSearchPaths.xslt" processor="XSLT">
  160. <root>
  161. <out:if test="/root/contentTaskQueries/*[local-name()='query']">
  162. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  163. <send:request provider="cm">
  164. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  165. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  166. <cm:requests>
  167. <out:copy-of select="/root/contentTaskQueries/*[local-name()='query']"/>
  168. </cm:requests>
  169. </cm:query>
  170. </xts:transform>
  171. </send:request>
  172. </xts:transform>
  173. <queryBuiltFromOptions>
  174. <out:copy-of select="/root/contentTaskQueries/*[local-name()='query']"/>
  175. </queryBuiltFromOptions>
  176. </out:if>
  177. </root>
  178. </xts:transform>
  179. </contentTaskContext>
  180. </xts:append>
  181. <xts:delete select="/root/contentTaskQueries"/>
  182. </xsl:template>
  183. <!--
  184. =============================================================
  185. Content Maintenance UI for selecting report upgrade options
  186. =============================================================
  187. -->
  188. <xsl:template match="adm:reportUpgradeOptions">
  189. <script language="JavaScript">
  190. function validateReportUpgradeOptions()
  191. {
  192. frm = document.pform;
  193. var hasEntries = false;
  194. for(var i=0; frm.length > i; i++)
  195. {
  196. if (frm.elements[i].name == 'ctro_checkbox_upgradeClassesContext')
  197. {
  198. //making sure the user has added something to the list, this just checks that the list contains something, the below logic checks that something is selected
  199. hasEntries = true;
  200. }
  201. <!-- if the reports located in checkbox isn't checked, then look for the reports bases on checkbox -->
  202. if (frm.elements[i].name == 'ctro_checkbox_upgradeClassesContext' &amp;&amp; !frm.elements[i].checked)
  203. {
  204. searchPath = frm.elements[i].value;
  205. for(var ii=0; frm.length > ii; ii++)
  206. {
  207. if (frm.elements[i].value == frm.elements[ii].value &amp;&amp; frm.elements[ii].name == 'ctro_checkbox_upgradeClassesReferenceContext' &amp;&amp; !frm.elements[ii].checked)
  208. {
  209. alert("<xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_NO_SELECTED" encode="javascript"/>");
  210. return false;
  211. }
  212. }
  213. }
  214. }
  215. return true;
  216. }
  217. </script>
  218. <dp:list>
  219. <dp:section>
  220. <dp:label>
  221. <xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_TABLE_TITLE"/>
  222. </dp:label>
  223. </dp:section>
  224. <dp:section>
  225. <dp:hint>
  226. <xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_TABLE_DESCRIPTION"/>
  227. </dp:hint>
  228. </dp:section>
  229. </dp:list>
  230. <!-- the possible classes to upgrade are hardcoded for Bering -->
  231. <utml:input type="hidden" name="ctro_upgradeClasses" value="report" utml:update="false"/>
  232. <utml:input type="hidden" name="ctro_upgradeClasses" value="query" utml:update="false"/>
  233. <utml:input type="hidden" name="ctro_upgradeClasses" value="interactiveReport" utml:update="false"/>
  234. <cp:table name="reportUpgrade" iterate="/root/contentTaskContext/*" width="100%" align="left" showEmptyMsg="true">
  235. <!-- possible actions -->
  236. <cp:action>
  237. <out:if test="$has_write_permission = true()">
  238. <utml:a utml:op="maintain">
  239. <utml:href>document.pform.controller_state.value = 'addEntries|navigate';</utml:href>
  240. <xsl:text/><xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_ADD"/><xsl:text/>
  241. </utml:a>
  242. </out:if>
  243. </cp:action>
  244. <cp:action>
  245. <out:if test="$has_write_permission = true()">
  246. <script language="javascript">
  247. var selectionInfo = {checkboxName: "checkbox_location"};
  248. selectionInfo.noSelectionMsg = "<xts:string encode="javascript" id="IDS_CONTENT_TASK_REPORT_UPGRADE_REMOVE_WARNING"/>";
  249. </script>
  250. <utml:a utml:op="maintain">
  251. <xsl:attribute name="onclick">return com.ibm.cognos.ps.list.isEntrySelected(selectionInfo);</xsl:attribute>
  252. <utml:href>document.pform.listop.value = 'delete';</utml:href>
  253. <xsl:text/><xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_REMOVE"/><xsl:text/>
  254. </utml:a>
  255. </out:if>
  256. </cp:action>
  257. <cp:tableHeader>
  258. <!-- checkbox -->
  259. <cp:columnHeader width="16" toggleName="checkbox_location" noLabel='true' utml="utml"/>
  260. <!-- icon -->
  261. <cp:columnHeader width="16"/>
  262. <!-- name -->
  263. <cp:columnHeader width="40%">
  264. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  265. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  266. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  267. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  268. <xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_NAME_COLUMN"/>
  269. </cp:columnHeader>
  270. <!-- reports located in -->
  271. <cp:columnHeader width="30%" toggleLabel="IDS_CONTENT_TASK_REPORT_UPGRADE_LOCATED_IN_COLUMN" toggleName="ctro_checkbox_upgradeClassesContext"/>
  272. <!-- reports based on -->
  273. <cp:columnHeader width="30%" toggleLabel="IDS_CONTENT_TASK_REPORT_UPGRADE_BASED_ON_COLUMN" toggleName="ctro_checkbox_upgradeClassesReferenceContext"/>
  274. </cp:tableHeader>
  275. <cp:tableContent>
  276. <!-- checkbox -->
  277. <cp:columnContent valign="top">
  278. <out:if test="$has_write_permission">
  279. <utml:input type="checkbox" name="checkbox_location">
  280. <out:attribute name="aria-label"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="cm:defaultName"/></xts:param></xts:string></out:attribute>
  281. <utml:value><out:value-of select="position()"/></utml:value>
  282. </utml:input>
  283. </out:if>
  284. </cp:columnContent>
  285. <!-- icon -->
  286. <cp:columnContent valign="top">
  287. <out:variable name="overrideObjectClass">
  288. <out:if test="cm:objectClass='namespace'">pfr</out:if>
  289. </out:variable>
  290. <out:call-template name="gen-icon">
  291. <out:with-param name="showAction" select="false()"/>
  292. <out:with-param name="class" select="$overrideObjectClass"/>
  293. <out:with-param name="userInterfaces" select="*[local-name()='userInterfaces']/*[local-name()='uiComponentEnum']"/>
  294. <out:with-param name="hiddenObject" select="cm:hidden"/>
  295. </out:call-template>
  296. </cp:columnContent>
  297. <!-- name -->
  298. <cp:columnContent scope="row">
  299. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  300. <out:attribute name="alt">
  301. <cf:do-the-path-link>
  302. <cf:param name="familytree">cm:ancestors</cf:param>
  303. <cf:param name="familymember">cm:defaultName</cf:param>
  304. <cf:param name="onlyAncestors">true</cf:param>
  305. </cf:do-the-path-link>
  306. </out:attribute>
  307. </img>
  308. <xsl:text>&#160;</xsl:text>
  309. <out:value-of select="cm:defaultName"/>
  310. </cp:columnContent>
  311. <!-- reports located in -->
  312. <cp:columnContent>
  313. <out:choose>
  314. <out:when test="cm:objectClass = 'package'">
  315. <utml:input type="checkbox" name="ctro_checkbox_upgradeClassesContext" utml:update="false">
  316. <utml:value>
  317. <out:value-of select="cm:searchPath"/>
  318. </utml:value>
  319. <out:if test="key('env-param','ctro_checkbox_upgradeClassesContext')=cm:searchPath">
  320. <out:attribute name="checked">checked</out:attribute>
  321. </out:if>
  322. <out:attribute name="aria-label"><xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_LOCATED_IN_COLUMN_ARIA"><xts:param name="objName"><out:value-of select="cm:defaultName"/></xts:param></xts:string></out:attribute>
  323. </utml:input>
  324. </out:when>
  325. <out:otherwise>
  326. <img width="3" height="1" border="0">
  327. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  328. </img>
  329. <img border="0" role="checkbox" aria-checked="true" aria-disabled="true" alt="">
  330. <xsl:attribute name="src"><xsl:value-of select="'{$skin_images}'"/>checkmark.gif</xsl:attribute>
  331. <out:attribute name="aria-label"><xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_LOCATED_IN_COLUMN_ARIA"><xts:param name="objName"><out:value-of select="cm:defaultName"/></xts:param></xts:string></out:attribute>
  332. </img>
  333. <utml:input type="hidden" name="ctro_checkbox_upgradeClassesContext" utml:update="false">
  334. <utml:value>
  335. <out:value-of select="cm:searchPath"/>
  336. </utml:value>
  337. </utml:input>
  338. </out:otherwise>
  339. </out:choose>
  340. </cp:columnContent>
  341. <!-- report based on -->
  342. <cp:columnContent>
  343. <out:if test="cm:objectClass = 'package'">
  344. <utml:input type="checkbox" name="ctro_checkbox_upgradeClassesReferenceContext" utml:update="false">
  345. <utml:value>
  346. <out:value-of select="cm:searchPath"/>
  347. </utml:value>
  348. <out:if test="key('env-param','ctro_checkbox_upgradeClassesReferenceContext')=cm:searchPath">
  349. <out:attribute name="checked">checked</out:attribute>
  350. </out:if>
  351. <out:attribute name="aria-label"><xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_BASED_ON_COLUMN_ARIA"><xts:param name="objName"><out:value-of select="cm:defaultName"/></xts:param></xts:string></out:attribute>
  352. </utml:input>
  353. </out:if>
  354. </cp:columnContent>
  355. </cp:tableContent>
  356. </cp:table>
  357. </xsl:template>
  358. <!--
  359. ================================================================
  360. gets the name two out of xpath of type /one/two
  361. ================================================================
  362. -->
  363. <xsl:template name="getXPathBasename">
  364. <xsl:param name="xpath" />
  365. <xsl:variable name="newXpath" select="substring-after($xpath,'/')"/>
  366. <xsl:choose>
  367. <xsl:when test="$newXpath = ''">
  368. <xsl:value-of select="$xpath"/>
  369. </xsl:when>
  370. <xsl:otherwise>
  371. <xsl:call-template name="getXPathBasename">
  372. <xsl:with-param name="xpath" select="$newXpath"/>
  373. </xsl:call-template>
  374. </xsl:otherwise>
  375. </xsl:choose>
  376. </xsl:template>
  377. <!--
  378. ================================================================
  379. Handles deleting and adding the report upgrade options
  380. the path to the content can be specified using the xpathToContent attribute
  381. IMPORTANT CURRENT LIMITATION: only the last element of the xpath can have a specified
  382. namespace.
  383. Example:
  384. /path1/path2/cm:path3 is supported
  385. /path1/ns2:path2/ns3:path3 is not
  386. The format /*[local-name()='path1']/*[local-name()='path2']/*[local-name()='path3'] is not supported either
  387. ================================================================
  388. -->
  389. <xsl:template match="adm:executeCommand">
  390. <xts:sequence>
  391. <xsl:variable name="xpathToContent">
  392. <xsl:choose>
  393. <xsl:when test="@xpathToContent"><xsl:value-of select="@xpathToContent"/></xsl:when>
  394. <xsl:otherwise>/root/contentTaskContext</xsl:otherwise>
  395. </xsl:choose>
  396. </xsl:variable>
  397. <xsl:variable name="basename">
  398. <xsl:call-template name="getXPathBasename">
  399. <xsl:with-param name="xpath" select="$xpathToContent"/>
  400. </xsl:call-template>
  401. </xsl:variable>
  402. <xsl:variable name="localbasename" >
  403. <xsl:choose>
  404. <xsl:when test="substring-before($basename,':')=''">
  405. <xsl:value-of select="$basename"/>
  406. </xsl:when>
  407. <xsl:otherwise>
  408. <xsl:value-of select="substring-after($basename,':')"/>
  409. </xsl:otherwise>
  410. </xsl:choose>
  411. </xsl:variable>
  412. <xsl:variable name="xpathToContentRoot"><xsl:value-of select="substring-before($xpathToContent,concat('/',$basename))"/></xsl:variable>
  413. <out:choose>
  414. <out:when test="key('env-param','listop')='delete' and key('env-param','checkbox_location')!=''">
  415. <!-- build the appropriate xpath for the delete operation. We can't delete them one at a time
  416. since the positions will get all screwed up -->
  417. <out:variable name="deletePath">
  418. <xsl:value-of select="concat($xpathToContentRoot,'/*[local-name()=&quot;',$localbasename,'&quot;]')"/>/*[
  419. <out:for-each select="key('env-param','checkbox_location')">
  420. <out:if test="position() != '1'">
  421. <out:value-of select="' or '"/>
  422. </out:if>
  423. position()='<out:value-of select="."/>'
  424. </out:for-each>
  425. ]
  426. </out:variable>
  427. <xts:delete select="{'{$deletePath}'}"/>
  428. <xts:delete select="/root/env/param[starts-with(@name, 'checkbox_location')]"/>
  429. </out:when>
  430. <out:when test="/root/newEntries">
  431. <out:variable name="currentContentTaskContext" select="{$xpathToContent}/*"/>
  432. <!-- Generate a temp list which contains the final merged list and a set
  433. of params to be appended to the env -->
  434. <xts:append select="/root">
  435. <tempList>
  436. <xts:transform src="portal/addEntries/transforms/mergeAddedEntriesLists.xslt" processor="XSLT">
  437. <root>
  438. <oldEntries>
  439. <xts:queryNode select="{$xpathToContentRoot}/*[local-name()='{$localbasename}']/*"/>
  440. </oldEntries>
  441. <newEntries>
  442. <xts:transform src="transforms/portal/options/renameNamespaceObjects.xslt" processor="XSLT">
  443. <xts:param name="messageBase">/messages/portal.xml</xts:param>
  444. <root>
  445. <xts:queryNode select="/root/newEntries/*"/>
  446. </root>
  447. </xts:transform>
  448. </newEntries>
  449. <allowDuplicates>false</allowDuplicates>
  450. <trackNewEntries paramName="ctro_checkbox_upgradeClassesContext" property="searchPath"/>
  451. </root>
  452. </xts:transform>
  453. </tempList>
  454. </xts:append>
  455. <xts:delete select="{$xpathToContentRoot}/*[local-name()='{$localbasename}']"/>
  456. <!-- Sort the list -->
  457. <xts:append select="{$xpathToContentRoot}">
  458. <xsl:element name="{$basename}">
  459. <xts:transform src="portal/addEntries/transforms/sortAddedEntriesList.xslt" processor="XSLT">
  460. <root>
  461. <addedEntriesList>
  462. <!-- replace the namespace defaultName with 'My folders of <defaultName>'
  463. before the sort happens -->
  464. <xts:queryNode select="/root/tempList/*[local-name()!='param' or @name!='ctro_checkbox_upgradeClassesContext']"/>
  465. </addedEntriesList>
  466. <contentLocale><out:value-of select="$contentLocale"/></contentLocale>
  467. </root>
  468. </xts:transform>
  469. </xsl:element>
  470. </xts:append>
  471. <out:if test="/root/env/param[@name='contentTaskType']='reportUpgrade'">
  472. <!--
  473. This should not be here: the generation of env variable is not
  474. the responsability of this template
  475. append the defaults for any new entries that were added
  476. -->
  477. <xts:append select="/root/env">
  478. <xts:queryNode select="/root/tempList/*[local-name()='param' and @name='ctro_checkbox_upgradeClassesContext']"/>
  479. </xts:append>
  480. </out:if>
  481. <!-- this should be the count if there weren't any duplicates. Use this later on when
  482. deciding if we should show the duplicate error message to the user -->
  483. <xts:append select="/root">
  484. <totalEntriesCount><out:value-of select="count($currentContentTaskContext) + count(/root/newEntries/*)"/></totalEntriesCount>
  485. </xts:append>
  486. <!-- Remove any nodes that are no longer needed -->
  487. <xts:delete select="/root/newEntries | /root/tempList"/>
  488. </out:when>
  489. </out:choose>
  490. </xts:sequence>
  491. </xsl:template>
  492. <!--
  493. ================================================================
  494. Handles deleting and adding the report upgrade options
  495. ================================================================
  496. -->
  497. <xsl:template match="adm:executeIndexUpdateCommand">
  498. <xts:sequence>
  499. <out:choose>
  500. <out:when test="key('env-param','listop')='delete' and /root/env/param[starts-with(@name, 'checkbox_location')]">
  501. <!-- build the appropriate xpath for the delete operation. We can't delete them one at a time
  502. since the positions will get all screwed up -->
  503. <out:variable name="deletePath">
  504. <out:text>/root/indexUpdates/</out:text>
  505. <out:value-of select="key('env-param','include_or_exclude')"/>
  506. <out:text>/*[</out:text>
  507. <out:for-each select="/root/env/param[starts-with(@name, 'checkbox_location')]">
  508. <out:if test="position() != '1'">
  509. <out:value-of select="' or '"/>
  510. </out:if>
  511. position()='<out:value-of select="."/>'
  512. </out:for-each>
  513. ]
  514. </out:variable>
  515. <xts:delete select="{'{$deletePath}'}"/>
  516. <xts:delete select="/root/env/param[starts-with(@name, 'checkbox_location')]"/>
  517. </out:when>
  518. <out:when test="key('env-param','listop')='removeUnavailableObjects'">
  519. <!-- In this case we need to delete all objects that are not available -->
  520. <out:variable name="deletePath">/root/indexUpdates/<out:value-of select="key('env-param','include_or_exclude')"/>/*[local-name()='unavailable']</out:variable>
  521. <xts:delete select="{'{$deletePath}'}"/>
  522. <!-- we can delete all checkboxes as they are going to be generated again -->
  523. <xts:delete select="/root/env/param[starts-with(@name, 'checkbox_location')]"/>
  524. </out:when>
  525. <out:when test="/root/newEntries">
  526. <xts:sequence>
  527. <out:variable name="currentIndexUpdateItems" select="/root/indexUpdates/*[local-name()=key('env-param','include_or_exclude')]/*"/>
  528. <!-- Delete the existing entry. -->
  529. <out:variable name="deletePath">/root/indexUpdates/<out:value-of select="key('env-param','include_or_exclude')"/></out:variable>
  530. <xts:delete select="{'{$deletePath}'}"/>
  531. <!-- Generate a temp list which contains the final merged list and a set
  532. of params to be appended to the env -->
  533. <xts:append select="/root">
  534. <tempList>
  535. <xts:transform src="portal/addEntries/transforms/mergeAddedEntriesLists.xslt" processor="XSLT">
  536. <root>
  537. <oldEntries>
  538. <out:copy-of select="$currentIndexUpdateItems"/>
  539. </oldEntries>
  540. <newEntries>
  541. <xts:transform src="transforms/portal/options/renameNamespaceObjects.xslt" processor="XSLT">
  542. <xts:param name="messageBase">/messages/portal.xml</xts:param>
  543. <root>
  544. <xts:queryNode select="/root/newEntries/*"/>
  545. </root>
  546. </xts:transform>
  547. </newEntries>
  548. <allowDuplicates>false</allowDuplicates>
  549. </root>
  550. </xts:transform>
  551. </tempList>
  552. </xts:append>
  553. <!-- Sort the list -->
  554. <out:if test="not(/root/indexUpdates)">
  555. <xts:append select="/root">
  556. <out:element name="indexUpdates"/>
  557. </xts:append>
  558. </out:if>
  559. <xts:append select="/root/indexUpdates">
  560. <out:variable name="includeOrExclude" select="key('env-param','include_or_exclude')"/>
  561. <out:element name="{'{ '}$includeOrExclude{' }'}">
  562. <xts:transform src="portal/addEntries/transforms/sortAddedEntriesList.xslt" processor="XSLT">
  563. <root>
  564. <addedEntriesList>
  565. <!-- replace the namespace defaultName with 'My folders of <defaultName>'
  566. before the sort happens -->
  567. <xts:queryNode select="/root/tempList/*[local-name()!='param' or @name!='checkbox_location']"/>
  568. </addedEntriesList>
  569. <contentLocale><out:value-of select="$contentLocale"/></contentLocale>
  570. </root>
  571. </xts:transform>
  572. </out:element>
  573. </xts:append>
  574. <!-- append the defaults for any new entries that were added -->
  575. <xts:append select="/root/env">
  576. <xts:queryNode select="/root/tempList/*[local-name()='param' and @name='ctro_checkbox_indexUpdateClassesContext']"/>
  577. </xts:append>
  578. <!-- this should be the count if there weren't any duplicates. Use this later on when
  579. deciding if we should show the duplicate error message to the user -->
  580. <xts:append select="/root">
  581. <totalEntriesCount><out:value-of select="count($currentIndexUpdateItems) + count(/root/newEntries/*)"/></totalEntriesCount>
  582. </xts:append>
  583. <!-- Remove any nodes that are no longer needed -->
  584. <xts:delete select="/root/newEntries | /root/tempList"/>
  585. </xts:sequence>
  586. </out:when>
  587. </out:choose>
  588. </xts:sequence>
  589. </xsl:template>
  590. <!--
  591. ================================================================
  592. Content Maintenance UI for selecting consistency scan options
  593. ================================================================
  594. -->
  595. <xsl:template match="adm:options">
  596. <xsl:variable name="track" select="@adm:track"/>
  597. <lyt:layout style="1" border="no">
  598. <lyt:section>
  599. <dp:list>
  600. <dp:section>
  601. <dp:label id="lbl_check_type">
  602. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_CHECK"/>
  603. </dp:label>
  604. </dp:section>
  605. <dp:section>
  606. <dp:hint>
  607. <xts:string id="IDS_CONTENT_ADMIN_EXTERNAL_NAMESPACES"/>
  608. </dp:hint>
  609. </dp:section>
  610. </dp:list>
  611. <dp:section1>
  612. <utml:radio-group name="cto_consistency_check" utml:default-value="externalRef">
  613. <xsl:if test="$track='true'">
  614. <xsl:attribute name="utml:track">true</xsl:attribute>
  615. </xsl:if>
  616. <dp:choice id="lbl_check_type">
  617. <dp:section1>
  618. <utml:input type="radio" name="cto_consistency_check" id="lbl_check_internalRef" value="internalRef" onClick="disableNamespaceCheckBox()"/>
  619. </dp:section1>
  620. <dp:section2 for="lbl_check_internalRef">
  621. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_INTERNAL_REFERENCES"/>
  622. </dp:section2>
  623. <dp:section1>
  624. <utml:input type="radio" name="cto_consistency_check" id="lbl_check_externalRef" value="externalRef" onClick="enableNamespaceCheckBox()"/>
  625. </dp:section1>
  626. <dp:section2 for="lbl_check_externalRef">
  627. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_EXTERNAL_NAMESPACES"/>
  628. </dp:section2>
  629. <dp:section3>
  630. <utml:radio-group name="cto_externalnamespace" utml:default-value="all">
  631. <xsl:if test="$track='true'">
  632. <xsl:attribute name="utml:track">true</xsl:attribute>
  633. </xsl:if>
  634. <dp:choice id="lbl_check_externalRef">
  635. <dp:section1>
  636. <utml:input type="radio" name="cto_externalnamespace" id="lbl_externalnamespaces_all" value="all" onClick="disableDependentCheckBoxes()"/>
  637. </dp:section1>
  638. <dp:section2 for="lbl_externalnamespaces_all">
  639. <out:text/><xts:string id="IDS_CONTENT_ADMIN_ALL_NAMESPACES"/><out:text/>
  640. </dp:section2>
  641. <dp:section1>
  642. <utml:input type="radio" name="cto_externalnamespace" id="lbl_externalnamespaces_select" value="select" onClick="enableDependentCheckBoxes()"/>
  643. </dp:section1>
  644. <dp:section2 for="lbl_externalnamespaces_select">
  645. <out:text/><xts:string id="IDS_CONTENT_ADMIN_SELECTED_NAMESPACES"/><out:text/>
  646. </dp:section2>
  647. <dp:section3>
  648. <out:for-each select="/root/namespaces/*/*[local-name()='namespace' and @inContentStore != 'false']">
  649. <dp:group>
  650. <dp:groupItem>
  651. <out:variable name="variable-name">
  652. <xsl:text/>m_namespace_<xsl:text/><out:value-of select="cm:defaultName"/>
  653. </out:variable>
  654. <out:variable name="aNamespace">
  655. <out:choose>
  656. <out:when test="cm:active='false'">
  657. <out:text/>
  658. <xts:string id="IDS_CONTENT_ADMIN_INACTIVE_NAMESPACES">
  659. <xts:param name="namespaceDefaultName"><out:value-of select="cm:defaultName"/></xts:param>
  660. </xts:string>
  661. <out:text/>
  662. </out:when>
  663. <out:otherwise>
  664. <out:text/>
  665. <xts:string id="IDS_CONTENT_ADMIN_ACTIVE_NAMESPACES">
  666. <xts:param name="namespaceDefaultName"><out:value-of select="cm:defaultName"/></xts:param>
  667. </xts:string>
  668. <out:text/>
  669. </out:otherwise>
  670. </out:choose>
  671. </out:variable>
  672. <dp:choice>
  673. <dp:section1>
  674. <utml:input type="checkbox" id="lbl_namespace_{'{cm:defaultName}'}">
  675. <utml:name>
  676. <out:choose>
  677. <!-- If a namespace does not exist in content store anymore, it will be deleted after hitting OK in properties page. -->
  678. <!-- Waiting for UI team to decide if this is the expected behaviour -->
  679. <out:when test="@inContentStore='false'"><xsl:text/>m_deleted_namespace</out:when>
  680. <out:otherwise><out:value-of select="$variable-name"/></out:otherwise>
  681. </out:choose>
  682. </utml:name>
  683. <utml:value><out:value-of select="cm:searchPath"/></utml:value>
  684. <out:if test="@inContentStore='false'">
  685. <out:attribute name="disabled">true</out:attribute>
  686. </out:if>
  687. </utml:input>
  688. </dp:section1>
  689. <dp:section2 for="lbl_namespace_{'{cm:defaultName}'}">
  690. <!-- Show the active namespaces using the '(Active)' label-->
  691. <!-- Use '(Inactive)' label for inactive namespaces -->
  692. <out:value-of select="$aNamespace"/>
  693. </dp:section2>
  694. </dp:choice>
  695. </dp:groupItem>
  696. </dp:group>
  697. </out:for-each>
  698. </dp:section3>
  699. </dp:choice>
  700. </utml:radio-group>
  701. </dp:section3>
  702. </dp:choice>
  703. </utml:radio-group>
  704. </dp:section1>
  705. </lyt:section>
  706. </lyt:layout>
  707. </xsl:template>
  708. <!--
  709. =====================================================================
  710. Content Maintenance UI for selecting consistency scan options in the Properties page
  711. =====================================================================
  712. -->
  713. <xsl:template match="adm:propInternalCheckOptions">
  714. <xsl:variable name="track" select="@adm:track"/>
  715. <lyt:layout style="1" border="no">
  716. <lyt:section>
  717. <dp:list>
  718. <dp:section>
  719. <dp:label>
  720. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_CHECK"/>
  721. </dp:label>
  722. </dp:section>
  723. </dp:list>
  724. <dp:choice>
  725. <dp:section1>
  726. <img role="checkbox" aria-checked="true" aria-disabled="true" alt="" id="ctrl_internal_references_check">
  727. <out:attribute name="src"><out:value-of select="$image_root"/>checkmark.gif</out:attribute>
  728. </img>
  729. </dp:section1>
  730. <dp:section2 for="ctrl_internal_references_check">
  731. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_INTERNAL_REFERENCES"/>
  732. </dp:section2>
  733. </dp:choice>
  734. </lyt:section>
  735. </lyt:layout>
  736. </xsl:template>
  737. <!--
  738. =====================================================================
  739. Content Maintenance UI for selecting consistency scan options in the Properties page
  740. =====================================================================
  741. -->
  742. <xsl:template match="adm:propExternalCheckOptions">
  743. <xsl:variable name="track" select="@adm:track"/>
  744. <lyt:layout style="1" border="no">
  745. <lyt:section>
  746. <dp:list>
  747. <dp:section>
  748. <dp:label>
  749. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_CHECK"/>
  750. </dp:label>
  751. </dp:section>
  752. </dp:list>
  753. <dp:choice>
  754. <dp:section1>
  755. <img role="checkbox" aria-checked="true" aria-disabled="true" alt="" id="ctrl_external_namespaces_check">
  756. <out:attribute name="src"><out:value-of select="$image_root"/>checkmark.gif</out:attribute>
  757. </img>
  758. </dp:section1>
  759. <dp:section2 for="ctrl_external_namespaces_check">
  760. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_EXTERNAL_NAMESPACES"/>
  761. </dp:section2>
  762. <dp:section3>
  763. <utml:radio-group name="cto_externalnamespace" utml:default-value="all">
  764. <xsl:if test="$track='true'">
  765. <xsl:attribute name="utml:track">true</xsl:attribute>
  766. </xsl:if>
  767. <dp:choice>
  768. <dp:section1>
  769. <utml:input type="radio" name="cto_externalnamespace" id="ctrl_cto_externalnamespace_all" value="all" onClick="disableDependentCheckBoxes()"/>
  770. </dp:section1>
  771. <dp:section2 for="ctrl_cto_externalnamespace_all">
  772. <out:text/><xts:string id="IDS_CONTENT_ADMIN_ALL_NAMESPACES"/><out:text/>
  773. </dp:section2>
  774. <dp:section1>
  775. <utml:input type="radio" name="cto_externalnamespace" id="ctrl_cto_externalnamespace_select" value="select" onClick="enableDependentCheckBoxes()"/>
  776. </dp:section1>
  777. <dp:section2 for="ctrl_cto_externalnamespace_select">
  778. <out:text/><xts:string id="IDS_CONTENT_ADMIN_SELECTED_NAMESPACES"/><out:text/>
  779. </dp:section2>
  780. <dp:section3>
  781. <out:for-each select="/root/namespaces/*/*[local-name()='namespace' and @inContentStore != 'false']">
  782. <dp:group>
  783. <dp:groupItem>
  784. <out:variable name="variable-name">
  785. <xsl:text/>m_namespace_<xsl:text/><out:value-of select="cm:defaultName"/>
  786. </out:variable>
  787. <out:variable name="aNamespace">
  788. <out:choose>
  789. <out:when test="cm:active='false'">
  790. <out:text/>
  791. <xts:string id="IDS_CONTENT_ADMIN_INACTIVE_NAMESPACES">
  792. <xts:param name="namespaceDefaultName"><out:value-of select="cm:defaultName"/></xts:param>
  793. </xts:string>
  794. <out:text/>
  795. </out:when>
  796. <out:otherwise>
  797. <out:text/>
  798. <xts:string id="IDS_CONTENT_ADMIN_ACTIVE_NAMESPACES">
  799. <xts:param name="namespaceDefaultName"><out:value-of select="cm:defaultName"/></xts:param>
  800. </xts:string>
  801. <out:text/>
  802. </out:otherwise>
  803. </out:choose>
  804. </out:variable>
  805. <dp:section1>
  806. <utml:input type="checkbox" id="ctrl_{'{$variable-name}'}">
  807. <utml:name>
  808. <out:choose>
  809. <!-- If a namespace does not exist in content store anymore, it will be deleted after hitting OK in properties page. -->
  810. <!-- Waiting for UI team to decide if this is the expected behaviour -->
  811. <out:when test="@inContentStore='false'"><xsl:text/>m_deleted_namespace</out:when>
  812. <out:otherwise><out:value-of select="$variable-name"/></out:otherwise>
  813. </out:choose>
  814. </utml:name>
  815. <utml:value><out:value-of select="cm:searchPath"/></utml:value>
  816. <out:if test="@inContentStore='false'">
  817. <out:attribute name="disabled">true</out:attribute>
  818. </out:if>
  819. </utml:input>
  820. </dp:section1>
  821. <dp:section2>
  822. <!-- Show the active namespaces using the '(Active)' label-->
  823. <!-- Use '(Inactive)' label for inactive namespaces -->
  824. <label for="ctrl_{'{$variable-name}'}"><out:value-of select="$aNamespace"/></label>
  825. </dp:section2>
  826. </dp:groupItem>
  827. </dp:group>
  828. </out:for-each>
  829. </dp:section3>
  830. </dp:choice>
  831. </utml:radio-group>
  832. </dp:section3>
  833. </dp:choice>
  834. </lyt:section>
  835. </lyt:layout>
  836. </xsl:template>
  837. <!--
  838. ====================================================================================
  839. Displays a package and folder section with a table listing them
  840. It looks for data to display in /root/packageAndFolderSection in the input document (this path can be
  841. eventually specified as an attribute of the template).
  842. under the packageAndFolderSection node, 2 are expected:
  843. content: returned element from cm, IMPORTANT NOTE: it must belong to the cm namespace
  844. uiInfo: customized info for the GUI.
  845. Currently supported element in uiInfo:
  846. - hiddenInput: name of the hidden input storing the searchPath of the listed folders/packages
  847. - sectionTitle: title of the section
  848. ====================================================================================
  849. -->
  850. <xsl:template match="adm:packageAndFolderSection">
  851. <out:variable name="title">
  852. <out:choose>
  853. <out:when test="/root/packageAndFolderSection/uiInfo/sectionTitle"><out:value-of select="string(/root/packageAndFolderSection/uiInfo/sectionTitle)"/></out:when>
  854. <out:otherwise><xts:string id="IDS_PACKAGE_AND_FOLDER_SECTION_TITLE"/></out:otherwise>
  855. </out:choose>
  856. </out:variable>
  857. <lyt:layout style="1" border="yes" longTitle="{'$title'}">
  858. <lyt:section>
  859. <out:choose>
  860. <out:when test="$has_write_permission">
  861. <xsl:call-template name="readWritePackageAndFolderTable"/>
  862. </out:when>
  863. <out:otherwise>
  864. <xsl:call-template name="readOnlyPackageAndFolderTable"/>
  865. </out:otherwise>
  866. </out:choose>
  867. </lyt:section>
  868. </lyt:layout>
  869. </xsl:template>
  870. <xsl:template match="adm:contentUtilization">
  871. <xsl:param name="form-read-only"/>
  872. <xsl:param name="utml-form-name"/>
  873. <dp:script>
  874. <pf:help context="HID_DPLOY"/>
  875. <script language="javascript" src="{'{$webRoot}'}/dojo16/dojo/dojo.js"/>
  876. <dpl:tenantSelectionScript/>
  877. <script language="javascript">
  878. function validate() {
  879. return verifyTenantSelection();
  880. }
  881. </script>
  882. </dp:script>
  883. <!-- select tenants body -->
  884. <dpl:selectTenantUI/>
  885. <!-- report options body -->
  886. <lyt:layout style="1" border="yes" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS">
  887. <lyt:section>
  888. <dp:list>
  889. <dp:section>
  890. <dp:choice noSpace="true">
  891. <dp:section1>
  892. <utml:input type="checkbox" id="id_selectPublicTenant" name="selectPublicTenant" utml:update="true" value="true"/>
  893. </dp:section1>
  894. <dp:section2 for="id_selectPublicTenant">
  895. <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/>
  896. </dp:section2>
  897. </dp:choice>
  898. </dp:section>
  899. <dp:section>
  900. <dp:label for="ctrl_cto_filePerTenant"><xts:string id="IDS_CONTENT_UTILIZATION_FILE_LABEL"/></dp:label>
  901. </dp:section>
  902. <dp:section>
  903. <dp:group>
  904. <dp:groupItem>
  905. <utml:select name="cto_filePerTenant" id="ctrl_cto_filePerTenant">
  906. <utml:default-value>false</utml:default-value>
  907. <utml:option value="false"><xts:string id="IDS_CONTENT_UTILIZATION_FILE_ONE"/></utml:option>
  908. <utml:option value="true"><xts:string id="IDS_CONTENT_UTILIZATION_FILE_ONE_PER_TENANT"/></utml:option>
  909. </utml:select>
  910. </dp:groupItem>
  911. </dp:group>
  912. </dp:section>
  913. <dp:section>
  914. <dp:label for="ctrl_cto_granularity"><xts:string id="IDS_CONTENT_UTILIZATION_GRANULARITY_LABEL"/></dp:label>
  915. </dp:section>
  916. <dp:section>
  917. <dp:group>
  918. <dp:groupItem>
  919. <utml:select name="cto_granularity" id="ctrl_cto_granularity">
  920. <utml:default-value>classesPerTenant</utml:default-value>
  921. <utml:option value="classesPerTenant"><xts:string id="IDS_CONTENT_UTILIZATION_GRANULARITY_BY_OBJTYPE_AND_TENANT"/></utml:option>
  922. <utml:option value="perObject"><xts:string id="IDS_CONTENT_UTILIZATION_GRANULARITY_EVERY_OBJECT"/></utml:option>
  923. </utml:select>
  924. </dp:groupItem>
  925. </dp:group>
  926. </dp:section>
  927. </dp:list>
  928. </lyt:section>
  929. </lyt:layout>
  930. </xsl:template>
  931. <!--
  932. Generates the package and folder table when user has write access on the object
  933. -->
  934. <xsl:template name="readWritePackageAndFolderTable">
  935. <cp:table name="packageAndFolderTable" iterate="/root/packageAndFolderSection/cm:content/*" width="100%" align="center" showEmptyMsg="true">
  936. <cp:action>
  937. <utml:a utml:op="maintain">
  938. <utml:href>document.pform.controller_state.value = 'addEntries|navigate';</utml:href>
  939. <xsl:text/><xts:string id="IDS_PACKAGE_AND_FOLDER_ADD"/><xsl:text/>
  940. </utml:a>
  941. </cp:action>
  942. <cp:action>
  943. <script language="javascript">
  944. var selectionInfo = {checkboxName: "checkbox_location"};
  945. selectionInfo.noSelectionMsg = "<xts:string encode="javascript" id="IDS_PACKAGE_AND_FOLDER_REMOVE_WARNING"/>";
  946. </script>
  947. <utml:a utml:op="maintain">
  948. <xsl:attribute name="onclick">return com.ibm.cognos.ps.list.isEntrySelected(selectionInfo);</xsl:attribute>
  949. <utml:href>document.pform.listop.value = 'delete';</utml:href>
  950. <xsl:text/><xts:string id="IDS_PACKAGE_AND_FOLDER_REMOVE"/><xsl:text/>
  951. </utml:a>
  952. </cp:action>
  953. <cp:tableHeader>
  954. <!-- checkbox -->
  955. <cp:columnHeader width="16" toggleName="checkbox_location" utml="utml" noLabel="true"/>
  956. <!-- icon -->
  957. <cp:columnHeader width="16"/>
  958. <!-- name -->
  959. <cp:columnHeader width="100%">
  960. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  961. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  962. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  963. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  964. <xts:string id="IDS_PACKAGE_AND_FOLDER_SECTION_NAME_COLUMN"/>
  965. </cp:columnHeader>
  966. </cp:tableHeader>
  967. <cp:tableContent>
  968. <!-- checkbox -->
  969. <cp:columnContent valign="top">
  970. <utml:input type="checkbox" name="checkbox_location">
  971. <out:attribute name="aria-label"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="*[local-name()='defaultName']"/></xts:param></xts:string></out:attribute>
  972. <utml:value><out:value-of select="position()"/></utml:value>
  973. </utml:input>
  974. </cp:columnContent>
  975. <!-- icon -->
  976. <cp:columnContent valign="top">
  977. <out:call-template name="gen-icon">
  978. <out:with-param name="showAction" select="false()"/>
  979. </out:call-template>
  980. </cp:columnContent>
  981. <!-- name -->
  982. <cp:columnContent valign="top">
  983. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  984. <out:attribute name="alt">
  985. <cf:do-the-path-link>
  986. <cf:param name="familytree">cm:ancestors</cf:param>
  987. <cf:param name="familymember">cm:defaultName</cf:param>
  988. <cf:param name="onlyAncestors">true</cf:param>
  989. </cf:do-the-path-link>
  990. </out:attribute>
  991. </img>
  992. <xsl:text>&#160;</xsl:text>
  993. <out:value-of select="*[local-name()='defaultName']"/>
  994. <out:if test="/root/packageAndFolderSection/uiInfo/hiddenInput" >
  995. <out:variable name="hiddenInputName"><out:value-of select='/root/packageAndFolderSection/uiInfo/hiddenInput'/></out:variable>
  996. <out:variable name="hiddenInputValue"><out:value-of select="*[local-name()='searchPath']"/></out:variable>
  997. <utml:input type="hidden">
  998. <out:attribute name="name"><out:value-of select="{'$hiddenInputName'}"/></out:attribute>
  999. <out:attribute name="value"><out:value-of select="{'$hiddenInputValue'}"/></out:attribute>
  1000. </utml:input>
  1001. </out:if>
  1002. </cp:columnContent>
  1003. </cp:tableContent>
  1004. </cp:table>
  1005. </xsl:template>
  1006. <!--
  1007. Generates the package and folder table when user has read-only access on the object
  1008. -->
  1009. <xsl:template name="readOnlyPackageAndFolderTable">
  1010. <cp:table name="packageAndFolderTable" iterate="/root/packageAndFolderSection/cm:content/*" width="100%" align="center" showEmptyMsg="true">
  1011. <cp:tableHeader>
  1012. <!-- icon -->
  1013. <cp:columnHeader width="16"/>
  1014. <!-- name -->
  1015. <cp:columnHeader width="100%">
  1016. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  1017. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  1018. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  1019. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  1020. <xts:string id="IDS_PACKAGE_AND_FOLDER_SECTION_NAME_COLUMN"/>
  1021. </cp:columnHeader>
  1022. </cp:tableHeader>
  1023. <cp:tableContent>
  1024. <!-- icon -->
  1025. <cp:columnContent valign="top">
  1026. <out:call-template name="gen-icon">
  1027. <out:with-param name="showAction" select="false()"/>
  1028. </out:call-template>
  1029. </cp:columnContent>
  1030. <!-- name -->
  1031. <cp:columnContent valign="top">
  1032. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  1033. <out:attribute name="alt">
  1034. <cf:do-the-path-link>
  1035. <cf:param name="familytree">cm:ancestors</cf:param>
  1036. <cf:param name="familymember">cm:defaultName</cf:param>
  1037. <cf:param name="onlyAncestors">true</cf:param>
  1038. </cf:do-the-path-link>
  1039. </out:attribute>
  1040. </img>
  1041. <xsl:text>&#160;</xsl:text>
  1042. <out:value-of select="*[local-name()='defaultName']"/>
  1043. </cp:columnContent>
  1044. </cp:tableContent>
  1045. </cp:table>
  1046. </xsl:template>
  1047. <!--
  1048. ====================================================================================
  1049. Content Maintenance UI for selecting Recording Level option.
  1050. ====================================================================================
  1051. -->
  1052. <xsl:template match="adm:propRecordingLevel">
  1053. <out:variable name="auditLevel">
  1054. <out:choose>
  1055. <out:when test="key('env-param','cto_auditLevel')">
  1056. <out:value-of select="key('env-param','cto_auditLevel')"/>
  1057. </out:when>
  1058. <out:when test="{@optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='cleanupContentAuditLevel']/*[local-name()='value']!=''">
  1059. <out:value-of select="string({@optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='cleanupContentAuditLevel']/*[local-name()='value'])"/>
  1060. </out:when>
  1061. <out:otherwise>
  1062. <out:value-of select="'minimal'"/>
  1063. </out:otherwise>
  1064. </out:choose>
  1065. </out:variable>
  1066. <lyt:layout style="1" title="IDS_CONTENT_TASK_RECORDING_LEVEL_TITLE" border="yes">
  1067. <lyt:section>
  1068. <dp:list title="IDS_CONTENT_TASK_RECORDING_LEVEL_DROPDOWN_LABEL" for="lbl_cto_auditLevel">
  1069. <out:choose>
  1070. <out:when test="$has_write_permission">
  1071. <dp:section>
  1072. <dp:hint>
  1073. <xts:string id="IDS_CONTENT_TASK_RECORDING_LEVEL_DESCRIPTION"/>
  1074. </dp:hint>
  1075. </dp:section>
  1076. <dp:section>
  1077. <select name="cto_auditLevel" size="1" id="lbl_cto_auditLevel">
  1078. <option value="minimal">
  1079. <out:if test="$auditLevel != 'basic' and $auditLevel !='full'">
  1080. <out:attribute name="selected">selected</out:attribute>
  1081. </out:if>
  1082. <xts:string id="IDS_AUDIT_LEVEL_MINIMAL"/>
  1083. </option>
  1084. <option value="basic">
  1085. <out:if test="$auditLevel = 'basic'">
  1086. <out:attribute name="selected">selected</out:attribute>
  1087. </out:if>
  1088. <xts:string id="IDS_AUDIT_LEVEL_BASIC"/>
  1089. </option>
  1090. <option value="full">
  1091. <out:if test="$auditLevel = 'full'">
  1092. <out:attribute name="selected">selected</out:attribute>
  1093. </out:if>
  1094. <xts:string id="IDS_AUDIT_LEVEL_TRACE"/>
  1095. </option>
  1096. </select>
  1097. </dp:section>
  1098. </out:when>
  1099. <out:otherwise>
  1100. <dp:section>
  1101. <out:choose>
  1102. <out:when test="$auditLevel != 'basic' and $auditLevel !='full'">
  1103. <xts:string id="IDS_AUDIT_LEVEL_MINIMAL"/>
  1104. </out:when>
  1105. <out:when test="$auditLevel = 'basic'">
  1106. <xts:string id="IDS_AUDIT_LEVEL_BASIC"/>
  1107. </out:when>
  1108. <out:when test="$auditLevel = 'full'">
  1109. <xts:string id="IDS_AUDIT_LEVEL_TRACE"/>
  1110. </out:when>
  1111. </out:choose>
  1112. </dp:section>
  1113. </out:otherwise>
  1114. </out:choose>
  1115. </dp:list>
  1116. </lyt:section>
  1117. </lyt:layout>
  1118. </xsl:template>
  1119. <!--
  1120. ==========================================
  1121. Checkbox for an option
  1122. ==========================================
  1123. -->
  1124. <xsl:template match="adm:historyOptionsSummary">
  1125. <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_CONTENT_MAINTENANCE_TASK">
  1126. <lyt:section>
  1127. <dp:list>
  1128. <dp:section>
  1129. <dp:label>
  1130. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1131. </dp:label>
  1132. </dp:section>
  1133. <dp:section>
  1134. <xsl:call-template name="contentTaskOptionSummary">
  1135. <xsl:with-param name="optionsPath" select="@optionsPath"/>
  1136. </xsl:call-template>
  1137. </dp:section>
  1138. <out:if test="key('env-param','contentTaskType')='consistency'">
  1139. <dp:section>
  1140. <dp:text>
  1141. <out:choose>
  1142. <out:when test="($the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='repairSecurityReferences']/*[local-name()='value'] = 'true') or ($the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='repairInternalInconsistencies']/*[local-name()='value'] = 'true')"><out:text/><xts:string id="IDS_CONTENT_ADMIN_OPTIONS_FIX"/><out:text/></out:when>
  1143. <out:when test="($the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='repairSecurityReferences']/*[local-name()='value'] = 'false') or ($the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='repairInternalInconsistencies']/*[local-name()='value'] = 'false')"><out:text/><xts:string id="IDS_CONTENT_ADMIN_OPTIONS_FIND"/><out:text/></out:when>
  1144. </out:choose>
  1145. </dp:text>
  1146. </dp:section>
  1147. </out:if>
  1148. </dp:list>
  1149. </lyt:section>
  1150. </lyt:layout>
  1151. </xsl:template>
  1152. <!--
  1153. ==========================================
  1154. Checkbox for an option
  1155. ==========================================
  1156. -->
  1157. <xsl:template match="adm:runOptions">
  1158. <xsl:variable name="track" select="@adm:track"/>
  1159. <out:variable name="isConsistencyCheck" select="key('env-param','contentTaskType') = 'consistency'"/>
  1160. <xsl:if test="not(@showSummary) or @showSummary != 'false'">
  1161. <lyt:layout style="1" border="no">
  1162. <lyt:section>
  1163. <dp:list>
  1164. <xsl:call-template name="contentTaskOptionSummary">
  1165. <xsl:with-param name="optionsPath" select="@optionsPath"/>
  1166. </xsl:call-template>
  1167. </dp:list>
  1168. </lyt:section>
  1169. </lyt:layout>
  1170. </xsl:if>
  1171. <out:if test="$isConsistencyCheck">
  1172. <lyt:layout style="1" border="no">
  1173. <lyt:section>
  1174. <xsl:call-template name="adm:runOptionsRadioButtons"/>
  1175. </lyt:section>
  1176. </lyt:layout>
  1177. </out:if>
  1178. </xsl:template>
  1179. <!--
  1180. =================================================================
  1181. Builds the summary of the options stored on the content task
  1182. =================================================================
  1183. -->
  1184. <xsl:template name="contentTaskOptionSummary">
  1185. <xsl:param name="optionsPath"/>
  1186. <out:choose>
  1187. <!-- consistency task option summary -->
  1188. <out:when test="key('env-param', 'contentTaskType') = 'consistency'">
  1189. <dp:section>
  1190. <dp:label>
  1191. <xts:string id="IDS_CONTENT_TASK_CONSISTENCY_CHECK"/>
  1192. </dp:label>
  1193. </dp:section>
  1194. <dp:section>
  1195. <out:choose>
  1196. <out:when test="key('env-param','cto_consistency_check') = 'internalRef'">
  1197. <dp:text><xts:string id="IDS_CONTENT_TASK_CONSISTENCY_INTERNAL_REFERENCES"/>
  1198. </dp:text>
  1199. </out:when>
  1200. <out:otherwise>
  1201. <dp:text><xts:string id="IDS_CONTENT_TASK_CONSISTENCY_EXTERNAL_NAMESPACES"/>
  1202. <xsl:text/><out:value-of select="' '"/><xsl:text/>
  1203. <out:choose>
  1204. <out:when test="/root/env/param[starts-with(@name,'m_namespace') or /root/env/param[@name = 'deletedNamespace']]">
  1205. <out:for-each select="/root/env/param[starts-with(@name,'m_namespace')]">
  1206. <out:text/><out:value-of select="substring-after(string(./@name),'m_namespace_')"/><out:text/>
  1207. <out:if test="position() != last() or /root/env/param[@name = 'deletedNamespace']"><xsl:text/>,<xsl:text/><out:value-of select="' '"/></out:if>
  1208. </out:for-each>
  1209. <out:for-each select="/root/env/param[@name = 'deletedNamespace']">
  1210. <out:text/><out:value-of select="."/><out:text/>
  1211. <out:if test="position() != last()"><xsl:text/><xts:string id="IDS_LIST_SEPARATOR"/><xsl:text/><out:value-of select="' '"/></out:if>
  1212. </out:for-each><xsl:text/>
  1213. </out:when>
  1214. <out:otherwise>
  1215. <xts:string id="IDS_CONTENT_ADMIN_ALL_NAMESPACES"/>
  1216. </out:otherwise>
  1217. </out:choose>
  1218. </dp:text>
  1219. </out:otherwise>
  1220. </out:choose>
  1221. </dp:section>
  1222. </out:when>
  1223. <!-- reportUpgrade task option summary -->
  1224. <out:when test="key('env-param', 'contentTaskType') = 'reportUpgrade'">
  1225. <dp:section>
  1226. <dp:label>
  1227. <xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_TABLE_TITLE"/>
  1228. </dp:label>
  1229. </dp:section>
  1230. <dp:section>
  1231. <div>
  1232. <out:if test="{$optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='upgradeClassesReferenceContext']/*[local-name()='value'] != ''">
  1233. <xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_BASE_ON_SUMMARY">
  1234. <xts:param name="baseOnOptions">
  1235. <out:for-each select="{$optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='upgradeClassesReferenceContext']/*[local-name()='value']/*">
  1236. <out:if test="position()!='1'"><xsl:value-of select="', '"/></out:if>
  1237. <out:variable name="searchPath" select="."/>
  1238. <span lang="{'{$contentLocale}'}"><out:value-of select="/root/contentTaskContext/cm:queryResponse/cm:queryReply/*[./*[local-name()='searchPath']=$searchPath]/*[local-name()='defaultName']"/></span>
  1239. </out:for-each>
  1240. <xsl:text/>.<xsl:text/>
  1241. </xts:param>
  1242. </xts:string>
  1243. <br/>
  1244. </out:if>
  1245. <out:if test="{$optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='upgradeClassesContext']/*[local-name()='value'] != ''">
  1246. <!-- we have to create this variable since we can't have a xts:param inside an xts:param -->
  1247. <out:variable name="upgradeClassesContextSummary">
  1248. <out:for-each select="{$optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='upgradeClassesContext']/*[local-name()='value']/*">
  1249. <out:if test="position()!='1'"><xsl:value-of select="', '"/></out:if>
  1250. <out:variable name="searchPath" select="."/>
  1251. <out:variable name="obj" select="/root/contentTaskContext/cm:queryResponse/cm:queryReply/*[./*[local-name()='searchPath']=$searchPath]"/>
  1252. <out:choose>
  1253. <out:when test="$obj/cm:objectClass = 'namespace'">
  1254. <xts:string id="IDS_ADDENTRIES_PACKAGES_LOCATIONS_NAMESPACE_PREFIX"><xts:param name="namespaceName"><span lang="{'{$contentLocale}'}"><out:value-of select="$obj/cm:defaultName"/></span></xts:param></xts:string>
  1255. </out:when>
  1256. <out:otherwise>
  1257. <span lang="{'{$contentLocale}'}"><out:value-of select="$obj/cm:defaultName"/></span>
  1258. </out:otherwise>
  1259. </out:choose>
  1260. </out:for-each>
  1261. <xsl:text/>.<xsl:text/>
  1262. </out:variable>
  1263. <xts:string id="IDS_CONTENT_TASK_REPORT_UPGRADE_LOCATED_IN_SUMMARY">
  1264. <xts:param name="locatedInOptions"><out:copy-of select="$upgradeClassesContextSummary"/></xts:param>
  1265. </xts:string>
  1266. </out:if>
  1267. </div>
  1268. </dp:section>
  1269. </out:when>
  1270. <out:when test="key('env-param', 'contentTaskType') = 'retentionRuleUpdate' or key('env-param', 'contentTaskType') = 'contentRemoval'">
  1271. <out:variable name="contextValues" select="{$optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='cleanupContentContext']/*[local-name()='value']/*"/>
  1272. <out:if test="count($contextValues) > 0">
  1273. <!-- Summary for cleanupContentContext -->
  1274. <out:variable name="contextObjects" select="/root/contentTaskContext/*[local-name()='queryResponse']/*[local-name()='queryReply']/*"/>
  1275. <dp:section>
  1276. <dp:label><xts:string id="IDS_CONTENT_TASK_INCLUDED_CONTENT_SETTINGS"/></dp:label>
  1277. </dp:section>
  1278. <dp:section>
  1279. <div>
  1280. <!-- we have to create this variable since we can't have a xts:param inside an xts:param -->
  1281. <out:variable name="contentContextSummary">
  1282. <out:for-each select="$contextValues">
  1283. <out:if test="position()!='1'"><xsl:value-of select="', '"/></out:if>
  1284. <out:variable name="searchPath" select="."/>
  1285. <out:variable name="obj" select="/root/contentTaskContext/cm:queryResponse/cm:queryReply/*[./*[local-name()='searchPath']=$searchPath]"/>
  1286. <out:choose>
  1287. <out:when test="$obj/cm:objectClass = 'namespace'">
  1288. <xts:string id="IDS_ADDENTRIES_PACKAGES_LOCATIONS_NAMESPACE_PREFIX"><xts:param name="namespaceName"><span lang="{'{$contentLocale}'}"><out:value-of select="$obj/cm:defaultName"/></span></xts:param></xts:string>
  1289. </out:when>
  1290. <out:when test="$obj/cm:defaultName != ''">
  1291. <span lang="{'{$contentLocale}'}"><out:value-of select="$obj/cm:defaultName"/></span>
  1292. </out:when>
  1293. <out:otherwise>
  1294. <xts:string id="IDS_CONTENT_TASK_SUMMARY_UNAVAILABLE"/>
  1295. </out:otherwise>
  1296. </out:choose>
  1297. </out:for-each>
  1298. </out:variable>
  1299. <xts:string id="IDS_CONTENT_TASK_INCLUDED_CONTENT_SUMMARY">
  1300. <xts:param name="locatedInOptions"><out:copy-of select="$contentContextSummary"/></xts:param>
  1301. </xts:string>
  1302. </div>
  1303. </dp:section>
  1304. <dp:section>
  1305. <br/>
  1306. </dp:section>
  1307. </out:if>
  1308. <!-- Summary for cleanupContentRetentionRules -->
  1309. <out:variable name="retentionSettings" select="{$optionsPath}/*[local-name()='value']/*[substring-after(@*[local-name()='type'],':')='contentTaskOptionRetentionRuleArray' and ./*[local-name()='name']='cleanupContentRetentionRules']/*[local-name()='value']/*[substring-after(@*[local-name()='type'],':')='retentionRule']"/>
  1310. <out:if test="count($retentionSettings)>0">
  1311. <dp:section>
  1312. <dp:label><xts:string id="IDS_CONTENT_TASK_RETENTION_SETTINGS"/></dp:label>
  1313. </dp:section>
  1314. <dp:section>
  1315. <out:for-each select="$retentionSettings">
  1316. <out:variable name="retentionValue">
  1317. <out:choose>
  1318. <out:when test="*[local-name()='maxDuration']!=''">
  1319. <out:choose>
  1320. <out:when test="substring(*[local-name()='maxDuration'],string-length(*[local-name()='maxDuration']))='M'">
  1321. <xts:string id="IDS_PROP_DURATION_MONTHS_SENTENCE_FORM">
  1322. <xts:param name="maxMonths"><out:value-of select="substring-after(substring-before(*[local-name()='maxDuration'],'M'),'P')"/></xts:param>
  1323. </xts:string>
  1324. </out:when>
  1325. <out:when test="substring(*[local-name()='maxDuration'],string-length(*[local-name()='maxDuration']))='D'">
  1326. <xts:string id="IDS_PROP_DURATION_DAYS_SENTENCE_FORM">
  1327. <xts:param name="maxDays"><out:value-of select="substring-after(substring-before(*[local-name()='maxDuration'],'D'),'P')"/></xts:param>
  1328. </xts:string>
  1329. </out:when>
  1330. </out:choose>
  1331. </out:when>
  1332. <out:when test="*[local-name()='maxObjects']!=''">
  1333. <xts:string id="IDS_PROP_NUMBER_VERSIONS_SENTENCE_FORM">
  1334. <xts:param name="maxObjects"><out:value-of select="*[local-name()='maxObjects']"/></xts:param>
  1335. </xts:string>
  1336. </out:when>
  1337. </out:choose>
  1338. </out:variable>
  1339. <div>
  1340. <out:choose>
  1341. <out:when test="*[local-name()='objectClass']='reportVersion'">
  1342. <xts:string id="IDS_PROP_RETENTION_GENERIC_OUTPUTS_SUMMARY"><xts:param name="retentionValue"><out:value-of select="$retentionValue"/></xts:param></xts:string>
  1343. </out:when>
  1344. <out:when test="*[local-name()='objectClass']='history'">
  1345. <xts:string id="IDS_PROP_RETENTION_EXECUTION_SUMMARY"><xts:param name="retentionValue"><out:value-of select="$retentionValue"/></xts:param></xts:string>
  1346. </out:when>
  1347. </out:choose>
  1348. </div>
  1349. </out:for-each>
  1350. </dp:section>
  1351. <dp:section>
  1352. <br/>
  1353. </dp:section>
  1354. </out:if>
  1355. <!-- Summary for cleanupContentAuditLevel -->
  1356. <out:variable name="recordingLevel" select="string({$optionsPath}/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='cleanupContentAuditLevel']/*[local-name()='value'])"/>
  1357. <out:if test="$recordingLevel != ''">
  1358. <dp:section>
  1359. <dp:label><xts:string id="IDS_CONTENT_TASK_RECORDING_LEVEL_SUMMARY_TITLE"/></dp:label>
  1360. </dp:section>
  1361. <dp:section>
  1362. <div>
  1363. <out:variable name="recordingLevelText">
  1364. <out:choose>
  1365. <out:when test=" $recordingLevel = 'basic'"><out:text/><xts:string id="IDS_AUDIT_LEVEL_BASIC"/><out:text/></out:when>
  1366. <out:when test=" $recordingLevel = 'full'"><out:text/><xts:string id="IDS_AUDIT_LEVEL_FULL"/><out:text/></out:when>
  1367. <out:when test=" $recordingLevel = 'minimal'"><out:text/><xts:string id="IDS_AUDIT_LEVEL_MINIMAL"/><out:text/></out:when>
  1368. <out:when test=" $recordingLevel = 'request'"><out:text/><xts:string id="IDS_AUDIT_LEVEL_REQUEST"/><out:text/></out:when>
  1369. <out:when test=" $recordingLevel = 'trace'"><out:text/><xts:string id="IDS_AUDIT_LEVEL_TRACE"/><out:text/></out:when>
  1370. </out:choose>
  1371. </out:variable>
  1372. <xts:string id="IDS_CONTENT_TASK_RECORDING_LEVEL_SUMMARY">
  1373. <xts:param name="recordingLevel"><out:copy-of select="$recordingLevelText"/></xts:param>
  1374. </xts:string>
  1375. </div>
  1376. </dp:section>
  1377. </out:if>
  1378. </out:when>
  1379. <out:when test="key('env-param', 'contentTaskType') = 'createContentUtilizationInfo'">
  1380. <out:variable name="cmTenantObjects" select="/root//cm:queryResponse//*/cm:tenant"/>
  1381. <out:variable name="taskTenantFilter" select="{$optionsPath}/*[local-name()='value']/*[local-name()='item']/*[local-name()='value']/*[local-name()='tenantFilter']"/>
  1382. <out:variable name="taskCmTenantObjs" select="$cmTenantObjects[cm:tenantID=$taskTenantFilter/*]"/>
  1383. <out:variable name="tenantIdsWithNoName" select="$taskTenantFilter/*[not(.=$taskCmTenantObjs/cm:tenantID)]"/>
  1384. <out:variable name="tenantNames" select="set:distinct($taskCmTenantObjs/cm:defaultName | $tenantIdsWithNoName | /root/env/param[@name='selectedTenantNames'])"/>
  1385. <out:variable name="includePublic" select="boolean($tenantNames[not(text())]) or key('env-param','selectPublicTenant')"/>
  1386. <out:variable name="fileType" select="{$optionsPath}/*[local-name()='value']/*[local-name()='item']/*[local-name()='value']/*[local-name()='filePerTenant'] | key('env-param','cto_filePerTenant')"/>
  1387. <out:variable name="granularity" select="{$optionsPath}/*[local-name()='value']/*[local-name()='item']/*[local-name()='value']/*[local-name()='granularity'] | key('env-param','cto_granularity')"/>
  1388. <out:variable name="sortedTenantNames">
  1389. <out:for-each select="$tenantNames">
  1390. <out:sort select="text()"/>
  1391. <name><out:value-of select="."/></name>
  1392. </out:for-each>
  1393. </out:variable>
  1394. <dp:list>
  1395. <dp:section>
  1396. <dp:label>
  1397. <xts:string id="IDS_CONTENT_UTILIZATION_TENANT_LABEL"/>
  1398. </dp:label>
  1399. </dp:section>
  1400. <dp:section>
  1401. <div style="max-height:200px;width:200px;float:left;overflow:auto">
  1402. <cp:table name="contentUtilization" iterate="$sortedTenantNames/name" width="100%" align="left" showEmptyMsg="true">
  1403. <cp:tableContent>
  1404. <cp:columnContent>
  1405. <out:value-of select="text()"/>
  1406. </cp:columnContent>
  1407. </cp:tableContent>
  1408. </cp:table>
  1409. </div>
  1410. </dp:section>
  1411. <dp:section>
  1412. <dp:text>
  1413. <out:choose>
  1414. <out:when test="$includePublic='true'">
  1415. <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/>
  1416. </out:when>
  1417. <out:otherwise>
  1418. <xts:string id="IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_PUBLIC_TENANT"/>
  1419. </out:otherwise>
  1420. </out:choose>
  1421. </dp:text>
  1422. </dp:section>
  1423. <dp:section>
  1424. <dp:label>
  1425. <xts:string id="IDS_CONTENT_UTILIZATION_FILE_LABEL"/>
  1426. </dp:label>
  1427. </dp:section>
  1428. <dp:section>
  1429. <out:choose>
  1430. <out:when test="$fileType = 'true'">
  1431. <dp:text>
  1432. <xts:string id="IDS_CONTENT_UTILIZATION_FILE_ONE_PER_TENANT"/>
  1433. </dp:text>
  1434. </out:when>
  1435. <out:otherwise>
  1436. <dp:text>
  1437. <xts:string id="IDS_CONTENT_UTILIZATION_FILE_ONE"/>
  1438. </dp:text>
  1439. </out:otherwise>
  1440. </out:choose>
  1441. </dp:section>
  1442. <dp:section>
  1443. <dp:label>
  1444. <xts:string id="IDS_CONTENT_UTILIZATION_GRANULARITY_LABEL"/>
  1445. </dp:label>
  1446. </dp:section>
  1447. <dp:section>
  1448. <out:choose>
  1449. <out:when test="$granularity = 'perObject'">
  1450. <dp:text>
  1451. <xts:string id="IDS_CONTENT_UTILIZATION_GRANULARITY_EVERY_OBJECT"/>
  1452. </dp:text>
  1453. </out:when>
  1454. <out:otherwise>
  1455. <dp:text>
  1456. <xts:string id="IDS_CONTENT_UTILIZATION_GRANULARITY_BY_OBJTYPE_AND_TENANT"/>
  1457. </dp:text>
  1458. </out:otherwise>
  1459. </out:choose>
  1460. </dp:section>
  1461. </dp:list>
  1462. </out:when>
  1463. </out:choose>
  1464. </xsl:template>
  1465. <!--
  1466. ====================================================================================
  1467. UI for Retention Settings
  1468. ====================================================================================
  1469. -->
  1470. <xsl:template match="adm:retentionSettings">
  1471. <out:variable name="dt_class"><xsl:value-of select="@class"/></out:variable>
  1472. <out:variable name="dt_edit"><xsl:value-of select="@edit"/></out:variable>
  1473. <xsl:variable name="dt_rg_name" select="concat('cto_rg_retention_', @class)"/>
  1474. <xsl:variable name="dt_cb_name" select="concat('cto_retentionRule_', @class)"/>
  1475. <out:variable name="dt_cb_name" select="concat('cto_retentionRule_', @class)"/>
  1476. <xsl:variable name="dt_revisit_name" select="concat('cto_revisit_', @class)"/>
  1477. <out:variable name="dt_revisit_name" select="concat('cto_revisit_', @class)"/>
  1478. <out:variable name="retentionRules" select="/root/cm:queryResponse/*[position()=1]/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='cleanupContentRetentionRules']/*[local-name()='value']/*[local-name()='item']"/>
  1479. <out:variable name="permissions" select="/root/cm:queryResponse/*[position()=1]/*[local-name()='permissions']"/>
  1480. <out:variable name="dt_maxObjects">
  1481. <out:if test="$retentionRules">
  1482. <out:for-each select="$retentionRules">
  1483. <out:if test="*[local-name()='objectClass']=$dt_class">
  1484. <out:value-of select="*[local-name()='maxObjects']"/>
  1485. </out:if>
  1486. </out:for-each>
  1487. </out:if>
  1488. </out:variable>
  1489. <out:variable name="dt_maxDuration">
  1490. <out:if test="$retentionRules">
  1491. <out:for-each select="$retentionRules">
  1492. <out:if test="*[local-name()='objectClass']=$dt_class">
  1493. <out:value-of select="*[local-name()='maxDuration']"/>
  1494. </out:if>
  1495. </out:for-each>
  1496. </out:if>
  1497. </out:variable>
  1498. <out:variable name="dt_option_exist" select="$dt_maxObjects!='' or $dt_maxDuration!=''"/>
  1499. <out:variable name="dt_disabled" select="(not($dt_option_exist) and $dt_edit='true' and not(key('env-param', '{$dt_cb_name}'))) or (not(key('env-param', '{$dt_cb_name}')) and key('env-param', '{$dt_revisit_name}')='true')"/>
  1500. <!-- maxDuration has form of P#M for months of P#D for days -->
  1501. <out:variable name="days">
  1502. <out:if test="not(key('env-param', '{$dt_rg_name}'))">
  1503. <out:value-of select="substring-before(substring-after($dt_maxDuration,'P'),'D')"/>
  1504. </out:if>
  1505. </out:variable>
  1506. <out:variable name="months">
  1507. <out:if test="not(key('env-param', '{$dt_rg_name}'))">
  1508. <out:value-of select="substring-before(substring-after($dt_maxDuration,'P'),'M')"/>
  1509. </out:if>
  1510. </out:variable>
  1511. <out:variable name="occurrence_selected" select="(($dt_maxObjects > 0 and not(key('env-param', '{$dt_rg_name}'))) or (key('env-param', '{$dt_rg_name}')='maxNumber')) or ($days='' and $months='' and not(key('env-param','{concat('cto_durationSelect_', @class)}')))"/>
  1512. <out:variable name="daysDisplay"><xts:string id="IDS_PROP_DAYS"/></out:variable>
  1513. <out:variable name="monthsDisplay"><xts:string id="IDS_PROP_MONTHS"/></out:variable>
  1514. <!-- A11y support need labels mapping with ids but keeping the ids unique -->
  1515. <xsl:variable name="dur">dur<xsl:value-of select="@class"/></xsl:variable>
  1516. <xsl:variable name="sel">sel<xsl:value-of select="@class"/></xsl:variable>
  1517. <xsl:variable name="optD">optD<xsl:value-of select="@class"/></xsl:variable>
  1518. <xsl:variable name="optM">optM<xsl:value-of select="@class"/></xsl:variable>
  1519. <dp:list>
  1520. <dp:section valign="top">
  1521. <div>
  1522. <xsl:if test="@class='documentVersion'">
  1523. <xsl:attribute name="style">visibility:hidden;position:absolute;left:-1000px;top:-1000px;</xsl:attribute>
  1524. </xsl:if>
  1525. <dp:choice>
  1526. <dp:section1>
  1527. <out:if test="not($dt_edit) or contains($permissions, 'write')">
  1528. <utml:input type="hidden" name="{$dt_revisit_name}" value="true"/>
  1529. <utml:input type="checkbox" name="{$dt_cb_name}" value="true" id="{$dt_cb_name}" utml:update="true" aria-labelledby="lbl_{$dt_cb_name}">
  1530. <out:attribute name="onclick">(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).toggleContent(this);</out:attribute>
  1531. <out:if test="not($dt_disabled)">
  1532. <out:attribute name="checked">checked</out:attribute>
  1533. </out:if>
  1534. <utml:default-value>true</utml:default-value>
  1535. </utml:input>
  1536. </out:if>
  1537. </dp:section1>
  1538. <dp:section2>
  1539. <out:attribute name="class">formLabel</out:attribute>
  1540. <dp:label id="lbl_{$dt_cb_name}"><xts:string id="{@title}"/></dp:label>
  1541. </dp:section2>
  1542. </dp:choice>
  1543. <xsl:choose>
  1544. <xsl:when test="@ui='retention'">
  1545. <div style="padding-left:2em" id="{concat('retentionContent_', @class)}" role="group">
  1546. <xsl:if test="@title != ''">
  1547. <out:attribute name="aria-label"><xts:string id="{@title}"/></out:attribute>
  1548. </xsl:if>
  1549. <dp:choice aria-labelledby="lbl_{$dt_cb_name}">
  1550. <out:choose>
  1551. <out:when test="not($dt_edit) or contains($permissions, 'write')">
  1552. <utml:radio-group name="{$dt_rg_name}">
  1553. <utml:default-value>
  1554. <out:choose>
  1555. <out:when test="$occurrence_selected">maxNumber</out:when>
  1556. <out:otherwise>duration</out:otherwise>
  1557. </out:choose>
  1558. </utml:default-value>
  1559. <dp:section1>
  1560. <utml:input type="radio" name="{$dt_rg_name}" value="maxNumber" checked="true" tabindex="0" aria-labelledby="lbl_{$dt_rg_name}_maxNumber">
  1561. <xsl:attribute name="onclick">(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).rdToggler(false);</xsl:attribute>
  1562. <out:attribute name="title"><xts:string id="{@label}"/></out:attribute>
  1563. <out:if test="$dt_disabled">
  1564. <out:attribute name="disabled">true</out:attribute>
  1565. </out:if>
  1566. </utml:input>
  1567. </dp:section1>
  1568. <dp:section2>
  1569. <dp:group id="lbl_{$dt_rg_name}_maxNumber">
  1570. <dp:groupItem><label for="ctrl_{concat('cto_maxNumber_', @class)}"><xts:string id="IDS_PROP_NUMBER_VERSIONS"/></label></dp:groupItem>
  1571. <dp:groupItem><dp:text/></dp:groupItem>
  1572. <dp:groupItem>
  1573. <utml:input type="text" name="{concat('cto_maxNumber_', @class)}" size="3" maxlength="3" utml:track="true" validateobject="{concat('rg_retention_', @class)}" id="ctrl_{concat('cto_maxNumber_', @class)}">
  1574. <out:attribute name="title"><xts:string id="IDS_PROP_NUMBER_VERSIONS"/></out:attribute>
  1575. <out:attribute name="onchange">on_cto_maxNumber_<xsl:value-of select="@class"/>_changed();(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).onContentChange()</out:attribute>
  1576. <out:if test="$dt_disabled or not($occurrence_selected)">
  1577. <out:attribute name="disabled">true</out:attribute>
  1578. </out:if>
  1579. <utml:value>
  1580. <out:choose>
  1581. <out:when test="$dt_maxObjects != '' and not(key('env-param', '{$dt_rg_name}'))">
  1582. <out:value-of select="$dt_maxObjects"/>
  1583. </out:when>
  1584. <out:otherwise>
  1585. <out:choose>
  1586. <out:when test="$dt_class='history'">5</out:when>
  1587. <out:otherwise>1</out:otherwise>
  1588. </out:choose>
  1589. </out:otherwise>
  1590. </out:choose>
  1591. </utml:value>
  1592. </utml:input>
  1593. </dp:groupItem>
  1594. </dp:group>
  1595. </dp:section2>
  1596. <dp:section1>
  1597. <utml:input type="radio" name="{$dt_rg_name}" value="duration" tabindex="0" aria-labelledby="grp_{$dt_rg_name}_duration">
  1598. <xsl:attribute name="onclick">(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).rdToggler(true);</xsl:attribute>
  1599. <out:if test="$dt_disabled">
  1600. <out:attribute name="disabled">true</out:attribute>
  1601. </out:if>
  1602. </utml:input>
  1603. </dp:section1>
  1604. <dp:section2>
  1605. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="lbl_{$sel}"><xts:string id="IDS_PROP_DURATION_UNITS"/></span>
  1606. <dp:group id="grp_{$dt_rg_name}_duration"><dp:groupItem><label for="{$dur}"><xts:string id="IDS_PROP_DURATION"/></label>
  1607. <xts:string id="IDS_PROP_DURATION_DUMMY"><xts:param name="duraTime">
  1608. <dp:groupItem><dp:text/></dp:groupItem>
  1609. <dp:groupItem>
  1610. <utml:input type="text" name="{concat('cto_duration_', @class)}" size="3" maxlength="3" utml:track="true" validateobject="{concat('rg_retention_', @class)}" id="{$dur}">
  1611. <out:attribute name="onchange">on_cto_duration_<xsl:value-of select="@class"/>_changed();(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).onContentChange()</out:attribute>
  1612. <out:if test="$dt_disabled or $occurrence_selected or ($days='' and $months='' and not(key('env-param', '{concat('cto_durationSelect_', @class)}')))">
  1613. <out:attribute name="disabled">true</out:attribute>
  1614. </out:if>
  1615. <utml:value>
  1616. <out:choose>
  1617. <out:when test="$days!=''"><out:value-of select="$days"/></out:when>
  1618. <out:when test="$months!=''"><out:value-of select="$months"/></out:when>
  1619. </out:choose>
  1620. </utml:value>
  1621. </utml:input>
  1622. </dp:groupItem>
  1623. </xts:param>
  1624. <xts:param name="duraSpacer">
  1625. <dp:groupItem><dp:text/></dp:groupItem>
  1626. </xts:param>
  1627. <xts:param name="duraType">
  1628. <dp:groupItem>
  1629. <utml:select name="{concat('cto_durationSelect_', @class)}" id="{$sel}" aria-labelledby="lbl_{$sel}">
  1630. <out:attribute name="onchange">(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).onContentChange()</out:attribute>
  1631. <out:if test="$dt_disabled or $occurrence_selected or ($days='' and $months='' and not(key('env-param', '{concat('cto_durationSelect_', @class)}')))">
  1632. <out:attribute name="disabled">true</out:attribute>
  1633. </out:if>
  1634. <utml:option value="days" id="{$optD}">
  1635. <out:if test="$days!='' or key('env-param','{concat('cto_durationSelect_',@class)}')='days' or not(key('env-param','{concat('cto_durationSelect_',@class)}'))">
  1636. <out:attribute name="selected">selected</out:attribute>
  1637. </out:if>
  1638. <label for="{$optD}"><out:value-of select="$daysDisplay"/></label>
  1639. </utml:option>
  1640. <utml:option value="months" id="{$optM}">
  1641. <out:if test="$months!='' or key('env-param','{concat('cto_durationSelect_',@class)}')='months'">
  1642. <out:attribute name="selected">selected</out:attribute>
  1643. </out:if>
  1644. <label for="{$optM}"><out:value-of select="$monthsDisplay"/></label>
  1645. </utml:option>
  1646. </utml:select>
  1647. </dp:groupItem>
  1648. </xts:param>
  1649. </xts:string>
  1650. </dp:groupItem>
  1651. </dp:group>
  1652. </dp:section2>
  1653. </utml:radio-group>
  1654. </out:when>
  1655. <out:otherwise>
  1656. <out:if test="not($dt_disabled)">
  1657. <out:choose>
  1658. <out:when test="$occurrence_selected">
  1659. <dp:section1>
  1660. <xts:string id="IDS_PROP_NUMBER_VERSIONS_READONLY">
  1661. <xts:param name="maxNumber">
  1662. <out:value-of select="$dt_maxObjects"/>
  1663. </xts:param>
  1664. </xts:string>
  1665. </dp:section1>
  1666. </out:when>
  1667. <out:otherwise>
  1668. <dp:section1>
  1669. <out:choose>
  1670. <out:when test="$days != '' ">
  1671. <xts:string id="IDS_PROP_DAYS_READONLY">
  1672. <xts:param name="numDays">
  1673. <out:value-of select="$days"/>
  1674. </xts:param>
  1675. </xts:string>
  1676. </out:when>
  1677. <out:otherwise>
  1678. <xts:string id="IDS_PROP_MONTHS_READONLY">
  1679. <xts:param name="numMonths">
  1680. <out:value-of select="$months"/>
  1681. </xts:param>
  1682. </xts:string>
  1683. </out:otherwise>
  1684. </out:choose>
  1685. </dp:section1>
  1686. </out:otherwise>
  1687. </out:choose>
  1688. </out:if>
  1689. </out:otherwise>
  1690. </out:choose>
  1691. </dp:choice>
  1692. </div>
  1693. </xsl:when>
  1694. <xsl:when test="@ui='removal'">
  1695. <div style="padding-left:2em" id="{concat('retentionContent_', @class)}">
  1696. <dp:choice>
  1697. <out:choose>
  1698. <out:when test="not($dt_edit) or contains($permissions, 'write')">
  1699. <dp:section1>
  1700. <utml:radio-group name="{$dt_rg_name}">
  1701. <utml:default-value>duration</utml:default-value>
  1702. </utml:radio-group>
  1703. <dp:group>
  1704. <dp:groupItem><label for="{$dur}"><xts:string id="IDS_PROP_DURATION"/></label>
  1705. <xts:string id="IDS_PROP_DURATION_DUMMY">
  1706. <xts:param name="duraTime">
  1707. <dp:groupItem><dp:text/></dp:groupItem>
  1708. <dp:groupItem>
  1709. <utml:input type="text" name="{concat('cto_duration_', @class)}" size="3" maxlength="3" utml:track="true" validateobject="{concat('rg_retention_', @class)}" id="{$dur}">
  1710. <out:attribute name="onchange">on_cto_duration_<xsl:value-of select="@class"/>_changed();(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).onContentChange()</out:attribute>
  1711. <out:if test="$dt_disabled">
  1712. <out:attribute name="disabled">true</out:attribute>
  1713. </out:if>
  1714. <utml:value>
  1715. <out:choose>
  1716. <out:when test="$days!=''"><out:value-of select="$days"/></out:when>
  1717. <out:when test="$months!=''"><out:value-of select="$months"/></out:when>
  1718. <!-- hard-coded default value -->
  1719. <out:otherwise>6</out:otherwise>
  1720. </out:choose>
  1721. </utml:value>
  1722. </utml:input>
  1723. </dp:groupItem>
  1724. </xts:param>
  1725. <xts:param name="duraSpacer">
  1726. <dp:groupItem><dp:text/></dp:groupItem>
  1727. </xts:param>
  1728. <xts:param name="duraType">
  1729. <dp:groupItem>
  1730. <label for="{$sel}"/>
  1731. <utml:select name="{concat('cto_durationSelect_', @class)}" id="{$sel}">
  1732. <out:attribute name="onchange">(new com.ibm.cognos.ps.retentionRule(document.pform, '<xsl:value-of select="@class"/>')).onContentChange()</out:attribute>
  1733. <out:if test="$dt_disabled">
  1734. <out:attribute name="disabled">true</out:attribute>
  1735. </out:if>
  1736. <utml:option value="days" id="{$optD}">
  1737. <out:if test="$days!=''">
  1738. <out:attribute name="selected">selected</out:attribute>
  1739. </out:if>
  1740. <label for="{$optD}"><out:value-of select="$daysDisplay"/></label>
  1741. </utml:option>
  1742. <utml:option value="months" id="{$optM}">
  1743. <out:if test="$months!='' or not($dt_option_exist)">
  1744. <out:attribute name="selected">selected</out:attribute>
  1745. </out:if>
  1746. <label for="{$optM}"><out:value-of select="$monthsDisplay"/></label>
  1747. </utml:option>
  1748. </utml:select>
  1749. </dp:groupItem>
  1750. </xts:param>
  1751. </xts:string>
  1752. </dp:groupItem>
  1753. </dp:group>
  1754. </dp:section1>
  1755. </out:when>
  1756. <out:otherwise>
  1757. <out:if test="not($dt_disabled)">
  1758. <dp:section1>
  1759. <out:choose>
  1760. <out:when test="$days != '' ">
  1761. <xts:string id="IDS_PROP_DAYS_READONLY">
  1762. <xts:param name="numDays">
  1763. <out:value-of select="$days"/>
  1764. </xts:param>
  1765. </xts:string>
  1766. </out:when>
  1767. <out:otherwise>
  1768. <xts:string id="IDS_PROP_MONTHS_READONLY">
  1769. <xts:param name="numMonths">
  1770. <out:value-of select="$months"/>
  1771. </xts:param>
  1772. </xts:string>
  1773. </out:otherwise>
  1774. </out:choose>
  1775. </dp:section1>
  1776. </out:if>
  1777. </out:otherwise>
  1778. </out:choose>
  1779. </dp:choice>
  1780. </div>
  1781. </xsl:when>
  1782. </xsl:choose>
  1783. </div>
  1784. </dp:section>
  1785. </dp:list>
  1786. </xsl:template>
  1787. <!--
  1788. ==========================================
  1789. adm:runOptionsRadioButtons
  1790. ==========================================
  1791. -->
  1792. <xsl:template match="adm:runOptionsRadioButtons" name="adm:runOptionsRadioButtons">
  1793. <dp:list>
  1794. <dp:section>
  1795. <dp:label id="lbl_runoption_radioGroup">
  1796. <xts:string id="IDS_CONTENT_ADMIN_OPTION"/>
  1797. </dp:label>
  1798. </dp:section>
  1799. </dp:list>
  1800. <utml:radio-group name="ctro_runoption" utml:default-value="find">
  1801. <dp:choice aria-labelledby="lbl_runoption_radioGroup">
  1802. <dp:section1>
  1803. <utml:input type="radio" value="find" id="ctro_runoption_find"/>
  1804. </dp:section1>
  1805. <dp:section2 for="ctro_runoption_find">
  1806. <out:text/><xts:string id="IDS_CONTENT_ADMIN_OPTIONS_FIND"/><out:text/>
  1807. </dp:section2>
  1808. <dp:section1>
  1809. <utml:input type="radio" value="fix" id="ctro_runoption_fix"/>
  1810. </dp:section1>
  1811. <dp:section2 for="ctro_runoption_fix">
  1812. <out:text/><xts:string id="IDS_CONTENT_ADMIN_OPTIONS_FIX"/><out:text/>
  1813. </dp:section2>
  1814. </dp:choice>
  1815. </utml:radio-group>
  1816. </xsl:template>
  1817. <!--
  1818. ==========================================
  1819. $the-schedule must be defined in the calling morphlet
  1820. ==========================================
  1821. -->
  1822. <xsl:template match="adm:createModeParams">
  1823. <out:element name="param">
  1824. <out:attribute name="name"><out:value-of select="'ctro_runoption'"/></out:attribute>
  1825. <out:choose>
  1826. <out:when test="$the-schedule/*[local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'repairSecurityReferences']/*[local-name()='value'] = 'true' or $the-schedule/*[local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'repairInternalInconsistencies']/*[local-name()='value'] = 'true'"><out:value-of select="'fix'"/></out:when>
  1827. <out:otherwise><out:value-of select="'find'"/></out:otherwise>
  1828. </out:choose>
  1829. </out:element>
  1830. </xsl:template>
  1831. <!--
  1832. ==========================================
  1833. $the-schedule, $the-object, and $the-namespace must be defined in the calling morphlet
  1834. ==========================================
  1835. -->
  1836. <xsl:template match="adm:createOptionsParams">
  1837. <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']/*[local-name()='value']/* and not(/root/env/param[@name = 'cto_externalnamespace'])">
  1838. <out:element name="param">
  1839. <out:attribute name="name"><out:text/>cto_externalnamespace<out:text/></out:attribute>
  1840. <out:value-of select="'select'"/>
  1841. </out:element>
  1842. </out:if>
  1843. <out:if test="not(/root/env/param[@name = 'cto_consistency_check'])">
  1844. <out:element name="param">
  1845. <out:attribute name="name"><out:text/>cto_consistency_check<out:text/></out:attribute>
  1846. <out:choose>
  1847. <out:when test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='repairSecurityReferences']/*[local-name()='value'] = 'true'"><out:value-of select="'externalRef'"/></out:when>
  1848. <out:when test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='checkSecurityReferences']/*[local-name()='value'] = 'true'"><out:value-of select="'externalRef'"/></out:when>
  1849. <out:otherwise><out:value-of select="'internalRef'"/></out:otherwise>
  1850. </out:choose>
  1851. </out:element>
  1852. </out:if>
  1853. <out:for-each select="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='securityReferencesContext']/*[local-name()='value']/*">
  1854. <out:variable name="currentNodeValue" select="."/>
  1855. <out:choose>
  1856. <out:when test="$the-namespaces/*/cm:searchPath = .">
  1857. <out:variable name="paramName"><out:text/>m_namespace_<out:text/><out:value-of select="$the-namespaces/*[cm:searchPath = $currentNodeValue]/cm:defaultName"/></out:variable>
  1858. <out:if test="not(/root/env/param[@name = $paramName])">
  1859. <out:element name="param">
  1860. <out:attribute name="name"><out:value-of select="$paramName"/></out:attribute>
  1861. <out:value-of select="."/>
  1862. </out:element>
  1863. </out:if>
  1864. </out:when>
  1865. <out:otherwise>
  1866. <xsl:element name="param">
  1867. <xsl:attribute name="name"><xsl:value-of select="'deletedNamespace'"/></xsl:attribute>
  1868. <xts:string id="IDS_CONTENT_TASK_UNAVAILABLE"/>
  1869. </xsl:element>
  1870. </out:otherwise>
  1871. </out:choose>
  1872. </out:for-each>
  1873. </xsl:template>
  1874. <!--
  1875. ==========================================
  1876. adm:forceOptionRadioButtons
  1877. ==========================================
  1878. -->
  1879. <xsl:template match="adm:forceOptionRadioButtons">
  1880. <out:variable name="force">
  1881. <out:choose>
  1882. <out:when test="/root/*[local-name()='queryResponse']/*/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='force']/*[local-name()='value']"><out:value-of select="/root/*[local-name()='queryResponse']/*/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='force']/*[local-name()='value']"/></out:when>
  1883. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  1884. </out:choose>
  1885. </out:variable>
  1886. <lyt:layout style="1" border="no">
  1887. <lyt:section>
  1888. <dp:list title="IDS_INDEX_UPDATE_FORCE_OPTION_TITLE">
  1889. <dp:section>
  1890. <dp:hint wrap="wrap"><xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_DESCRIPTION"/></dp:hint>
  1891. </dp:section>
  1892. </dp:list>
  1893. <utml:radio-group name="m_io_force" utml:default-value="false">
  1894. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="lbl_m_io_force"><xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_TITLE"/></span>
  1895. <dp:choice aria-labelledby="lbl_m_io_force">
  1896. <dp:section1>
  1897. <utml:input type="radio" value="false" id="ctrl_force_false"/>
  1898. </dp:section1>
  1899. <dp:section2 for="ctrl_force_false">
  1900. <out:text/><xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_CHANGED_ENTRIES"/><out:text/>
  1901. </dp:section2>
  1902. <dp:section1>
  1903. <utml:input type="radio" value="true" id="ctrl_force_true">
  1904. <out:if test="$force='true'">
  1905. <out:attribute name="checked">checked</out:attribute>
  1906. </out:if>
  1907. </utml:input>
  1908. </dp:section1>
  1909. <dp:section2 for="ctrl_force_true">
  1910. <out:text/><xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_ALL_ENTRIES"/><out:text/>
  1911. </dp:section2>
  1912. </dp:choice>
  1913. </utml:radio-group>
  1914. </lyt:section>
  1915. </lyt:layout>
  1916. </xsl:template>
  1917. <!--
  1918. ==========================================
  1919. adm:indexUpdateContentOptions
  1920. ==========================================
  1921. -->
  1922. <xsl:template match="adm:indexUpdateContentOptions">
  1923. <script language="javascript" src="{'{$webRoot}'}/dojo16/dojo/dojo.js"/>
  1924. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/indexUpdate.js"/>
  1925. <out:variable name="indexObjectTypes"><out:value-of select="/root/env/param[@name='m_io_indexObjectTypes']"/></out:variable>
  1926. <out:variable name="indexReferencedData"><out:value-of select="/root/env/param[@name='m_io_indexReferencedData']"/></out:variable>
  1927. <out:variable name="indexModeledData"><out:value-of select="/root/env/param[@name='m_io_indexModeledData']"/></out:variable>
  1928. <out:variable name="indexData" select="$indexReferencedData='true' or $indexModeledData='true'"/>
  1929. <lyt:layout style="1" border="no">
  1930. <lyt:section>
  1931. <dp:list title="IDS_INDEX_UPDATE_CONTENT_OPTION_TITLE">
  1932. <dp:section>
  1933. <dp:hint wrap="wrap"><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DESCRIPTION"/></dp:hint>
  1934. </dp:section>
  1935. </dp:list>
  1936. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="lbl_indexObjectTypes"><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_TITLE"/></span>
  1937. <dp:choice aria-labelledby="lbl_indexObjectTypes">
  1938. <dp:section1>
  1939. <utml:input type="checkbox" value="true" name="m_io_indexObjectTypes" id="ctrl_indexObjectTypes" utml:update="false">
  1940. <out:if test="$indexObjectTypes='true' or not($indexData)">
  1941. <out:attribute name="checked">checked</out:attribute>
  1942. </out:if>
  1943. </utml:input>
  1944. </dp:section1>
  1945. <dp:section2 for="ctrl_indexObjectTypes">
  1946. <out:text/><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_PROP_AND_METADATA"/><out:text/>
  1947. </dp:section2>
  1948. <dp:section1>
  1949. <utml:input type="checkbox" name="dataIndexOptionToggle" id="ctrl_dataIndexOptionToggle" utml:update="false" onclick="ps.indexUpdate.toggleDataIndexOptions(document.pform)">
  1950. <out:if test="$indexData">
  1951. <out:attribute name="checked">checked</out:attribute>
  1952. </out:if>
  1953. </utml:input>
  1954. </dp:section1>
  1955. <dp:section2 for="ctrl_dataIndexOptionToggle">
  1956. <out:text/><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES"/><out:text/>
  1957. </dp:section2>
  1958. <dp:section3>
  1959. <dp:list>
  1960. <dp:section>
  1961. <utml:input type="hidden" name="m_io_indexReferencedData" utml:update="false" value="true">
  1962. <out:if test="not($indexReferencedData='true')">
  1963. <out:attribute name="disabled">true</out:attribute>
  1964. </out:if>
  1965. </utml:input>
  1966. <utml:input type="hidden" disabled="true" name="m_io_indexModeledData" utml:update="false" value="true">
  1967. <out:if test="not($indexModeledData='true')">
  1968. <out:attribute name="disabled">true</out:attribute>
  1969. </out:if>
  1970. </utml:input>
  1971. <utml:radio-group name="indexDataOption" utml:default-value="true">
  1972. <dp:choice>
  1973. <dp:section1>
  1974. <utml:input type="radio" value="true" id="ctrl_indexDataOption_true" onclick="ps.indexUpdate.toggleDataIndexOptions(document.pform)">
  1975. <out:choose>
  1976. <out:when test="$indexReferencedData='true'">
  1977. <out:attribute name="checked">checked</out:attribute>
  1978. </out:when>
  1979. <out:when test="not($indexData)">
  1980. <out:attribute name="disabled">true</out:attribute>
  1981. </out:when>
  1982. </out:choose>
  1983. </utml:input>
  1984. </dp:section1>
  1985. <dp:section2 for="ctrl_indexDataOption_true">
  1986. <div>
  1987. <out:text/><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES_REF_DATA"/><out:text/>
  1988. </div>
  1989. </dp:section2>
  1990. <dp:section1>
  1991. <utml:input type="radio" value="false" id="ctrl_indexDataOption_false" onclick="ps.indexUpdate.toggleDataIndexOptions (document.pform)">
  1992. <out:choose>
  1993. <out:when test="$indexModeledData='true'">
  1994. <out:attribute name="checked">checked</out:attribute>
  1995. </out:when>
  1996. <out:when test="not($indexData)">
  1997. <out:attribute name="disabled">true</out:attribute>
  1998. </out:when>
  1999. </out:choose>
  2000. </utml:input>
  2001. </dp:section1>
  2002. <dp:section2 for="ctrl_indexDataOption_false">
  2003. <out:text/>
  2004. <div>
  2005. <xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES_ALL_DATA"/>
  2006. </div><out:text/>
  2007. </dp:section2>
  2008. </dp:choice>
  2009. </utml:radio-group>
  2010. </dp:section>
  2011. </dp:list>
  2012. </dp:section3>
  2013. </dp:choice>
  2014. </lyt:section>
  2015. </lyt:layout>
  2016. </xsl:template>
  2017. <xsl:template match="adm:createIndexUpdateParams">
  2018. <out:variable name="item" select="$the-schedule/*[local-name()='options']/*[local-name()='value']/*[local-name()='item']"/>
  2019. <out:element name="param">
  2020. <out:attribute name="name"><out:value-of select="'m_io_force'"/></out:attribute>
  2021. <out:choose>
  2022. <out:when test="$item[child::node() = 'force']/*[local-name()='value'] = 'true'"><xsl:value-of select="'true'"/></out:when>
  2023. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  2024. </out:choose>
  2025. </out:element>
  2026. <out:element name="param">
  2027. <out:attribute name="name"><out:value-of select="'m_io_indexObjectTypes'"/></out:attribute>
  2028. <out:choose>
  2029. <out:when test="$item[child::node() = 'indexObjectTypes']/*[local-name()='value'] = 'true'"><xsl:value-of select="'true'"/></out:when>
  2030. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  2031. </out:choose>
  2032. </out:element>
  2033. <out:element name="param">
  2034. <out:attribute name="name"><out:value-of select="'m_io_indexReferencedData'"/></out:attribute>
  2035. <out:choose>
  2036. <out:when test="$item[child::node() = 'indexReferencedData']/*[local-name()='value'] = 'true'"><xsl:value-of select="'true'"/></out:when>
  2037. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  2038. </out:choose>
  2039. </out:element>
  2040. <out:element name="param">
  2041. <out:attribute name="name"><out:value-of select="'m_io_indexModeledData'"/></out:attribute>
  2042. <out:choose>
  2043. <out:when test="$item[child::node() = 'indexModeledData']/*[local-name()='value'] = 'true'"><xsl:value-of select="'true'"/></out:when>
  2044. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  2045. </out:choose>
  2046. </out:element>
  2047. </xsl:template>
  2048. <xsl:template match="adm:indexUpdateOptions">
  2049. <!-- the possible classes to upgrade are hardcoded for Bering -->
  2050. <cp:table name="indexUpdate_{@IncludeOrExclude}" id="tbl_indexUpdate_{@IncludeOrExclude}" iterate="/root/indexUpdates/{@IncludeOrExclude}/*" width="100%" align="center" showEmptyMsg="true">
  2051. <cp:tableSummary>
  2052. <xsl:choose>
  2053. <xsl:when test="@IncludeOrExclude='include'"><xts:string id="IDS_INDEX_UPDATE_INCLUDED_CONTENT_TABLE_SUMMARY"/></xsl:when>
  2054. <xsl:otherwise><xts:string id="IDS_INDEX_UPDATE_EXCLUDED_CONTENT_TABLE_SUMMARY"/></xsl:otherwise>
  2055. </xsl:choose>
  2056. </cp:tableSummary>
  2057. <!-- possible actions -->
  2058. <cp:action>
  2059. <out:if test="$has_write_permission = true()">
  2060. <utml:a utml:op="maintain">
  2061. <out:attribute name="aria-label">
  2062. <xsl:choose>
  2063. <xsl:when test="@IncludeOrExclude='include'"><xts:string id="IDS_INDEX_UPDATE_ADD_INCLUDED_CONTENT"/></xsl:when>
  2064. <xsl:otherwise><xts:string id="IDS_INDEX_UPDATE_ADD_EXCLUDED_CONTENT"/></xsl:otherwise>
  2065. </xsl:choose>
  2066. </out:attribute>
  2067. <utml:href>clearSelections();</utml:href>
  2068. <utml:href>document.pform.controller_state.value = 'addEntries|navigate';</utml:href>
  2069. <utml:href>document.pform.include_or_exclude.value = '<xsl:value-of select="@IncludeOrExclude"/>';</utml:href>
  2070. <xsl:text/><xts:string id="IDS_INDEX_UPDATE_TASK_ADD"/><xsl:text/>
  2071. </utml:a>
  2072. </out:if>
  2073. </cp:action>
  2074. <cp:action>
  2075. <out:if test="$has_write_permission = true()">
  2076. <utml:a utml:op="maintain">
  2077. <out:attribute name="aria-label">
  2078. <xsl:choose>
  2079. <xsl:when test="@IncludeOrExclude='include'"><xts:string id="IDS_INDEX_UPDATE_REMOVE_INCLUDED_CONTENT"/></xsl:when>
  2080. <xsl:otherwise><xts:string id="IDS_INDEX_UPDATE_REMOVE_EXCLUDED_CONTENT"/></xsl:otherwise>
  2081. </xsl:choose>
  2082. </out:attribute>
  2083. <utml:href>document.pform.listop.value = 'delete';</utml:href>
  2084. <utml:href>document.pform.include_or_exclude.value = '<xsl:value-of select="@IncludeOrExclude"/>';</utml:href>
  2085. <xsl:text/><xts:string id="IDS_INDEX_UPDATE_TASK_REMOVE"/><xsl:text/>
  2086. </utml:a>
  2087. </out:if>
  2088. </cp:action>
  2089. <cp:tableHeader>
  2090. <!-- checkbox -->
  2091. <cp:columnHeader width="16" toggleName="checkbox_location_{@IncludeOrExclude}" noLabel="true" utml="utml"/>
  2092. <!-- icon -->
  2093. <cp:columnHeader width="16"/>
  2094. <!-- name -->
  2095. <cp:columnHeader width="100%">
  2096. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  2097. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  2098. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  2099. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  2100. <xts:string id="IDS_INDEX_UPDATE_TASK_NAME_COLUMN"/>
  2101. </cp:columnHeader>
  2102. </cp:tableHeader>
  2103. <cp:tableContent>
  2104. <out:variable name="entryName">
  2105. <out:choose>
  2106. <out:when test=".[local-name()='unavailable']"><xts:string id="IDS_PROP_ENTRY_NOT_FOUND"/></out:when>
  2107. <out:otherwise><out:value-of select="cm:defaultName"/></out:otherwise>
  2108. </out:choose>
  2109. </out:variable>
  2110. <!-- checkbox -->
  2111. <cp:columnContent valign="top">
  2112. <out:if test="$has_write_permission">
  2113. <utml:input type="checkbox">
  2114. <out:attribute name="aria-label"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="$entryName"/></xts:param></xts:string></out:attribute>
  2115. <utml:name>checkbox_location_<xsl:value-of select="@IncludeOrExclude"/>_<out:value-of select="position()"/></utml:name>
  2116. <utml:value><out:value-of select="position()"/></utml:value>
  2117. </utml:input>
  2118. </out:if>
  2119. </cp:columnContent>
  2120. <!-- icon -->
  2121. <cp:columnContent valign="top">
  2122. <out:variable name="overrideObjectClass">
  2123. <out:if test="cm:objectClass='namespace'">pfr</out:if>
  2124. </out:variable>
  2125. <out:call-template name="gen-icon">
  2126. <out:with-param name="showAction" select="false()"/>
  2127. <out:with-param name="class" select="$overrideObjectClass"/>
  2128. <out:with-param name="userInterfaces" select="*[local-name()='userInterfaces']/*[local-name()='uiComponentEnum']"/>
  2129. <out:with-param name="hiddenObject" select="cm:hidden"/>
  2130. </out:call-template>
  2131. </cp:columnContent>
  2132. <!-- name -->
  2133. <cp:columnContent>
  2134. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  2135. <out:attribute name="alt">
  2136. <cf:do-the-path-link>
  2137. <cf:param name="familytree">cm:ancestors</cf:param>
  2138. <cf:param name="familymember">cm:defaultName</cf:param>
  2139. <cf:param name="onlyAncestors">true</cf:param>
  2140. </cf:do-the-path-link>
  2141. </out:attribute>
  2142. </img>
  2143. <xsl:text>&#160;</xsl:text>
  2144. <out:value-of select="$entryName"/>
  2145. </cp:columnContent>
  2146. </cp:tableContent>
  2147. </cp:table>
  2148. </xsl:template>
  2149. <xsl:template match="adm:indexUpdateOptionsSummary">
  2150. <lyt:layout style="1" border="no">
  2151. <lyt:section>
  2152. <dp:list>
  2153. <dp:section>
  2154. <dp:label>
  2155. <xts:string id="IDS_INDEX_UPDATE_TASK_TABLE_TITLE_INCLUDE"/>
  2156. </dp:label>
  2157. </dp:section>
  2158. </dp:list>
  2159. <cp:table name="indexUpdateOptionsSummaryInclude" id="tbl_indexUpdateOptionsSummaryInclude" iterate="/root/indexUpdates/include/*" width="20%">
  2160. <cp:tableHeader>
  2161. <cp:columnHeader>
  2162. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  2163. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  2164. <xts:string id="IDS_INDEX_UPDATE_TASK_NAME_COLUMN"/>
  2165. </cp:columnHeader>
  2166. </cp:tableHeader>
  2167. <cp:tableContent>
  2168. <cp:columnContent>
  2169. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  2170. <out:attribute name="alt">
  2171. <cf:do-the-path-link>
  2172. <cf:param name="familytree">cm:ancestors</cf:param>
  2173. <cf:param name="familymember">cm:defaultName</cf:param>
  2174. <cf:param name="onlyAncestors">true</cf:param>
  2175. </cf:do-the-path-link>
  2176. </out:attribute>
  2177. </img>
  2178. <xsl:text>&#160;</xsl:text>
  2179. <out:value-of select="cm:defaultName"/>
  2180. </cp:columnContent>
  2181. </cp:tableContent>
  2182. </cp:table>
  2183. <br />
  2184. <dp:list>
  2185. <dp:section>
  2186. <dp:label>
  2187. <xts:string id="IDS_INDEX_UPDATE_TASK_TABLE_TITLE_EXCLUDE"/>
  2188. </dp:label>
  2189. </dp:section>
  2190. </dp:list>
  2191. <cp:table name="indexUpdateOptionsSummaryExclude" id="tbl_indexUpdateOptionsSummaryExclude" iterate="/root/indexUpdates/exclude/*" width="20%">
  2192. <cp:tableHeader>
  2193. <cp:columnHeader>
  2194. <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text>&#160;</out:text>
  2195. <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
  2196. <xts:string id="IDS_INDEX_UPDATE_TASK_NAME_COLUMN"/>
  2197. </cp:columnHeader>
  2198. </cp:tableHeader>
  2199. <cp:tableContent>
  2200. <cp:columnContent>
  2201. <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
  2202. <out:attribute name="alt">
  2203. <cf:do-the-path-link>
  2204. <cf:param name="familytree">cm:ancestors</cf:param>
  2205. <cf:param name="familymember">cm:defaultName</cf:param>
  2206. <cf:param name="onlyAncestors">true</cf:param>
  2207. </cf:do-the-path-link>
  2208. </out:attribute>
  2209. </img>
  2210. <xsl:text>&#160;</xsl:text>
  2211. <out:value-of select="cm:defaultName"/>
  2212. </cp:columnContent>
  2213. </cp:tableContent>
  2214. </cp:table>
  2215. </lyt:section>
  2216. </lyt:layout>
  2217. </xsl:template>
  2218. <xsl:template match="*">
  2219. <xsl:copy>
  2220. <xsl:copy-of select="@*"/>
  2221. <xsl:apply-templates/>
  2222. </xsl:copy>
  2223. </xsl:template>
  2224. </xsl:stylesheet>