deploymentlogic.xsl 193 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108
  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, 2018
  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:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
  21. xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
  22. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  23. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  24. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  25. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  26. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  27. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  28. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  29. xmlns:x="x"
  30. xmlns:out="dummy-uri"
  31. exclude-result-prefixes="xsl lyt dp df cf cp dpl bus dbg cml utml xts send pf x">
  32. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  33. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  34. <!--
  35. Templates:
  36. dpl:defaultArchiveOptionsValuesForJobStep
  37. dpl:defaultArchiveOptionsValuesForSchedule
  38. dpl:archiveDeploymentOptionsRadioButtons
  39. dpl:importPackagesAvailableUI
  40. dpl:tenantSelectionScript
  41. dpl:exportSelectTenantUI
  42. dpl:selectTenantUI
  43. dpl:exportPackagesAvailableUI
  44. dpl:shortOptionsSummary
  45. dpl:packagesToInclude
  46. dpl:packagesIncludeReportOutput
  47. dpl:initContentOptions
  48. dpl:initMethodOptions
  49. dpl:initGeneralOptions
  50. dpl:disableDependentOptionsRadio
  51. dpl:disableDependentOptions
  52. dpl:saveLastValueFunctionRadio
  53. dpl:saveLastValueFunction
  54. dpl:directoryContentOptions
  55. dpl:tenantsOptionsSummary
  56. dpl:entireContentStoreOptionsSummary
  57. dpl:packagesOptionsSummary
  58. dpl:directoryContentOptionsSummary
  59. dpl:generalOptionsSummary
  60. dpl:fileSelectionPager
  61. dpl:recordEntriesPager
  62. dpl:generalOptions
  63. dpl:deploymentMethodOptions
  64. dpl:variables
  65. dpl:getPackagesInContent
  66. dpl:description
  67. dpl:getDeploymentObject
  68. dpl:setVariables
  69. dpl:getArchiveOptions
  70. dpl:getSourceAncestorDefaultName
  71. dpl:getTargetAncestorInfo
  72. dpl:getArchiveNames
  73. dpl:sortDeploymentOptionsUI
  74. dpl:getNumberOfPackages
  75. dpl:addOrRemoveExportPackages
  76. dpl:makeDeploymentOptions
  77. dpl:encodeOptions
  78. dpl:getDefaultPackageName
  79. dpl:isDirectoryContentOptionsPageSkipped
  80. Parameters:
  81. dpl:param name="item-path"
  82. dpl:param name="type" import or export
  83. dpl:param name="new" true or false
  84. dpl:param name="read-only" true or false
  85. dpl:param name="target" target morphlet
  86. dpl:param name="track" true or false
  87. -->
  88. <!--
  89. =========================================================
  90. dpl:defaultArchiveOptionsValuesForJobStep
  91. $currentStepOptions must be defined in the calling morphlet
  92. =========================================================
  93. -->
  94. <xsl:template match="dpl:defaultArchiveOptionsValuesForJobStep">
  95. <out:element name="param">
  96. <out:attribute name="name"><out:value-of select="'deploymentro_upgrade'"/></out:attribute>
  97. <out:choose>
  98. <out:when test="$currentStepOptions/*[local-name()='value']/*[local-name()='item'][child::node() = 'upgradeClasses']/*[local-name()='value'] != ''"><xsl:value-of select="'upgrade'"/></out:when>
  99. <out:when test="$currentStepOptions != ''"><xsl:value-of select="'keep'"/></out:when>
  100. <out:when test="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and contains(@*[local-name()='type'],'deploymentOptionClassEnumArray')]">
  101. <out:choose>
  102. <out:when test="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'upgradeClasses']/*[local-name()='value'] != ''"><xsl:value-of select="'upgrade'"/></out:when>
  103. <out:otherwise><xsl:value-of select="'keep'"/></out:otherwise>
  104. </out:choose>
  105. </out:when>
  106. <out:otherwise>
  107. <out:choose>
  108. <out:when test="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='upgradeClasses']!=''"><xsl:value-of select="'upgrade'"/></out:when>
  109. <out:otherwise><xsl:value-of select="'keep'"/></out:otherwise>
  110. </out:choose>
  111. </out:otherwise>
  112. </out:choose>
  113. </out:element>
  114. <out:variable name="preserveStoreIDs_JobStepOption-value">
  115. <out:value-of select="$currentStepOptions/*[local-name()='value']/*[local-name()='item'][child::node() = 'preserveStoreIDs']/*[local-name()='value']"/>
  116. </out:variable>
  117. <out:variable name="preserveStoreIDs_JobOption-value">
  118. <out:value-of select="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'preserveStoreIDs']/*[local-name()='value']"/>
  119. </out:variable>
  120. <out:variable name="preserveStoreIDs_Option-value">
  121. <out:value-of select="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='preserveStoreIDs']"/>
  122. </out:variable>
  123. <out:element name="param">
  124. <out:attribute name="name"><out:value-of select="'deploymentro_preserveStoreIDs'"/></out:attribute>
  125. <out:choose>
  126. <out:when test="$preserveStoreIDs_JobStepOption-value != ''"><out:value-of select="$preserveStoreIDs_JobStepOption-value"/></out:when>
  127. <out:when test="$preserveStoreIDs_JobOption-value !=''"><out:value-of select="$preserveStoreIDs_JobOption-value"/></out:when>
  128. <out:when test="$preserveStoreIDs_Option-value !=''"><out:value-of select="$preserveStoreIDs_Option-value"/></out:when>
  129. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  130. </out:choose>
  131. </out:element>
  132. </xsl:template>
  133. <!--
  134. ======================================================
  135. dpl:defaultArchiveOptionsValuesForSchedule
  136. $the-schedule must be defined in the calling morphlet
  137. =======================================================
  138. -->
  139. <xsl:template match="dpl:defaultArchiveOptionsValuesForSchedule">
  140. <out:element name="param">
  141. <out:attribute name="name"><out:value-of select="'deploymentro_upgrade'"/></out:attribute>
  142. <out:choose>
  143. <out:when test="$the-schedule/*[local-name()='deploymentOptions' or local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'upgradeClasses']/*[local-name()='value'] != ''"><out:value-of select="'upgrade'"/></out:when>
  144. <out:when test="$the-schedule != ''"><out:value-of select="'keep'"/></out:when>
  145. <out:otherwise>
  146. <out:choose>
  147. <out:when test="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='upgradeClasses']!=''"><out:value-of select="'upgrade'"/></out:when>
  148. <out:otherwise><out:value-of select="'keep'"/></out:otherwise>
  149. </out:choose>
  150. </out:otherwise>
  151. </out:choose>
  152. </out:element>
  153. <out:variable name="archiveOption-value">
  154. <out:value-of select="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='preserveStoreIDs']"/>
  155. </out:variable>
  156. <out:variable name="schedule-value">
  157. <out:value-of select="$the-schedule/*[local-name()='deploymentOptions' or local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'preserveStoreIDs']/*[local-name()='value']"/>
  158. </out:variable>
  159. <out:element name="param">
  160. <out:attribute name="name"><out:value-of select="'deploymentro_preserveStoreIDs'"/></out:attribute>
  161. <out:choose>
  162. <out:when test="$schedule-value != ''"><out:value-of select="$schedule-value"/></out:when>
  163. <out:when test="$the-schedule != ''"><out:value-of select="'false'"/></out:when>
  164. <out:otherwise>
  165. <out:choose>
  166. <out:when test="$archiveOption-value !=''"><out:value-of select="$archiveOption-value"/></out:when>
  167. <out:otherwise><out:value-of select="'false'"/></out:otherwise>
  168. </out:choose>
  169. </out:otherwise>
  170. </out:choose>
  171. </out:element>
  172. </xsl:template>
  173. <!--
  174. =========================================
  175. dpl:archiveDeploymentOptionsRadioButtons
  176. =========================================
  177. -->
  178. <xsl:template match="dpl:archiveDeploymentOptionsRadioButtons">
  179. <out:if test="$deployment-method='import' ">
  180. <utml:input type="hidden" name="deploymentro_upgradeClasses" value="report" utml:update="false"/>
  181. <utml:input type="hidden" name="deploymentro_upgradeClasses" value="query" utml:update="false"/>
  182. <dp:list>
  183. <dp:section>
  184. <dp:label id="lbl_deploymentro_upgrade_radioGroup">
  185. <xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_TITLE"/>
  186. </dp:label>
  187. </dp:section>
  188. </dp:list>
  189. <dp:list>
  190. <dp:section>
  191. <out:value-of select="' '"/><dp:hint wrap="wrap"><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_DESCRIPTION"/></dp:hint>
  192. </dp:section>
  193. </dp:list>
  194. <utml:radio-group name="deploymentro_upgrade" utml:default-value="keep">
  195. <dp:choice aria-labelledby="lbl_deploymentro_upgrade_radioGroup">
  196. <dp:section1>
  197. <utml:input type="radio" value="upgrade" id="ctrl_deploymentro_upgrade_upgrade"/>
  198. </dp:section1>
  199. <dp:section2 for="ctrl_deploymentro_upgrade_upgrade">
  200. <out:text/><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_UPGRADE"/><out:text/>
  201. </dp:section2>
  202. <dp:section1>
  203. <utml:input type="radio" value="keep" id="ctrl_deploymentro_upgrade_keep"/>
  204. </dp:section1>
  205. <dp:section2 for="ctrl_deploymentro_upgrade_keep">
  206. <out:text/><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_KEEP"/><out:text/>
  207. </dp:section2>
  208. </dp:choice>
  209. </utml:radio-group>
  210. <dp:list>
  211. <dp:section>
  212. <dp:label id="lbl_deploymentro_preserveStoreIDs_radioGroup">
  213. <xts:string id="IDS_DEPLOYMENT_OPTIONS_PRESERVE_STOREIDS_RADIO_SET_TITLE"/>
  214. </dp:label>
  215. </dp:section>
  216. </dp:list>
  217. <dp:list>
  218. <dp:section>
  219. <out:value-of select="' '"/><dp:hint wrap="wrap"><xts:string id="IDS_DEPLOYMENT_OPTIONS_PRESERVE_STOREIDS_HINT_TEXT"/></dp:hint>
  220. </dp:section>
  221. </dp:list>
  222. <utml:radio-group name="deploymentro_preserveStoreIDs" utml:default-value="false">
  223. <dp:choice aria-labelledby="lbl_deploymentro_preserveStoreIDs_radioGroup">
  224. <dp:section1>
  225. <utml:input type="radio" value="false" onClick="javascript:hideDynamicDiv('storeIDWarning');javascript:showDynamicDiv('emptyWarning')" id="ctrl_deploymentro_preserveStoreIDs_false"/>
  226. </dp:section1>
  227. <dp:section2 for="ctrl_deploymentro_preserveStoreIDs_false">
  228. <out:text/><xts:string id="IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_PRESERVE_STOREIDS"/><out:text/>
  229. </dp:section2>
  230. <dp:section1>
  231. <utml:input type="radio" value="true" onClick="javascript:showDynamicDiv('storeIDWarning');javascript:hideDynamicDiv('emptyWarning')" id="ctrl_deploymentro_preserveStoreIDs_true" aria-describedby="storeIDWarning"/>
  232. </dp:section1>
  233. <dp:section2 for="ctrl_deploymentro_preserveStoreIDs_true">
  234. <out:text/><xts:string id="IDS_DEPLOYMENT_OPTIONS_INCLUDE_PRESERVE_STOREIDS"/><out:text/>
  235. </dp:section2>
  236. </dp:choice>
  237. </utml:radio-group>
  238. <cf:dynamicDiv name="storeIDWarning" visible="false" initialize="false">
  239. <dp:list padding="5">
  240. <dp:section width="100%">
  241. <img border="0" height="16" width="16">
  242. <out:attribute name="src"><out:value-of select="concat($webcontent, '/', $app, '/images/msg_warning_16.gif')"/></out:attribute>
  243. <out:attribute name="alt"><xts:string id="IDS_STATUS_WARN" encode="html"/></out:attribute>
  244. </img>
  245. <dp:text wrap="wrap"><xts:string id="IDS_DEPLOYMENT_OPTIONS_PRESERVE_STOREIDS_WARNING"/></dp:text>
  246. </dp:section>
  247. </dp:list>
  248. </cf:dynamicDiv>
  249. <!-- serves as a placeholder for the storeID warning -->
  250. <cf:dynamicDiv name="emptyWarning" visible="true" initialize="false">
  251. <dp:list padding="5">
  252. <dp:section width="100%">
  253. <img border="0" height="26" width="16" alt="">
  254. <out:attribute name="src"><out:value-of select="concat($webcontent,'/images/space.gif')"/></out:attribute>
  255. </img>
  256. </dp:section>
  257. </dp:list>
  258. </cf:dynamicDiv>
  259. </out:if>
  260. </xsl:template>
  261. <xsl:template match="dpl:importPackagesAvailableUI">
  262. <xsl:variable name="track" select="@dpl:track"/>
  263. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/utilities.js"/>
  264. <script language="JavaScript"><![CDATA[
  265. function disablePackageOptions()
  266. {
  267. var disable = true;
  268. for(var i=0; document.pform.length > i && disable == true; i++)
  269. if (document.pform.elements[i].name.substring( 0, 31) == 'availablePackagesCheckboxPrefix' &&
  270. document.pform.elements[i].checked )
  271. disable = false;
  272. for(var i=0; document.pform.length > i; i++)
  273. {
  274. if (document.pform.elements[i].name == "m_packageOutputs" ||
  275. document.pform.elements[i].name == "m_packageDatasetOutputs" ||
  276. document.pform.elements[i].name == "m_packageHistories" ||
  277. document.pform.elements[i].name == "m_packageSchedules")
  278. {
  279. var optionName = document.pform.elements[i].name.substring( 2);
  280. var disabledVarName = "m_disabled_" + optionName;
  281. var mDisabledExist = false;
  282. for(var j=0; document.pform.length > j && mDisabledExist == false; j++)
  283. {
  284. if (document.pform.elements[j].name == disabledVarName )
  285. mDisabledExist = true;
  286. }
  287. if (mDisabledExist == false)
  288. {
  289. document.pform.elements[i].disabled = disable;
  290. if (disable)
  291. {
  292. document.pform.elements[i].checked = false;
  293. }
  294. else
  295. {
  296. var lastValueVarName = "m_last_value_" + optionName;
  297. var lastValue = false;
  298. var lastValueFound = false;
  299. for(var j=0; document.pform.length > j && lastValueFound == false; j++)
  300. {
  301. if (document.pform.elements[j].name == lastValueVarName )
  302. {
  303. lastValue = document.pform.elements[j].value;
  304. lastValueFound = true;
  305. }
  306. }
  307. if ( lastValue == "true" )
  308. document.pform.elements[i].checked = true;
  309. else
  310. document.pform.elements[i].checked = false;
  311. }
  312. }
  313. disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
  314. }
  315. }
  316. }
  317. ]]>
  318. <xsl:if test="@is-scrolling='true' and @div_id!=''">
  319. function dplScrollingTableResizeHandler(evt) {
  320. var isIE = <out:value-of select="$browser = 'ie'"/>;
  321. var divId = '<xsl:value-of select="@div_id"/>';
  322. var divBody = divId + 'Body';
  323. var divHeader = divId + 'Header';
  324. var nBottomSpace = 400;
  325. var minSize = 100;
  326. scrollingTableResizeHandler(evt, isIE, divId, divBody, divHeader, nBottomSpace, minSize);
  327. }
  328. scrollingTableAddEvent(window,'load', dplScrollingTableResizeHandler);
  329. scrollingTableAddEvent(window,'resize', dplScrollingTableResizeHandler);
  330. dplScrollingTableResizeHandler('');
  331. </xsl:if>
  332. </script>
  333. <dp:list>
  334. <dp:section>
  335. <dp:hint>
  336. <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_1"/>
  337. </dp:hint>
  338. </dp:section>
  339. <dp:section>
  340. <dp:hint>
  341. <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_2"/>
  342. </dp:hint>
  343. </dp:section>
  344. </dp:list>
  345. <out:if test="/root/numberOfPackages > 0">
  346. <dp:list width="100%">
  347. <dp:section>
  348. <dp:text width="100%"/>
  349. <dp:text nospace="nospace">
  350. <xts:string id="IDS_ENTRIES"/>
  351. 1 - <out:value-of select="/root/numberOfPackages"/>
  352. </dp:text>
  353. </dp:section>
  354. </dp:list>
  355. </out:if>
  356. <cp:table name="availablePackages" width="100%" is-scrolling="{@is-scrolling}" id="{@div_id}" align="left" showEmptyMsg="true">
  357. <xsl:attribute name="iterate">
  358. <xsl:copy-of select="dpl:param[@name='item-path']"/>
  359. </xsl:attribute>
  360. <cp:tableSummary><xts:string id="IDS_DEPLOYMENT_PACKAGES_AVAILABLE_IMPORT"/></cp:tableSummary>
  361. <cp:tableHeader>
  362. <xsl:if test="not(dpl:param[@name='read-only']='true')">
  363. <cp:columnHeader width="16" toggleName="availablePackagesCheckboxPrefix" noLabel="true" utml="utml" other="disablePackageOptions();"/>
  364. </xsl:if>
  365. <cp:columnHeader width="16"/>
  366. <cp:columnHeader width="30%">
  367. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  368. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  369. <xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/>
  370. </cp:columnHeader>
  371. <cp:columnHeader width="40%">
  372. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  373. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  374. <xts:string id="IDS_DEPLOYMENT_PACKAGES_TARGET_NAME"/>
  375. </cp:columnHeader>
  376. <cp:columnHeader width="25%" toggleName="packageDisabledPrefix" toggleLabel="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT"/>
  377. <xsl:if test="not(dpl:param[@name='new']='true') and not(dpl:param[@name='propertyPage']='true')">
  378. <cp:columnHeader width="150">
  379. <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_SPECIFICATION"/>
  380. </cp:columnHeader>
  381. </xsl:if>
  382. <cp:columnHeader>
  383. <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/>
  384. </cp:columnHeader>
  385. <cp:columnHeader>
  386. <xts:string id="IDS_MODIFIED"/>
  387. </cp:columnHeader>
  388. </cp:tableHeader>
  389. <cp:tableContent>
  390. <out:variable name="showTargetLinkAndDisableCheckbox">
  391. <out:value-of select="not(cm:objectClass='namespace' or cm:objectClass='namespaceFolder' or cm:objectClass='account' or cm:objectClass='catalog' or cm:objectClass='catalogFolder' or cm:objectClass='visualization' or cm:objectClass='userInterfaceProfile')"/>
  392. </out:variable>
  393. <cp:columnContent>
  394. <out:if test="not(cm:showAsDisabled='true')">
  395. <utml:input type="checkbox" utml:track="true" onclick="javascript:disablePackageOptions();">
  396. <out:if test="cm:inPackagesToInclude='true'">
  397. <out:attribute name="checked">checked</out:attribute>
  398. </out:if>
  399. <out:attribute name="aria-label"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="cm:defaultSourceName"/></xts:param></xts:string></out:attribute>
  400. <utml:prefix>
  401. <out:text>availablePackagesCheckboxPrefix_</out:text>
  402. </utml:prefix>
  403. <utml:value>
  404. <out:value-of select="x:guid"/>
  405. </utml:value>
  406. <utml:name>
  407. <out:value-of select="x:guid"/>
  408. </utml:name>
  409. </utml:input>
  410. </out:if>
  411. </cp:columnContent>
  412. <cp:columnContent>
  413. <out:call-template name="gen-icon">
  414. <out:with-param name="class" select="*[local-name()='objectClass']"/>
  415. <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
  416. </out:call-template>
  417. </cp:columnContent>
  418. <cp:columnContent wrap="wrap" lang="{'{$contentLocale}'}" scope="row">
  419. <out:variable name="default-source-name">
  420. <out:value-of select="cm:defaultSourceName"/>
  421. </out:variable>
  422. <img height="16" width="20" align="absmiddle">
  423. <out:attribute name="alt">
  424. <cf:do-the-path-link>
  425. <cf:param name="familytree">*[local-name()='ancestorsSource']</cf:param>
  426. <cf:param name="familymember">*[local-name()='defaultSourceName']</cf:param>
  427. <cf:param name="onlyAncestors">true</cf:param>
  428. </cf:do-the-path-link>
  429. </out:attribute>
  430. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  431. </img>
  432. <out:text>&#160;</out:text>
  433. <out:choose>
  434. <out:when test="cm:showAsDisabled='true'">
  435. <dp:inactiveText><out:value-of select="$default-source-name"/></dp:inactiveText>
  436. </out:when>
  437. <out:otherwise>
  438. <out:value-of select="$default-source-name"/>
  439. </out:otherwise>
  440. </out:choose>
  441. </cp:columnContent>
  442. <cp:columnContent images="images" wrap="wrap">
  443. <out:variable name="default-target-name">
  444. <out:value-of select="cm:defaultTargetName"/>
  445. </out:variable>
  446. <out:variable name="class">
  447. <out:value-of select="cm:objectClass"/>
  448. </out:variable>
  449. <out:choose>
  450. <out:when test="cm:showAsDisabled='true'">
  451. <dp:inactiveText><span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span></dp:inactiveText>
  452. </out:when>
  453. <out:otherwise>
  454. <dp:group>
  455. <dp:groupItem>
  456. <img height="16" width="20" align="absmiddle" lang="{'{$contentLocale}'}">
  457. <out:attribute name="alt">
  458. <cf:do-the-path-link>
  459. <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
  460. <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
  461. <cf:param name="onlyAncestors">true</cf:param>
  462. </cf:do-the-path-link>
  463. </out:attribute>
  464. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  465. </img>
  466. <out:text>&#160;</out:text>
  467. </dp:groupItem>
  468. <dp:groupItem>
  469. <span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span>
  470. </dp:groupItem>
  471. <dp:groupItem valign="bottom">
  472. <img height="1" width="8" alt="">
  473. <out:attribute name="src">
  474. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  475. </img>
  476. <out:if test="$showTargetLinkAndDisableCheckbox='true'">
  477. <dp:link>
  478. <utml:a utml:op="stack-up" role="button">
  479. <out:variable name="targetNameMarkup">
  480. <out:call-template name="serialize-xml">
  481. <out:with-param name="node-set" select="cm:targetName"/>
  482. </out:call-template>
  483. </out:variable>
  484. <out:variable name="sourceNameMarkup">
  485. <out:call-template name="serialize-xml">
  486. <out:with-param name="node-set" select="cm:sourceName"/>
  487. </out:call-template>
  488. </out:variable>
  489. <out:attribute name="onClick">
  490. <xsl:text/>document.pform.target_rename.value='<xsl:text/><out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($targetNameMarkup), true()))"/><xsl:text/>';<xsl:text/>
  491. <xsl:text/>document.pform.target_source_name.value='<xsl:text/><out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($sourceNameMarkup), true()))"/><xsl:text/>';<xsl:text/>
  492. <xsl:text/>document.pform.target_guid.value='<xsl:text/><out:value-of select="x:guid"/><xsl:text/>';<xsl:text/>
  493. <xsl:text/>document.pform.target_location.value='<xsl:text/><out:value-of select="xtsext:javascriptencode(string(*[local-name()='targetLocation']))"/><xsl:text/>';<xsl:text/>
  494. </out:attribute>
  495. <utml:target>
  496. <xsl:text>portal/deployment_target_name.xts</xsl:text>
  497. </utml:target>
  498. <img border="0">
  499. <out:attribute name="src"><out:value-of select="$image_root"/>action_edit_10.gif</out:attribute>
  500. <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_TARGET_EDIT_ALT" encode="html"><xts:param name="targetName"><out:value-of select="$default-target-name"/></xts:param></xts:string></out:attribute>
  501. </img>
  502. </utml:a>
  503. </dp:link>
  504. </out:if>
  505. </dp:groupItem></dp:group>
  506. </out:otherwise>
  507. </out:choose>
  508. </cp:columnContent>
  509. <cp:columnContent>
  510. <out:if test="not(cm:showAsDisabled='true') and $showTargetLinkAndDisableCheckbox='true'">
  511. <utml:input type="checkbox" utml:track="true">
  512. <out:if test="./cm:enabled='false'">
  513. <out:attribute name="checked">checked</out:attribute>
  514. </out:if>
  515. <out:attribute name="aria-label"><xts:string id="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT_ARIA"><xts:param name="objName"><out:value-of select="cm:defaultSourceName"/></xts:param></xts:string></out:attribute>
  516. <utml:prefix>
  517. <out:text>packageDisabledPrefix_</out:text>
  518. </utml:prefix>
  519. <utml:value>
  520. <out:value-of select="x:guid"/>
  521. </utml:value>
  522. <utml:name>
  523. <out:value-of select="x:guid"/>
  524. </utml:name>
  525. </utml:input>
  526. <out:if test="./cm:enabled='false' and position()=last()"> <!-- only generate script on last entry -->
  527. <cp:columnHeaderToggleSet toggleName="packageDisabledPrefix"/>
  528. </out:if>
  529. </out:if>
  530. </cp:columnContent>
  531. <xsl:if test="not(dpl:param[@name='new']='true') and not(dpl:param[@name='propertyPage']='true')">
  532. <cp:columnContent>
  533. <out:variable name="inTargetSpecification" select="cm:inTargetSpecification"/>
  534. <out:choose>
  535. <out:when test="$inTargetSpecification='true' ">
  536. <img height="16" width="16">
  537. <out:attribute name="src">
  538. <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
  539. </img>
  540. </out:when>
  541. <out:otherwise>
  542. <img height="16" width="16" alt="">
  543. <out:attribute name="src">
  544. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  545. </img>
  546. </out:otherwise>
  547. </out:choose>
  548. </cp:columnContent>
  549. </xsl:if>
  550. <cp:columnContent>
  551. <out:variable name="inTargetContent" select="cm:inTargetContent"/>
  552. <out:choose>
  553. <out:when test="$inTargetContent='true' ">
  554. <img height="16" width="16">
  555. <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/></out:attribute>
  556. <out:attribute name="src">
  557. <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
  558. </img>
  559. </out:when>
  560. <out:otherwise>
  561. <img height="16" width="16" alt="">
  562. <out:attribute name="src">
  563. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  564. </img>
  565. </out:otherwise>
  566. </out:choose>
  567. </cp:columnContent>
  568. <cp:columnContent>
  569. <out:choose>
  570. <out:when test="cm:modificationTime != ''">
  571. <nobr>
  572. <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string ( $timeZone ), string( $contentLocale ) )"/>
  573. </nobr>
  574. </out:when>
  575. <out:otherwise>
  576. <img height="16" width="16" alt="">
  577. <out:attribute name="src">
  578. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  579. </img>
  580. </out:otherwise>
  581. </out:choose>
  582. </cp:columnContent>
  583. </cp:tableContent>
  584. </cp:table>
  585. </xsl:template>
  586. <xsl:template match="dpl:tenantSelectionScript">
  587. <out:variable name="isFirstVisit" select="not(key('env-param', 'selectTenantsPageVisited'))" />
  588. <script language="javascript">
  589. dojo.require("dojo.store.Memory");
  590. dojo.require("dojo.data.ItemFileReadStore");
  591. dojo.require("dojox.html.entities");
  592. var tenantsResponse = new dojo.data.ItemFileReadStore({
  593. url: "<out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/tenants/listTenants.xts"
  594. });
  595. <out:choose>
  596. <out:when test="key('env-param', 'selectPublicTenant')='true'">
  597. var publicTenant = true;
  598. </out:when>
  599. <out:otherwise>
  600. var publicTenant = false;
  601. </out:otherwise>
  602. </out:choose>
  603. var tenantStore = null;
  604. function handleResponse(tenants, findResult){
  605. var selectedTenants=[];
  606. <out:for-each select="/root/env/param[@name='selectedTenants']">
  607. selectedTenants[selectedTenants.length]='<out:value-of select="xtsext:javascriptencode(.)"/>';
  608. </out:for-each>
  609. var cmTenantIds = [];
  610. for (var i = 0; i &lt; tenants.length; i++){
  611. var tenant = tenants[i];
  612. cmTenantIds[cmTenantIds.length] = tenant.id;
  613. tenant.selected = dojo.indexOf(selectedTenants,tenant.id) &gt;= 0;
  614. tenant.node = dojo.create("option",{value:xmlDecode(tenant.id), innerHTML:tenant.name});
  615. }
  616. for (var i=0; i &lt; selectedTenants.length; i++) {
  617. var tenantId = selectedTenants[i];
  618. if (dojo.indexOf(cmTenantIds,tenantId) &lt; 0) {
  619. var noNameTenant = {
  620. id: tenantId,
  621. name: tenantId,
  622. node: dojo.create("option",{value:xmlDecode(tenantId), innerHTML:xmlDecode(tenantId), selected:'true'}),
  623. selected: true
  624. }
  625. tenants[tenants.length] = noNameTenant;
  626. }
  627. }
  628. tenantStore = new dojo.store.Memory({data:tenants,idProperty:"name"});
  629. populateSelectControls();
  630. }
  631. dojo.ready(function() {
  632. tenantsResponse.fetch({onComplete: handleResponse});
  633. var selectPublicTenantChkBox = dojo.byId("id_selectPublicTenant");
  634. if (selectPublicTenantChkBox) {
  635. selectPublicTenantChkBox.checked = publicTenant;
  636. }
  637. });
  638. function xmlDecode(value) {
  639. return dojox.html.entities.decode(String(value));
  640. }
  641. function modifySelection(source, isSelected) {
  642. if( source.options.length &gt; 0 ) {
  643. <!-- Iterate over the source and find the selected items -->
  644. for (var i=0; i &lt; source.options.length; i++) {
  645. if(source.options[i].selected == true) {
  646. tenantStore.query({id:source.options[i].value}).forEach(function(tenant){tenant.selected = isSelected;});
  647. }
  648. }
  649. populateSelectControls()
  650. }
  651. }
  652. function modifySelectionAll(isSelected) {
  653. tenantStore.query().forEach(function(tenant){tenant.selected = isSelected});
  654. populateSelectControls();
  655. }
  656. function populateSelectControls() {
  657. tenantStore.query({selected:false}).forEach(function(tenant){
  658. dojo.place(tenant.node, dojo.byId("availableTenants"), "last");
  659. tenant.node.selected = false;
  660. });
  661. tenantStore.query({selected:true}).forEach(function(tenant){
  662. dojo.place(tenant.node, dojo.byId("selectedTenants"), "last");
  663. tenant.node.selected = false;
  664. });
  665. }
  666. function prepareSelectedTenantsForSubmit() {
  667. tenantStore.query({selected:true}).forEach(function(tenant){
  668. var tenantNameField = dojo.create("input", {type:'hidden',name:'selectedTenantNames',value:xmlDecode(tenant.name)});
  669. dojo.place(tenantNameField, document.pform);
  670. });
  671. for (var i=0; i &lt; dojo.byId("selectedTenants").length; i++) {
  672. var option = dojo.byId("selectedTenants")[i];
  673. option.selected = true;
  674. }
  675. }
  676. function verifyTenantSelection() {
  677. var isValid = true;
  678. if (dojo.byId("selectedTenants").length == 0 &amp;&amp; !(dojo.byId("id_selectPublicTenant") &amp;&amp; dojo.byId("id_selectPublicTenant").checked)) {
  679. alert('<xts:string id="IDS_DEPLOYMENT_MISSING_SELECTED_TENANTS" encode="javascript"/>');
  680. return false;
  681. }
  682. prepareSelectedTenantsForSubmit();
  683. return true;
  684. }
  685. </script>
  686. </xsl:template>
  687. <xsl:template match="dpl:exportSelectTenantUI">
  688. <xsl:call-template name="selectTenantUI"/>
  689. <xsl:call-template name="tenantDeploymentOptions"/>
  690. </xsl:template>
  691. <xsl:template name="selectTenantUI" match="dpl:selectTenantUI">
  692. <lyt:layout style="1" border="yes" title="IDS_DEPLOYMENT_METHOD_TENANTS">
  693. <lyt:section>
  694. <table role="presentation">
  695. <tr>
  696. <td>
  697. <dp:list title="IDS_DEPLOYMENT_AVAILABLE_TENANTS" for="availableTenants" valign="top">
  698. <dp:section>
  699. <select id="availableTenants" multiple="yes" size="15" style="width:250px" lang="{'{$contentLocale}'}"/>
  700. </dp:section>
  701. </dp:list>
  702. </td>
  703. <td>
  704. <dp:columnButtonGroup align="center" width="40">
  705. <dp:columnButton>
  706. <a href="javascript:modifySelection(dojo.byId('availableTenants'), true)">
  707. <img height="18" width="18" border="0" class="flippingImages">
  708. <out:attribute name="src"><out:value-of select="$image_root" />move_right.gif<xsl:text /></out:attribute>
  709. <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_ADD" /></out:attribute>
  710. </img>
  711. </a>
  712. </dp:columnButton>
  713. <dp:columnButton>
  714. <a href="javascript:modifySelection(dojo.byId('selectedTenants'), false)">
  715. <img height="18" width="18" border="0" class="flippingImages">
  716. <out:attribute name="src"><out:value-of select="$image_root" />move_left.gif<xsl:text /></out:attribute>
  717. <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_REMOVE" /></out:attribute>
  718. </img>
  719. </a>
  720. </dp:columnButton>
  721. <dp:columnButton>
  722. <a href="javascript:modifySelectionAll(true)">
  723. <img height="18" width="18" border="0" class="flippingImages">
  724. <out:attribute name="src"><out:value-of select="$image_root" />move_all_right.gif<xsl:text /></out:attribute>
  725. <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_ADD_ALL" /></out:attribute>
  726. </img>
  727. </a>
  728. </dp:columnButton>
  729. <dp:columnButton>
  730. <a href="javascript:modifySelectionAll(false)">
  731. <img height="18" width="18" border="0" class="flippingImages">
  732. <out:attribute name="src"><out:value-of select="$image_root" />move_all_left.gif<xsl:text /></out:attribute>
  733. <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_REMOVE_ALL" /></out:attribute>
  734. </img>
  735. </a>
  736. </dp:columnButton>
  737. </dp:columnButtonGroup>
  738. </td>
  739. <td>
  740. <dp:list title="IDS_DEPLOYMENT_SELECTED_TENANTS" for="selectedTenants" valign="top">
  741. <dp:section>
  742. <select id="selectedTenants" name="selectedTenants" multiple="yes" size="15" style="width:250px" lang="{'{$contentLocale}'}"/>
  743. </dp:section>
  744. </dp:list>
  745. </td>
  746. </tr>
  747. </table>
  748. <utml:input type="hidden" name="selectTenantsPageVisited" value="true"/>
  749. </lyt:section>
  750. </lyt:layout>
  751. </xsl:template>
  752. <xsl:template name="tenantDeploymentOptions">
  753. <lyt:layout style="1" border="yes" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS">
  754. <lyt:section>
  755. <dp:list>
  756. <out:choose>
  757. <out:when>
  758. <xsl:attribute name="test"><xsl:value-of select="dpl:param[@name='propertyPage']='true'"/>() or key('env-param', 'tenants')</xsl:attribute>
  759. <dp:section>
  760. <dp:choice noSpace="true">
  761. <dp:section1>
  762. <utml:input type="checkbox" id="id_m_personalDataSelect" name="m_personalDataSelect" value="true">
  763. <xsl:attribute name="onClick">
  764. <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
  765. </xsl:attribute>
  766. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect']='true' ">
  767. <out:attribute name="checked">checked</out:attribute>
  768. </out:if>
  769. </utml:input>
  770. </dp:section1>
  771. <dp:section2 for="id_m_personalDataSelect">
  772. <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT"/>
  773. </dp:section2>
  774. </dp:choice>
  775. </dp:section>
  776. </out:when>
  777. <out:otherwise>
  778. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect']='true' ">
  779. <utml:input type="hidden" name="m_personalDataSelect" />
  780. </out:if>
  781. </out:otherwise>
  782. </out:choose>
  783. <dp:section>
  784. <dp:choice noSpace="true">
  785. <dp:section1>
  786. <utml:input type="checkbox" id="id_selectPublicTenant" name="selectPublicTenant" value="true">
  787. <xsl:attribute name="onClick">
  788. <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
  789. </xsl:attribute>
  790. </utml:input>
  791. </dp:section1>
  792. <dp:section2 for="id_selectPublicTenant">
  793. <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/>
  794. </dp:section2>
  795. </dp:choice>
  796. </dp:section>
  797. <dp:section>
  798. <dp:label id="lbl_conflictResolution_radioGroup"><xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/></dp:label>
  799. </dp:section>
  800. <dp:section>
  801. <dp:group>
  802. <dp:groupItem>
  803. <img width="16" height="16" alt="">
  804. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  805. </img>
  806. </dp:groupItem>
  807. <dp:groupItem>
  808. <utml:radio-group name="m_tenantsContentConflictResolution">
  809. <dp:choice aria-labelledby="lbl_conflictResolution_radioGroup">
  810. <dp:section1>
  811. <utml:input type="radio" value="replace" id="lbl_tenantConflict_replace" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
  812. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='replace'">
  813. <out:attribute name="checked">checked</out:attribute>
  814. </out:if>
  815. </utml:input>
  816. </dp:section1>
  817. <dp:section2 for="lbl_tenantConflict_replace">
  818. <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES"/></dp:text>
  819. </dp:section2>
  820. <dp:section1>
  821. <utml:input type="radio" value="keep" id="lbl_tenantConflict_keep" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
  822. <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']) or /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='keep'">
  823. <out:attribute name="checked">checked</out:attribute>
  824. </out:if>
  825. </utml:input>
  826. </dp:section1>
  827. <dp:section2 for="lbl_tenantConflict_keep">
  828. <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES"/></dp:text>
  829. </dp:section2>
  830. </dp:choice>
  831. </utml:radio-group>
  832. </dp:groupItem>
  833. </dp:group>
  834. </dp:section>
  835. </dp:list>
  836. </lyt:section>
  837. </lyt:layout>
  838. </xsl:template>
  839. <xsl:template match="dpl:exportPackagesAvailableUI">
  840. <xsl:variable name="track" select="@dpl:track"/>
  841. <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
  842. <utml:input type="hidden" name="listop" value="" utml:update="false"/>
  843. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/utilities.js"/>
  844. <script language="javascript"><![CDATA[
  845. function disablePackageOptions()
  846. {
  847. var disable = false;
  848. for(var i=0; document.pform.length > i && disable == true; i++)
  849. if (document.pform.elements[i].name.substring( 0, 31) == 'availablePackagesCheckboxPrefix' &&
  850. document.pform.elements[i].checked )
  851. disable = false;
  852. for(var i=0; document.pform.length > i; i++)
  853. {
  854. if (document.pform.elements[i].name == "m_packageOutputs" ||
  855. document.pform.elements[i].name == "m_packageDatasetOutputs" ||
  856. document.pform.elements[i].name == "m_packageHistories" ||
  857. document.pform.elements[i].name == "m_packageSchedules")
  858. {
  859. var optionName = document.pform.elements[i].name.substring( 2);
  860. var disabledVarName = "m_disabled_" + optionName;
  861. var mDisabledExist = false;
  862. for(var j=0; document.pform.length > j && mDisabledExist == false; j++)
  863. {
  864. if (document.pform.elements[j].name == disabledVarName )
  865. mDisabledExist = true;
  866. }
  867. if (mDisabledExist == false)
  868. {
  869. document.pform.elements[i].disabled = disable;
  870. if (disable)
  871. {
  872. document.pform.elements[i].checked = false;
  873. }
  874. else
  875. {
  876. var lastValueVarName = "m_last_value_" + optionName;
  877. var lastValue = false;
  878. var lastValueFound = false;
  879. for(var j=0; document.pform.length > j && lastValueFound == false; j++)
  880. {
  881. if (document.pform.elements[j].name == lastValueVarName )
  882. {
  883. lastValue = document.pform.elements[j].value;
  884. lastValueFound = true;
  885. }
  886. }
  887. if ( lastValue == "true" )
  888. document.pform.elements[i].checked = true;
  889. else
  890. document.pform.elements[i].checked = false;
  891. }
  892. }
  893. disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
  894. }
  895. }
  896. }
  897. ]]></script>
  898. <out:variable name="item-path" select="{dpl:param[@name='item-path']}"/>
  899. <dp:list>
  900. <dp:section>
  901. <dp:hint>
  902. <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_1"/>
  903. </dp:hint>
  904. </dp:section>
  905. <dp:section>
  906. <dp:hint>
  907. <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_2"/>
  908. </dp:hint>
  909. </dp:section>
  910. </dp:list>
  911. <out:if test="/root/numberOfPackages > 0">
  912. <dp:list width="100%">
  913. <dp:section>
  914. <dp:text width="100%"/>
  915. <dp:text nospace="nospace">
  916. <xts:string id="IDS_ENTRIES"/>
  917. 1 - <out:value-of select="/root/numberOfPackages"/>
  918. </dp:text>
  919. </dp:section>
  920. </dp:list>
  921. </out:if>
  922. <cp:table name="availablePackages" width="100%" align="left" showEmptyMsg="true">
  923. <xsl:attribute name="iterate">
  924. <xsl:copy-of select="dpl:param[@name='item-path']"/>
  925. </xsl:attribute>
  926. <cp:tableSummary><xts:string id="IDS_DEPLOYMENT_SUMMARY_EXPORT_PACKAGES_SUMMARY"/></cp:tableSummary>
  927. <cp:action>
  928. <out:if test="$has_write_permission = true()">
  929. <utml:a utml:op="maintain" utml:formName="pform">
  930. <utml:href>document.pform.controller_state.value='addEntries|navigate';</utml:href>
  931. <utml:target>
  932. <out:value-of select="concat($app, '/', $mname)"/>
  933. </utml:target>
  934. <out:text/><xts:string id="IDS_COMMAND_ADD"/><out:text/>
  935. </utml:a>
  936. </out:if>
  937. </cp:action>
  938. <cp:action>
  939. <out:if test="$has_write_permission = true()">
  940. <utml:a utml:formName="pform">
  941. <utml:href>
  942. <out:text>if(!isSelected('availablePackagesCheckboxPrefix_')){alert("<xts:string id="IDS_REMOVE_WARNING" encode="javascript"/>");return;}</out:text>
  943. <out:text>javascript:document.pform.listop.value='delete';</out:text>
  944. <out:text>if (document.pform.m_wizardOp) document.pform.m_wizardOp.value='update-method';</out:text>
  945. </utml:href>
  946. <utml:target>
  947. <out:value-of select="concat( $app, '/', $mname )"/>
  948. </utml:target>
  949. <out:text/>
  950. <xts:string id="IDS_REMOVE"/>
  951. <out:text/>
  952. </utml:a>
  953. </out:if>
  954. </cp:action>
  955. <cp:tableHeader>
  956. <xsl:if test="not(dpl:param[@name='read-only']='true')">
  957. <cp:columnHeader width="16" toggleName="availablePackagesCheckboxPrefix" noLabel="true" utml="utml"/>
  958. </xsl:if>
  959. <cp:columnHeader width="16"/>
  960. <cp:columnHeader width="30%">
  961. <!--xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/-->
  962. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  963. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  964. <out:text/><xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/><out:text/>
  965. </cp:columnHeader>
  966. <cp:columnHeader width="70%">
  967. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  968. <out:text/><xts:string id="IDS_DEPLOYMENT_PACKAGES_TARGET_NAME"/><out:text/>
  969. </cp:columnHeader>
  970. <cp:columnHeader width="150" toggleName="packageDisabledPrefix" utml="utml" toggleLabel="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT"/>
  971. <xsl:if test="dpl:param[@name='propertyPage']='true' ">
  972. <cp:columnHeader width="200">
  973. <xts:string id="IDS_MODIFIED"/>
  974. </cp:columnHeader>
  975. </xsl:if>
  976. </cp:tableHeader>
  977. <cp:tableContent>
  978. <out:variable name="showTargetLinkAndDisableCheckbox">
  979. <out:value-of select="not(cm:objectClass='namespace' or cm:objectClass='namespaceFolder' or cm:objectClass='account' or cm:objectClass='catalog' or cm:objectClass='catalogFolder' or cm:objectClass='visualization' or cm:objectClass='userInterfaceProfile')"/>
  980. </out:variable>
  981. <cp:columnContent>
  982. <out:if test="not(cm:showAsDisabled='true'or not(x:guid))">
  983. <utml:input type="checkbox" utml:update="false">
  984. <out:attribute name="aria-label">
  985. <xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="cm:defaultSourceName"/></xts:param></xts:string>
  986. </out:attribute>
  987. <utml:prefix>
  988. <out:text>availablePackagesCheckboxPrefix_</out:text>
  989. </utml:prefix>
  990. <utml:value>
  991. <out:value-of select="x:guid"/>
  992. </utml:value>
  993. <utml:name>
  994. <out:value-of select="x:guid"/>
  995. </utml:name>
  996. </utml:input>
  997. </out:if>
  998. </cp:columnContent>
  999. <cp:columnContent>
  1000. <out:call-template name="gen-icon">
  1001. <out:with-param name="class" select="*[local-name()='objectClass']"/>
  1002. <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
  1003. </out:call-template>
  1004. </cp:columnContent>
  1005. <cp:columnContent wrap="wrap" lang="{'{$contentLocale}'}">
  1006. <out:variable name="default-source-name">
  1007. <out:value-of select="cm:defaultSourceName"/>
  1008. </out:variable>
  1009. <img height="16" width="20" align="absmiddle">
  1010. <out:attribute name="alt">
  1011. <cf:do-the-path-link>
  1012. <!--This is the first path link, to the left of the Name column-->
  1013. <cf:param name="familytree">*[local-name()='ancestorsSource']</cf:param>
  1014. <cf:param name="familymember">*[local-name()='defaultSourceName']</cf:param>
  1015. <cf:param name="onlyAncestors">true</cf:param>
  1016. </cf:do-the-path-link>
  1017. </out:attribute>
  1018. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  1019. </img>
  1020. <out:text>&#160;</out:text>
  1021. <out:choose>
  1022. <out:when test="cm:showAsDisabled='true'">
  1023. <dp:inactiveText><out:value-of select="$default-source-name"/></dp:inactiveText>
  1024. </out:when>
  1025. <out:otherwise>
  1026. <out:value-of select="$default-source-name"/>
  1027. </out:otherwise>
  1028. </out:choose>
  1029. </cp:columnContent>
  1030. <cp:columnContent images="images">
  1031. <out:variable name="default-target-name">
  1032. <out:value-of select="cm:defaultTargetName"/>
  1033. </out:variable>
  1034. <out:choose>
  1035. <out:when test="cm:showAsDisabled='true'">
  1036. <dp:inactiveText><span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span></dp:inactiveText>
  1037. </out:when>
  1038. <out:otherwise>
  1039. <dp:group>
  1040. <dp:groupItem>
  1041. <img height="16" width="20" align="absmiddle" lang="{'{$contentLocale}'}">
  1042. <out:attribute name="alt">
  1043. <cf:do-the-path-link>
  1044. <!--This is the second path link, to the left of the Target name column-->
  1045. <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
  1046. <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
  1047. <cf:param name="onlyAncestors">true</cf:param>
  1048. </cf:do-the-path-link>
  1049. </out:attribute>
  1050. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  1051. </img>
  1052. <out:text>&#160;</out:text>
  1053. </dp:groupItem>
  1054. <dp:groupItem>
  1055. <span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span>
  1056. </dp:groupItem>
  1057. <dp:groupItem valign="bottom">
  1058. <img height="1" width="8" alt="">
  1059. <out:attribute name="src">
  1060. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1061. </img>
  1062. <out:if test="$showTargetLinkAndDisableCheckbox='true' and x:guid">
  1063. <dp:link>
  1064. <utml:a utml:op="stack-up" role="button">
  1065. <out:variable name="targetNameMarkup">
  1066. <out:call-template name="serialize-xml">
  1067. <out:with-param name="node-set" select="cm:targetName"/>
  1068. </out:call-template>
  1069. </out:variable>
  1070. <out:variable name="sourceNameMarkup">
  1071. <out:call-template name="serialize-xml">
  1072. <out:with-param name="node-set" select="cm:sourceName"/>
  1073. </out:call-template>
  1074. </out:variable>
  1075. <out:attribute name="onClick">
  1076. <xsl:text/>document.pform.target_rename.value='<xsl:text/><out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($targetNameMarkup), true()))"/><xsl:text/>';<xsl:text/>
  1077. <xsl:text/>document.pform.target_source_name.value='<xsl:text/><out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($sourceNameMarkup), true()))"/><xsl:text/>';<xsl:text/>
  1078. <xsl:text/>document.pform.target_guid.value='<xsl:text/><out:value-of select="x:guid"/><xsl:text/>';<xsl:text/>
  1079. <xsl:text/>document.pform.target_location.value='<xsl:text/><out:value-of select="xtsext:javascriptencode(string(*[local-name()='targetLocation']))"/><xsl:text/>';<xsl:text/>
  1080. </out:attribute>
  1081. <utml:target>
  1082. <xsl:text>portal/deployment_target_name.xts</xsl:text>
  1083. </utml:target>
  1084. <img border="0">
  1085. <out:attribute name="src"><out:value-of select="$image_root"/>action_edit_10.gif</out:attribute>
  1086. <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_TARGET_EDIT_ALT" encode="html"><xts:param name="targetName"><out:value-of select="$default-target-name"/></xts:param></xts:string></out:attribute>
  1087. </img>
  1088. </utml:a>
  1089. </dp:link>
  1090. </out:if>
  1091. </dp:groupItem></dp:group>
  1092. </out:otherwise>
  1093. </out:choose>
  1094. </cp:columnContent>
  1095. <cp:columnContent>
  1096. <out:if test="not(cm:showAsDisabled='true') and $showTargetLinkAndDisableCheckbox='true' and x:guid">
  1097. <utml:input type="checkbox" utml:update="false">
  1098. <out:if test="./cm:enabled='false'">
  1099. <out:attribute name="checked">checked</out:attribute>
  1100. </out:if>
  1101. <out:attribute name="aria-label"><xts:string id="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT_ARIA"><xts:param name="objName"><out:value-of select="cm:defaultSourceName"/></xts:param></xts:string></out:attribute>
  1102. <utml:prefix>
  1103. <out:text>packageDisabledPrefix_</out:text>
  1104. </utml:prefix>
  1105. <utml:value>
  1106. <out:value-of select="x:guid"/>
  1107. </utml:value>
  1108. <utml:name>
  1109. <out:value-of select="x:guid"/>
  1110. </utml:name>
  1111. </utml:input>
  1112. <out:if test="./cm:enabled='false' and position()=last()"> <!-- only generate script on last entry -->
  1113. <cp:columnHeaderToggleSet toggleName="packageDisabledPrefix"/>
  1114. </out:if>
  1115. </out:if>
  1116. </cp:columnContent>
  1117. <xsl:if test="dpl:param[@name='propertyPage']='true' ">
  1118. <cp:columnContent>
  1119. <out:choose>
  1120. <out:when test="cm:modificationTime != ''">
  1121. <nobr>
  1122. <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string ( $timeZone ), string( $contentLocale ) )"/>
  1123. </nobr>
  1124. </out:when>
  1125. <out:otherwise>
  1126. <img height="16" width="16" alt="">
  1127. <out:attribute name="src">
  1128. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1129. </img>
  1130. </out:otherwise>
  1131. </out:choose>
  1132. </cp:columnContent>
  1133. </xsl:if>
  1134. </cp:tableContent>
  1135. </cp:table>
  1136. <out:if test="count($item-path/cm:targetName[not(../x:guid)])>0">
  1137. <dp:list>
  1138. <dp:section>
  1139. <dp:hint>
  1140. <img border="0" height="16" width="16">
  1141. <out:attribute name="src"><out:value-of select="concat($webcontent, '/', $app, '/images/msg_warning_16.gif')"/></out:attribute>
  1142. <out:attribute name="alt"><xts:string id="IDS_STATUS_WARN" encode="html"/></out:attribute>
  1143. </img>
  1144. &#160;&#160;<xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_3"/>
  1145. </dp:hint>
  1146. </dp:section>
  1147. </dp:list>
  1148. </out:if>
  1149. </xsl:template>
  1150. <xsl:template match="dpl:shortOptionsSummary">
  1151. <lyt:layout style="1" border="no">
  1152. <lyt:section>
  1153. <dp:list>
  1154. <dp:section>
  1155. <dp:label>
  1156. <xts:string id="IDS_DEPLOYMENT_SHORT_OPTIONS_SUMMARY_LABEL"/>
  1157. </dp:label>
  1158. </dp:section>
  1159. </dp:list>
  1160. <cp:table name="deploymentOptionsSummary" width="20%">
  1161. <xsl:attribute name="iterate">
  1162. <xsl:copy-of select="dpl:param[@name='item-path']"/>
  1163. </xsl:attribute>
  1164. <cp:tableHeader>
  1165. <cp:columnHeader>
  1166. <xts:string id="IDS_DEPLOYMENT_SELECTED_OPTIONS_NAME"/>
  1167. </cp:columnHeader>
  1168. </cp:tableHeader>
  1169. <cp:tableContent>
  1170. <cp:columnContent>
  1171. <out:choose>
  1172. <out:when test="@dent = '1'">
  1173. <img height="16" width="16" align="absmiddle" alt="">
  1174. <out:attribute name="src">
  1175. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1176. </img>
  1177. </out:when>
  1178. <out:when test="@dent = '2'">
  1179. <img height="16" width="16" align="absmiddle" alt="">
  1180. <out:attribute name="src">
  1181. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1182. </img>
  1183. <img height="16" width="16" align="absmiddle" alt="">
  1184. <out:attribute name="src">
  1185. <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1186. </img>
  1187. </out:when>
  1188. </out:choose>
  1189. <img height="16" width="16" align="absmiddle" alt="">
  1190. <out:attribute name="src">
  1191. <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
  1192. </img>
  1193. <span>
  1194. <out:if test="@lang != ''">
  1195. <out:attribute name="lang"><out:value-of select="@lang"/></out:attribute>
  1196. </out:if>
  1197. <out:copy-of select="./child::node()"/>
  1198. </span>
  1199. </cp:columnContent>
  1200. </cp:tableContent>
  1201. </cp:table>
  1202. </lyt:section>
  1203. </lyt:layout>
  1204. </xsl:template>
  1205. <!--
  1206. ===============================================================
  1207. Included Packages for the summary page
  1208. ===============================================================
  1209. -->
  1210. <xsl:template match="dpl:packagesToInclude">
  1211. <xsl:variable name="items" select="dpl:param[@name='item-path']"/>
  1212. <xsl:variable name="targetLocations" select="dpl:param[@name='targetLocations-path']"/>
  1213. <xsl:variable name="type" select="dpl:param[@name='type']"/>
  1214. <xsl:variable name="tableSummaryId" select="dpl:param[@name='summaryId']"/>
  1215. <xsl:variable name="new" select="dpl:param[@name='new']"/>
  1216. <out:choose>
  1217. <out:when test="count({$items})=0">
  1218. <dp:choice>
  1219. <dp:section1/>
  1220. <dp:section2>
  1221. <xts:string id="IDS_DEPLOYMENT_NO_PACKAGES"/>
  1222. </dp:section2>
  1223. </dp:choice>
  1224. </out:when>
  1225. <out:otherwise>
  1226. <out:if test="count({$items}) > 0">
  1227. <dp:list width="100%">
  1228. <dp:section>
  1229. <dp:text width="100%"/>
  1230. <dp:text nospace="nospace">
  1231. 1 - <out:value-of select="count({$items})"/>
  1232. </dp:text>
  1233. </dp:section>
  1234. </dp:list>
  1235. </out:if>
  1236. <cp:table name="includedPackages" width="100%">
  1237. <xsl:attribute name="iterate">
  1238. <xsl:copy-of select="$items"/>
  1239. </xsl:attribute>
  1240. <cp:tableSummary><xts:string id="{$tableSummaryId}"/></cp:tableSummary>
  1241. <cp:tableHeader>
  1242. <cp:columnHeader width="16"/>
  1243. <cp:columnHeader width="200">
  1244. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  1245. <xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/>
  1246. </cp:columnHeader>
  1247. <cp:columnHeader width="100%">
  1248. <xts:string id="IDS_DEPLOYMENT_PACKAGES_TARGET_NAME"/>
  1249. </cp:columnHeader>
  1250. <cp:columnHeader width="150">
  1251. <xts:string id="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT"/>
  1252. </cp:columnHeader>
  1253. <xsl:if test="$type='importDeployment' ">
  1254. <xsl:if test="not($new='true')">
  1255. <cp:columnHeader width="150">
  1256. <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_SPECIFICATION"/>
  1257. </cp:columnHeader>
  1258. </xsl:if>
  1259. <cp:columnHeader width="150">
  1260. <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/>
  1261. </cp:columnHeader>
  1262. <cp:columnHeader width="200">
  1263. <xts:string id="IDS_MODIFIED"/>
  1264. </cp:columnHeader>
  1265. </xsl:if>
  1266. </cp:tableHeader>
  1267. <cp:tableContent>
  1268. <cp:columnContent>
  1269. <out:choose>
  1270. <out:when test="*[local-name()='objectClass']!=''">
  1271. <out:call-template name="gen-icon">
  1272. <out:with-param name="class" select="*[local-name()='objectClass']"/>
  1273. <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
  1274. </out:call-template>
  1275. </out:when>
  1276. <!-- default to 'package' icon if objectClass is not available -->
  1277. <out:otherwise>
  1278. <out:call-template name="gen-icon">
  1279. <out:with-param name="class" select="'package'"/>
  1280. <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
  1281. </out:call-template>
  1282. </out:otherwise>
  1283. </out:choose>
  1284. </cp:columnContent>
  1285. <cp:columnContent lang="{'{$contentLocale}'}">
  1286. <out:variable name="default-source-name">
  1287. <out:value-of select="*[local-name()='defaultSourceName']"/>
  1288. </out:variable>
  1289. <img height="16" width="20" align="absmiddle">
  1290. <out:attribute name="alt">
  1291. <cf:do-the-path-link>
  1292. <cf:param name="familytree">*[local-name()='ancestorsSource']</cf:param>
  1293. <cf:param name="familymember">*[local-name()='defaultSourceName']</cf:param>
  1294. <cf:param name="onlyAncestors">true</cf:param>
  1295. </cf:do-the-path-link>
  1296. </out:attribute>
  1297. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  1298. </img>
  1299. <out:text>&#160;</out:text>
  1300. <out:value-of select="$default-source-name"/>
  1301. </cp:columnContent>
  1302. <cp:columnContent lang="{'{$contentLocale}'}">
  1303. <out:variable name="default-target-name">
  1304. <out:value-of select="*[local-name()='defaultTargetName']"/>
  1305. </out:variable>
  1306. <xsl:variable name="newImport">
  1307. <xsl:value-of select="boolean($new='true' and $type='importDeployment' and $targetLocations)"/>
  1308. </xsl:variable>
  1309. <xsl:if test="$newImport='true'">
  1310. <out:variable name="cp_includedPackages_targetLocations" >
  1311. <xsl:attribute name="select"><xsl:value-of select="$targetLocations"/></xsl:attribute>
  1312. </out:variable>
  1313. <out:variable name="currentSearchPath"><out:value-of select="*[local-name()='searchPath']"/></out:variable>
  1314. <out:variable name="currentTargetLocation"><out:value-of select="*[local-name()='targetLocation']"/></out:variable>
  1315. <out:variable name="correspondingTargetLocationID">
  1316. <out:value-of select="$cp_includedPackages_targetLocations/*[local-name()='queryResponse']/*[local-name()='queryReply'][@package=$currentSearchPath]/*/*[local-name()='storeID']"/>
  1317. </out:variable>
  1318. <out:variable name="currentTargetLocationInPackagesToInclude">
  1319. <out:value-of select="boolean(../../*[local-name()='deploymentOption']/*[local-name()='packageDeploymentInfo']/*[local-name()='searchPath']=$currentTargetLocation)"/>
  1320. </out:variable>
  1321. <out:if test="$correspondingTargetLocationID = '' and not($currentTargetLocationInPackagesToInclude='true')">
  1322. <img height="16" width="20" align="absmiddle">
  1323. <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_TARGET_LOCATION_NOT_EXIST_ALT"><xts:param name="searchPath"><out:value-of select="$currentTargetLocation"/></xts:param></xts:string></out:attribute>
  1324. <out:attribute name="src"><out:value-of select="$webcontent"/>/portal/images/state_warning_20x16.gif</out:attribute>
  1325. <out:attribute name="class">warningTargetLocation</out:attribute>
  1326. </img>
  1327. </out:if>
  1328. <out:if test="not($correspondingTargetLocationID = '' and not($currentTargetLocationInPackagesToInclude='true'))">
  1329. <img height="16" width="20" align="absmiddle">
  1330. <out:attribute name="alt">
  1331. <cf:do-the-path-link>
  1332. <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
  1333. <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
  1334. <cf:param name="onlyAncestors">true</cf:param>
  1335. </cf:do-the-path-link>
  1336. </out:attribute>
  1337. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  1338. </img>
  1339. </out:if>
  1340. </xsl:if>
  1341. <xsl:if test="not($newImport='true')">
  1342. <img height="16" width="20" align="absmiddle">
  1343. <out:attribute name="alt">
  1344. <cf:do-the-path-link>
  1345. <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
  1346. <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
  1347. <cf:param name="onlyAncestors">true</cf:param>
  1348. </cf:do-the-path-link>
  1349. </out:attribute>
  1350. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  1351. </img>
  1352. </xsl:if>
  1353. <out:text>&#160;</out:text>
  1354. <out:value-of select="$default-target-name"/>
  1355. </cp:columnContent>
  1356. <cp:columnContent>
  1357. <out:variable name="enabledOnImport" select="cm:enabled"/>
  1358. <out:choose>
  1359. <out:when test="not($enabledOnImport='true') ">
  1360. <img height="16" width="16">
  1361. <out:attribute name="src"><out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
  1362. </img>
  1363. </out:when>
  1364. <out:otherwise>
  1365. <img height="16" width="16" alt="">
  1366. <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1367. </img>
  1368. </out:otherwise>
  1369. </out:choose>
  1370. </cp:columnContent>
  1371. <xsl:if test="$type='importDeployment' ">
  1372. <xsl:if test="not($new='true')">
  1373. <cp:columnContent>
  1374. <out:variable name="inTargetSpecification" select="cm:inTargetSpecification"/>
  1375. <out:choose>
  1376. <out:when test="$inTargetSpecification='true' ">
  1377. <img height="16" width="16">
  1378. <out:attribute name="src">
  1379. <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
  1380. </img>
  1381. </out:when>
  1382. <out:otherwise>
  1383. <img height="16" width="16" alt="">
  1384. <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1385. </img>
  1386. </out:otherwise>
  1387. </out:choose>
  1388. </cp:columnContent>
  1389. </xsl:if>
  1390. <cp:columnContent>
  1391. <out:variable name="inTargetContent" select="cm:inTargetContent"/>
  1392. <out:choose>
  1393. <out:when test="$inTargetContent='true' ">
  1394. <img height="16" width="16">
  1395. <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/></out:attribute>
  1396. <out:attribute name="src">
  1397. <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
  1398. </img>
  1399. </out:when>
  1400. <out:otherwise>
  1401. <img height="16" width="16" alt="">
  1402. <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1403. </img>
  1404. </out:otherwise>
  1405. </out:choose>
  1406. </cp:columnContent>
  1407. <cp:columnContent>
  1408. <out:choose>
  1409. <out:when test="cm:modificationTime != ''">
  1410. <nobr>
  1411. <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string ( $timeZone ), string( $contentLocale ) )"/>
  1412. </nobr>
  1413. </out:when>
  1414. <out:otherwise>
  1415. <img height="16" width="16" alt="">
  1416. <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
  1417. </img>
  1418. </out:otherwise>
  1419. </out:choose>
  1420. </cp:columnContent>
  1421. </xsl:if>
  1422. </cp:tableContent>
  1423. </cp:table>
  1424. </out:otherwise>
  1425. </out:choose>
  1426. </xsl:template>
  1427. <!--
  1428. ===============================================================
  1429. Included Tenants for the summary page
  1430. ===============================================================
  1431. -->
  1432. <xsl:template name="tenantsToInclude">
  1433. <xsl:param name="tenant-path"/>
  1434. <cp:table name="includedTenants" width="40%" showEmptyMsg="true">
  1435. <xsl:attribute name="iterate">
  1436. <xsl:copy-of select="$tenant-path"/>[. != '']
  1437. </xsl:attribute>
  1438. <cp:tableHeader>
  1439. <cp:columnHeader>
  1440. <xts:string id="IDS_DEPLOYMENT_TENANTS_ID"/>
  1441. </cp:columnHeader>
  1442. </cp:tableHeader>
  1443. <cp:tableContent>
  1444. <cp:columnContent>
  1445. <out:value-of select="."/>
  1446. </cp:columnContent>
  1447. </cp:tableContent>
  1448. </cp:table>
  1449. </xsl:template>
  1450. <!--
  1451. ==========================================
  1452. Checkbox for 'Include report output'
  1453. ==========================================
  1454. -->
  1455. <xsl:template match="dpl:packagesIncludeReportOutput">
  1456. <xsl:variable name="track" select="@dpl:track"/>
  1457. <lyt:layout style="1" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS" border="yes">
  1458. <lyt:section>
  1459. <dp:choice>
  1460. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  1461. <xsl:with-param name="option-name">packageOutputs</xsl:with-param>
  1462. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_REPORT_OUTPUT</xsl:with-param>
  1463. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  1464. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  1465. </xsl:call-template>
  1466. <dp:section3>
  1467. <dp:list>
  1468. <dp:section>
  1469. <dp:label id="lbl_packageOutputsConflictResolution_groupTitle">
  1470. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  1471. </dp:label>
  1472. </dp:section>
  1473. </dp:list>
  1474. <xsl:call-template name="option-radio-conflict-resolution">
  1475. <xsl:with-param name="option-name">packageOutputsConflictResolution</xsl:with-param>
  1476. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  1477. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1478. <xsl:with-param name="track-change">
  1479. <xsl:value-of select="$track"/></xsl:with-param>
  1480. <xsl:with-param name="radio-group-label-id">lbl_m_packageOutputs lbl_packageOutputsConflictResolution_groupTitle</xsl:with-param>
  1481. </xsl:call-template>
  1482. </dp:section3>
  1483. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  1484. <xsl:with-param name="option-name">packageDatasetOutputs</xsl:with-param>
  1485. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_DATASET_OUTPUT</xsl:with-param>
  1486. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  1487. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  1488. </xsl:call-template>
  1489. <dp:section3>
  1490. <dp:list>
  1491. <dp:section>
  1492. <dp:label id="lbl_packageDatasetOutputsConflictResolution_groupTitle">
  1493. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  1494. </dp:label>
  1495. </dp:section>
  1496. </dp:list>
  1497. <xsl:call-template name="option-radio-conflict-resolution">
  1498. <xsl:with-param name="option-name">packageDatasetOutputsConflictResolution</xsl:with-param>
  1499. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  1500. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1501. <xsl:with-param name="track-change">
  1502. <xsl:value-of select="$track"/></xsl:with-param>
  1503. <xsl:with-param name="radio-group-label-id">lbl_m_packageDatasetOutputs lbl_packageDatasetOutputsConflictResolution_groupTitle</xsl:with-param>
  1504. </xsl:call-template>
  1505. </dp:section3>
  1506. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  1507. <xsl:with-param name="option-name">packageHistories</xsl:with-param>
  1508. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_PACKAGE_HISTORIES</xsl:with-param>
  1509. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  1510. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  1511. </xsl:call-template>
  1512. <dp:section3>
  1513. <dp:list>
  1514. <dp:section>
  1515. <dp:label id="lbl_packageHistoriesConflictResolution_groupTitle">
  1516. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  1517. </dp:label>
  1518. </dp:section>
  1519. </dp:list>
  1520. <xsl:call-template name="option-radio-conflict-resolution">
  1521. <xsl:with-param name="option-name">packageHistoriesConflictResolution</xsl:with-param>
  1522. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  1523. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1524. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  1525. <xsl:with-param name="radio-group-label-id">lbl_m_packageHistories lbl_packageHistoriesConflictResolution_groupTitle</xsl:with-param>
  1526. </xsl:call-template>
  1527. </dp:section3>
  1528. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  1529. <xsl:with-param name="option-name">packageSchedules</xsl:with-param>
  1530. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_PACKAGE_SCHEDULES</xsl:with-param>
  1531. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  1532. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  1533. </xsl:call-template>
  1534. <dp:section3>
  1535. <dp:list>
  1536. <dp:section>
  1537. <dp:label id="lbl_packageSchedulesConflictResolution_groupTitle">
  1538. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  1539. </dp:label>
  1540. </dp:section>
  1541. </dp:list>
  1542. <xsl:call-template name="option-radio-conflict-resolution">
  1543. <xsl:with-param name="option-name">packageSchedulesConflictResolution</xsl:with-param>
  1544. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  1545. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1546. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  1547. <xsl:with-param name="radio-group-label-id">lbl_m_packageSchedules lbl_packageSchedulesConflictResolution_groupTitle</xsl:with-param>
  1548. </xsl:call-template>
  1549. </dp:section3>
  1550. </dp:choice>
  1551. </lyt:section>
  1552. </lyt:layout>
  1553. </xsl:template>
  1554. <!--
  1555. ==========================================
  1556. Summary for 'Include report output'
  1557. ==========================================
  1558. -->
  1559. <xsl:template name="packagesOptionsSummary">
  1560. <!-- In the summary page the deploymentOptionsUI element and its children have a cm prefix. In detailed record page the elements do not have a cm prefix. The following if statement works for both.
  1561. In the summary page look if cm:inpackagesToInclude is set to true or not.
  1562. In detailed deployment check if packageDeploymentInfo (not cm:packageDeploymentInfo with the cm prefix as is in the summary page. Thus checking if name() matches and not the local-name().) element exists or not. -->
  1563. <out:if test="count(/root/*[local-name() = 'deploymentOptionsUI']/*[local-name() = 'deploymentOption' and @name='package']/*[name() = 'packageDeploymentInfo' or cm:inPackagesToInclude='true'])>0">
  1564. <lyt:layout style="1" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS_SUMMARY" border="no">
  1565. <lyt:section>
  1566. <dp:list>
  1567. <dp:section>
  1568. <dp:text>
  1569. <xsl:call-template name="option-summary">
  1570. <xsl:with-param name="option-name">packageOutputs</xsl:with-param>
  1571. <xsl:with-param name="include-value">true</xsl:with-param>
  1572. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  1573. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_REPORT_OUTPUT</xsl:with-param>
  1574. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_REPORT_OUTPUT</xsl:with-param>
  1575. </xsl:call-template>
  1576. </dp:text>
  1577. </dp:section>
  1578. <dp:section>
  1579. <xsl:call-template name="dependent-resolution-option-summary">
  1580. <xsl:with-param name="parent-option-name">packageOutputs</xsl:with-param>
  1581. <xsl:with-param name="option-name">packageOutputsConflictResolution</xsl:with-param>
  1582. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1583. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1584. </xsl:call-template>
  1585. </dp:section>
  1586. <dp:section>
  1587. <dp:text>
  1588. <xsl:call-template name="option-summary">
  1589. <xsl:with-param name="option-name">packageDatasetOutputs</xsl:with-param>
  1590. <xsl:with-param name="include-value">true</xsl:with-param>
  1591. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  1592. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_DATASET_OUTPUT</xsl:with-param>
  1593. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_DATASET_OUTPUT</xsl:with-param>
  1594. </xsl:call-template>
  1595. </dp:text>
  1596. </dp:section>
  1597. <dp:section>
  1598. <xsl:call-template name="dependent-resolution-option-summary">
  1599. <xsl:with-param name="parent-option-name">packageDatasetOutputs</xsl:with-param>
  1600. <xsl:with-param name="option-name">packageDatasetOutputsConflictResolution</xsl:with-param>
  1601. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1602. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1603. </xsl:call-template>
  1604. </dp:section>
  1605. <dp:section>
  1606. <dp:text>
  1607. <xsl:call-template name="option-summary">
  1608. <xsl:with-param name="option-name">packageHistories</xsl:with-param>
  1609. <xsl:with-param name="include-value">true</xsl:with-param>
  1610. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  1611. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_PACKAGE_HISTORIES</xsl:with-param>
  1612. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_PACKAGE_HISTORIES</xsl:with-param>
  1613. </xsl:call-template>
  1614. </dp:text>
  1615. </dp:section>
  1616. <dp:section>
  1617. <xsl:call-template name="dependent-resolution-option-summary">
  1618. <xsl:with-param name="parent-option-name">packageHistories</xsl:with-param>
  1619. <xsl:with-param name="option-name">packageHistoriesConflictResolution</xsl:with-param>
  1620. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1621. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1622. </xsl:call-template>
  1623. </dp:section>
  1624. <dp:section>
  1625. <dp:text>
  1626. <xsl:call-template name="option-summary">
  1627. <xsl:with-param name="option-name">packageSchedules</xsl:with-param>
  1628. <xsl:with-param name="include-value">true</xsl:with-param>
  1629. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  1630. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_PACKAGE_SCHEDULES</xsl:with-param>
  1631. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_PACKAGE_SCHEDULES</xsl:with-param>
  1632. </xsl:call-template>
  1633. </dp:text>
  1634. </dp:section>
  1635. <dp:section>
  1636. <xsl:call-template name="dependent-resolution-option-summary">
  1637. <xsl:with-param name="parent-option-name">packageSchedules</xsl:with-param>
  1638. <xsl:with-param name="option-name">packageSchedulesConflictResolution</xsl:with-param>
  1639. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1640. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  1641. </xsl:call-template>
  1642. </dp:section>
  1643. </dp:list>
  1644. </lyt:section>
  1645. </lyt:layout>
  1646. </out:if>
  1647. </xsl:template>
  1648. <!--
  1649. ==========================================
  1650. Functions to manage dependent options
  1651. ==========================================
  1652. -->
  1653. <xsl:template match="dpl:initContentOptions">
  1654. <script language="javascript"><![CDATA[
  1655. function init()
  1656. {
  1657. for(var i=0; document.pform.length > i; i++)
  1658. {
  1659. if (document.pform.elements[i].name == "m_namespaceSelect" ||
  1660. document.pform.elements[i].name == "m_dataSourceSelect" ||
  1661. document.pform.elements[i].name == "m_recipientsSelect")
  1662. {
  1663. disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
  1664. }
  1665. }
  1666. }
  1667. ]]></script>
  1668. </xsl:template>
  1669. <xsl:template match="dpl:initMethodOptions">
  1670. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/utilities.js"/>
  1671. <script language="javascript"><![CDATA[
  1672. function init()
  1673. {
  1674. var selectedMethod = getSelectedValueForFormElement('m_exportMethod', document.pform);
  1675. if (selectedMethod == 'selectContent')
  1676. disableUserAccount(true);
  1677. else
  1678. disableUserAccount(false);
  1679. }
  1680. function disableUserAccount( disabled )
  1681. {
  1682. if (!document.pform.m_disabled_personalDataSelect)
  1683. {
  1684. if ( disabled )
  1685. {
  1686. var isSelectContentExport = 'selectContent' == getSelectedValueForFormElement('m_exportMethod', document.pform);
  1687. document.pform.m_personalDataSelect.checked = !(isSelectContentExport);
  1688. }
  1689. else
  1690. {
  1691. if (document.pform.m_last_value_personalDataSelect.value == "true")
  1692. document.pform.m_personalDataSelect.checked = true;
  1693. else
  1694. document.pform.m_personalDataSelect.checked = false;
  1695. }
  1696. document.pform.m_personalDataSelect.disabled = disabled;
  1697. }
  1698. }
  1699. function saveMethodValue( method )
  1700. {
  1701. if (method == 'selectContent')
  1702. {
  1703. document.pform.m_entireContentStoreSelect.value = "false";
  1704. document.pform.m_last_value_entireContentStoreSelect.value = "false";
  1705. disableUserAccount(true);
  1706. }
  1707. else
  1708. {
  1709. if (method == 'selectTenants')
  1710. {
  1711. if (document.pform.m_last_value_personalDataSelect.value == "false")
  1712. document.pform.m_last_value_personalDataSelect.value = true;
  1713. }
  1714. else
  1715. {
  1716. if (document.pform.m_last_value_personalDataSelect.value == "true")
  1717. document.pform.m_last_value_personalDataSelect.value = false;
  1718. }
  1719. document.pform.m_entireContentStoreSelect.value = "true";
  1720. document.pform.m_last_value_entireContentStoreSelect.value = "true";
  1721. disableUserAccount(false);
  1722. }
  1723. }
  1724. ]]></script>
  1725. </xsl:template>
  1726. <xsl:template match="dpl:initGeneralOptions">
  1727. <script language="javascript"><![CDATA[
  1728. function init()
  1729. {
  1730. for(var i=0; document.pform.length > i; i++)
  1731. {
  1732. if (document.pform.elements[i].name == "m_objectPolicies" )
  1733. {
  1734. disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
  1735. }
  1736. }
  1737. }
  1738. ]]></script>
  1739. </xsl:template>
  1740. <xsl:template match="dpl:disableDependentOptionsRadio">
  1741. <script language="javascript"><![CDATA[
  1742. function disableDependentOptionsRadio( option, disable )
  1743. {
  1744. var selectOptionName = option.name.substring( 2);
  1745. var baseOptionName = (selectOptionName.length > 6 && selectOptionName.substring(selectOptionName.length - 6) == "Select" )? selectOptionName.substring(0, selectOptionName.length - 6) : selectOptionName;
  1746. var conflictResolutionOptionVarName = "m_" + baseOptionName + "ConflictResolution";
  1747. var dependentOptionVarName = "m_" + baseOptionName;
  1748. if (baseOptionName == "dataSource")
  1749. {
  1750. disableDependentOptions( option, disable );
  1751. dependentOptionVarName = "";
  1752. }
  1753. else
  1754. {
  1755. dependentOptionVarName = "";
  1756. }
  1757. var items = document.pform.elements.length;
  1758. for (var i=0; i<items; i++)
  1759. {
  1760. if ((dependentOptionVarName.length > 0 && document.pform.elements[i].name == dependentOptionVarName) || document.pform.elements[i].name == conflictResolutionOptionVarName )
  1761. {
  1762. var optionLastValueVarName = "m_last_value_" + document.pform.elements[i].name.substring(2);
  1763. var optionDisabledVarName = "m_disabled_" + document.pform.elements[i].name.substring( 2);
  1764. var disabledVarFound = false;
  1765. for (var j=0; j<items && !disabledVarFound; j++)
  1766. {
  1767. if (document.pform.elements[j].name == optionDisabledVarName)
  1768. disabledVarFound = true;
  1769. }
  1770. if (!disabledVarFound)
  1771. {
  1772. document.pform.elements[i].disabled = disable;
  1773. var lastValueVarFound = false;
  1774. var lastValueVarValue = "false";
  1775. for (var j=0; j<items && !lastValueVarFound; j++)
  1776. {
  1777. if (document.pform.elements[j].name == optionLastValueVarName)
  1778. {
  1779. lastValueVarFound = true;
  1780. lastValueVarValue = document.pform.elements[j].value;
  1781. }
  1782. }
  1783. if ( lastValueVarFound && ( lastValueVarValue == "true" || lastValueVarValue == "replace" ))
  1784. {
  1785. if (document.pform.elements[i].value == 'keep' || document.pform.elements[i].value == 'false')
  1786. {
  1787. document.pform.elements[i].checked = false;
  1788. }
  1789. else
  1790. {
  1791. document.pform.elements[i].checked = true;
  1792. }
  1793. }
  1794. else
  1795. {
  1796. if (document.pform.elements[i].value == 'keep' || document.pform.elements[i].value == 'false')
  1797. {
  1798. document.pform.elements[i].checked = true;
  1799. }
  1800. else
  1801. {
  1802. document.pform.elements[i].checked = false;
  1803. }
  1804. }
  1805. }
  1806. }
  1807. }
  1808. }
  1809. ]]></script>
  1810. </xsl:template>
  1811. <xsl:template match="dpl:disableDependentOptions">
  1812. <script language="javascript"><![CDATA[
  1813. function disableDependentOptions( option, disable )
  1814. {
  1815. var selectOptionName = option.name.substring( 2);
  1816. var baseOptionName = (selectOptionName.length > 6 && selectOptionName.substring(selectOptionName.length - 6) == "Select" )? selectOptionName.substring(0, selectOptionName.length - 6) : selectOptionName;
  1817. var conflictResolutionOptionVarName = "m_" + baseOptionName + "ConflictResolution";
  1818. var dependentOptionVarName = "m_" + baseOptionName;
  1819. if (baseOptionName == "dataSource")
  1820. {
  1821. dependentOptionVarName = dependentOptionVarName + "SignonSelect";
  1822. }
  1823. else
  1824. {
  1825. dependentOptionVarName = "";
  1826. }
  1827. var items = document.pform.elements.length;
  1828. for (var i=0; i<items; i++)
  1829. {
  1830. if ((dependentOptionVarName.length > 0 && document.pform.elements[i].name == dependentOptionVarName) || (document.pform.elements[i].name == conflictResolutionOptionVarName && baseOptionName != 'dataSource') )
  1831. {
  1832. var optionLastValueVarName = "m_last_value_" + document.pform.elements[i].name.substring(2);
  1833. var optionDisabledVarName = "m_disabled_" + document.pform.elements[i].name.substring( 2);
  1834. var disabledVarFound = false;
  1835. for (var j=0; j<items && !disabledVarFound; j++)
  1836. {
  1837. if (document.pform.elements[j].name == optionDisabledVarName)
  1838. disabledVarFound = true;
  1839. }
  1840. if (!disabledVarFound)
  1841. {
  1842. document.pform.elements[i].disabled = disable;
  1843. if (disable)
  1844. {
  1845. document.pform.elements[i].checked = false;
  1846. }
  1847. else
  1848. {
  1849. var lastValueVarFound = false;
  1850. var lastValueVarValue = "false";
  1851. for (var j=0; j<items && !lastValueVarFound; j++)
  1852. {
  1853. if (document.pform.elements[j].name == optionLastValueVarName)
  1854. {
  1855. lastValueVarFound = true;
  1856. lastValueVarValue = document.pform.elements[j].value;
  1857. }
  1858. }
  1859. if ( lastValueVarFound && ( lastValueVarValue == "true" || lastValueVarValue == "replace" ))
  1860. {
  1861. document.pform.elements[i].checked = true;
  1862. }
  1863. else
  1864. {
  1865. document.pform.elements[i].checked = false;
  1866. }
  1867. }
  1868. }
  1869. }
  1870. }
  1871. }
  1872. ]]></script>
  1873. </xsl:template>
  1874. <xsl:template match="dpl:saveLastValueFunctionRadio">
  1875. <script language="javascript"><![CDATA[
  1876. function saveLastValueFunctionRadio( option, checked )
  1877. {
  1878. var optionName = option.name.substring( 2);
  1879. var lastValueVarName = "m_last_value_" + optionName;
  1880. var newValue = option.value;
  1881. var items = document.pform.elements.length;
  1882. for (var i=0; i<items; i++)
  1883. {
  1884. if (document.pform.elements[i].name == lastValueVarName)
  1885. {
  1886. document.pform.elements[i].value = newValue;
  1887. return;
  1888. }
  1889. }
  1890. }
  1891. ]]></script>
  1892. </xsl:template>
  1893. <!--
  1894. ==========================================
  1895. Function for dpl:contentOptions
  1896. ==========================================
  1897. -->
  1898. <xsl:template match="dpl:saveLastValueFunction">
  1899. <script language="javascript"><![CDATA[
  1900. function saveLastValueFunction( option, checked )
  1901. {
  1902. var optionName = option.name.substring( 2);
  1903. var lastValueVarName = "m_last_value_" + optionName;
  1904. var newValue = (checked)? "true" : "false";
  1905. var items = document.pform.elements.length;
  1906. for (var i=0; i<items; i++)
  1907. {
  1908. if (document.pform.elements[i].name == lastValueVarName)
  1909. {
  1910. document.pform.elements[i].value = newValue;
  1911. return;
  1912. }
  1913. }
  1914. }
  1915. ]]></script>
  1916. </xsl:template>
  1917. <!--
  1918. ==========================================
  1919. Checkbox for an option
  1920. ==========================================
  1921. -->
  1922. <xsl:template name="option-checkbox">
  1923. <xsl:param name="option-name"/>
  1924. <xsl:param name="include-value"/>
  1925. <xsl:param name="do-not-include-value"/>
  1926. <xsl:param name="include-msg"/>
  1927. <xsl:param name="disable-dependent"/>
  1928. <xsl:param name="dependent-type"/>
  1929. <xsl:param name="track-change"/>
  1930. <xsl:variable name="option-path">
  1931. <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='<xsl:text/>
  1932. <xsl:value-of select="$option-name"/>
  1933. <xsl:text/>']<xsl:text/>
  1934. </xsl:variable>
  1935. <xsl:variable name="variable-name">
  1936. <xsl:text/>m_<xsl:text/>
  1937. <xsl:value-of select="$option-name"/>
  1938. </xsl:variable>
  1939. <dp:section1>
  1940. <utml:input id="id_{$variable-name}" type="checkbox" name="{$variable-name}" aria-labelledby="lbl_{$variable-name}">
  1941. <xsl:if test="$track-change='true'">
  1942. <xsl:attribute name="utml:track">true</xsl:attribute>
  1943. </xsl:if>
  1944. <xsl:variable name="onClick">
  1945. <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
  1946. <xsl:if test="$disable-dependent='true'">
  1947. <xsl:choose>
  1948. <xsl:when test="$dependent-type='radio'">
  1949. <xsl:text/>disableDependentOptionsRadio(this, !this.checked);<xsl:text/>
  1950. </xsl:when>
  1951. <xsl:otherwise>
  1952. <xsl:text/>disableDependentOptions(this, !this.checked);<xsl:text/>
  1953. </xsl:otherwise>
  1954. </xsl:choose>
  1955. </xsl:if>
  1956. </xsl:variable>
  1957. <xsl:attribute name="onclick"><xsl:value-of select="$onClick"/></xsl:attribute>
  1958. <out:if test="(not({$option-path}) and /root/env/param[@name='m_class']='importDeployment' and not(/root/*[local-name()='archiveOptions'])) or {$option-path}/@enabled='false' or ({$option-path}/@depend-on !='' and {$option-path}/../*[local-name()='deploymentOption' and @name={$option-path}/@depend-on] = 'false' )">
  1959. <out:attribute name="disabled"/>
  1960. </out:if>
  1961. <out:if test="{$option-path}='{$include-value}' ">
  1962. <out:attribute name="checked">checked</out:attribute>
  1963. </out:if>
  1964. </utml:input>
  1965. </dp:section1>
  1966. <dp:section2>
  1967. <span id="lbl_{$variable-name}">
  1968. <xts:string id="{$include-msg}"/>
  1969. </span>
  1970. </dp:section2>
  1971. </xsl:template>
  1972. <!--
  1973. ==========================================
  1974. Radio group for an option
  1975. ==========================================
  1976. -->
  1977. <xsl:template name="option-radio">
  1978. <xsl:param name="option-name"/>
  1979. <xsl:param name="include-value"/>
  1980. <xsl:param name="do-not-include-value"/>
  1981. <xsl:param name="include-msg1"/>
  1982. <xsl:param name="include-msg2"/>
  1983. <xsl:param name="disable-dependent"/>
  1984. <xsl:param name="track-change"/>
  1985. <xsl:param name="radio-group-label-id"/>
  1986. <xsl:variable name="option-path">
  1987. <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='<xsl:text/>
  1988. <xsl:value-of select="$option-name"/>
  1989. <xsl:text/>']<xsl:text/>
  1990. </xsl:variable>
  1991. <xsl:variable name="variable-name">
  1992. <xsl:text/>m_<xsl:text/>
  1993. <xsl:value-of select="$option-name"/>
  1994. </xsl:variable>
  1995. <utml:radio-group name="{$variable-name}">
  1996. <xsl:if test="$track-change='true'">
  1997. <xsl:attribute name="utml:track">true</xsl:attribute>
  1998. </xsl:if>
  1999. <xsl:variable name="onClick">
  2000. <xsl:text/>javascript:saveLastValueFunctionRadio(this, this.checked);<xsl:text/>
  2001. <!-- <xsl:if test="$disable-dependent='true'">
  2002. <xsl:text/>disableDependentOptionsRadio(this, !this.checked);<xsl:text/>
  2003. </xsl:if> -->
  2004. </xsl:variable>
  2005. <dp:choice>
  2006. <xsl:attribute name="aria-labelledby">
  2007. <xsl:choose>
  2008. <xsl:when test="$radio-group-label-id != ''"><xsl:value-of select="$radio-group-label-id"/></xsl:when>
  2009. <xsl:otherwise>lbl_<xsl:value-of select="$option-name"/>_groupTitle</xsl:otherwise>
  2010. </xsl:choose>
  2011. </xsl:attribute>
  2012. <dp:section1>
  2013. <utml:input type="radio">
  2014. <xsl:attribute name="value"><xsl:value-of select="$include-value"/></xsl:attribute>
  2015. <xsl:attribute name="id"><xsl:value-of select="concat('lbl_',$option-name,'_',$include-value)"/></xsl:attribute>
  2016. <xsl:attribute name="onclick"><xsl:value-of select="$onClick"/></xsl:attribute>
  2017. <out:if test="(not({$option-path}) and /root/env/param[@name='m_class']='importDeployment' and not(/root/*[local-name()='archiveOptions'])) or {$option-path}/@enabled='false' or ({$option-path}/@depend-on !='' and {$option-path}/../*[local-name()='deploymentOption' and @name={$option-path}/@depend-on] = 'false' )">
  2018. <out:attribute name="disabled"/>
  2019. </out:if>
  2020. <out:if test="{$option-path}='{$include-value}' ">
  2021. <out:attribute name="checked">true</out:attribute>
  2022. </out:if>
  2023. </utml:input>
  2024. </dp:section1>
  2025. <dp:section2 for="{concat('lbl_',$option-name,'_',$include-value)}">
  2026. <out:text>
  2027. <xts:string id="{$include-msg2}"/>
  2028. </out:text>
  2029. </dp:section2>
  2030. <dp:section1>
  2031. <utml:input type="radio">
  2032. <xsl:attribute name="value"><xsl:value-of select="$do-not-include-value"/></xsl:attribute>
  2033. <xsl:attribute name="id"><xsl:value-of select="concat('lbl_',$option-name,'_',$do-not-include-value)"/></xsl:attribute>
  2034. <xsl:attribute name="onclick"><xsl:value-of select="$onClick"/></xsl:attribute>
  2035. <out:if test="(not({$option-path}) and /root/env/param[@name='m_class']='importDeployment' and not(/root/*[local-name()='archiveOptions'])) or {$option-path}/@enabled='false' or ({$option-path}/@depend-on !='' and {$option-path}/../*[local-name()='deploymentOption' and @name={$option-path}/@depend-on] = 'false' )">
  2036. <out:attribute name="disabled"/>
  2037. </out:if>
  2038. <out:if test="{$option-path}='{$do-not-include-value}' or not({$option-path})">
  2039. <out:attribute name="checked">true</out:attribute>
  2040. </out:if>
  2041. </utml:input>
  2042. </dp:section1>
  2043. <dp:section2 for="{concat('lbl_',$option-name,'_',$do-not-include-value)}">
  2044. <out:text>
  2045. <xts:string id="{$include-msg1}"/>
  2046. </out:text>
  2047. </dp:section2>
  2048. </dp:choice>
  2049. </utml:radio-group>
  2050. </xsl:template>
  2051. <!--
  2052. ==========================================
  2053. Checkbox for a boolean option that has dependent options
  2054. ==========================================
  2055. -->
  2056. <xsl:template name="option-checkbox-boolean-with-dependent">
  2057. <xsl:param name="option-name"/>
  2058. <xsl:param name="include-msg"/>
  2059. <xsl:param name="dependent-type"/>
  2060. <xsl:param name="track-change"/>
  2061. <xsl:call-template name="option-checkbox">
  2062. <xsl:with-param name="option-name" select="$option-name"/>
  2063. <xsl:with-param name="include-value">true</xsl:with-param>
  2064. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2065. <xsl:with-param name="include-msg" select="$include-msg"/>
  2066. <xsl:with-param name="disable-dependent">true</xsl:with-param>
  2067. <xsl:with-param name="dependent-type" select="$dependent-type"/>
  2068. <xsl:with-param name="track-change" select="$track-change"/>
  2069. </xsl:call-template>
  2070. </xsl:template>
  2071. <!--
  2072. ==========================================
  2073. Checkbox for a conflict resolution option
  2074. ==========================================
  2075. -->
  2076. <xsl:template name="option-checkbox-conflict-resolution">
  2077. <xsl:param name="option-name"/>
  2078. <xsl:param name="track-change"/>
  2079. <xsl:call-template name="option-checkbox">
  2080. <xsl:with-param name="option-name" select="$option-name"/>
  2081. <xsl:with-param name="include-value">replace</xsl:with-param>
  2082. <xsl:with-param name="do-not-include-value">keep</xsl:with-param>
  2083. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2084. <xsl:with-param name="disable-dependent">false</xsl:with-param>
  2085. <xsl:with-param name="track-change" select="$track-change"/>
  2086. </xsl:call-template>
  2087. </xsl:template>
  2088. <!--
  2089. ==========================================
  2090. Checkbox for a conflict resolution option
  2091. ==========================================
  2092. -->
  2093. <xsl:template name="option-radio-conflict-resolution">
  2094. <xsl:param name="option-name"/>
  2095. <xsl:param name="include-msg1"/>
  2096. <xsl:param name="include-msg2"/>
  2097. <xsl:param name="track-change"/>
  2098. <xsl:param name="radio-group-label-id"/>
  2099. <xsl:call-template name="option-radio">
  2100. <xsl:with-param name="option-name" select="$option-name"/>
  2101. <xsl:with-param name="include-value">keep</xsl:with-param>
  2102. <xsl:with-param name="do-not-include-value">replace</xsl:with-param>
  2103. <xsl:with-param name="include-msg1" select="$include-msg2"/>
  2104. <xsl:with-param name="include-msg2" select="$include-msg1"/>
  2105. <xsl:with-param name="disable-dependent">false</xsl:with-param>
  2106. <xsl:with-param name="track-change" select="$track-change"/>
  2107. <xsl:with-param name="radio-group-label-id" select="$radio-group-label-id"/>
  2108. </xsl:call-template>
  2109. </xsl:template>
  2110. <!--
  2111. ==========================================
  2112. Summary for an option
  2113. ==========================================
  2114. -->
  2115. <xsl:template name="option-summary">
  2116. <xsl:param name="option-name"/>
  2117. <xsl:param name="include-value"/>
  2118. <xsl:param name="do-not-include-value"/>
  2119. <xsl:param name="include-msg"/>
  2120. <xsl:param name="do-not-include-msg"/>
  2121. <xsl:variable name="option-path">
  2122. <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='<xsl:text/>
  2123. <xsl:value-of select="$option-name"/>
  2124. <xsl:text/>']<xsl:text/>
  2125. </xsl:variable>
  2126. <out:variable name="text">
  2127. <out:choose>
  2128. <out:when test="{$option-path}='{$include-value}'">
  2129. <xts:string id="{$include-msg}"/>
  2130. </out:when>
  2131. <out:when test="{$option-path}='{$do-not-include-value}'">
  2132. <xts:string id="{$do-not-include-msg}"/>
  2133. </out:when>
  2134. </out:choose>
  2135. </out:variable>
  2136. <out:value-of select="$text"/>
  2137. </xsl:template>
  2138. <!--
  2139. ==========================================
  2140. Summary for a dependent boolean option
  2141. ==========================================
  2142. -->
  2143. <xsl:template name="dependent-boolean-option-summary">
  2144. <xsl:param name="parent-option-name"/>
  2145. <xsl:param name="option-name"/>
  2146. <xsl:param name="include-msg"/>
  2147. <xsl:param name="do-not-include-msg"/>
  2148. <xsl:param name="space">true</xsl:param>
  2149. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='{$parent-option-name}'] != 'false' ">
  2150. <dp:group>
  2151. <xsl:if test="$space='true'">
  2152. <dp:groupItem>
  2153. <img width="16" height="16" alt="">
  2154. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  2155. </img>
  2156. </dp:groupItem>
  2157. </xsl:if>
  2158. <dp:groupItem>
  2159. <xsl:call-template name="option-summary">
  2160. <xsl:with-param name="option-name" select="$option-name"/>
  2161. <xsl:with-param name="include-value">true</xsl:with-param>
  2162. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2163. <xsl:with-param name="include-msg" select="$include-msg"/>
  2164. <xsl:with-param name="do-not-include-msg" select="$do-not-include-msg"/>
  2165. </xsl:call-template>
  2166. </dp:groupItem>
  2167. </dp:group>
  2168. </out:if>
  2169. </xsl:template>
  2170. <!--
  2171. ==========================================
  2172. Summary for a dependent conflict resolution option
  2173. ==========================================
  2174. -->
  2175. <xsl:template name="dependent-resolution-option-summary">
  2176. <xsl:param name="parent-option-name"/>
  2177. <xsl:param name="option-name"/>
  2178. <xsl:param name="include-msg"/>
  2179. <xsl:param name="do-not-include-msg"/>
  2180. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='{$parent-option-name}'] != 'false' or '{$parent-option-name}' = 'takeOwnership' ">
  2181. <dp:group>
  2182. <dp:groupItem>
  2183. <img width="16" height="16" alt="">
  2184. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  2185. </img>
  2186. </dp:groupItem>
  2187. <dp:groupItem>
  2188. <xsl:call-template name="option-summary">
  2189. <xsl:with-param name="option-name" select="$option-name"/>
  2190. <xsl:with-param name="include-value">replace</xsl:with-param>
  2191. <xsl:with-param name="do-not-include-value">keep</xsl:with-param>
  2192. <xsl:with-param name="include-msg" select="$include-msg"/>
  2193. <xsl:with-param name="do-not-include-msg" select="$do-not-include-msg"/>
  2194. </xsl:call-template>
  2195. </dp:groupItem>
  2196. </dp:group>
  2197. </out:if>
  2198. </xsl:template>
  2199. <!--
  2200. ================================================
  2201. Directory content options
  2202. ===============================================
  2203. -->
  2204. <xsl:template match="dpl:directoryContentOptions">
  2205. <xsl:variable name="track" select="@dpl:track"/>
  2206. <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_DIRECTORY_CONTENT" border="yes">
  2207. <lyt:section>
  2208. <dp:choice>
  2209. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  2210. <xsl:with-param name="option-name">namespaceSelect</xsl:with-param>
  2211. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_GROUPS_ROLES</xsl:with-param>
  2212. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  2213. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2214. </xsl:call-template>
  2215. <dp:section3>
  2216. <dp:list>
  2217. <dp:section>
  2218. <dp:label id="lbl_namespaceConflictResolution_groupTitle">
  2219. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  2220. </dp:label>
  2221. </dp:section>
  2222. </dp:list>
  2223. <xsl:call-template name="option-radio-conflict-resolution">
  2224. <xsl:with-param name="option-name">namespaceConflictResolution</xsl:with-param>
  2225. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  2226. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2227. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2228. <xsl:with-param name="radio-group-label-id">lbl_m_namespaceSelect lbl_namespaceConflictResolution_groupTitle</xsl:with-param>
  2229. </xsl:call-template>
  2230. </dp:section3>
  2231. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  2232. <xsl:with-param name="option-name">recipientsSelect</xsl:with-param>
  2233. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_RECIPIENTS</xsl:with-param>
  2234. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  2235. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2236. </xsl:call-template>
  2237. <dp:section3>
  2238. <dp:list>
  2239. <dp:section>
  2240. <dp:label id="lbl_recipientsConflictResolution_groupTitle">
  2241. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  2242. </dp:label>
  2243. </dp:section>
  2244. </dp:list>
  2245. <xsl:call-template name="option-radio-conflict-resolution">
  2246. <xsl:with-param name="option-name">recipientsConflictResolution</xsl:with-param>
  2247. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  2248. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2249. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2250. <xsl:with-param name="radio-group-label-id">lbl_m_recipientsSelect lbl_recipientsConflictResolution_groupTitle</xsl:with-param>
  2251. </xsl:call-template>
  2252. </dp:section3>
  2253. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  2254. <xsl:with-param name="option-name">dataSourceSelect</xsl:with-param>
  2255. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_DATA_SOURCES</xsl:with-param>
  2256. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  2257. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2258. </xsl:call-template>
  2259. <dp:section3>
  2260. <xsl:call-template name="option-checkbox">
  2261. <xsl:with-param name="option-name">dataSourceSignonSelect</xsl:with-param>
  2262. <xsl:with-param name="include-value">true</xsl:with-param>
  2263. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2264. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_SIGNONS</xsl:with-param>
  2265. <xsl:with-param name="disable-dependent">false</xsl:with-param>
  2266. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2267. </xsl:call-template>
  2268. <br/><br/>
  2269. <dp:list>
  2270. <dp:section>
  2271. <dp:label id="lbl_dataSourceConflictResolution_groupTitle">
  2272. <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
  2273. </dp:label>
  2274. </dp:section>
  2275. </dp:list>
  2276. <xsl:call-template name="option-radio-conflict-resolution">
  2277. <xsl:with-param name="option-name">dataSourceConflictResolution</xsl:with-param>
  2278. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
  2279. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2280. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2281. <xsl:with-param name="radio-group-label-id">lbl_m_dataSourceSelect lbl_dataSourceConflictResolution_groupTitle</xsl:with-param>
  2282. </xsl:call-template>
  2283. </dp:section3>
  2284. </dp:choice>
  2285. </lyt:section>
  2286. </lyt:layout>
  2287. </xsl:template>
  2288. <!--
  2289. ================================================
  2290. Summary of all deployment options
  2291. ===============================================
  2292. -->
  2293. <xsl:template match="dpl:tenantsOptionsSummary">
  2294. <xsl:call-template name="tenantsOptionsSummary">
  2295. <xsl:with-param name="tenant-path" select="dpl:param[@name='tenant-path']"/>
  2296. <xsl:with-param name="read-only">true</xsl:with-param>
  2297. </xsl:call-template>
  2298. </xsl:template>
  2299. <xsl:template match="dpl:entireContentStoreOptionsSummary">
  2300. <xsl:call-template name="entireContentStoreOptionsSummary"/>
  2301. </xsl:template>
  2302. <xsl:template match="dpl:packagesOptionsSummary">
  2303. <xsl:call-template name="packagesOptionsSummary"/>
  2304. </xsl:template>
  2305. <xsl:template match="dpl:directoryContentOptionsSummary">
  2306. <xsl:call-template name="directoryContentOptionsSummary"/>
  2307. </xsl:template>
  2308. <xsl:template match="dpl:generalOptionsSummary">
  2309. <xsl:call-template name="generalOptionsSummary"/>
  2310. </xsl:template>
  2311. <!--
  2312. ================================================
  2313. Summary of Directory content options
  2314. ===============================================
  2315. -->
  2316. <xsl:template name="directoryContentOptionsSummary">
  2317. <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_DIRECTORY_CONTENT" border="yes">
  2318. <lyt:section>
  2319. <dp:list>
  2320. <dp:section>
  2321. <dp:text>
  2322. <xsl:call-template name="option-summary">
  2323. <xsl:with-param name="option-name">namespaceSelect</xsl:with-param>
  2324. <xsl:with-param name="include-value">true</xsl:with-param>
  2325. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2326. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_GROUPS_ROLES</xsl:with-param>
  2327. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_GROUPS_ROLES</xsl:with-param>
  2328. </xsl:call-template>
  2329. </dp:text>
  2330. </dp:section>
  2331. <dp:section>
  2332. <xsl:call-template name="dependent-resolution-option-summary">
  2333. <xsl:with-param name="parent-option-name">namespaceSelect</xsl:with-param>
  2334. <xsl:with-param name="option-name">namespaceConflictResolution</xsl:with-param>
  2335. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2336. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2337. </xsl:call-template>
  2338. </dp:section>
  2339. <dp:section>
  2340. <dp:text>
  2341. <xsl:call-template name="option-summary">
  2342. <xsl:with-param name="option-name">recipientsSelect</xsl:with-param>
  2343. <xsl:with-param name="include-value">true</xsl:with-param>
  2344. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2345. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_RECIPIENTS</xsl:with-param>
  2346. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_RECIPIENTS</xsl:with-param>
  2347. </xsl:call-template>
  2348. </dp:text>
  2349. </dp:section>
  2350. <dp:section>
  2351. <xsl:call-template name="dependent-resolution-option-summary">
  2352. <xsl:with-param name="parent-option-name">recipientsSelect</xsl:with-param>
  2353. <xsl:with-param name="option-name">recipientsConflictResolution</xsl:with-param>
  2354. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2355. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2356. </xsl:call-template>
  2357. </dp:section>
  2358. <dp:section>
  2359. <dp:text>
  2360. <xsl:call-template name="option-summary">
  2361. <xsl:with-param name="option-name">dataSourceSelect</xsl:with-param>
  2362. <xsl:with-param name="include-value">true</xsl:with-param>
  2363. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2364. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_DATA_SOURCES</xsl:with-param>
  2365. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_DATA_SOURCES</xsl:with-param>
  2366. </xsl:call-template>
  2367. </dp:text>
  2368. </dp:section>
  2369. <dp:section>
  2370. <xsl:call-template name="dependent-boolean-option-summary">
  2371. <xsl:with-param name="parent-option-name">dataSourceSelect</xsl:with-param>
  2372. <xsl:with-param name="option-name">dataSourceSignonSelect</xsl:with-param>
  2373. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_SIGNONS</xsl:with-param>
  2374. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_SIGNONS</xsl:with-param>
  2375. </xsl:call-template>
  2376. </dp:section>
  2377. <dp:section>
  2378. <xsl:call-template name="dependent-resolution-option-summary">
  2379. <xsl:with-param name="parent-option-name">dataSourceSelect</xsl:with-param>
  2380. <xsl:with-param name="option-name">dataSourceConflictResolution</xsl:with-param>
  2381. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2382. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2383. </xsl:call-template>
  2384. </dp:section>
  2385. </dp:list>
  2386. </lyt:section>
  2387. </lyt:layout>
  2388. </xsl:template>
  2389. <!--
  2390. ================================================
  2391. Summary of general options
  2392. ===============================================
  2393. -->
  2394. <xsl:template name="generalOptionsSummary">
  2395. <lyt:layout style="1" title="IDS_DEPLOYMENT_GENERAL_OPTIONS" border="yes">
  2396. <lyt:section>
  2397. <dp:list>
  2398. <dp:section>
  2399. <dp:text>
  2400. <xsl:call-template name="option-summary">
  2401. <xsl:with-param name="option-name">objectPolicies</xsl:with-param>
  2402. <xsl:with-param name="include-value">true</xsl:with-param>
  2403. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2404. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_ACCESS_PERMISSIONS</xsl:with-param>
  2405. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_ACCESS_PERMISSIONS</xsl:with-param>
  2406. </xsl:call-template>
  2407. </dp:text>
  2408. </dp:section>
  2409. <dp:section>
  2410. <xsl:call-template name="dependent-resolution-option-summary">
  2411. <xsl:with-param name="parent-option-name">objectPolicies</xsl:with-param>
  2412. <xsl:with-param name="option-name">objectPoliciesConflictResolution</xsl:with-param>
  2413. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_GENERAL_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
  2414. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_GENERAL_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
  2415. </xsl:call-template>
  2416. </dp:section>
  2417. <dp:section>
  2418. <dp:text>
  2419. <xsl:call-template name="option-summary">
  2420. <xsl:with-param name="option-name">namespaceThirdParty</xsl:with-param>
  2421. <xsl:with-param name="include-value">true</xsl:with-param>
  2422. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2423. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_EXTERNAL_REFERENCES</xsl:with-param>
  2424. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_EXTERNAL_REFERENCES</xsl:with-param>
  2425. </xsl:call-template>
  2426. </dp:text>
  2427. </dp:section>
  2428. <dp:section>
  2429. <dp:text>
  2430. <xsl:call-template name="option-summary">
  2431. <xsl:with-param name="option-name">takeOwnership</xsl:with-param>
  2432. <xsl:with-param name="include-value">true</xsl:with-param>
  2433. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2434. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OWNERSHIP_USER_SUMMARY</xsl:with-param>
  2435. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_OWNERSHIP_SOURCE_SUMMARY</xsl:with-param>
  2436. </xsl:call-template>
  2437. </dp:text>
  2438. </dp:section>
  2439. <dp:section>
  2440. <dp:text>
  2441. <xsl:call-template name="dependent-resolution-option-summary">
  2442. <xsl:with-param name="parent-option-name">takeOwnership</xsl:with-param>
  2443. <xsl:with-param name="option-name">ownershipConflictResolution</xsl:with-param>
  2444. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_GENERAL_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
  2445. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_GENERAL_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
  2446. </xsl:call-template>
  2447. </dp:text>
  2448. </dp:section>
  2449. <dp:section>
  2450. <dp:text>
  2451. <xsl:variable name="recLevel">
  2452. <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='recordingLevel']<xsl:text/>
  2453. </xsl:variable>
  2454. <out:variable name="text1">
  2455. <out:choose>
  2456. <out:when test="{$recLevel}='minimal'">
  2457. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_MINIMAL"/>
  2458. </out:when>
  2459. <out:when test="{$recLevel}='basic'">
  2460. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_BASIC"/>
  2461. </out:when>
  2462. <out:when test="{$recLevel}='full'">
  2463. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_FULL"/>
  2464. </out:when>
  2465. <out:otherwise>
  2466. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_BASIC"/>
  2467. </out:otherwise>
  2468. </out:choose>
  2469. </out:variable>
  2470. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_DROPDOWN_LABEL"/>
  2471. <out:value-of select="' '"/><out:value-of select="$text1"/>
  2472. </dp:text>
  2473. </dp:section>
  2474. </dp:list>
  2475. </lyt:section>
  2476. </lyt:layout>
  2477. </xsl:template>
  2478. <!--
  2479. ==========================================
  2480. Summary for the tenants options
  2481. ==========================================
  2482. -->
  2483. <xsl:template name="tenantsOptionsSummary">
  2484. <xsl:param name="tenant-path"/>
  2485. <xsl:param name="read-only"/>
  2486. <lyt:layout style="1" title="IDS_DEPLOYMENT_METHOD_TENANTS" border="yes">
  2487. <lyt:section>
  2488. <xsl:call-template name="tenantsToInclude">
  2489. <xsl:with-param name="tenant-path" select="$tenant-path"/>
  2490. </xsl:call-template>
  2491. </lyt:section>
  2492. </lyt:layout>
  2493. <lyt:layout style="1" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS" border="yes">
  2494. <lyt:section>
  2495. <dp:list>
  2496. <xsl:choose>
  2497. <xsl:when test="not($read-only='true')">
  2498. <dp:section>
  2499. <dp:choice noSpace="true">
  2500. <dp:section1>
  2501. <utml:input type="checkbox" id="id_m_personalDataSelect" name="m_personalDataSelect" value="true">
  2502. <xsl:attribute name="onClick">
  2503. <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
  2504. </xsl:attribute>
  2505. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect']='true'">
  2506. <out:attribute name="checked">checked</out:attribute>
  2507. </out:if>
  2508. </utml:input>
  2509. </dp:section1>
  2510. <dp:section2 for="id_m_personalDataSelect">
  2511. <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT"/>
  2512. </dp:section2>
  2513. </dp:choice>
  2514. </dp:section>
  2515. <dp:section>
  2516. <dp:group>
  2517. <dp:groupItem>
  2518. <img width="24" height="16" alt="">
  2519. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  2520. </img>
  2521. </dp:groupItem>
  2522. <dp:groupItem>
  2523. <out:choose>
  2524. <out:when>
  2525. <xsl:attribute name="test">
  2526. <xsl:copy-of select="$tenant-path"/>[. = '']
  2527. </xsl:attribute>
  2528. <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/></dp:text>
  2529. </out:when>
  2530. <out:otherwise>
  2531. <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_PUBLIC_TENANT"/></dp:text>
  2532. </out:otherwise>
  2533. </out:choose>
  2534. </dp:groupItem>
  2535. </dp:group>
  2536. </dp:section>
  2537. <dp:section>
  2538. <dp:label id="lbl_tenantsContentConflictResolution"><xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/></dp:label>
  2539. </dp:section>
  2540. <dp:section>
  2541. <dp:group>
  2542. <dp:groupItem>
  2543. <img width="16" height="16" alt="">
  2544. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  2545. </img>
  2546. </dp:groupItem>
  2547. <dp:groupItem>
  2548. <utml:radio-group name="m_tenantsContentConflictResolution">
  2549. <dp:choice aria-labelledby="lbl_tenantsContentConflictResolution">
  2550. <dp:section1>
  2551. <utml:input type="radio" value="replace" id="ctrl_tenantsContentConflictResolution_replace" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
  2552. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='replace'">
  2553. <out:attribute name="checked">checked</out:attribute>
  2554. </out:if>
  2555. </utml:input>
  2556. </dp:section1>
  2557. <dp:section2 for="ctrl_tenantsContentConflictResolution_replace">
  2558. <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES"/></dp:text>
  2559. </dp:section2>
  2560. <dp:section1>
  2561. <utml:input type="radio" value="keep" id="ctrl_tenantsContentConflictResolution_keep" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
  2562. <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']) or /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='keep'">
  2563. <out:attribute name="checked">checked</out:attribute>
  2564. </out:if>
  2565. </utml:input>
  2566. </dp:section1>
  2567. <dp:section2 for="ctrl_tenantsContentConflictResolution_keep">
  2568. <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES"/></dp:text>
  2569. </dp:section2>
  2570. </dp:choice>
  2571. </utml:radio-group>
  2572. </dp:groupItem>
  2573. </dp:group>
  2574. </dp:section>
  2575. </xsl:when>
  2576. <xsl:otherwise>
  2577. <dp:section>
  2578. <dp:text>
  2579. <xsl:call-template name="dependent-boolean-option-summary">
  2580. <xsl:with-param name="parent-option-name">entireContentStoreSelect</xsl:with-param>
  2581. <xsl:with-param name="option-name">personalDataSelect</xsl:with-param>
  2582. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT</xsl:with-param>
  2583. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_USER_ACCOUNT</xsl:with-param>
  2584. <xsl:with-param name="space">false</xsl:with-param>
  2585. </xsl:call-template>
  2586. </dp:text>
  2587. </dp:section>
  2588. <dp:section>
  2589. <dp:group>
  2590. <dp:groupItem>
  2591. <out:choose>
  2592. <out:when>
  2593. <xsl:attribute name="test">
  2594. <xsl:copy-of select="$tenant-path"/>[. = '']
  2595. </xsl:attribute>
  2596. <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/></dp:text>
  2597. </out:when>
  2598. <out:otherwise>
  2599. <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_PUBLIC_TENANT"/></dp:text>
  2600. </out:otherwise>
  2601. </out:choose>
  2602. </dp:groupItem>
  2603. </dp:group>
  2604. </dp:section>
  2605. <dp:section>
  2606. <dp:label><xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/></dp:label>
  2607. </dp:section>
  2608. <dp:section>
  2609. <dp:group>
  2610. <dp:groupItem>
  2611. <img width="16" height="16" alt="">
  2612. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  2613. </img>
  2614. </dp:groupItem>
  2615. <dp:groupItem>
  2616. <dp:text>
  2617. <xsl:call-template name="option-summary">
  2618. <xsl:with-param name="option-name">tenantsContentConflictResolution</xsl:with-param>
  2619. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2620. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
  2621. <xsl:with-param name="include-value">keep</xsl:with-param>
  2622. <xsl:with-param name="do-not-include-value">replace</xsl:with-param>
  2623. </xsl:call-template>
  2624. </dp:text>
  2625. </dp:groupItem>
  2626. </dp:group>
  2627. </dp:section>
  2628. </xsl:otherwise>
  2629. </xsl:choose>
  2630. </dp:list>
  2631. </lyt:section>
  2632. </lyt:layout>
  2633. </xsl:template>
  2634. <!--
  2635. ==========================================
  2636. Summary for the entire Content Store options
  2637. ==========================================
  2638. -->
  2639. <xsl:template name="entireContentStoreOptionsSummary">
  2640. <lyt:layout style="1" title="IDS_DEPLOYMENT_METHOD_CONTENT_STORE" border="yes">
  2641. <lyt:section>
  2642. <dp:list>
  2643. <dp:section>
  2644. <dp:text>
  2645. <xsl:call-template name="option-summary">
  2646. <xsl:with-param name="option-name">entireContentStoreSelect</xsl:with-param>
  2647. <xsl:with-param name="include-value">true</xsl:with-param>
  2648. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2649. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_ENTIRE_CONTENT_STORE</xsl:with-param>
  2650. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_METHOD_ENTIRE_CONTENT_STORE</xsl:with-param>
  2651. </xsl:call-template>
  2652. </dp:text>
  2653. </dp:section>
  2654. <dp:section>
  2655. <xsl:call-template name="dependent-boolean-option-summary">
  2656. <xsl:with-param name="parent-option-name">entireContentStoreSelect</xsl:with-param>
  2657. <xsl:with-param name="option-name">personalDataSelect</xsl:with-param>
  2658. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT</xsl:with-param>
  2659. <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_USER_ACCOUNT</xsl:with-param>
  2660. </xsl:call-template>
  2661. </dp:section>
  2662. </dp:list>
  2663. </lyt:section>
  2664. </lyt:layout>
  2665. </xsl:template>
  2666. <!--
  2667. ================================================
  2668. pager in the first page of Wizard.
  2669. ===============================================
  2670. -->
  2671. <xsl:template match="dpl:fileSelectionPager">
  2672. <utml:radio-group name="pageitem">
  2673. <out:variable name="archiveSelected">
  2674. <out:choose>
  2675. <out:when test="key('env-param', 'm_archive')">
  2676. <out:value-of select="key('env-param', 'm_archive')"/>
  2677. </out:when>
  2678. <out:otherwise>
  2679. <out:value-of select="''"/>
  2680. </out:otherwise>
  2681. </out:choose>
  2682. </out:variable>
  2683. <utml:default-value>
  2684. <out:value-of select="key('env-param', 'm_archive')"/>
  2685. </utml:default-value>
  2686. <cf:main-pager-section form="pform" name="fileSelection">
  2687. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  2688. <cf:param name="item-path">/root/archiveNames/cm:listArchivesResponse/*</cf:param>
  2689. <cf:param name="lines-per-page">
  2690. <out:value-of select="key('session-param', 'linesPerPage')"/>
  2691. </cf:param>
  2692. <cf:param name="rows">
  2693. <cp:tableHeader session-name="s_dep">
  2694. <cp:columnHeader width="16"/>
  2695. <cp:columnHeader width="16"/>
  2696. <cp:columnHeader width="100%" sort="n">
  2697. <cp:sortHref>javascript:doSort('n')</cp:sortHref>
  2698. <xts:string id="IDS_DEPLOYMENT_DEPLOYMENT_FILE"/>
  2699. </cp:columnHeader>
  2700. </cp:tableHeader>
  2701. <cp:tableContent>
  2702. <cp:columnContent>
  2703. <out:choose>
  2704. <out:when test="$deployment-method='import' and $archiveSelected = '' and position() = 1">
  2705. <utml:input type="radio" name="pageitem" onLoad="javascript:setArchiveValue(this)" onclick="javascript:if (document.pform.m_selectArchivePageVisited != null) document.pform.m_selectArchivePageVisited.value=false;setArchiveValue(this)" checked="true">
  2706. <out:attribute name="aria-label">
  2707. <xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="."/></xts:param></xts:string>
  2708. </out:attribute>
  2709. <utml:value>
  2710. <out:value-of select="."/>
  2711. </utml:value>
  2712. </utml:input>
  2713. </out:when>
  2714. <out:otherwise>
  2715. <utml:input type="radio" name="pageitem" onclick="javascript:if (document.pform.m_selectArchivePageVisited != null) document.pform.m_selectArchivePageVisited.value=false;formControl(this);setArchiveValue(this)">
  2716. <out:attribute name="aria-label">
  2717. <xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="."/></xts:param></xts:string>
  2718. </out:attribute>
  2719. <utml:value>
  2720. <out:value-of select="."/>
  2721. </utml:value>
  2722. </utml:input>
  2723. </out:otherwise>
  2724. </out:choose>
  2725. </cp:columnContent>
  2726. <cp:columnContent>
  2727. <img height="16" width="16">
  2728. <out:attribute name="src"><out:value-of select="$image_root"/>icon_deployment.gif</out:attribute>
  2729. <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_FOLDER"/></out:attribute>
  2730. </img>
  2731. </cp:columnContent>
  2732. <cp:columnContent>
  2733. <out:value-of select="."/>
  2734. </cp:columnContent>
  2735. </cp:tableContent>
  2736. </cf:param>
  2737. </cf:main-pager-section>
  2738. </utml:radio-group>
  2739. </xsl:template>
  2740. <!--
  2741. ================================================
  2742. Entries pager in record page.
  2743. ===============================================
  2744. -->
  2745. <xsl:template match="dpl:recordEntriesPager">
  2746. <cf:main-pager-section name="Entries" form="pform" virtualPage="true">
  2747. <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
  2748. <cf:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='deploymentObject']/*</cf:param>
  2749. <cf:param name="lines-per-page">
  2750. <out:value-of select="key('session-param', 'linesPerPage')"/>
  2751. </cf:param>
  2752. <cf:param name="rows">
  2753. <cp:tableHeader session-name="s_dep">
  2754. <cp:columnHeader width="16"/>
  2755. <cp:columnHeader width="200" sort="n">
  2756. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  2757. <out:text/><cp:sortHref>javascript:doSort('n')</cp:sortHref><xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/><out:text/>
  2758. </cp:columnHeader>
  2759. <cp:columnHeader width="200">
  2760. <xts:string id="IDS_TYPE"/>
  2761. </cp:columnHeader>
  2762. <cp:columnHeader width="100%">
  2763. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION"/>
  2764. </cp:columnHeader>
  2765. </cp:tableHeader>
  2766. <cp:tableContent>
  2767. <out:choose>
  2768. <out:when test="cm:defaultName != ''">
  2769. <cp:columnContent>
  2770. <out:call-template name="gen-icon">
  2771. <out:with-param name="class" select="cm:deployedObjectClass"/>
  2772. <out:with-param name="showAction" select="false()"/>
  2773. </out:call-template>
  2774. </cp:columnContent>
  2775. <cp:columnContent lang="{'{$contentLocale}'}">
  2776. <img height="16" width="20" align="absmiddle">
  2777. <out:attribute name="alt"><out:value-of select="string( cm:ancestorDefaultNames )"/></out:attribute>
  2778. <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
  2779. </img>
  2780. <out:text>&#160;</out:text>
  2781. <out:value-of select="cm:defaultName"/>
  2782. </cp:columnContent>
  2783. <cp:columnContent>
  2784. <out:choose>
  2785. <out:when test="cm:objectType != ''">
  2786. <out:value-of select="cm:objectType"/>
  2787. </out:when>
  2788. <out:otherwise>
  2789. <out:value-of select="cm:deployedObjectClass"/>
  2790. </out:otherwise>
  2791. </out:choose>
  2792. </cp:columnContent>
  2793. <cp:columnContent>
  2794. <out:variable name="cmStatus">
  2795. <out:value-of select="cm:deployedObjectStatus"/>
  2796. </out:variable>
  2797. <out:choose>
  2798. <out:when test="$cmStatus='added'">
  2799. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_ADDED"/>
  2800. </out:when>
  2801. <out:when test="$cmStatus='replaced'">
  2802. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_REPLACED"/>
  2803. </out:when>
  2804. <out:when test="$cmStatus='updated'">
  2805. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_UPDATED"/>
  2806. </out:when>
  2807. <out:when test="$cmStatus='kept'">
  2808. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_KEPT"/>
  2809. </out:when>
  2810. <out:when test="$cmStatus='failed'">
  2811. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_FAILED"/>
  2812. </out:when>
  2813. <out:when test="$cmStatus='exported'">
  2814. <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_EXPORTED"/>
  2815. </out:when>
  2816. <out:otherwise>
  2817. <out:value-of select="$cmStatus"/>
  2818. </out:otherwise>
  2819. </out:choose>
  2820. </cp:columnContent>
  2821. </out:when>
  2822. </out:choose>
  2823. </cp:tableContent>
  2824. </cf:param>
  2825. </cf:main-pager-section>
  2826. </xsl:template>
  2827. <!--
  2828. ================================================
  2829. generalOptions
  2830. ===============================================
  2831. -->
  2832. <xsl:template match="dpl:generalOptions">
  2833. <xsl:variable name="track" select="@dpl:track"/>
  2834. <out:variable name="recordingLevel" select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='recordingLevel']"/>
  2835. <lyt:layout style="1" title="IDS_DEPLOYMENT_GENERAL_ACCESS_PERMISSIONS" border="yes">
  2836. <lyt:section>
  2837. <dp:choice>
  2838. <xsl:call-template name="option-checkbox-boolean-with-dependent">
  2839. <xsl:with-param name="option-name">objectPolicies</xsl:with-param>
  2840. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_GENERAL_INCLUDE_ACCESS_PERMISSIONS</xsl:with-param>
  2841. <xsl:with-param name="dependent-type">radio</xsl:with-param>
  2842. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2843. </xsl:call-template>
  2844. <dp:section3>
  2845. <xsl:call-template name="option-radio-conflict-resolution">
  2846. <xsl:with-param name="option-name">objectPoliciesConflictResolution</xsl:with-param>
  2847. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_GENERAL_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
  2848. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_GENERAL_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
  2849. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2850. <xsl:with-param name="radio-group-label-id">lbl_m_objectPolicies</xsl:with-param>
  2851. </xsl:call-template>
  2852. </dp:section3>
  2853. </dp:choice>
  2854. </lyt:section>
  2855. </lyt:layout>
  2856. <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_EXTERNAL_NAMESPACES_TITLE" border="yes" id="lbl_namespaceThirdParty_title">
  2857. <lyt:section>
  2858. <xsl:call-template name="option-radio">
  2859. <xsl:with-param name="option-name">namespaceThirdParty</xsl:with-param>
  2860. <xsl:with-param name="include-value">true</xsl:with-param>
  2861. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  2862. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_THIRD_PARTY</xsl:with-param>
  2863. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_INCLUDE_THIRD_PARTY</xsl:with-param>
  2864. <xsl:with-param name="disable-dependent">false</xsl:with-param>
  2865. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2866. <xsl:with-param name="radio-group-label-id">lbl_namespaceThirdParty_title</xsl:with-param>
  2867. </xsl:call-template>
  2868. </lyt:section>
  2869. </lyt:layout>
  2870. <lyt:layout style="1" id="lbl_deployment_ownership_radio_sectionTitle" title="IDS_DEPLOYMENT_OWNERSHIP_RADIO_TITLE" border="yes">
  2871. <lyt:section>
  2872. <dp:list>
  2873. <dp:section>
  2874. <dp:label id="lbl_deployment_ownership_radio_groupTitle">
  2875. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RADIO_SET_OWNER_TITLE"/>
  2876. </dp:label>
  2877. </dp:section>
  2878. </dp:list>
  2879. <utml:radio-group name="m_deployment_ownership">
  2880. <xsl:if test="$track='true'">
  2881. <xsl:attribute name="utml:track">true</xsl:attribute>
  2882. </xsl:if>
  2883. <dp:choice aria-labelledby="lbl_deployment_ownership_radio_sectionTitle lbl_deployment_ownership_radio_groupTitle">
  2884. <dp:section1>
  2885. <utml:input type="radio" value="source" id="lbl_deployment_ownership_source">
  2886. <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership']) or /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership'] != 'true'">
  2887. <out:attribute name="checked">checked</out:attribute>
  2888. </out:if>
  2889. <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership']) and /root/env/param[@name='m_class']='importDeployment' and not(/root/*[local-name()='archiveOptions'])">
  2890. <out:attribute name="disabled"/>
  2891. </out:if>
  2892. </utml:input>
  2893. </dp:section1>
  2894. <dp:section2 for="lbl_deployment_ownership_source">
  2895. <out:text>
  2896. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_SOURCE"/>
  2897. </out:text>
  2898. </dp:section2>
  2899. <dp:section1>
  2900. <utml:input type="radio" value="user" id="lbl_deployment_ownership_user">
  2901. <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership']='true'">
  2902. <out:attribute name="checked">checked</out:attribute>
  2903. </out:if>
  2904. <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership']) and /root/env/param[@name='m_class']='importDeployment' and not(/root/*[local-name()='archiveOptions'])">
  2905. <out:attribute name="disabled"/>
  2906. </out:if>
  2907. </utml:input>
  2908. </dp:section1>
  2909. <dp:section2 for="lbl_deployment_ownership_user">
  2910. <out:text>
  2911. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_USER"/>
  2912. </out:text>
  2913. </dp:section2>
  2914. </dp:choice>
  2915. </utml:radio-group>
  2916. <dp:list>
  2917. <dp:section>
  2918. <dp:label id="lbl_ownershipConflictResolution_groupTitle">
  2919. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RADIO_APPLY_TO_TITLE"/>
  2920. </dp:label>
  2921. </dp:section>
  2922. </dp:list>
  2923. <dp:choice aria-labelledby="lbl_ownershipConflictResolution_groupTitle">
  2924. <xsl:call-template name="option-radio-conflict-resolution">
  2925. <xsl:with-param name="option-name">ownershipConflictResolution</xsl:with-param>
  2926. <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_GENERAL_OWNERSHIP_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
  2927. <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_GENERAL_OWNERSHIP_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
  2928. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  2929. <xsl:with-param name="radio-group-label-id">lbl_deployment_ownership_radio_sectionTitle lbl_ownershipConflictResolution_groupTitle</xsl:with-param>
  2930. </xsl:call-template>
  2931. </dp:choice>
  2932. </lyt:section>
  2933. </lyt:layout>
  2934. <!-- Show the level of detail to record in the history deployment records
  2935. (as of 8.2; WO 2118)
  2936. -->
  2937. <lyt:layout style="1" title="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_TITLE" border="yes">
  2938. <lyt:section>
  2939. <dp:list title="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_DROPDOWN_LABEL" for="lbl_recordingLevel">
  2940. <dp:section>
  2941. <dp:hint>
  2942. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_DESCRIPTION"/>
  2943. </dp:hint>
  2944. </dp:section>
  2945. <dp:section>
  2946. <select name="m_recordingLevel" id="lbl_recordingLevel" size="1">
  2947. <option value="minimal">
  2948. <out:if test="$recordingLevel = 'minimal'">
  2949. <out:attribute name="selected">selected</out:attribute>
  2950. </out:if>
  2951. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_MINIMAL"/>
  2952. </option>
  2953. <option value="basic">
  2954. <out:if test="$recordingLevel = 'basic'">
  2955. <out:attribute name="selected">selected</out:attribute>
  2956. </out:if>
  2957. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_BASIC"/>
  2958. </option>
  2959. <option value="full">
  2960. <out:if test="$recordingLevel = 'full'">
  2961. <out:attribute name="selected">selected</out:attribute>
  2962. </out:if>
  2963. <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_FULL"/>
  2964. </option>
  2965. </select>
  2966. </dp:section>
  2967. </dp:list>
  2968. </lyt:section>
  2969. </lyt:layout>
  2970. </xsl:template>
  2971. <!--
  2972. ================================================
  2973. deploymentMethodOptions
  2974. ===============================================
  2975. -->
  2976. <xsl:template match="dpl:deploymentMethodOptions">
  2977. <xsl:variable name="track" select="@dpl:track"/>
  2978. <xsl:variable name="with-radio">
  2979. <xsl:choose>
  2980. <xsl:when test="dpl:param[@name='with-radio']='true'">true</xsl:when>
  2981. <xsl:otherwise>false</xsl:otherwise>
  2982. </xsl:choose>
  2983. </xsl:variable>
  2984. <out:choose>
  2985. <out:when test="$deployment-method='import' and (key('deploymentOption', 'entireContentStoreSelect')='true' and key('deploymentOption','tenants')/*)">
  2986. <xsl:call-template name="tenantsOptionsSummary">
  2987. <xsl:with-param name="tenant-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenants']/*</xsl:with-param>
  2988. <xsl:with-param name="read-only">false</xsl:with-param>
  2989. </xsl:call-template>
  2990. </out:when>
  2991. <out:otherwise>
  2992. <lyt:layout style="1">
  2993. <xsl:choose>
  2994. <xsl:when test="$with-radio='false'">
  2995. <xsl:attribute name="title">IDS_DEPLOYMENT_METHOD_CONTENT_STORE</xsl:attribute>
  2996. <xsl:attribute name="border">yes</xsl:attribute>
  2997. </xsl:when>
  2998. <xsl:otherwise>
  2999. <xsl:attribute name="border">no</xsl:attribute>
  3000. </xsl:otherwise>
  3001. </xsl:choose>
  3002. <lyt:section>
  3003. <xsl:if test="$with-radio='true'">
  3004. <dp:list>
  3005. <dp:section>
  3006. <dp:label id="lbl_exportMethod">
  3007. <xts:string id="IDS_DEPLOYMENT_METHOD_RADIO_TITLE"/>
  3008. </dp:label>
  3009. </dp:section>
  3010. </dp:list>
  3011. <utml:radio-group name="m_exportMethod">
  3012. <xsl:if test="$track='true'">
  3013. <xsl:attribute name="utml:track">true</xsl:attribute>
  3014. </xsl:if>
  3015. <dp:choice aria-labelledby="lbl_exportMethod">
  3016. <dp:section1>
  3017. <utml:input id="selectContentChoice" type="radio" value="selectContent" onClick="javascript:saveMethodValue('selectContent')"/>
  3018. </dp:section1>
  3019. <dp:section2 for="selectContentChoice">
  3020. <out:text>
  3021. <xts:string id="IDS_DEPLOYMENT_METHOD_SELECTED_CONTENT"/>
  3022. </out:text>
  3023. </dp:section2>
  3024. <out:if test="$showTenantInfo">
  3025. <out:variable name="isSysAdmin" select="key('session-param', 'e_isSysAdmin')='true'"/>
  3026. <out:if test="$isSysAdmin">
  3027. <dp:section1>
  3028. <utml:input id="selectTenantsChoice" type="radio" value="selectTenants" onClick="javascript:saveMethodValue('selectTenants')"/>
  3029. </dp:section1>
  3030. <dp:section2 for="selectTenantsChoice">
  3031. <out:text>
  3032. <xts:string id="IDS_DEPLOYMENT_METHOD_SELECTED_TENANTS"/>
  3033. </out:text>
  3034. </dp:section2>
  3035. </out:if>
  3036. </out:if>
  3037. <dp:section1>
  3038. <utml:input id="entireCSChoice" type="radio" value="entireContentStore" onClick="javascript:saveMethodValue('entireContentStore')"/>
  3039. </dp:section1>
  3040. <dp:section2 for="entireCSChoice">
  3041. <out:text>
  3042. <xts:string id="IDS_DEPLOYMENT_METHOD_ENTIRE_CONTENT_STORE"/>
  3043. </out:text>
  3044. </dp:section2>
  3045. </dp:choice>
  3046. </utml:radio-group>
  3047. </xsl:if>
  3048. <out:if test="$deployment-method='export' or (key('deploymentOption', 'entireContentStoreSelect')='true' and not(key('deploymentOption','tenants')/*))">
  3049. <dp:group>
  3050. <dp:groupItem>
  3051. <img width="16" height="16" alt="">
  3052. <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
  3053. </img>
  3054. </dp:groupItem>
  3055. <dp:groupItem>
  3056. <xsl:call-template name="option-checkbox">
  3057. <xsl:with-param name="option-name">personalDataSelect</xsl:with-param>
  3058. <xsl:with-param name="include-value">true</xsl:with-param>
  3059. <xsl:with-param name="do-not-include-value">false</xsl:with-param>
  3060. <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT</xsl:with-param>
  3061. <xsl:with-param name="disable-dependent">false</xsl:with-param>
  3062. <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
  3063. </xsl:call-template>
  3064. </dp:groupItem>
  3065. </dp:group>
  3066. </out:if>
  3067. </lyt:section>
  3068. </lyt:layout>
  3069. </out:otherwise>
  3070. </out:choose>
  3071. </xsl:template>
  3072. <!--
  3073. =================================================================
  3074. deployment variables
  3075. =================================================================
  3076. -->
  3077. <xsl:template match="dpl:variables">
  3078. <out:variable name="deployment-method">
  3079. <out:choose>
  3080. <out:when test="key('env-param','m_class')='importDeployment'">import</out:when>
  3081. <out:otherwise>export</out:otherwise>
  3082. </out:choose>
  3083. </out:variable>
  3084. <out:variable name="do-new">
  3085. <out:choose>
  3086. <out:when test="not(key('env-param','m_obj')) or key('env-param','m_obj')='' ">true</out:when>
  3087. <out:otherwise>false</out:otherwise>
  3088. </out:choose>
  3089. </out:variable>
  3090. <out:variable name="wizard-title">
  3091. <out:choose>
  3092. <out:when test="key('env-param','m_class')='contentTask' and key('env-param','contentTaskType')='createContentUtilizationInfo'">
  3093. <xts:string id="IDS_NEW_CONTENT_UTILIZATION_INFO_OPTIONS_TITLE"/>
  3094. </out:when>
  3095. <out:when test="$deployment-method='import' and $do-new='true'">
  3096. <xts:string id="IDS_NEW_IMPORT_DEPLOYMENT_TITLE"/>
  3097. </out:when>
  3098. <out:when test="$deployment-method='import' and $do-new='false'">
  3099. <xts:string id="IDS_DEPLOYMENT_UPDATE_IMPORT_TITLE"/>
  3100. </out:when>
  3101. <out:when test="$deployment-method='export' and $do-new='true'">
  3102. <xts:string id="IDS_NEW_EXPORT_DEPLOYMENT_TITLE"/>
  3103. </out:when>
  3104. <out:when test="$deployment-method='export' and $do-new='false'">
  3105. <xts:string id="IDS_DEPLOYMENT_UPDATE_EXPORT_TITLE"/>
  3106. </out:when>
  3107. </out:choose>
  3108. </out:variable>
  3109. <out:variable name="normalized-content-locale">
  3110. <!-- TODO: IS IT CORRECT TO GET THIS FROM THE HTTP HEADER... -->
  3111. <out:value-of select="translate( $contentLocale, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz' )"/>
  3112. </out:variable>
  3113. </xsl:template>
  3114. <!--
  3115. ==============================================================
  3116. deployment wizard page title
  3117. ==============================================================
  3118. -->
  3119. <xsl:template match="dpl:title[@dpl:id != '']">
  3120. <dp:title>
  3121. <!-- since this logicsheet is applied many many times in the same block defining a variable out of scope caused duplicate variable issues
  3122. so fix this by putting the variable in the scope of an if -->
  3123. <out:if test="true()">
  3124. <out:variable name="title">
  3125. <xts:string id="{@dpl:id}">
  3126. <xts:param name="wizardName">
  3127. <out:value-of select="$wizard-title"/>
  3128. </xts:param>
  3129. </xts:string>
  3130. </out:variable>
  3131. <out:value-of select="$title"/>
  3132. </out:if>
  3133. </dp:title>
  3134. </xsl:template>
  3135. <!--
  3136. ==============================================================
  3137. deployment wizard page import / export description
  3138. ==============================================================
  3139. -->
  3140. <xsl:template match="dpl:description[@dpl:import-id != '' and @dpl:export-id != '']">
  3141. <out:choose>
  3142. <out:when test="$deployment-method='import'">
  3143. <xts:string id="{@dpl:import-id}"/>
  3144. </out:when>
  3145. <out:when test="$deployment-method='export'">
  3146. <xts:string id="{@dpl:export-id}"/>
  3147. </out:when>
  3148. </out:choose>
  3149. </xsl:template>
  3150. <!--
  3151. =================================================================
  3152. Templates not related to UI
  3153. =================================================================
  3154. -->
  3155. <!--
  3156. ===============================================================================================
  3157. Get the list of packages in the content from Content Manager or /root/env/param[@name = 'm_packagesInContent']
  3158. ===============================================================================================
  3159. -->
  3160. <xsl:template match="dpl:getPackagesInContent">
  3161. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3162. <out:template match="/root">
  3163. <out:variable name="m_sort">
  3164. <out:choose>
  3165. <out:when test="key('env-param','m_sort')">
  3166. <out:value-of select="key('env-param','m_sort')"/>
  3167. </out:when>
  3168. <out:otherwise>
  3169. <out:value-of select="/root/session/param[@name='s_dep']"/>
  3170. </out:otherwise>
  3171. </out:choose>
  3172. </out:variable>
  3173. <out:variable name="t_packagesInArchive">
  3174. <out:choose>
  3175. <out:when test="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']">true</out:when>
  3176. <out:otherwise>false</out:otherwise>
  3177. </out:choose>
  3178. </out:variable>
  3179. <xts:sequence>
  3180. <out:choose>
  3181. <out:when test="not(key('env-param', 'm_packagesInContent') and not(/root/packagesInContent)) and key('env-param', 'm_class') = 'exportDeployment'">
  3182. <xts:append>
  3183. <packagesInContent>
  3184. <out:element name="queryResponse" namespace="http://developer.cognos.com/schemas/xts-cm/1/"/>
  3185. </packagesInContent>
  3186. </xts:append>
  3187. </out:when>
  3188. <out:when test="key('env-param', 'm_packagesInContent')">
  3189. <xts:append>
  3190. <out:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string(key('env-param','m_packagesInContent'))), true())" disable-output-escaping="yes"/>
  3191. </xts:append>
  3192. </out:when>
  3193. </out:choose>
  3194. <out:if test="/root/newEntries">
  3195. <!-- new packages have been added during an export. -->
  3196. <xts:append select="/root/packagesInContent/*[local-name()='queryResponse']">
  3197. <out:copy-of select="/root/newEntries/*"/>
  3198. </xts:append>
  3199. <xts:delete select="/root/*[local-name()='deploymentOptionsUI']"/>
  3200. <xts:delete select="/root/env/param[@name='m_deploymentOptions']"/>
  3201. <xts:delete select="/root/env/param[@name='m_p_deploymentOptions']"/>
  3202. <xts:delete select="/root/env/param[@name='m_packagesInContent']"/>
  3203. </out:if>
  3204. <out:if test="key('env-param', 'm_class') = 'importDeployment' and not(key('env-param', 'm_packagesInContent')) and $t_packagesInArchive='true'">
  3205. <!-- get the packages from CM -->
  3206. <xts:append>
  3207. <packagesInContent>
  3208. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  3209. <send:request provider="cm">
  3210. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  3211. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  3212. <cm:requests>
  3213. <out:for-each select="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo']">
  3214. <out:variable name="obj_name">
  3215. <out:choose>
  3216. <out:when test="contains(cm:defaultName,'&quot;')">
  3217. <out:value-of select="cm:targetLocation"/>/*[@objectClass='package' or @objectClass='folder' or @objectClass='account' or @objectClass='namespaceFolder' or @objectClass='namespace' or @objectClass='catalog' or @objectClass='catalogFolder' or @objectClass='visualization' or @objectClass='userInterfaceProfile'][@name='<out:value-of select="cm:defaultName"/>']</out:when>
  3218. <out:otherwise>
  3219. <out:value-of select="cm:targetLocation"/>/*[@objectClass='package' or @objectClass='folder' or @objectClass='account' or @objectClass='namespaceFolder' or @objectClass='namespace' or @objectClass='catalog' or @objectClass='catalogFolder' or @objectClass='visualization' or @objectClass='userInterfaceProfile'][@name="<out:value-of select="cm:defaultName"/>"]</out:otherwise>
  3220. </out:choose>
  3221. </out:variable>
  3222. <cm:query>
  3223. <cm:search><out:value-of select="$obj_name"/>[permission('read')]</cm:search>
  3224. <cm:properties>
  3225. <cm:property name="searchPath"/>
  3226. <cm:property name="defaultName"/>
  3227. <cm:property name="modificationTime"/>
  3228. <cm:property name="name"/>
  3229. <cm:property name="parent"/>
  3230. </cm:properties>
  3231. </cm:query>
  3232. </out:for-each>
  3233. </cm:requests>
  3234. </cm:query>
  3235. </xts:transform>
  3236. </send:request>
  3237. </xts:transform>
  3238. </packagesInContent>
  3239. </xts:append>
  3240. </out:if>
  3241. </xts:sequence>
  3242. </out:template>
  3243. </xsl:template>
  3244. <!--
  3245. ===============================================================================================
  3246. Get the deployment object from Content Manager or /root/env/param[@name = 'm_deploymentObject']
  3247. into /root/deploymentObject as
  3248. <deploymentObject>
  3249. <queryResponse xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
  3250. <exportDeployment>
  3251. <objectClass>exportDeployment</objectClass>
  3252. <defaultName type="cm:tokenProp">a15</defaultName>
  3253. <defaultDescription type="cm:stringProp" nil="true"/>
  3254. <deploymentOptions>
  3255. <deploymentOption class="cm:deploymentOptionPackageInfo" name="package">
  3256. <packageDeploymentInfo>
  3257. <sourceName>
  3258. <cm:multilingualToken xml:lang="en-US">A</cm:multilingualToken>
  3259. <sourceName>
  3260. <targetName>
  3261. <cm:multilingualToken xml:lang="fr-CA">B</cm:multilingualToken>
  3262. <targetName>
  3263. <enabled>false<enabled>
  3264. </packageDeploymentInfo>
  3265. </deploymentOption>
  3266. <deploymentOption class="cm:deploymentOptionString" name="archive">folder 12345</deploymentOption>
  3267. <deploymentOption class="cm:deploymentOptionBoolean" name="archiveOverwrite">true</deploymentOption>
  3268. <deploymentOption class="cm:deploymentOptionResolution" name="namespaceConflictResolution">keep </deploymentOption>
  3269. ...
  3270. </deploymentOptions>
  3271. </exportDeployment>
  3272. </queryResponse>
  3273. </deploymentObject>
  3274. ===============================================================================================
  3275. -->
  3276. <xsl:template match="dpl:getDeploymentObject">
  3277. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3278. <out:template match="/">
  3279. <xts:sequence>
  3280. <xts:append>
  3281. <out:choose>
  3282. <out:when test="key('env-param', 'm_deploymentObject')">
  3283. <out:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string(key('env-param', 'm_deploymentObject'))), true())" disable-output-escaping="yes"/>
  3284. </out:when>
  3285. <out:otherwise>
  3286. <deploymentObject>
  3287. <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
  3288. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  3289. <send:request provider="cm">
  3290. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  3291. <cm:query>
  3292. <cm:search>
  3293. <out:value-of select="key('env-param','m_obj')"/>
  3294. <out:text>[permission('read')]</out:text>
  3295. </cm:search>
  3296. <cm:properties>
  3297. <cm:property name="defaultName"/>
  3298. <cm:property name="defaultDescription"/>
  3299. <cm:property name="defaultScreenTip"/>
  3300. <cm:property name="options"/>
  3301. <cm:property name="executionDetails"/>
  3302. <cm:property name="name"/>
  3303. <cm:property name="description"/>
  3304. <cm:property name="screenTip"/>
  3305. </cm:properties>
  3306. <cm:options schemaInfo="false" skipObjects="0" maxObjects="0" dataEncoding="base64" skipDataBytes="0" maxDataBytes="0"/>
  3307. </cm:query>
  3308. </xts:transform>
  3309. </send:request>
  3310. </xts:transform>
  3311. </xts:transform>
  3312. </deploymentObject>
  3313. </out:otherwise>
  3314. </out:choose>
  3315. </xts:append>
  3316. </xts:sequence>
  3317. </out:template>
  3318. </xsl:template>
  3319. <!--
  3320. ===============================================================================================
  3321. set m_archive variable in Update deployment wizard
  3322. ===============================================================================================
  3323. -->
  3324. <xsl:template match="dpl:setVariables">
  3325. <xsl:variable name="uiType">
  3326. <xsl:choose>
  3327. <xsl:when test="@dpl:uiType"><xsl:value-of select="@dpl:uiType"/></xsl:when>
  3328. <xsl:otherwise><xsl:value-of select="'wizard'"/></xsl:otherwise>
  3329. </xsl:choose>
  3330. </xsl:variable>
  3331. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3332. <out:template match="/root">
  3333. <out:variable name="archive-name" select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='deploymentOptions']/child::node()[@name='archive']"/>
  3334. <xts:sequence>
  3335. <xts:append select="/root/env">
  3336. <out:if test="not(key('env-param','m_uiType'))">
  3337. <param name="m_uiType">
  3338. <xsl:value-of select="$uiType"/>
  3339. </param>
  3340. </out:if>
  3341. <out:if test="not(key('env-param','m_archive'))">
  3342. <param name="m_archive">
  3343. <out:value-of select="$archive-name"/>
  3344. </param>
  3345. </out:if>
  3346. <out:if test="not(key('env-param','m_deploymentArchiveRadio'))">
  3347. <out:choose>
  3348. <out:when test="not(/root/archiveNames) or /root/archiveNames/cm:listArchivesResponse/*[string() = $archive-name]">
  3349. <param name="m_deploymentArchiveRadio">existing</param>
  3350. </out:when>
  3351. <out:otherwise>
  3352. <param name="m_deploymentArchiveRadio">new</param>
  3353. </out:otherwise>
  3354. </out:choose>
  3355. </out:if>
  3356. <out:if test="not(key('env-param','m_p_defaultName'))">
  3357. <param name="m_p_defaultName">
  3358. <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='defaultName']"/>
  3359. </param>
  3360. </out:if>
  3361. <out:if test="not(key('env-param','m_p_defaultDescription'))">
  3362. <param name="m_p_defaultDescription">
  3363. <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='defaultDescription']"/>
  3364. </param>
  3365. </out:if>
  3366. <out:if test="not(key('env-param','m_p_defaultScreenTip'))">
  3367. <param name="m_p_defaultScreenTip">
  3368. <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='defaultScreenTip']"/>
  3369. </param>
  3370. </out:if>
  3371. <out:if test="not(key('env-param','m_archiveEncryptPword')) and (not(key('env-param','m_firstrun')) or key('env-param','m_firstrun') != 'false')">
  3372. <out:variable name="encryptionPass">
  3373. <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='deploymentOptions']/child::node()[@name='archiveEncryptPassword']"/>
  3374. </out:variable>
  3375. <out:if test="$encryptionPass != ''">
  3376. <param name="m_archiveEncryptPword">
  3377. <out:value-of select="$encryptionPass"/>
  3378. </param>
  3379. </out:if>
  3380. </out:if>
  3381. </xts:append>
  3382. <out:choose>
  3383. <out:when test="not(key('env-param','m_new_class'))">
  3384. <xts:append select="/root/env">
  3385. <param name="m_new_class">
  3386. <out:value-of select="key('env-param','m_class')"/>
  3387. </param>
  3388. </xts:append>
  3389. </out:when>
  3390. <out:otherwise>
  3391. <xts:replace select="/root/env/param[@name='m_new_class']">
  3392. <param name="m_new_class">
  3393. <out:value-of select="key('env-param','m_class')"/>
  3394. </param>
  3395. </xts:replace>
  3396. </out:otherwise>
  3397. </out:choose>
  3398. </xts:sequence>
  3399. </out:template>
  3400. </xsl:template>
  3401. <!--
  3402. ===============================================================================================
  3403. Get the list of archive packages from Content Manager or /root/env/param[@name = 'm_archiveOptions'] into /root/archiveOptions
  3404. ===============================================================================================
  3405. -->
  3406. <xsl:template match="dpl:getArchiveOptions">
  3407. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3408. <xsl:variable name="handleFault" select="@handleFault"/>
  3409. <out:template match="/root">
  3410. <out:choose>
  3411. <out:when test="key('env-param', 'm_archiveOptions')">
  3412. <xts:sequence>
  3413. <xts:append>
  3414. <out:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string(key('env-param','m_archiveOptions'))), true())" disable-output-escaping="yes"/>
  3415. </xts:append>
  3416. <xts:delete select="/root/env/param[@name = 'm_archiveOptions']"/>
  3417. </xts:sequence>
  3418. </out:when>
  3419. <out:otherwise>
  3420. <!-- deployment options from the archive -->
  3421. <!-- get the packages from CM -->
  3422. <out:variable name="archive-name">
  3423. <out:value-of select="key('env-param', 'm_archive')"/>
  3424. </out:variable>
  3425. <out:variable name="archive-password">
  3426. <out:value-of select="key('env-param', 'm_archiveEncryptPword')"/>
  3427. </out:variable>
  3428. <out:if test="(not(/root/archiveNames) ) or (/root/archiveNames and /root/archiveNames/cm:listArchivesResponse/*[string() = $archive-name]) or key('env-param','m_uiType')='wizard'">
  3429. <xts:sequence>
  3430. <xts:append>
  3431. <archiveOptions>
  3432. <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
  3433. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  3434. <send:request provider="cm">
  3435. <xsl:if test="$handleFault = 'true'">
  3436. <xsl:attribute name="faultBlock"><xsl:value-of select="'faultHandler'"/></xsl:attribute>
  3437. </xsl:if>
  3438. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  3439. <xtscm:getDeploymentOptions xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/">
  3440. <cm:inputOptions>
  3441. <out:attribute name="archive">
  3442. <out:value-of select="$archive-name"/>
  3443. </out:attribute>
  3444. <out:attribute name="archiveEncryptPassword">
  3445. <out:value-of select="$archive-password"/>
  3446. </out:attribute>
  3447. <out:attribute name="upgradeArchiveOptions">true</out:attribute>
  3448. </cm:inputOptions>
  3449. </xtscm:getDeploymentOptions>
  3450. </xts:transform>
  3451. </send:request>
  3452. </xts:transform>
  3453. </xts:transform>
  3454. </archiveOptions>
  3455. </xts:append>
  3456. </xts:sequence>
  3457. </out:if>
  3458. </out:otherwise>
  3459. </out:choose>
  3460. </out:template>
  3461. </xsl:template>
  3462. <xsl:template match="dpl:getSourceAncestorDefaultName">
  3463. <xsl:variable name="handleFault" select="@handleFault"/>
  3464. <out:template match="/root">
  3465. <out:if test="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']">
  3466. <xts:sequence>
  3467. <xts:replace select="/root/archiveOptions">
  3468. <xts:transform src="transforms/portal/deploymentOptions/merge-source-default-name.xslt" processor="XSLT">
  3469. <root>
  3470. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  3471. <send:request provider="cm">
  3472. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  3473. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  3474. <cm:requests>
  3475. <out:for-each select="/root/archiveOptions//cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo']">
  3476. <out:variable name="searchPath">
  3477. <out:value-of select="cm:ancestorInfo/cm:searchPath"/>
  3478. </out:variable>
  3479. <out:if test="$searchPath != ''">
  3480. <cm:query>
  3481. <cm:search><out:value-of select="$searchPath"/>
  3482. </cm:search>
  3483. <cm:properties>
  3484. <cm:property name="defaultName"/>
  3485. <cm:property name="searchPath"/>
  3486. </cm:properties>
  3487. </cm:query>
  3488. </out:if>
  3489. </out:for-each>
  3490. </cm:requests>
  3491. </cm:query>
  3492. </xts:transform>
  3493. </send:request>
  3494. </xts:transform>
  3495. <xts:queryNode select="/root/archiveOptions"/>
  3496. </root>
  3497. </xts:transform>
  3498. </xts:replace>
  3499. </xts:sequence>
  3500. </out:if>
  3501. </out:template>
  3502. </xsl:template>
  3503. <xsl:template match="dpl:getTargetAncestorInfo">
  3504. <xsl:variable name="handleFault" select="@handleFault"/>
  3505. <out:template match="/root">
  3506. <out:variable name="t_getTargetAncestorInfo">
  3507. <out:choose>
  3508. <out:when test="/root/*[local-name()='deploymentOptionsUI']/cm:deploymentOption[@name='package']/*/*[local-name() = 'ancestors']/*[local-name() = 'ancestorInfo']/*[local-name() = 'searchPath']">true</out:when>
  3509. <out:otherwise>false</out:otherwise>
  3510. </out:choose>
  3511. </out:variable>
  3512. <out:if test="t_getTargetAncestorInfo='true'">
  3513. <xts:sequence>
  3514. <xts:replace select="/root/*[local-name()='deploymentOptionsUI']">
  3515. <xts:transform src="transforms/portal/deploymentOptions/update-target-ancestors-properties.xslt" processor="XSLT">
  3516. <root>
  3517. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  3518. <send:request provider="cm">
  3519. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  3520. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  3521. <cm:requests>
  3522. <out:for-each select="/root/*[local-name()='deploymentOptionsUI']/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo']">
  3523. <out:variable name="searchPath">
  3524. <out:value-of select="*[local-name() = 'ancestors']/*[local-name() = 'ancestorInfo']/*[local-name() = 'searchPath']"/>
  3525. </out:variable>
  3526. <out:if test="$searchPath != ''">
  3527. <cm:query>
  3528. <cm:search><out:value-of select="$searchPath"/>
  3529. </cm:search>
  3530. <cm:properties>
  3531. <cm:property name="defaultName"/>
  3532. <cm:property name="searchPath"/>
  3533. <cm:property name="storeID"/>
  3534. </cm:properties>
  3535. </cm:query>
  3536. </out:if>
  3537. </out:for-each>
  3538. </cm:requests>
  3539. </cm:query>
  3540. </xts:transform>
  3541. </send:request>
  3542. </xts:transform>
  3543. <xts:queryNode select="/root/*[local-name()='deploymentOptionsUI']"/>
  3544. </root>
  3545. </xts:transform>
  3546. </xts:replace>
  3547. </xts:sequence>
  3548. </out:if>
  3549. </out:template>
  3550. </xsl:template>
  3551. <!--
  3552. ===============================================================================================
  3553. Get the list of archive names into /root/archiveNames
  3554. ===============================================================================================
  3555. -->
  3556. <xsl:template match="dpl:getArchiveNames">
  3557. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3558. <out:template match="/root">
  3559. <out:variable name="m_sort">
  3560. <out:choose>
  3561. <out:when test="/root/session/param[@name='s_dep'] = 'nd'"><out:value-of select="'descending'"/></out:when>
  3562. <out:otherwise><out:value-of select="'ascending'"/></out:otherwise>
  3563. </out:choose>
  3564. </out:variable>
  3565. <!-- get the archive names from CM -->
  3566. <xts:sequence>
  3567. <xts:append>
  3568. <xts:transform src="transforms/portal/deploymentOptions/archives_sort.xslt" processor="XSLT">
  3569. <archiveNames>
  3570. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  3571. <send:request provider="cm" testBlock="testGetArchiveNames">
  3572. <cm:listArchives xmlns:cm="http://developer.cognos.com/schemas/contentManagerService/1"/>
  3573. </send:request>
  3574. </xts:transform>
  3575. <sortOrder><out:value-of select="$m_sort"/></sortOrder>
  3576. </archiveNames>
  3577. </xts:transform>
  3578. </xts:append>
  3579. </xts:sequence>
  3580. </out:template>
  3581. </xsl:template>
  3582. <xsl:template match="dpl:sortDeploymentOptionsUI">
  3583. <out:template match="/root">
  3584. <xts:sequence>
  3585. <xts:append>
  3586. <out:element name="deploymentOptionsUI" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
  3587. <out:for-each select="cm:unsortedDeploymentOptionsUI/*">
  3588. <out:choose>
  3589. <out:when test="@name != 'package'">
  3590. <out:copy>
  3591. <out:copy-of select="@*"/>
  3592. <out:apply-templates/>
  3593. </out:copy>
  3594. </out:when>
  3595. <out:otherwise>
  3596. <out:copy>
  3597. <out:copy-of select="@*"/>
  3598. <out:for-each select="*">
  3599. <out:sort select="cm:defaultSourceName" order="descending"/>
  3600. <out:copy>
  3601. <out:copy-of select="@*"/>
  3602. <out:apply-templates/>
  3603. </out:copy>
  3604. </out:for-each>
  3605. </out:copy>
  3606. </out:otherwise>
  3607. </out:choose>
  3608. </out:for-each>
  3609. </out:element>
  3610. </xts:append>
  3611. </xts:sequence>
  3612. </out:template>
  3613. <out:template match="*">
  3614. <out:copy>
  3615. <out:copy-of select="@*"/>
  3616. <out:apply-templates/>
  3617. </out:copy>
  3618. </out:template>
  3619. </xsl:template>
  3620. <!--
  3621. ===============================================================================================
  3622. Get the Number of Packages.
  3623. ===============================================================================================
  3624. -->
  3625. <xsl:template match="dpl:getNumberOfPackages">
  3626. <out:template match="/root">
  3627. <xts:sequence>
  3628. <xts:append>
  3629. <numberOfPackages>
  3630. <out:value-of select="count(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo'])"/>
  3631. </numberOfPackages>
  3632. </xts:append>
  3633. </xts:sequence>
  3634. </out:template>
  3635. </xsl:template>
  3636. <!--
  3637. ===============================================================================================
  3638. Save user choices in deploymentOptionsUI
  3639. ===============================================================================================
  3640. -->
  3641. <xsl:template match="dpl:addOrRemoveExportPackages">
  3642. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3643. <!--out:variable name="packagesInContent" select="/root/packagesInContent/queryResponse"/-->
  3644. <out:template match="/root">
  3645. <!-- Delete -->
  3646. <out:if test="/root/env/param[@name='m_class'] = 'exportDeployment' and /root/env/param[@name='listop'] = 'delete'">
  3647. <xts:sequence>
  3648. <!-- delete packages marked for deletion -->
  3649. <out:for-each select="/root/env/param[starts-with(@name, 'availablePackagesCheckboxPrefix_')]">
  3650. <out:variable name="guid">
  3651. <out:value-of select="."/>
  3652. </out:variable>
  3653. <out:variable name="storeId">
  3654. <out:value-of select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']/*/*[local-name()='guid' and string(.)=$guid]/../*[local-name() = 'storeID']"/>
  3655. </out:variable>
  3656. <xts:delete>
  3657. <out:attribute name="select">
  3658. <out:text>/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package' or local-name()='folder' or local-name()='account' or local-name()='namespaceFolder' or local-name()='namespace' or local-name()='catalog' or local-name()='catalogFolder' or local-name()='visualization' or local-name()='userInterfaceProfile']/*/*[local-name()='guid' and string(.) = '</out:text>
  3659. <out:value-of select="$guid"/>
  3660. <out:text>']/../.</out:text>
  3661. </out:attribute>
  3662. </xts:delete>
  3663. <xts:delete>
  3664. <out:attribute name="select">
  3665. <out:text>/root/*[local-name()='packagesInContent']/*[local-name()='queryResponse']/*[local-name()='package' or local-name()='folder' or local-name()='account' or local-name()='namespaceFolder' or local-name()='namespace' or local-name()='catalog' or local-name()='catalogFolder' or local-name()='visualization' or local-name()='userInterfaceProfile']/*[local-name()='storeID' and string(.) = '</out:text>
  3666. <out:value-of select="$storeId"/>
  3667. <out:text>']/../.</out:text>
  3668. </out:attribute>
  3669. </xts:delete>
  3670. </out:for-each>
  3671. <xts:delete select="/root/env/param[starts-with( @name, 'availablePackagesCheckboxPrefix_' )]"/>
  3672. <xts:delete select="/root/env/param[@name='m_packagesInContent']"/>
  3673. </xts:sequence>
  3674. </out:if>
  3675. <!-- Add -->
  3676. <out:if test="/root/env/param[@name='m_class'] = 'exportDeployment' and /root/newEntries">
  3677. <xts:sequence>
  3678. <xts:append select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']">
  3679. <out:for-each select="/root/newEntries/*[local-name()='package' or local-name()='folder' or local-name()='account' or local-name()='namespaceFolder' or local-name()='namespace' or local-name()='catalog' or local-name()='catalogFolder' or local-name()='visualization' or local-name()='userInterfaceProfile']">
  3680. <out:variable name="sourceName" select="cm:name/cm:multilingualToken"/>
  3681. <out:variable name="storeID" select="cm:storeID"/>
  3682. <out:variable name="ancestors" select="cm:ancestors"/>
  3683. <out:variable name="targetLocation" select="cm:parent/cm:storeID"/>
  3684. <out:element name="cm:packageDeploymentInfo">
  3685. <out:variable name="deploymentObjectPackage" select="/root/deploymentObject/cm:queryResponse/*/cm:deploymentOptions/cm:deploymentOption[@name='package']/*[cm:storeID=$storeID]"/>
  3686. <out:choose>
  3687. <out:when test="$deploymentObjectPackage">
  3688. <out:call-template name="deployment-object-package">
  3689. <out:with-param name="sourceName" select="$sourceName"/>
  3690. </out:call-template>
  3691. </out:when>
  3692. <out:otherwise>
  3693. <cm:targetName>
  3694. <out:copy-of select="$sourceName"/>
  3695. </cm:targetName>
  3696. <cm:defaultTargetName>
  3697. <out:call-template name="get-default-package-name">
  3698. <out:with-param name="package-name" select="$sourceName"></out:with-param>
  3699. <out:with-param name="defaultName"><out:value-of select="$sourceName/self::node()[1]"/></out:with-param>
  3700. </out:call-template>
  3701. </cm:defaultTargetName>
  3702. <cm:enabled>true</cm:enabled>
  3703. <cm:inPackagesToInclude>true</cm:inPackagesToInclude>
  3704. </out:otherwise>
  3705. </out:choose>
  3706. <cm:objectClass>
  3707. <out:value-of select="*[local-name()='objectClass']"/>
  3708. </cm:objectClass>
  3709. <cm:modificationTime>
  3710. <out:value-of select="cm:modificationTime"/>
  3711. </cm:modificationTime>
  3712. <cm:storeID>
  3713. <out:value-of select="cm:storeID"/>
  3714. </cm:storeID>
  3715. <cm:hidden>
  3716. <out:value-of select="cm:hidden"/>
  3717. </cm:hidden>
  3718. <cm:searchPath>
  3719. <out:value-of select="cm:searchPath"/>
  3720. </cm:searchPath>
  3721. <cm:parent>
  3722. <out:value-of select="cm:parent/*/cm:storeID"/>
  3723. </cm:parent>
  3724. <cm:targetLocation>
  3725. <out:value-of select="cm:parent/*/cm:searchPath"/>
  3726. </cm:targetLocation>
  3727. <cm:ancestors>
  3728. <out:for-each select="cm:ancestors/*">
  3729. <cm:ancestorInfo>
  3730. <out:copy-of select="cm:objectClass"/>
  3731. <out:copy-of select="cm:searchPath"/>
  3732. <out:copy-of select="cm:storeID"/>
  3733. <out:copy-of select="cm:title"/>
  3734. </cm:ancestorInfo>
  3735. </out:for-each>
  3736. </cm:ancestors>
  3737. <cm:ancestorsSource>
  3738. <out:for-each select="cm:ancestors/*">
  3739. <cm:ancestorInfo>
  3740. <out:copy-of select="cm:objectClass"/>
  3741. <out:copy-of select="cm:searchPath"/>
  3742. <out:copy-of select="cm:storeID"/>
  3743. <out:copy-of select="cm:title"/>
  3744. </cm:ancestorInfo>
  3745. </out:for-each>
  3746. </cm:ancestorsSource>
  3747. <out:call-template name="source-dependable-elements">
  3748. <out:with-param name="sourceName" select="$sourceName"/>
  3749. </out:call-template>
  3750. </out:element>
  3751. </out:for-each>
  3752. </xts:append>
  3753. <!--Sort packages -->
  3754. <xts:replace select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']">
  3755. <xts:transform src="transforms/portal/deploymentOptions/packages_sort.xslt" processor="XSLT">
  3756. <xts:queryNode select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']" />
  3757. </xts:transform>
  3758. </xts:replace>
  3759. </xts:sequence>
  3760. </out:if>
  3761. </out:template>
  3762. <out:template name="source-dependable-elements">
  3763. <out:param name="sourceName"/>
  3764. <cm:sourceName>
  3765. <out:copy-of select="$sourceName"/>
  3766. </cm:sourceName>
  3767. <cm:defaultSourceName>
  3768. <out:call-template name="get-default-package-name">
  3769. <out:with-param name="package-name" select="$sourceName"></out:with-param>
  3770. <out:with-param name="defaultName"><out:value-of select="$sourceName/self::node()[1]"/></out:with-param>
  3771. </out:call-template>
  3772. </cm:defaultSourceName>
  3773. <out:variable name="new-guid" select="xtsext:generateGUID()"/>
  3774. <x:guid xmlns:x="x">
  3775. <out:value-of select="$new-guid"/>
  3776. </x:guid>
  3777. </out:template>
  3778. <out:template name="target-dependable-elements">
  3779. <out:param name="targetName"/>
  3780. <out:param name="targetDefaultName"/>
  3781. <out:param name="targetLocation"/>
  3782. <cm:targetName>
  3783. <out:copy-of select="$targetName"/>
  3784. </cm:targetName>
  3785. <cm:defaultTargetName>
  3786. <out:call-template name="get-default-package-name">
  3787. <out:with-param name="package-name" select="$targetName"></out:with-param>
  3788. <out:with-param name="defaultName"><out:value-of select="$targetName/self::node()[1]"/></out:with-param>
  3789. </out:call-template>
  3790. </cm:defaultTargetName>
  3791. <out:choose>
  3792. <out:when test="/root/packagesInContent/cm:queryResponse/cm:queryReply/*[cm:defaultName=$targetDefaultName and cm:parent/*[local-name()='content']/*[local-name()='searchPath']=$targetLocation]">
  3793. <cm:inTargetContent>true</cm:inTargetContent>
  3794. </out:when>
  3795. <out:otherwise>
  3796. <cm:inTargetContent>false</cm:inTargetContent>
  3797. </out:otherwise>
  3798. </out:choose>
  3799. <cm:modificationTime>
  3800. <out:value-of select="/root/packagesInContent/cm:queryResponse/cm:queryReply/*[cm:defaultName=$targetDefaultName and cm:parent/*[local-name()='content']/*[local-name()='searchPath']=$targetLocation]/cm:modificationTime"/>
  3801. </cm:modificationTime>
  3802. </out:template>
  3803. <out:template name="deployment-object-package">
  3804. <out:param name="sourceName"/>
  3805. <!--
  3806. XSLTC returns an empty node-set if $variable/something is selected.
  3807. So we cannot get targetName as $deploymentObjectPackage/cm:targetName/cm:multilingualToken.
  3808. To fix the problem we create a separate variable for target name. Same is for enabled
  3809. -->
  3810. <out:variable name="deploymentObjectPackageTargetName" select="/root/deploymentObject/cm:queryResponse/*/cm:deploymentOptions/cm:deploymentOption[@name='package']/*[cm:sourceName/cm:multilingualToken=$sourceName]/cm:targetName/cm:multilingualToken"/>
  3811. <out:variable name="deploymentObjectPackageEnabled" select="/root/deploymentObject/cm:queryResponse/*/cm:deploymentOptions/cm:deploymentOption[@name='package']/*[cm:sourceName/cm:multilingualToken=$sourceName]/cm:enabled"/>
  3812. <out:choose>
  3813. <out:when test="$deployment-method='import'">
  3814. <out:call-template name="target-dependable-elements">
  3815. <out:with-param name="targetName" select="$deploymentObjectPackageTargetName"/>
  3816. </out:call-template>
  3817. </out:when>
  3818. <out:otherwise>
  3819. <cm:targetName>
  3820. <out:copy-of select="$deploymentObjectPackageTargetName"/>
  3821. </cm:targetName>
  3822. <cm:defaultTargetName>
  3823. <out:call-template name="get-default-package-name">
  3824. <out:with-param name="package-name" select="$deploymentObjectPackageTargetName"></out:with-param>
  3825. <out:with-param name="defaultName"><out:value-of select="$deploymentObjectPackageTargetName/self::node()[1]"/></out:with-param>
  3826. </out:call-template>
  3827. </cm:defaultTargetName>
  3828. </out:otherwise>
  3829. </out:choose>
  3830. <cm:enabled>
  3831. <out:value-of select="$deploymentObjectPackageEnabled"/>
  3832. </cm:enabled>
  3833. <cm:inPackagesToInclude>true</cm:inPackagesToInclude>
  3834. </out:template>
  3835. </xsl:template>
  3836. <!--
  3837. ===============================================================================================
  3838. Serialize the data (web64 encoded)
  3839. ===============================================================================================
  3840. -->
  3841. <xsl:template match="dpl:encodeOptions">
  3842. <out:key name="env-param" match="/root/env/param" use="@name"/>
  3843. <pf:serialize-xml/>
  3844. <out:template match="/">
  3845. <!-- save deployment object first time -->
  3846. <out:if test="not(key('env-param', 'm_deploymentObject')) and /root/deploymentObject">
  3847. <xts:sequence>
  3848. <out:variable name="markup">
  3849. <out:call-template name="serialize-xml">
  3850. <out:with-param name="node-set" select="/root/deploymentObject"/>
  3851. </out:call-template>
  3852. </out:variable>
  3853. <xts:delete select="/root/env/param[@name = 'm_deploymentObject']"/>
  3854. <xts:append select="/root/env">
  3855. <param name="m_deploymentObject">
  3856. <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup), true()))"/>
  3857. </param>
  3858. </xts:append>
  3859. </xts:sequence>
  3860. </out:if>
  3861. <!-- save packages in content first time -->
  3862. <out:if test="(not(key('env-param', 'm_packagesInContent')) and /root/packagesInContent) or /root/newEntries">
  3863. <xts:sequence>
  3864. <out:variable name="markup">
  3865. <out:call-template name="serialize-xml">
  3866. <out:with-param name="node-set" select="/root/packagesInContent"/>
  3867. </out:call-template>
  3868. </out:variable>
  3869. <xts:delete select="/root/env/param[@name = 'm_packagesInContent']"/>
  3870. <xts:append select="/root/env">
  3871. <param name="m_packagesInContent">
  3872. <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup), true()))"/>
  3873. </param>
  3874. </xts:append>
  3875. </xts:sequence>
  3876. </out:if>
  3877. <!-- save current deployment options first time and each time an operation is performed -->
  3878. <out:if test="(not(key('env-param', 'm_deploymentOptionsUI')) or key('env-param','m_packagesOp') != '' or key('env-param','m_wizardOp') != '') and /root/cm:deploymentOptionsUI">
  3879. <xts:sequence>
  3880. <xts:delete select="/root/env/param[@name = 'm_deploymentOptionsUI']"/>
  3881. <xts:append select="/root/env">
  3882. <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
  3883. <param name="m_deploymentOptionsUI">
  3884. <passport><out:value-of select="$passport"/></passport>
  3885. <markup>
  3886. <xts:transform name="XMLEncode">
  3887. <out:copy-of select="/root/cm:deploymentOptionsUI"/>
  3888. </xts:transform>
  3889. </markup>
  3890. </param>
  3891. </xts:transform>
  3892. </xts:append>
  3893. <xts:delete select="/root/env/param[@name = 'new_ancestors']"/>
  3894. </xts:sequence>
  3895. </out:if>
  3896. <!-- encode deploymentOptions -->
  3897. <out:if test="/root/deploymentOptions">
  3898. <xts:sequence>
  3899. <out:variable name="markup">
  3900. <out:call-template name="serialize-xml">
  3901. <out:with-param name="node-set" select="/root/deploymentOptions"/>
  3902. </out:call-template>
  3903. </out:variable>
  3904. <xts:delete select="/root/env/param[@name = 'm_p_deploymentOptions']"/>
  3905. <xts:append select="/root/env">
  3906. <param name="m_p_deploymentOptions">
  3907. <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup), true()))"/>
  3908. </param>
  3909. </xts:append>
  3910. </xts:sequence>
  3911. <!-- Clear m_packagesOp and m_zardOp -->
  3912. <xts:sequence>
  3913. <xts:replace select="/root/env/param[@name = 'm_packagesOp']">
  3914. <param name="m_packagesOp"/>
  3915. </xts:replace>
  3916. <xts:replace select="/root/env/param[@name = 'm_wizardOp']">
  3917. <param name="m_wizardOp"/>
  3918. </xts:replace>
  3919. </xts:sequence>
  3920. </out:if>
  3921. <xts:sequence>
  3922. <!-- Must delete so.id here since it holds the storeID of the last selected element from the "select a location" page.
  3923. This could be (a) coming from the beginning of the wizard (holding the location of the deployment spec), or it could
  3924. be (b) coming from editing the target location for a package in the archive. Either way, if you now edit the target
  3925. location for a different package, the "select a location" page will use so.id to set the initial selected object. This
  3926. is going to be the wrong value in case (a) above, and in case (b) if the package you're changing the location on
  3927. is different from the package you last changed the location on.-->
  3928. <xts:delete select="/root/env/param[@name = 'so.id']"/>
  3929. </xts:sequence>
  3930. </out:template>
  3931. </xsl:template>
  3932. <!--
  3933. ==============================================================
  3934. dpl:getDefaultPackageName
  3935. ==============================================================
  3936. -->
  3937. <xsl:template match="dpl:getDefaultPackageName">
  3938. <out:template name="get-default-package-name">
  3939. <out:param name="package-name"/>
  3940. <out:param name="defaultName"/>
  3941. <out:variable name="defaultPackage" select="$defaultName"/>
  3942. <out:choose>
  3943. <out:when test="$package-name != ''">
  3944. <xts:function name="getLocalizedName">
  3945. <xts:param name="locale"><out:value-of select="$normalized-content-locale"/></xts:param>
  3946. <xts:param name="namelist">
  3947. <xts:transform src="transforms/portal/deploymentOptions/post-process-defaultName.xslt" processor="XSLT">
  3948. <packageName>
  3949. <out:copy-of select="$package-name"/>
  3950. </packageName>
  3951. </xts:transform>
  3952. </xts:param>
  3953. <!-- There is a new paramter introduced by XTS that when set the output will be xml encoded.
  3954. Instead of doing xmlencode in the morphlet we should use that parameter. This change
  3955. will happen when the first GA integration kit becomes available -->
  3956. <xts:param name="default"><out:value-of select="xtsext:xmlencode(string($defaultPackage))"/></xts:param>
  3957. <xts:param name="normalize">true</xts:param>
  3958. </xts:function>
  3959. </out:when>
  3960. <out:when test="$defaultPackage != ''">
  3961. <out:value-of select="xtsext:xmlencode(string($defaultPackage))"/>
  3962. </out:when>
  3963. <out:otherwise>
  3964. <xts:string id="IDS_PROP_ENTRY_NOT_FOUND"/>
  3965. </out:otherwise>
  3966. </out:choose>
  3967. </out:template>
  3968. </xsl:template>
  3969. <!--
  3970. ==============================================================
  3971. Outputs true if the Directory Content Options page is skipped
  3972. ==============================================================
  3973. -->
  3974. <xsl:template match="dpl:isDirectoryContentOptionsPageSkipped">
  3975. <out:choose>
  3976. <out:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='namespaceSelect' and @enabled='false'] and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='dataSourceSelect' and @enabled='false'] and /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='recipientsSelect' and @enabled='false']">
  3977. <xsl:value-of select="'true'"/>
  3978. </out:when>
  3979. <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
  3980. </out:choose>
  3981. </xsl:template>
  3982. <!--
  3983. =================================================================
  3984. * - This next template is required to copy all other elements into the result.
  3985. =================================================================
  3986. -->
  3987. <xsl:template match="*">
  3988. <xsl:copy>
  3989. <xsl:copy-of select="@*"/>
  3990. <xsl:apply-templates/>
  3991. </xsl:copy>
  3992. </xsl:template>
  3993. </xsl:stylesheet>