1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2018
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
- xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:x="x"
- xmlns:out="dummy-uri"
- exclude-result-prefixes="xsl lyt dp df cf cp dpl bus dbg cml utml xts send pf x">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <!--
- Templates:
- dpl:defaultArchiveOptionsValuesForJobStep
- dpl:defaultArchiveOptionsValuesForSchedule
- dpl:archiveDeploymentOptionsRadioButtons
- dpl:importPackagesAvailableUI
- dpl:tenantSelectionScript
- dpl:exportSelectTenantUI
- dpl:selectTenantUI
- dpl:exportPackagesAvailableUI
- dpl:shortOptionsSummary
- dpl:packagesToInclude
- dpl:packagesIncludeReportOutput
- dpl:initContentOptions
- dpl:initMethodOptions
- dpl:initGeneralOptions
- dpl:disableDependentOptionsRadio
- dpl:disableDependentOptions
- dpl:saveLastValueFunctionRadio
- dpl:saveLastValueFunction
- dpl:directoryContentOptions
- dpl:tenantsOptionsSummary
- dpl:entireContentStoreOptionsSummary
- dpl:packagesOptionsSummary
- dpl:directoryContentOptionsSummary
- dpl:generalOptionsSummary
- dpl:fileSelectionPager
- dpl:recordEntriesPager
- dpl:generalOptions
- dpl:deploymentMethodOptions
- dpl:variables
- dpl:getPackagesInContent
- dpl:description
- dpl:getDeploymentObject
- dpl:setVariables
- dpl:getArchiveOptions
- dpl:getSourceAncestorDefaultName
- dpl:getTargetAncestorInfo
- dpl:getArchiveNames
- dpl:sortDeploymentOptionsUI
- dpl:getNumberOfPackages
- dpl:addOrRemoveExportPackages
- dpl:makeDeploymentOptions
- dpl:encodeOptions
- dpl:getDefaultPackageName
- dpl:isDirectoryContentOptionsPageSkipped
- Parameters:
- dpl:param name="item-path"
- dpl:param name="type" import or export
- dpl:param name="new" true or false
- dpl:param name="read-only" true or false
- dpl:param name="target" target morphlet
- dpl:param name="track" true or false
- -->
- <!--
- =========================================================
- dpl:defaultArchiveOptionsValuesForJobStep
- $currentStepOptions must be defined in the calling morphlet
- =========================================================
- -->
- <xsl:template match="dpl:defaultArchiveOptionsValuesForJobStep">
- <out:element name="param">
- <out:attribute name="name"><out:value-of select="'deploymentro_upgrade'"/></out:attribute>
- <out:choose>
- <out:when test="$currentStepOptions/*[local-name()='value']/*[local-name()='item'][child::node() = 'upgradeClasses']/*[local-name()='value'] != ''"><xsl:value-of select="'upgrade'"/></out:when>
- <out:when test="$currentStepOptions != ''"><xsl:value-of select="'keep'"/></out:when>
- <out:when test="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and contains(@*[local-name()='type'],'deploymentOptionClassEnumArray')]">
- <out:choose>
- <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>
- <out:otherwise><xsl:value-of select="'keep'"/></out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='upgradeClasses']!=''"><xsl:value-of select="'upgrade'"/></out:when>
- <out:otherwise><xsl:value-of select="'keep'"/></out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </out:element>
- <out:variable name="preserveStoreIDs_JobStepOption-value">
- <out:value-of select="$currentStepOptions/*[local-name()='value']/*[local-name()='item'][child::node() = 'preserveStoreIDs']/*[local-name()='value']"/>
- </out:variable>
- <out:variable name="preserveStoreIDs_JobOption-value">
- <out:value-of select="/root/jobOptions/*[local-name()='options']/*[local-name()='value']/*[local-name()='item'][child::node() = 'preserveStoreIDs']/*[local-name()='value']"/>
- </out:variable>
- <out:variable name="preserveStoreIDs_Option-value">
- <out:value-of select="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='preserveStoreIDs']"/>
- </out:variable>
- <out:element name="param">
- <out:attribute name="name"><out:value-of select="'deploymentro_preserveStoreIDs'"/></out:attribute>
- <out:choose>
- <out:when test="$preserveStoreIDs_JobStepOption-value != ''"><out:value-of select="$preserveStoreIDs_JobStepOption-value"/></out:when>
- <out:when test="$preserveStoreIDs_JobOption-value !=''"><out:value-of select="$preserveStoreIDs_JobOption-value"/></out:when>
- <out:when test="$preserveStoreIDs_Option-value !=''"><out:value-of select="$preserveStoreIDs_Option-value"/></out:when>
- <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
- </out:choose>
- </out:element>
- </xsl:template>
- <!--
- ======================================================
- dpl:defaultArchiveOptionsValuesForSchedule
- $the-schedule must be defined in the calling morphlet
- =======================================================
- -->
- <xsl:template match="dpl:defaultArchiveOptionsValuesForSchedule">
- <out:element name="param">
- <out:attribute name="name"><out:value-of select="'deploymentro_upgrade'"/></out:attribute>
- <out:choose>
- <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>
- <out:when test="$the-schedule != ''"><out:value-of select="'keep'"/></out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='upgradeClasses']!=''"><out:value-of select="'upgrade'"/></out:when>
- <out:otherwise><out:value-of select="'keep'"/></out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </out:element>
- <out:variable name="archiveOption-value">
- <out:value-of select="/root/*[local-name()='archiveOptions']/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/child::node()[@name='preserveStoreIDs']"/>
- </out:variable>
- <out:variable name="schedule-value">
- <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']"/>
- </out:variable>
- <out:element name="param">
- <out:attribute name="name"><out:value-of select="'deploymentro_preserveStoreIDs'"/></out:attribute>
- <out:choose>
- <out:when test="$schedule-value != ''"><out:value-of select="$schedule-value"/></out:when>
- <out:when test="$the-schedule != ''"><out:value-of select="'false'"/></out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$archiveOption-value !=''"><out:value-of select="$archiveOption-value"/></out:when>
- <out:otherwise><out:value-of select="'false'"/></out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </out:element>
- </xsl:template>
- <!--
- =========================================
- dpl:archiveDeploymentOptionsRadioButtons
- =========================================
- -->
- <xsl:template match="dpl:archiveDeploymentOptionsRadioButtons">
- <out:if test="$deployment-method='import' ">
- <utml:input type="hidden" name="deploymentro_upgradeClasses" value="report" utml:update="false"/>
- <utml:input type="hidden" name="deploymentro_upgradeClasses" value="query" utml:update="false"/>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_deploymentro_upgrade_radioGroup">
- <xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_TITLE"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <dp:list>
- <dp:section>
- <out:value-of select="' '"/><dp:hint wrap="wrap"><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_DESCRIPTION"/></dp:hint>
- </dp:section>
- </dp:list>
- <utml:radio-group name="deploymentro_upgrade" utml:default-value="keep">
- <dp:choice aria-labelledby="lbl_deploymentro_upgrade_radioGroup">
- <dp:section1>
- <utml:input type="radio" value="upgrade" id="ctrl_deploymentro_upgrade_upgrade"/>
- </dp:section1>
- <dp:section2 for="ctrl_deploymentro_upgrade_upgrade">
- <out:text/><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_UPGRADE"/><out:text/>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" value="keep" id="ctrl_deploymentro_upgrade_keep"/>
- </dp:section1>
- <dp:section2 for="ctrl_deploymentro_upgrade_keep">
- <out:text/><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_KEEP"/><out:text/>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_deploymentro_preserveStoreIDs_radioGroup">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_PRESERVE_STOREIDS_RADIO_SET_TITLE"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <dp:list>
- <dp:section>
- <out:value-of select="' '"/><dp:hint wrap="wrap"><xts:string id="IDS_DEPLOYMENT_OPTIONS_PRESERVE_STOREIDS_HINT_TEXT"/></dp:hint>
- </dp:section>
- </dp:list>
- <utml:radio-group name="deploymentro_preserveStoreIDs" utml:default-value="false">
- <dp:choice aria-labelledby="lbl_deploymentro_preserveStoreIDs_radioGroup">
- <dp:section1>
- <utml:input type="radio" value="false" onClick="javascript:hideDynamicDiv('storeIDWarning');javascript:showDynamicDiv('emptyWarning')" id="ctrl_deploymentro_preserveStoreIDs_false"/>
- </dp:section1>
- <dp:section2 for="ctrl_deploymentro_preserveStoreIDs_false">
- <out:text/><xts:string id="IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_PRESERVE_STOREIDS"/><out:text/>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" value="true" onClick="javascript:showDynamicDiv('storeIDWarning');javascript:hideDynamicDiv('emptyWarning')" id="ctrl_deploymentro_preserveStoreIDs_true" aria-describedby="storeIDWarning"/>
- </dp:section1>
- <dp:section2 for="ctrl_deploymentro_preserveStoreIDs_true">
- <out:text/><xts:string id="IDS_DEPLOYMENT_OPTIONS_INCLUDE_PRESERVE_STOREIDS"/><out:text/>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- <cf:dynamicDiv name="storeIDWarning" visible="false" initialize="false">
- <dp:list padding="5">
- <dp:section width="100%">
- <img border="0" height="16" width="16">
- <out:attribute name="src"><out:value-of select="concat($webcontent, '/', $app, '/images/msg_warning_16.gif')"/></out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_STATUS_WARN" encode="html"/></out:attribute>
- </img>
- <dp:text wrap="wrap"><xts:string id="IDS_DEPLOYMENT_OPTIONS_PRESERVE_STOREIDS_WARNING"/></dp:text>
- </dp:section>
- </dp:list>
- </cf:dynamicDiv>
- <!-- serves as a placeholder for the storeID warning -->
- <cf:dynamicDiv name="emptyWarning" visible="true" initialize="false">
- <dp:list padding="5">
- <dp:section width="100%">
- <img border="0" height="26" width="16" alt="">
- <out:attribute name="src"><out:value-of select="concat($webcontent,'/images/space.gif')"/></out:attribute>
- </img>
- </dp:section>
- </dp:list>
- </cf:dynamicDiv>
- </out:if>
- </xsl:template>
- <xsl:template match="dpl:importPackagesAvailableUI">
- <xsl:variable name="track" select="@dpl:track"/>
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/utilities.js"/>
- <script language="JavaScript"><![CDATA[
- function disablePackageOptions()
- {
- var disable = true;
- for(var i=0; document.pform.length > i && disable == true; i++)
- if (document.pform.elements[i].name.substring( 0, 31) == 'availablePackagesCheckboxPrefix' &&
- document.pform.elements[i].checked )
- disable = false;
- for(var i=0; document.pform.length > i; i++)
- {
- if (document.pform.elements[i].name == "m_packageOutputs" ||
- document.pform.elements[i].name == "m_packageDatasetOutputs" ||
- document.pform.elements[i].name == "m_packageHistories" ||
- document.pform.elements[i].name == "m_packageSchedules")
- {
- var optionName = document.pform.elements[i].name.substring( 2);
- var disabledVarName = "m_disabled_" + optionName;
- var mDisabledExist = false;
- for(var j=0; document.pform.length > j && mDisabledExist == false; j++)
- {
- if (document.pform.elements[j].name == disabledVarName )
- mDisabledExist = true;
- }
- if (mDisabledExist == false)
- {
- document.pform.elements[i].disabled = disable;
- if (disable)
- {
- document.pform.elements[i].checked = false;
- }
- else
- {
- var lastValueVarName = "m_last_value_" + optionName;
- var lastValue = false;
- var lastValueFound = false;
- for(var j=0; document.pform.length > j && lastValueFound == false; j++)
- {
- if (document.pform.elements[j].name == lastValueVarName )
- {
- lastValue = document.pform.elements[j].value;
- lastValueFound = true;
- }
- }
- if ( lastValue == "true" )
- document.pform.elements[i].checked = true;
- else
- document.pform.elements[i].checked = false;
- }
- }
- disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
- }
- }
- }
- ]]>
- <xsl:if test="@is-scrolling='true' and @div_id!=''">
- function dplScrollingTableResizeHandler(evt) {
- var isIE = <out:value-of select="$browser = 'ie'"/>;
- var divId = '<xsl:value-of select="@div_id"/>';
- var divBody = divId + 'Body';
- var divHeader = divId + 'Header';
- var nBottomSpace = 400;
- var minSize = 100;
- scrollingTableResizeHandler(evt, isIE, divId, divBody, divHeader, nBottomSpace, minSize);
- }
- scrollingTableAddEvent(window,'load', dplScrollingTableResizeHandler);
- scrollingTableAddEvent(window,'resize', dplScrollingTableResizeHandler);
- dplScrollingTableResizeHandler('');
- </xsl:if>
- </script>
- <dp:list>
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_1"/>
- </dp:hint>
- </dp:section>
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_2"/>
- </dp:hint>
- </dp:section>
- </dp:list>
- <out:if test="/root/numberOfPackages > 0">
- <dp:list width="100%">
- <dp:section>
- <dp:text width="100%"/>
- <dp:text nospace="nospace">
- <xts:string id="IDS_ENTRIES"/>
- 1 - <out:value-of select="/root/numberOfPackages"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </out:if>
- <cp:table name="availablePackages" width="100%" is-scrolling="{@is-scrolling}" id="{@div_id}" align="left" showEmptyMsg="true">
- <xsl:attribute name="iterate">
- <xsl:copy-of select="dpl:param[@name='item-path']"/>
- </xsl:attribute>
- <cp:tableSummary><xts:string id="IDS_DEPLOYMENT_PACKAGES_AVAILABLE_IMPORT"/></cp:tableSummary>
- <cp:tableHeader>
- <xsl:if test="not(dpl:param[@name='read-only']='true')">
- <cp:columnHeader width="16" toggleName="availablePackagesCheckboxPrefix" noLabel="true" utml="utml" other="disablePackageOptions();"/>
- </xsl:if>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="30%">
- <!-- All of this is to align the header (...> Name) with the contents of the table-->
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader width="40%">
- <!-- All of this is to align the header (...> Name) with the contents of the table-->
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_TARGET_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader width="25%" toggleName="packageDisabledPrefix" toggleLabel="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT"/>
- <xsl:if test="not(dpl:param[@name='new']='true') and not(dpl:param[@name='propertyPage']='true')">
- <cp:columnHeader width="150">
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_SPECIFICATION"/>
- </cp:columnHeader>
- </xsl:if>
- <cp:columnHeader>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/>
- </cp:columnHeader>
- <cp:columnHeader>
- <xts:string id="IDS_MODIFIED"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <out:variable name="showTargetLinkAndDisableCheckbox">
- <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')"/>
- </out:variable>
- <cp:columnContent>
- <out:if test="not(cm:showAsDisabled='true')">
- <utml:input type="checkbox" utml:track="true" onclick="javascript:disablePackageOptions();">
- <out:if test="cm:inPackagesToInclude='true'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- <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>
- <utml:prefix>
- <out:text>availablePackagesCheckboxPrefix_</out:text>
- </utml:prefix>
- <utml:value>
- <out:value-of select="x:guid"/>
- </utml:value>
- <utml:name>
- <out:value-of select="x:guid"/>
- </utml:name>
- </utml:input>
- </out:if>
- </cp:columnContent>
- <cp:columnContent>
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="*[local-name()='objectClass']"/>
- <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
- </out:call-template>
- </cp:columnContent>
- <cp:columnContent wrap="wrap" lang="{'{$contentLocale}'}" scope="row">
- <out:variable name="default-source-name">
- <out:value-of select="cm:defaultSourceName"/>
- </out:variable>
- <img height="16" width="20" align="absmiddle">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">*[local-name()='ancestorsSource']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultSourceName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- <out:text> </out:text>
- <out:choose>
- <out:when test="cm:showAsDisabled='true'">
- <dp:inactiveText><out:value-of select="$default-source-name"/></dp:inactiveText>
- </out:when>
- <out:otherwise>
- <out:value-of select="$default-source-name"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent images="images" wrap="wrap">
- <out:variable name="default-target-name">
- <out:value-of select="cm:defaultTargetName"/>
- </out:variable>
- <out:variable name="class">
- <out:value-of select="cm:objectClass"/>
- </out:variable>
- <out:choose>
- <out:when test="cm:showAsDisabled='true'">
- <dp:inactiveText><span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span></dp:inactiveText>
- </out:when>
- <out:otherwise>
- <dp:group>
- <dp:groupItem>
- <img height="16" width="20" align="absmiddle" lang="{'{$contentLocale}'}">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- <out:text> </out:text>
- </dp:groupItem>
- <dp:groupItem>
- <span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span>
- </dp:groupItem>
- <dp:groupItem valign="bottom">
- <img height="1" width="8" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:if test="$showTargetLinkAndDisableCheckbox='true'">
- <dp:link>
- <utml:a utml:op="stack-up" role="button">
- <out:variable name="targetNameMarkup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="cm:targetName"/>
- </out:call-template>
- </out:variable>
- <out:variable name="sourceNameMarkup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="cm:sourceName"/>
- </out:call-template>
- </out:variable>
- <out:attribute name="onClick">
- <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/>
- <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/>
- <xsl:text/>document.pform.target_guid.value='<xsl:text/><out:value-of select="x:guid"/><xsl:text/>';<xsl:text/>
- <xsl:text/>document.pform.target_location.value='<xsl:text/><out:value-of select="xtsext:javascriptencode(string(*[local-name()='targetLocation']))"/><xsl:text/>';<xsl:text/>
- </out:attribute>
- <utml:target>
- <xsl:text>portal/deployment_target_name.xts</xsl:text>
- </utml:target>
- <img border="0">
- <out:attribute name="src"><out:value-of select="$image_root"/>action_edit_10.gif</out:attribute>
- <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>
- </img>
- </utml:a>
- </dp:link>
- </out:if>
- </dp:groupItem></dp:group>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent>
- <out:if test="not(cm:showAsDisabled='true') and $showTargetLinkAndDisableCheckbox='true'">
- <utml:input type="checkbox" utml:track="true">
- <out:if test="./cm:enabled='false'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- <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>
- <utml:prefix>
- <out:text>packageDisabledPrefix_</out:text>
- </utml:prefix>
- <utml:value>
- <out:value-of select="x:guid"/>
- </utml:value>
- <utml:name>
- <out:value-of select="x:guid"/>
- </utml:name>
- </utml:input>
- <out:if test="./cm:enabled='false' and position()=last()"> <!-- only generate script on last entry -->
- <cp:columnHeaderToggleSet toggleName="packageDisabledPrefix"/>
- </out:if>
- </out:if>
- </cp:columnContent>
- <xsl:if test="not(dpl:param[@name='new']='true') and not(dpl:param[@name='propertyPage']='true')">
- <cp:columnContent>
- <out:variable name="inTargetSpecification" select="cm:inTargetSpecification"/>
- <out:choose>
- <out:when test="$inTargetSpecification='true' ">
- <img height="16" width="16">
- <out:attribute name="src">
- <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </xsl:if>
- <cp:columnContent>
- <out:variable name="inTargetContent" select="cm:inTargetContent"/>
- <out:choose>
- <out:when test="$inTargetContent='true' ">
- <img height="16" width="16">
- <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/></out:attribute>
- <out:attribute name="src">
- <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent>
- <out:choose>
- <out:when test="cm:modificationTime != ''">
- <nobr>
- <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string ( $timeZone ), string( $contentLocale ) )"/>
- </nobr>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </xsl:template>
- <xsl:template match="dpl:tenantSelectionScript">
- <out:variable name="isFirstVisit" select="not(key('env-param', 'selectTenantsPageVisited'))" />
- <script language="javascript">
- dojo.require("dojo.store.Memory");
- dojo.require("dojo.data.ItemFileReadStore");
- dojo.require("dojox.html.entities");
- var tenantsResponse = new dojo.data.ItemFileReadStore({
- url: "<out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/tenants/listTenants.xts"
- });
- <out:choose>
- <out:when test="key('env-param', 'selectPublicTenant')='true'">
- var publicTenant = true;
- </out:when>
- <out:otherwise>
- var publicTenant = false;
- </out:otherwise>
- </out:choose>
- var tenantStore = null;
- function handleResponse(tenants, findResult){
- var selectedTenants=[];
- <out:for-each select="/root/env/param[@name='selectedTenants']">
- selectedTenants[selectedTenants.length]='<out:value-of select="xtsext:javascriptencode(.)"/>';
- </out:for-each>
- var cmTenantIds = [];
- for (var i = 0; i < tenants.length; i++){
- var tenant = tenants[i];
- cmTenantIds[cmTenantIds.length] = tenant.id;
- tenant.selected = dojo.indexOf(selectedTenants,tenant.id) >= 0;
- tenant.node = dojo.create("option",{value:xmlDecode(tenant.id), innerHTML:tenant.name});
- }
- for (var i=0; i < selectedTenants.length; i++) {
- var tenantId = selectedTenants[i];
- if (dojo.indexOf(cmTenantIds,tenantId) < 0) {
- var noNameTenant = {
- id: tenantId,
- name: tenantId,
- node: dojo.create("option",{value:xmlDecode(tenantId), innerHTML:xmlDecode(tenantId), selected:'true'}),
- selected: true
- }
- tenants[tenants.length] = noNameTenant;
- }
- }
- tenantStore = new dojo.store.Memory({data:tenants,idProperty:"name"});
- populateSelectControls();
- }
- dojo.ready(function() {
- tenantsResponse.fetch({onComplete: handleResponse});
- var selectPublicTenantChkBox = dojo.byId("id_selectPublicTenant");
- if (selectPublicTenantChkBox) {
- selectPublicTenantChkBox.checked = publicTenant;
- }
- });
- function xmlDecode(value) {
- return dojox.html.entities.decode(String(value));
- }
- function modifySelection(source, isSelected) {
- if( source.options.length > 0 ) {
- <!-- Iterate over the source and find the selected items -->
- for (var i=0; i < source.options.length; i++) {
- if(source.options[i].selected == true) {
- tenantStore.query({id:source.options[i].value}).forEach(function(tenant){tenant.selected = isSelected;});
- }
- }
- populateSelectControls()
- }
- }
- function modifySelectionAll(isSelected) {
- tenantStore.query().forEach(function(tenant){tenant.selected = isSelected});
- populateSelectControls();
- }
- function populateSelectControls() {
- tenantStore.query({selected:false}).forEach(function(tenant){
- dojo.place(tenant.node, dojo.byId("availableTenants"), "last");
- tenant.node.selected = false;
- });
- tenantStore.query({selected:true}).forEach(function(tenant){
- dojo.place(tenant.node, dojo.byId("selectedTenants"), "last");
- tenant.node.selected = false;
- });
- }
- function prepareSelectedTenantsForSubmit() {
- tenantStore.query({selected:true}).forEach(function(tenant){
- var tenantNameField = dojo.create("input", {type:'hidden',name:'selectedTenantNames',value:xmlDecode(tenant.name)});
- dojo.place(tenantNameField, document.pform);
- });
- for (var i=0; i < dojo.byId("selectedTenants").length; i++) {
- var option = dojo.byId("selectedTenants")[i];
- option.selected = true;
- }
- }
- function verifyTenantSelection() {
- var isValid = true;
- if (dojo.byId("selectedTenants").length == 0 && !(dojo.byId("id_selectPublicTenant") && dojo.byId("id_selectPublicTenant").checked)) {
- alert('<xts:string id="IDS_DEPLOYMENT_MISSING_SELECTED_TENANTS" encode="javascript"/>');
- return false;
- }
- prepareSelectedTenantsForSubmit();
- return true;
- }
- </script>
- </xsl:template>
- <xsl:template match="dpl:exportSelectTenantUI">
- <xsl:call-template name="selectTenantUI"/>
- <xsl:call-template name="tenantDeploymentOptions"/>
- </xsl:template>
- <xsl:template name="selectTenantUI" match="dpl:selectTenantUI">
- <lyt:layout style="1" border="yes" title="IDS_DEPLOYMENT_METHOD_TENANTS">
- <lyt:section>
- <table role="presentation">
- <tr>
- <td>
- <dp:list title="IDS_DEPLOYMENT_AVAILABLE_TENANTS" for="availableTenants" valign="top">
- <dp:section>
- <select id="availableTenants" multiple="yes" size="15" style="width:250px" lang="{'{$contentLocale}'}"/>
- </dp:section>
- </dp:list>
- </td>
- <td>
- <dp:columnButtonGroup align="center" width="40">
- <dp:columnButton>
- <a href="javascript:modifySelection(dojo.byId('availableTenants'), true)">
- <img height="18" width="18" border="0" class="flippingImages">
- <out:attribute name="src"><out:value-of select="$image_root" />move_right.gif<xsl:text /></out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_ADD" /></out:attribute>
- </img>
- </a>
- </dp:columnButton>
- <dp:columnButton>
- <a href="javascript:modifySelection(dojo.byId('selectedTenants'), false)">
- <img height="18" width="18" border="0" class="flippingImages">
- <out:attribute name="src"><out:value-of select="$image_root" />move_left.gif<xsl:text /></out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_REMOVE" /></out:attribute>
- </img>
- </a>
- </dp:columnButton>
- <dp:columnButton>
- <a href="javascript:modifySelectionAll(true)">
- <img height="18" width="18" border="0" class="flippingImages">
- <out:attribute name="src"><out:value-of select="$image_root" />move_all_right.gif<xsl:text /></out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_ADD_ALL" /></out:attribute>
- </img>
- </a>
- </dp:columnButton>
- <dp:columnButton>
- <a href="javascript:modifySelectionAll(false)">
- <img height="18" width="18" border="0" class="flippingImages">
- <out:attribute name="src"><out:value-of select="$image_root" />move_all_left.gif<xsl:text /></out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_SELECT_LANG_REMOVE_ALL" /></out:attribute>
- </img>
- </a>
- </dp:columnButton>
- </dp:columnButtonGroup>
- </td>
- <td>
- <dp:list title="IDS_DEPLOYMENT_SELECTED_TENANTS" for="selectedTenants" valign="top">
- <dp:section>
- <select id="selectedTenants" name="selectedTenants" multiple="yes" size="15" style="width:250px" lang="{'{$contentLocale}'}"/>
- </dp:section>
- </dp:list>
- </td>
- </tr>
- </table>
- <utml:input type="hidden" name="selectTenantsPageVisited" value="true"/>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template name="tenantDeploymentOptions">
- <lyt:layout style="1" border="yes" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS">
- <lyt:section>
- <dp:list>
- <out:choose>
- <out:when>
- <xsl:attribute name="test"><xsl:value-of select="dpl:param[@name='propertyPage']='true'"/>() or key('env-param', 'tenants')</xsl:attribute>
- <dp:section>
- <dp:choice noSpace="true">
- <dp:section1>
- <utml:input type="checkbox" id="id_m_personalDataSelect" name="m_personalDataSelect" value="true">
- <xsl:attribute name="onClick">
- <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
- </xsl:attribute>
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect']='true' ">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="id_m_personalDataSelect">
- <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT"/>
- </dp:section2>
- </dp:choice>
- </dp:section>
- </out:when>
- <out:otherwise>
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect']='true' ">
- <utml:input type="hidden" name="m_personalDataSelect" />
- </out:if>
- </out:otherwise>
- </out:choose>
- <dp:section>
- <dp:choice noSpace="true">
- <dp:section1>
- <utml:input type="checkbox" id="id_selectPublicTenant" name="selectPublicTenant" value="true">
- <xsl:attribute name="onClick">
- <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
- </xsl:attribute>
- </utml:input>
- </dp:section1>
- <dp:section2 for="id_selectPublicTenant">
- <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/>
- </dp:section2>
- </dp:choice>
- </dp:section>
- <dp:section>
- <dp:label id="lbl_conflictResolution_radioGroup"><xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/></dp:label>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem>
- <img width="16" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <utml:radio-group name="m_tenantsContentConflictResolution">
- <dp:choice aria-labelledby="lbl_conflictResolution_radioGroup">
- <dp:section1>
- <utml:input type="radio" value="replace" id="lbl_tenantConflict_replace" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='replace'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="lbl_tenantConflict_replace">
- <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES"/></dp:text>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" value="keep" id="lbl_tenantConflict_keep" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
- <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']) or /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='keep'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="lbl_tenantConflict_keep">
- <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES"/></dp:text>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="dpl:exportPackagesAvailableUI">
- <xsl:variable name="track" select="@dpl:track"/>
- <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
- <utml:input type="hidden" name="listop" value="" utml:update="false"/>
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/utilities.js"/>
- <script language="javascript"><![CDATA[
- function disablePackageOptions()
- {
- var disable = false;
- for(var i=0; document.pform.length > i && disable == true; i++)
- if (document.pform.elements[i].name.substring( 0, 31) == 'availablePackagesCheckboxPrefix' &&
- document.pform.elements[i].checked )
- disable = false;
- for(var i=0; document.pform.length > i; i++)
- {
- if (document.pform.elements[i].name == "m_packageOutputs" ||
- document.pform.elements[i].name == "m_packageDatasetOutputs" ||
- document.pform.elements[i].name == "m_packageHistories" ||
- document.pform.elements[i].name == "m_packageSchedules")
- {
- var optionName = document.pform.elements[i].name.substring( 2);
- var disabledVarName = "m_disabled_" + optionName;
- var mDisabledExist = false;
- for(var j=0; document.pform.length > j && mDisabledExist == false; j++)
- {
- if (document.pform.elements[j].name == disabledVarName )
- mDisabledExist = true;
- }
- if (mDisabledExist == false)
- {
- document.pform.elements[i].disabled = disable;
- if (disable)
- {
- document.pform.elements[i].checked = false;
- }
- else
- {
- var lastValueVarName = "m_last_value_" + optionName;
- var lastValue = false;
- var lastValueFound = false;
- for(var j=0; document.pform.length > j && lastValueFound == false; j++)
- {
- if (document.pform.elements[j].name == lastValueVarName )
- {
- lastValue = document.pform.elements[j].value;
- lastValueFound = true;
- }
- }
- if ( lastValue == "true" )
- document.pform.elements[i].checked = true;
- else
- document.pform.elements[i].checked = false;
- }
- }
- disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
- }
- }
- }
- ]]></script>
- <out:variable name="item-path" select="{dpl:param[@name='item-path']}"/>
- <dp:list>
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_1"/>
- </dp:hint>
- </dp:section>
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_2"/>
- </dp:hint>
- </dp:section>
- </dp:list>
- <out:if test="/root/numberOfPackages > 0">
- <dp:list width="100%">
- <dp:section>
- <dp:text width="100%"/>
- <dp:text nospace="nospace">
- <xts:string id="IDS_ENTRIES"/>
- 1 - <out:value-of select="/root/numberOfPackages"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </out:if>
- <cp:table name="availablePackages" width="100%" align="left" showEmptyMsg="true">
- <xsl:attribute name="iterate">
- <xsl:copy-of select="dpl:param[@name='item-path']"/>
- </xsl:attribute>
- <cp:tableSummary><xts:string id="IDS_DEPLOYMENT_SUMMARY_EXPORT_PACKAGES_SUMMARY"/></cp:tableSummary>
- <cp:action>
- <out:if test="$has_write_permission = true()">
- <utml:a utml:op="maintain" utml:formName="pform">
- <utml:href>document.pform.controller_state.value='addEntries|navigate';</utml:href>
- <utml:target>
- <out:value-of select="concat($app, '/', $mname)"/>
- </utml:target>
- <out:text/><xts:string id="IDS_COMMAND_ADD"/><out:text/>
- </utml:a>
- </out:if>
- </cp:action>
- <cp:action>
- <out:if test="$has_write_permission = true()">
- <utml:a utml:formName="pform">
- <utml:href>
- <out:text>if(!isSelected('availablePackagesCheckboxPrefix_')){alert("<xts:string id="IDS_REMOVE_WARNING" encode="javascript"/>");return;}</out:text>
- <out:text>javascript:document.pform.listop.value='delete';</out:text>
- <out:text>if (document.pform.m_wizardOp) document.pform.m_wizardOp.value='update-method';</out:text>
- </utml:href>
- <utml:target>
- <out:value-of select="concat( $app, '/', $mname )"/>
- </utml:target>
- <out:text/>
- <xts:string id="IDS_REMOVE"/>
- <out:text/>
- </utml:a>
- </out:if>
- </cp:action>
- <cp:tableHeader>
- <xsl:if test="not(dpl:param[@name='read-only']='true')">
- <cp:columnHeader width="16" toggleName="availablePackagesCheckboxPrefix" noLabel="true" utml="utml"/>
- </xsl:if>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="30%">
- <!--xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/-->
- <!-- All of this is to align the header (...> Name) with the contents of the table-->
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <out:text/><xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/><out:text/>
- </cp:columnHeader>
- <cp:columnHeader width="70%">
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <out:text/><xts:string id="IDS_DEPLOYMENT_PACKAGES_TARGET_NAME"/><out:text/>
- </cp:columnHeader>
- <cp:columnHeader width="150" toggleName="packageDisabledPrefix" utml="utml" toggleLabel="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT"/>
- <xsl:if test="dpl:param[@name='propertyPage']='true' ">
- <cp:columnHeader width="200">
- <xts:string id="IDS_MODIFIED"/>
- </cp:columnHeader>
- </xsl:if>
- </cp:tableHeader>
- <cp:tableContent>
- <out:variable name="showTargetLinkAndDisableCheckbox">
- <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')"/>
- </out:variable>
- <cp:columnContent>
- <out:if test="not(cm:showAsDisabled='true'or not(x:guid))">
- <utml:input type="checkbox" utml:update="false">
- <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>
- <utml:prefix>
- <out:text>availablePackagesCheckboxPrefix_</out:text>
- </utml:prefix>
- <utml:value>
- <out:value-of select="x:guid"/>
- </utml:value>
- <utml:name>
- <out:value-of select="x:guid"/>
- </utml:name>
- </utml:input>
- </out:if>
- </cp:columnContent>
- <cp:columnContent>
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="*[local-name()='objectClass']"/>
- <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
- </out:call-template>
- </cp:columnContent>
- <cp:columnContent wrap="wrap" lang="{'{$contentLocale}'}">
- <out:variable name="default-source-name">
- <out:value-of select="cm:defaultSourceName"/>
- </out:variable>
- <img height="16" width="20" align="absmiddle">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <!--This is the first path link, to the left of the Name column-->
- <cf:param name="familytree">*[local-name()='ancestorsSource']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultSourceName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- <out:text> </out:text>
- <out:choose>
- <out:when test="cm:showAsDisabled='true'">
- <dp:inactiveText><out:value-of select="$default-source-name"/></dp:inactiveText>
- </out:when>
- <out:otherwise>
- <out:value-of select="$default-source-name"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent images="images">
- <out:variable name="default-target-name">
- <out:value-of select="cm:defaultTargetName"/>
- </out:variable>
- <out:choose>
- <out:when test="cm:showAsDisabled='true'">
- <dp:inactiveText><span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span></dp:inactiveText>
- </out:when>
- <out:otherwise>
- <dp:group>
- <dp:groupItem>
- <img height="16" width="20" align="absmiddle" lang="{'{$contentLocale}'}">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <!--This is the second path link, to the left of the Target name column-->
- <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- <out:text> </out:text>
- </dp:groupItem>
- <dp:groupItem>
- <span lang="{'{$contentLocale}'}"><out:value-of select="$default-target-name"/></span>
- </dp:groupItem>
- <dp:groupItem valign="bottom">
- <img height="1" width="8" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:if test="$showTargetLinkAndDisableCheckbox='true' and x:guid">
- <dp:link>
- <utml:a utml:op="stack-up" role="button">
- <out:variable name="targetNameMarkup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="cm:targetName"/>
- </out:call-template>
- </out:variable>
- <out:variable name="sourceNameMarkup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="cm:sourceName"/>
- </out:call-template>
- </out:variable>
- <out:attribute name="onClick">
- <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/>
- <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/>
- <xsl:text/>document.pform.target_guid.value='<xsl:text/><out:value-of select="x:guid"/><xsl:text/>';<xsl:text/>
- <xsl:text/>document.pform.target_location.value='<xsl:text/><out:value-of select="xtsext:javascriptencode(string(*[local-name()='targetLocation']))"/><xsl:text/>';<xsl:text/>
- </out:attribute>
- <utml:target>
- <xsl:text>portal/deployment_target_name.xts</xsl:text>
- </utml:target>
- <img border="0">
- <out:attribute name="src"><out:value-of select="$image_root"/>action_edit_10.gif</out:attribute>
- <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>
- </img>
- </utml:a>
- </dp:link>
- </out:if>
- </dp:groupItem></dp:group>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent>
- <out:if test="not(cm:showAsDisabled='true') and $showTargetLinkAndDisableCheckbox='true' and x:guid">
- <utml:input type="checkbox" utml:update="false">
- <out:if test="./cm:enabled='false'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- <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>
- <utml:prefix>
- <out:text>packageDisabledPrefix_</out:text>
- </utml:prefix>
- <utml:value>
- <out:value-of select="x:guid"/>
- </utml:value>
- <utml:name>
- <out:value-of select="x:guid"/>
- </utml:name>
- </utml:input>
- <out:if test="./cm:enabled='false' and position()=last()"> <!-- only generate script on last entry -->
- <cp:columnHeaderToggleSet toggleName="packageDisabledPrefix"/>
- </out:if>
- </out:if>
- </cp:columnContent>
- <xsl:if test="dpl:param[@name='propertyPage']='true' ">
- <cp:columnContent>
- <out:choose>
- <out:when test="cm:modificationTime != ''">
- <nobr>
- <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string ( $timeZone ), string( $contentLocale ) )"/>
- </nobr>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </xsl:if>
- </cp:tableContent>
- </cp:table>
- <out:if test="count($item-path/cm:targetName[not(../x:guid)])>0">
- <dp:list>
- <dp:section>
- <dp:hint>
- <img border="0" height="16" width="16">
- <out:attribute name="src"><out:value-of select="concat($webcontent, '/', $app, '/images/msg_warning_16.gif')"/></out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_STATUS_WARN" encode="html"/></out:attribute>
- </img>
-   <xts:string id="IDS_DEPLOYMENT_PACKAGES_DESCR_3"/>
- </dp:hint>
- </dp:section>
- </dp:list>
- </out:if>
- </xsl:template>
- <xsl:template match="dpl:shortOptionsSummary">
- <lyt:layout style="1" border="no">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_DEPLOYMENT_SHORT_OPTIONS_SUMMARY_LABEL"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <cp:table name="deploymentOptionsSummary" width="20%">
- <xsl:attribute name="iterate">
- <xsl:copy-of select="dpl:param[@name='item-path']"/>
- </xsl:attribute>
- <cp:tableHeader>
- <cp:columnHeader>
- <xts:string id="IDS_DEPLOYMENT_SELECTED_OPTIONS_NAME"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent>
- <out:choose>
- <out:when test="@dent = '1'">
- <img height="16" width="16" align="absmiddle" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:when>
- <out:when test="@dent = '2'">
- <img height="16" width="16" align="absmiddle" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <img height="16" width="16" align="absmiddle" alt="">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:when>
- </out:choose>
- <img height="16" width="16" align="absmiddle" alt="">
- <out:attribute name="src">
- <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
- </img>
- <span>
- <out:if test="@lang != ''">
- <out:attribute name="lang"><out:value-of select="@lang"/></out:attribute>
- </out:if>
- <out:copy-of select="./child::node()"/>
- </span>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ===============================================================
- Included Packages for the summary page
- ===============================================================
- -->
- <xsl:template match="dpl:packagesToInclude">
- <xsl:variable name="items" select="dpl:param[@name='item-path']"/>
- <xsl:variable name="targetLocations" select="dpl:param[@name='targetLocations-path']"/>
- <xsl:variable name="type" select="dpl:param[@name='type']"/>
- <xsl:variable name="tableSummaryId" select="dpl:param[@name='summaryId']"/>
- <xsl:variable name="new" select="dpl:param[@name='new']"/>
- <out:choose>
- <out:when test="count({$items})=0">
- <dp:choice>
- <dp:section1/>
- <dp:section2>
- <xts:string id="IDS_DEPLOYMENT_NO_PACKAGES"/>
- </dp:section2>
- </dp:choice>
- </out:when>
- <out:otherwise>
- <out:if test="count({$items}) > 0">
- <dp:list width="100%">
- <dp:section>
- <dp:text width="100%"/>
- <dp:text nospace="nospace">
- 1 - <out:value-of select="count({$items})"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </out:if>
- <cp:table name="includedPackages" width="100%">
- <xsl:attribute name="iterate">
- <xsl:copy-of select="$items"/>
- </xsl:attribute>
- <cp:tableSummary><xts:string id="{$tableSummaryId}"/></cp:tableSummary>
- <cp:tableHeader>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="200">
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader width="100%">
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_TARGET_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader width="150">
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_DISABLE_ON_IMPORT"/>
- </cp:columnHeader>
- <xsl:if test="$type='importDeployment' ">
- <xsl:if test="not($new='true')">
- <cp:columnHeader width="150">
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_SPECIFICATION"/>
- </cp:columnHeader>
- </xsl:if>
- <cp:columnHeader width="150">
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/>
- </cp:columnHeader>
- <cp:columnHeader width="200">
- <xts:string id="IDS_MODIFIED"/>
- </cp:columnHeader>
- </xsl:if>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent>
- <out:choose>
- <out:when test="*[local-name()='objectClass']!=''">
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="*[local-name()='objectClass']"/>
- <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
- </out:call-template>
- </out:when>
- <!-- default to 'package' icon if objectClass is not available -->
- <out:otherwise>
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="'package'"/>
- <out:with-param name="hiddenObject" select="*[local-name()='hidden']"/>
- </out:call-template>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent lang="{'{$contentLocale}'}">
- <out:variable name="default-source-name">
- <out:value-of select="*[local-name()='defaultSourceName']"/>
- </out:variable>
- <img height="16" width="20" align="absmiddle">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">*[local-name()='ancestorsSource']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultSourceName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- <out:text> </out:text>
- <out:value-of select="$default-source-name"/>
- </cp:columnContent>
- <cp:columnContent lang="{'{$contentLocale}'}">
- <out:variable name="default-target-name">
- <out:value-of select="*[local-name()='defaultTargetName']"/>
- </out:variable>
- <xsl:variable name="newImport">
- <xsl:value-of select="boolean($new='true' and $type='importDeployment' and $targetLocations)"/>
- </xsl:variable>
- <xsl:if test="$newImport='true'">
- <out:variable name="cp_includedPackages_targetLocations" >
- <xsl:attribute name="select"><xsl:value-of select="$targetLocations"/></xsl:attribute>
- </out:variable>
- <out:variable name="currentSearchPath"><out:value-of select="*[local-name()='searchPath']"/></out:variable>
- <out:variable name="currentTargetLocation"><out:value-of select="*[local-name()='targetLocation']"/></out:variable>
- <out:variable name="correspondingTargetLocationID">
- <out:value-of select="$cp_includedPackages_targetLocations/*[local-name()='queryResponse']/*[local-name()='queryReply'][@package=$currentSearchPath]/*/*[local-name()='storeID']"/>
- </out:variable>
- <out:variable name="currentTargetLocationInPackagesToInclude">
- <out:value-of select="boolean(../../*[local-name()='deploymentOption']/*[local-name()='packageDeploymentInfo']/*[local-name()='searchPath']=$currentTargetLocation)"/>
- </out:variable>
- <out:if test="$correspondingTargetLocationID = '' and not($currentTargetLocationInPackagesToInclude='true')">
- <img height="16" width="20" align="absmiddle">
- <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>
- <out:attribute name="src"><out:value-of select="$webcontent"/>/portal/images/state_warning_20x16.gif</out:attribute>
- <out:attribute name="class">warningTargetLocation</out:attribute>
- </img>
- </out:if>
- <out:if test="not($correspondingTargetLocationID = '' and not($currentTargetLocationInPackagesToInclude='true'))">
- <img height="16" width="20" align="absmiddle">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- </out:if>
- </xsl:if>
- <xsl:if test="not($newImport='true')">
- <img height="16" width="20" align="absmiddle">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">*[local-name()='defaultTargetName']</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- </xsl:if>
- <out:text> </out:text>
- <out:value-of select="$default-target-name"/>
- </cp:columnContent>
- <cp:columnContent>
- <out:variable name="enabledOnImport" select="cm:enabled"/>
- <out:choose>
- <out:when test="not($enabledOnImport='true') ">
- <img height="16" width="16">
- <out:attribute name="src"><out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <xsl:if test="$type='importDeployment' ">
- <xsl:if test="not($new='true')">
- <cp:columnContent>
- <out:variable name="inTargetSpecification" select="cm:inTargetSpecification"/>
- <out:choose>
- <out:when test="$inTargetSpecification='true' ">
- <img height="16" width="16">
- <out:attribute name="src">
- <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </xsl:if>
- <cp:columnContent>
- <out:variable name="inTargetContent" select="cm:inTargetContent"/>
- <out:choose>
- <out:when test="$inTargetContent='true' ">
- <img height="16" width="16">
- <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_PACKAGES_IN_TARGET_CONTENT"/></out:attribute>
- <out:attribute name="src">
- <out:value-of select="$skin_images"/>checkmark.gif</out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent>
- <out:choose>
- <out:when test="cm:modificationTime != ''">
- <nobr>
- <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string ( $timeZone ), string( $contentLocale ) )"/>
- </nobr>
- </out:when>
- <out:otherwise>
- <img height="16" width="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </xsl:if>
- </cp:tableContent>
- </cp:table>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <!--
- ===============================================================
- Included Tenants for the summary page
- ===============================================================
- -->
- <xsl:template name="tenantsToInclude">
- <xsl:param name="tenant-path"/>
- <cp:table name="includedTenants" width="40%" showEmptyMsg="true">
- <xsl:attribute name="iterate">
- <xsl:copy-of select="$tenant-path"/>[. != '']
- </xsl:attribute>
- <cp:tableHeader>
- <cp:columnHeader>
- <xts:string id="IDS_DEPLOYMENT_TENANTS_ID"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent>
- <out:value-of select="."/>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </xsl:template>
- <!--
- ==========================================
- Checkbox for 'Include report output'
- ==========================================
- -->
- <xsl:template match="dpl:packagesIncludeReportOutput">
- <xsl:variable name="track" select="@dpl:track"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS" border="yes">
- <lyt:section>
- <dp:choice>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">packageOutputs</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_REPORT_OUTPUT</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_packageOutputsConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">packageOutputsConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change">
- <xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_packageOutputs lbl_packageOutputsConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">packageDatasetOutputs</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_DATASET_OUTPUT</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_packageDatasetOutputsConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">packageDatasetOutputsConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change">
- <xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_packageDatasetOutputs lbl_packageDatasetOutputsConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">packageHistories</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_PACKAGE_HISTORIES</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_packageHistoriesConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">packageHistoriesConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_packageHistories lbl_packageHistoriesConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">packageSchedules</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_PACKAGES_INCLUDE_PACKAGE_SCHEDULES</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_packageSchedulesConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">packageSchedulesConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_packageSchedules lbl_packageSchedulesConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- </dp:choice>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ==========================================
- Summary for 'Include report output'
- ==========================================
- -->
- <xsl:template name="packagesOptionsSummary">
- <!-- 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.
- In the summary page look if cm:inpackagesToInclude is set to true or not.
- 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. -->
- <out:if test="count(/root/*[local-name() = 'deploymentOptionsUI']/*[local-name() = 'deploymentOption' and @name='package']/*[name() = 'packageDeploymentInfo' or cm:inPackagesToInclude='true'])>0">
- <lyt:layout style="1" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS_SUMMARY" border="no">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">packageOutputs</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_REPORT_OUTPUT</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_REPORT_OUTPUT</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">packageOutputs</xsl:with-param>
- <xsl:with-param name="option-name">packageOutputsConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">packageDatasetOutputs</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_DATASET_OUTPUT</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_DATASET_OUTPUT</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">packageDatasetOutputs</xsl:with-param>
- <xsl:with-param name="option-name">packageDatasetOutputsConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">packageHistories</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_PACKAGE_HISTORIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_PACKAGE_HISTORIES</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">packageHistories</xsl:with-param>
- <xsl:with-param name="option-name">packageHistoriesConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">packageSchedules</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_PACKAGE_SCHEDULES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_PACKAGE_SCHEDULES</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">packageSchedules</xsl:with-param>
- <xsl:with-param name="option-name">packageSchedulesConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </out:if>
- </xsl:template>
- <!--
- ==========================================
- Functions to manage dependent options
- ==========================================
- -->
- <xsl:template match="dpl:initContentOptions">
- <script language="javascript"><![CDATA[
- function init()
- {
- for(var i=0; document.pform.length > i; i++)
- {
- if (document.pform.elements[i].name == "m_namespaceSelect" ||
- document.pform.elements[i].name == "m_dataSourceSelect" ||
- document.pform.elements[i].name == "m_recipientsSelect")
- {
- disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
- }
- }
- }
- ]]></script>
- </xsl:template>
- <xsl:template match="dpl:initMethodOptions">
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/utilities.js"/>
- <script language="javascript"><![CDATA[
- function init()
- {
- var selectedMethod = getSelectedValueForFormElement('m_exportMethod', document.pform);
- if (selectedMethod == 'selectContent')
- disableUserAccount(true);
- else
- disableUserAccount(false);
- }
- function disableUserAccount( disabled )
- {
- if (!document.pform.m_disabled_personalDataSelect)
- {
- if ( disabled )
- {
- var isSelectContentExport = 'selectContent' == getSelectedValueForFormElement('m_exportMethod', document.pform);
- document.pform.m_personalDataSelect.checked = !(isSelectContentExport);
- }
- else
- {
- if (document.pform.m_last_value_personalDataSelect.value == "true")
- document.pform.m_personalDataSelect.checked = true;
- else
- document.pform.m_personalDataSelect.checked = false;
- }
- document.pform.m_personalDataSelect.disabled = disabled;
- }
- }
- function saveMethodValue( method )
- {
- if (method == 'selectContent')
- {
- document.pform.m_entireContentStoreSelect.value = "false";
- document.pform.m_last_value_entireContentStoreSelect.value = "false";
- disableUserAccount(true);
- }
- else
- {
- if (method == 'selectTenants')
- {
- if (document.pform.m_last_value_personalDataSelect.value == "false")
- document.pform.m_last_value_personalDataSelect.value = true;
- }
- else
- {
- if (document.pform.m_last_value_personalDataSelect.value == "true")
- document.pform.m_last_value_personalDataSelect.value = false;
- }
- document.pform.m_entireContentStoreSelect.value = "true";
- document.pform.m_last_value_entireContentStoreSelect.value = "true";
- disableUserAccount(false);
- }
- }
- ]]></script>
- </xsl:template>
- <xsl:template match="dpl:initGeneralOptions">
- <script language="javascript"><![CDATA[
- function init()
- {
- for(var i=0; document.pform.length > i; i++)
- {
- if (document.pform.elements[i].name == "m_objectPolicies" )
- {
- disableDependentOptionsRadio(document.pform.elements[i], !document.pform.elements[i].checked);
- }
- }
- }
- ]]></script>
- </xsl:template>
- <xsl:template match="dpl:disableDependentOptionsRadio">
- <script language="javascript"><![CDATA[
- function disableDependentOptionsRadio( option, disable )
- {
- var selectOptionName = option.name.substring( 2);
- var baseOptionName = (selectOptionName.length > 6 && selectOptionName.substring(selectOptionName.length - 6) == "Select" )? selectOptionName.substring(0, selectOptionName.length - 6) : selectOptionName;
- var conflictResolutionOptionVarName = "m_" + baseOptionName + "ConflictResolution";
- var dependentOptionVarName = "m_" + baseOptionName;
- if (baseOptionName == "dataSource")
- {
- disableDependentOptions( option, disable );
- dependentOptionVarName = "";
- }
- else
- {
- dependentOptionVarName = "";
- }
- var items = document.pform.elements.length;
- for (var i=0; i<items; i++)
- {
- if ((dependentOptionVarName.length > 0 && document.pform.elements[i].name == dependentOptionVarName) || document.pform.elements[i].name == conflictResolutionOptionVarName )
- {
- var optionLastValueVarName = "m_last_value_" + document.pform.elements[i].name.substring(2);
- var optionDisabledVarName = "m_disabled_" + document.pform.elements[i].name.substring( 2);
- var disabledVarFound = false;
- for (var j=0; j<items && !disabledVarFound; j++)
- {
- if (document.pform.elements[j].name == optionDisabledVarName)
- disabledVarFound = true;
- }
- if (!disabledVarFound)
- {
- document.pform.elements[i].disabled = disable;
- var lastValueVarFound = false;
- var lastValueVarValue = "false";
- for (var j=0; j<items && !lastValueVarFound; j++)
- {
- if (document.pform.elements[j].name == optionLastValueVarName)
- {
- lastValueVarFound = true;
- lastValueVarValue = document.pform.elements[j].value;
- }
- }
- if ( lastValueVarFound && ( lastValueVarValue == "true" || lastValueVarValue == "replace" ))
- {
- if (document.pform.elements[i].value == 'keep' || document.pform.elements[i].value == 'false')
- {
- document.pform.elements[i].checked = false;
- }
- else
- {
- document.pform.elements[i].checked = true;
- }
- }
- else
- {
- if (document.pform.elements[i].value == 'keep' || document.pform.elements[i].value == 'false')
- {
- document.pform.elements[i].checked = true;
- }
- else
- {
- document.pform.elements[i].checked = false;
- }
- }
- }
- }
- }
- }
- ]]></script>
- </xsl:template>
- <xsl:template match="dpl:disableDependentOptions">
- <script language="javascript"><![CDATA[
- function disableDependentOptions( option, disable )
- {
- var selectOptionName = option.name.substring( 2);
- var baseOptionName = (selectOptionName.length > 6 && selectOptionName.substring(selectOptionName.length - 6) == "Select" )? selectOptionName.substring(0, selectOptionName.length - 6) : selectOptionName;
- var conflictResolutionOptionVarName = "m_" + baseOptionName + "ConflictResolution";
- var dependentOptionVarName = "m_" + baseOptionName;
- if (baseOptionName == "dataSource")
- {
- dependentOptionVarName = dependentOptionVarName + "SignonSelect";
- }
- else
- {
- dependentOptionVarName = "";
- }
- var items = document.pform.elements.length;
- for (var i=0; i<items; i++)
- {
- if ((dependentOptionVarName.length > 0 && document.pform.elements[i].name == dependentOptionVarName) || (document.pform.elements[i].name == conflictResolutionOptionVarName && baseOptionName != 'dataSource') )
- {
- var optionLastValueVarName = "m_last_value_" + document.pform.elements[i].name.substring(2);
- var optionDisabledVarName = "m_disabled_" + document.pform.elements[i].name.substring( 2);
- var disabledVarFound = false;
- for (var j=0; j<items && !disabledVarFound; j++)
- {
- if (document.pform.elements[j].name == optionDisabledVarName)
- disabledVarFound = true;
- }
- if (!disabledVarFound)
- {
- document.pform.elements[i].disabled = disable;
- if (disable)
- {
- document.pform.elements[i].checked = false;
- }
- else
- {
- var lastValueVarFound = false;
- var lastValueVarValue = "false";
- for (var j=0; j<items && !lastValueVarFound; j++)
- {
- if (document.pform.elements[j].name == optionLastValueVarName)
- {
- lastValueVarFound = true;
- lastValueVarValue = document.pform.elements[j].value;
- }
- }
- if ( lastValueVarFound && ( lastValueVarValue == "true" || lastValueVarValue == "replace" ))
- {
- document.pform.elements[i].checked = true;
- }
- else
- {
- document.pform.elements[i].checked = false;
- }
- }
- }
- }
- }
- }
- ]]></script>
- </xsl:template>
- <xsl:template match="dpl:saveLastValueFunctionRadio">
- <script language="javascript"><![CDATA[
- function saveLastValueFunctionRadio( option, checked )
- {
- var optionName = option.name.substring( 2);
- var lastValueVarName = "m_last_value_" + optionName;
- var newValue = option.value;
- var items = document.pform.elements.length;
- for (var i=0; i<items; i++)
- {
- if (document.pform.elements[i].name == lastValueVarName)
- {
- document.pform.elements[i].value = newValue;
- return;
- }
- }
- }
- ]]></script>
- </xsl:template>
- <!--
- ==========================================
- Function for dpl:contentOptions
- ==========================================
- -->
- <xsl:template match="dpl:saveLastValueFunction">
- <script language="javascript"><![CDATA[
- function saveLastValueFunction( option, checked )
- {
- var optionName = option.name.substring( 2);
- var lastValueVarName = "m_last_value_" + optionName;
- var newValue = (checked)? "true" : "false";
- var items = document.pform.elements.length;
- for (var i=0; i<items; i++)
- {
- if (document.pform.elements[i].name == lastValueVarName)
- {
- document.pform.elements[i].value = newValue;
- return;
- }
- }
- }
- ]]></script>
- </xsl:template>
- <!--
- ==========================================
- Checkbox for an option
- ==========================================
- -->
- <xsl:template name="option-checkbox">
- <xsl:param name="option-name"/>
- <xsl:param name="include-value"/>
- <xsl:param name="do-not-include-value"/>
- <xsl:param name="include-msg"/>
- <xsl:param name="disable-dependent"/>
- <xsl:param name="dependent-type"/>
- <xsl:param name="track-change"/>
- <xsl:variable name="option-path">
- <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='<xsl:text/>
- <xsl:value-of select="$option-name"/>
- <xsl:text/>']<xsl:text/>
- </xsl:variable>
- <xsl:variable name="variable-name">
- <xsl:text/>m_<xsl:text/>
- <xsl:value-of select="$option-name"/>
- </xsl:variable>
- <dp:section1>
- <utml:input id="id_{$variable-name}" type="checkbox" name="{$variable-name}" aria-labelledby="lbl_{$variable-name}">
- <xsl:if test="$track-change='true'">
- <xsl:attribute name="utml:track">true</xsl:attribute>
- </xsl:if>
- <xsl:variable name="onClick">
- <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
- <xsl:if test="$disable-dependent='true'">
- <xsl:choose>
- <xsl:when test="$dependent-type='radio'">
- <xsl:text/>disableDependentOptionsRadio(this, !this.checked);<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>disableDependentOptions(this, !this.checked);<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:attribute name="onclick"><xsl:value-of select="$onClick"/></xsl:attribute>
- <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' )">
- <out:attribute name="disabled"/>
- </out:if>
- <out:if test="{$option-path}='{$include-value}' ">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2>
- <span id="lbl_{$variable-name}">
- <xts:string id="{$include-msg}"/>
- </span>
- </dp:section2>
- </xsl:template>
- <!--
- ==========================================
- Radio group for an option
- ==========================================
- -->
- <xsl:template name="option-radio">
- <xsl:param name="option-name"/>
- <xsl:param name="include-value"/>
- <xsl:param name="do-not-include-value"/>
- <xsl:param name="include-msg1"/>
- <xsl:param name="include-msg2"/>
- <xsl:param name="disable-dependent"/>
- <xsl:param name="track-change"/>
- <xsl:param name="radio-group-label-id"/>
- <xsl:variable name="option-path">
- <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='<xsl:text/>
- <xsl:value-of select="$option-name"/>
- <xsl:text/>']<xsl:text/>
- </xsl:variable>
- <xsl:variable name="variable-name">
- <xsl:text/>m_<xsl:text/>
- <xsl:value-of select="$option-name"/>
- </xsl:variable>
- <utml:radio-group name="{$variable-name}">
- <xsl:if test="$track-change='true'">
- <xsl:attribute name="utml:track">true</xsl:attribute>
- </xsl:if>
- <xsl:variable name="onClick">
- <xsl:text/>javascript:saveLastValueFunctionRadio(this, this.checked);<xsl:text/>
- <!-- <xsl:if test="$disable-dependent='true'">
- <xsl:text/>disableDependentOptionsRadio(this, !this.checked);<xsl:text/>
- </xsl:if> -->
- </xsl:variable>
- <dp:choice>
- <xsl:attribute name="aria-labelledby">
- <xsl:choose>
- <xsl:when test="$radio-group-label-id != ''"><xsl:value-of select="$radio-group-label-id"/></xsl:when>
- <xsl:otherwise>lbl_<xsl:value-of select="$option-name"/>_groupTitle</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <dp:section1>
- <utml:input type="radio">
- <xsl:attribute name="value"><xsl:value-of select="$include-value"/></xsl:attribute>
- <xsl:attribute name="id"><xsl:value-of select="concat('lbl_',$option-name,'_',$include-value)"/></xsl:attribute>
- <xsl:attribute name="onclick"><xsl:value-of select="$onClick"/></xsl:attribute>
- <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' )">
- <out:attribute name="disabled"/>
- </out:if>
- <out:if test="{$option-path}='{$include-value}' ">
- <out:attribute name="checked">true</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="{concat('lbl_',$option-name,'_',$include-value)}">
- <out:text>
- <xts:string id="{$include-msg2}"/>
- </out:text>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio">
- <xsl:attribute name="value"><xsl:value-of select="$do-not-include-value"/></xsl:attribute>
- <xsl:attribute name="id"><xsl:value-of select="concat('lbl_',$option-name,'_',$do-not-include-value)"/></xsl:attribute>
- <xsl:attribute name="onclick"><xsl:value-of select="$onClick"/></xsl:attribute>
- <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' )">
- <out:attribute name="disabled"/>
- </out:if>
- <out:if test="{$option-path}='{$do-not-include-value}' or not({$option-path})">
- <out:attribute name="checked">true</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="{concat('lbl_',$option-name,'_',$do-not-include-value)}">
- <out:text>
- <xts:string id="{$include-msg1}"/>
- </out:text>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- </xsl:template>
- <!--
- ==========================================
- Checkbox for a boolean option that has dependent options
- ==========================================
- -->
- <xsl:template name="option-checkbox-boolean-with-dependent">
- <xsl:param name="option-name"/>
- <xsl:param name="include-msg"/>
- <xsl:param name="dependent-type"/>
- <xsl:param name="track-change"/>
- <xsl:call-template name="option-checkbox">
- <xsl:with-param name="option-name" select="$option-name"/>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg" select="$include-msg"/>
- <xsl:with-param name="disable-dependent">true</xsl:with-param>
- <xsl:with-param name="dependent-type" select="$dependent-type"/>
- <xsl:with-param name="track-change" select="$track-change"/>
- </xsl:call-template>
- </xsl:template>
- <!--
- ==========================================
- Checkbox for a conflict resolution option
- ==========================================
- -->
- <xsl:template name="option-checkbox-conflict-resolution">
- <xsl:param name="option-name"/>
- <xsl:param name="track-change"/>
- <xsl:call-template name="option-checkbox">
- <xsl:with-param name="option-name" select="$option-name"/>
- <xsl:with-param name="include-value">replace</xsl:with-param>
- <xsl:with-param name="do-not-include-value">keep</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="disable-dependent">false</xsl:with-param>
- <xsl:with-param name="track-change" select="$track-change"/>
- </xsl:call-template>
- </xsl:template>
- <!--
- ==========================================
- Checkbox for a conflict resolution option
- ==========================================
- -->
- <xsl:template name="option-radio-conflict-resolution">
- <xsl:param name="option-name"/>
- <xsl:param name="include-msg1"/>
- <xsl:param name="include-msg2"/>
- <xsl:param name="track-change"/>
- <xsl:param name="radio-group-label-id"/>
- <xsl:call-template name="option-radio">
- <xsl:with-param name="option-name" select="$option-name"/>
- <xsl:with-param name="include-value">keep</xsl:with-param>
- <xsl:with-param name="do-not-include-value">replace</xsl:with-param>
- <xsl:with-param name="include-msg1" select="$include-msg2"/>
- <xsl:with-param name="include-msg2" select="$include-msg1"/>
- <xsl:with-param name="disable-dependent">false</xsl:with-param>
- <xsl:with-param name="track-change" select="$track-change"/>
- <xsl:with-param name="radio-group-label-id" select="$radio-group-label-id"/>
- </xsl:call-template>
- </xsl:template>
- <!--
- ==========================================
- Summary for an option
- ==========================================
- -->
- <xsl:template name="option-summary">
- <xsl:param name="option-name"/>
- <xsl:param name="include-value"/>
- <xsl:param name="do-not-include-value"/>
- <xsl:param name="include-msg"/>
- <xsl:param name="do-not-include-msg"/>
- <xsl:variable name="option-path">
- <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='<xsl:text/>
- <xsl:value-of select="$option-name"/>
- <xsl:text/>']<xsl:text/>
- </xsl:variable>
- <out:variable name="text">
- <out:choose>
- <out:when test="{$option-path}='{$include-value}'">
- <xts:string id="{$include-msg}"/>
- </out:when>
- <out:when test="{$option-path}='{$do-not-include-value}'">
- <xts:string id="{$do-not-include-msg}"/>
- </out:when>
- </out:choose>
- </out:variable>
- <out:value-of select="$text"/>
- </xsl:template>
- <!--
- ==========================================
- Summary for a dependent boolean option
- ==========================================
- -->
- <xsl:template name="dependent-boolean-option-summary">
- <xsl:param name="parent-option-name"/>
- <xsl:param name="option-name"/>
- <xsl:param name="include-msg"/>
- <xsl:param name="do-not-include-msg"/>
- <xsl:param name="space">true</xsl:param>
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='{$parent-option-name}'] != 'false' ">
- <dp:group>
- <xsl:if test="$space='true'">
- <dp:groupItem>
- <img width="16" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- </xsl:if>
- <dp:groupItem>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name" select="$option-name"/>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg" select="$include-msg"/>
- <xsl:with-param name="do-not-include-msg" select="$do-not-include-msg"/>
- </xsl:call-template>
- </dp:groupItem>
- </dp:group>
- </out:if>
- </xsl:template>
- <!--
- ==========================================
- Summary for a dependent conflict resolution option
- ==========================================
- -->
- <xsl:template name="dependent-resolution-option-summary">
- <xsl:param name="parent-option-name"/>
- <xsl:param name="option-name"/>
- <xsl:param name="include-msg"/>
- <xsl:param name="do-not-include-msg"/>
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='{$parent-option-name}'] != 'false' or '{$parent-option-name}' = 'takeOwnership' ">
- <dp:group>
- <dp:groupItem>
- <img width="16" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name" select="$option-name"/>
- <xsl:with-param name="include-value">replace</xsl:with-param>
- <xsl:with-param name="do-not-include-value">keep</xsl:with-param>
- <xsl:with-param name="include-msg" select="$include-msg"/>
- <xsl:with-param name="do-not-include-msg" select="$do-not-include-msg"/>
- </xsl:call-template>
- </dp:groupItem>
- </dp:group>
- </out:if>
- </xsl:template>
- <!--
- ================================================
- Directory content options
- ===============================================
- -->
- <xsl:template match="dpl:directoryContentOptions">
- <xsl:variable name="track" select="@dpl:track"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_DIRECTORY_CONTENT" border="yes">
- <lyt:section>
- <dp:choice>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">namespaceSelect</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_GROUPS_ROLES</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_namespaceConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">namespaceConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_namespaceSelect lbl_namespaceConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">recipientsSelect</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_RECIPIENTS</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_recipientsConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">recipientsConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_recipientsSelect lbl_recipientsConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">dataSourceSelect</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_DATA_SOURCES</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <xsl:call-template name="option-checkbox">
- <xsl:with-param name="option-name">dataSourceSignonSelect</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OPTIONS_INCLUDE_SIGNONS</xsl:with-param>
- <xsl:with-param name="disable-dependent">false</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <br/><br/>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_dataSourceConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">dataSourceConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_dataSourceSelect lbl_dataSourceConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- </dp:choice>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ================================================
- Summary of all deployment options
- ===============================================
- -->
- <xsl:template match="dpl:tenantsOptionsSummary">
- <xsl:call-template name="tenantsOptionsSummary">
- <xsl:with-param name="tenant-path" select="dpl:param[@name='tenant-path']"/>
- <xsl:with-param name="read-only">true</xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <xsl:template match="dpl:entireContentStoreOptionsSummary">
- <xsl:call-template name="entireContentStoreOptionsSummary"/>
- </xsl:template>
- <xsl:template match="dpl:packagesOptionsSummary">
- <xsl:call-template name="packagesOptionsSummary"/>
- </xsl:template>
- <xsl:template match="dpl:directoryContentOptionsSummary">
- <xsl:call-template name="directoryContentOptionsSummary"/>
- </xsl:template>
- <xsl:template match="dpl:generalOptionsSummary">
- <xsl:call-template name="generalOptionsSummary"/>
- </xsl:template>
- <!--
- ================================================
- Summary of Directory content options
- ===============================================
- -->
- <xsl:template name="directoryContentOptionsSummary">
- <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_DIRECTORY_CONTENT" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">namespaceSelect</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_GROUPS_ROLES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_GROUPS_ROLES</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">namespaceSelect</xsl:with-param>
- <xsl:with-param name="option-name">namespaceConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">recipientsSelect</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_RECIPIENTS</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_RECIPIENTS</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">recipientsSelect</xsl:with-param>
- <xsl:with-param name="option-name">recipientsConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">dataSourceSelect</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_DATA_SOURCES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_DATA_SOURCES</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-boolean-option-summary">
- <xsl:with-param name="parent-option-name">dataSourceSelect</xsl:with-param>
- <xsl:with-param name="option-name">dataSourceSignonSelect</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_SIGNONS</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_SIGNONS</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">dataSourceSelect</xsl:with-param>
- <xsl:with-param name="option-name">dataSourceConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ================================================
- Summary of general options
- ===============================================
- -->
- <xsl:template name="generalOptionsSummary">
- <lyt:layout style="1" title="IDS_DEPLOYMENT_GENERAL_OPTIONS" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">objectPolicies</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_ACCESS_PERMISSIONS</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_ACCESS_PERMISSIONS</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">objectPolicies</xsl:with-param>
- <xsl:with-param name="option-name">objectPoliciesConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_GENERAL_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_GENERAL_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">namespaceThirdParty</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_INCLUDE_EXTERNAL_REFERENCES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_INCLUDE_EXTERNAL_REFERENCES</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">takeOwnership</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_OWNERSHIP_USER_SUMMARY</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_OWNERSHIP_SOURCE_SUMMARY</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:call-template name="dependent-resolution-option-summary">
- <xsl:with-param name="parent-option-name">takeOwnership</xsl:with-param>
- <xsl:with-param name="option-name">ownershipConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_GENERAL_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_GENERAL_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:variable name="recLevel">
- <xsl:text/>/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='recordingLevel']<xsl:text/>
- </xsl:variable>
- <out:variable name="text1">
- <out:choose>
- <out:when test="{$recLevel}='minimal'">
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_MINIMAL"/>
- </out:when>
- <out:when test="{$recLevel}='basic'">
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_BASIC"/>
- </out:when>
- <out:when test="{$recLevel}='full'">
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_FULL"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_BASIC"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_DROPDOWN_LABEL"/>
- <out:value-of select="' '"/><out:value-of select="$text1"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ==========================================
- Summary for the tenants options
- ==========================================
- -->
- <xsl:template name="tenantsOptionsSummary">
- <xsl:param name="tenant-path"/>
- <xsl:param name="read-only"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_METHOD_TENANTS" border="yes">
- <lyt:section>
- <xsl:call-template name="tenantsToInclude">
- <xsl:with-param name="tenant-path" select="$tenant-path"/>
- </xsl:call-template>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_PACKAGES_OPTIONS" border="yes">
- <lyt:section>
- <dp:list>
- <xsl:choose>
- <xsl:when test="not($read-only='true')">
- <dp:section>
- <dp:choice noSpace="true">
- <dp:section1>
- <utml:input type="checkbox" id="id_m_personalDataSelect" name="m_personalDataSelect" value="true">
- <xsl:attribute name="onClick">
- <xsl:text/>javascript:saveLastValueFunction(this, this.checked);<xsl:text/>
- </xsl:attribute>
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='personalDataSelect']='true'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="id_m_personalDataSelect">
- <xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT"/>
- </dp:section2>
- </dp:choice>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem>
- <img width="24" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <out:choose>
- <out:when>
- <xsl:attribute name="test">
- <xsl:copy-of select="$tenant-path"/>[. = '']
- </xsl:attribute>
- <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/></dp:text>
- </out:when>
- <out:otherwise>
- <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_PUBLIC_TENANT"/></dp:text>
- </out:otherwise>
- </out:choose>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- <dp:section>
- <dp:label id="lbl_tenantsContentConflictResolution"><xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/></dp:label>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem>
- <img width="16" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <utml:radio-group name="m_tenantsContentConflictResolution">
- <dp:choice aria-labelledby="lbl_tenantsContentConflictResolution">
- <dp:section1>
- <utml:input type="radio" value="replace" id="ctrl_tenantsContentConflictResolution_replace" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='replace'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="ctrl_tenantsContentConflictResolution_replace">
- <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_REPLACE_EXISTING_ENTRIES"/></dp:text>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" value="keep" id="ctrl_tenantsContentConflictResolution_keep" onclick="javascript:saveLastValueFunctionRadio(this, this.checked);">
- <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']) or /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenantsContentConflictResolution']='keep'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="ctrl_tenantsContentConflictResolution_keep">
- <dp:text><xts:string id="IDS_DEPLOYMENT_OPTIONS_KEEP_EXISTING_ENTRIES"/></dp:text>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- </xsl:when>
- <xsl:otherwise>
- <dp:section>
- <dp:text>
- <xsl:call-template name="dependent-boolean-option-summary">
- <xsl:with-param name="parent-option-name">entireContentStoreSelect</xsl:with-param>
- <xsl:with-param name="option-name">personalDataSelect</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_USER_ACCOUNT</xsl:with-param>
- <xsl:with-param name="space">false</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem>
- <out:choose>
- <out:when>
- <xsl:attribute name="test">
- <xsl:copy-of select="$tenant-path"/>[. = '']
- </xsl:attribute>
- <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_INCLUDE_PUBLIC_TENANT"/></dp:text>
- </out:when>
- <out:otherwise>
- <dp:text><xts:string id="IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_PUBLIC_TENANT"/></dp:text>
- </out:otherwise>
- </out:choose>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- <dp:section>
- <dp:label><xts:string id="IDS_DEPLOYMENT_OPTIONS_CONFLICT_RESOLUTION"/></dp:label>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem>
- <img width="16" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">tenantsContentConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_SUMMARY_DO_NOT_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_SUMMARY_REPLACE_EXISTING_ENTRIES</xsl:with-param>
- <xsl:with-param name="include-value">keep</xsl:with-param>
- <xsl:with-param name="do-not-include-value">replace</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- </xsl:otherwise>
- </xsl:choose>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ==========================================
- Summary for the entire Content Store options
- ==========================================
- -->
- <xsl:template name="entireContentStoreOptionsSummary">
- <lyt:layout style="1" title="IDS_DEPLOYMENT_METHOD_CONTENT_STORE" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text>
- <xsl:call-template name="option-summary">
- <xsl:with-param name="option-name">entireContentStoreSelect</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_ENTIRE_CONTENT_STORE</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_METHOD_ENTIRE_CONTENT_STORE</xsl:with-param>
- </xsl:call-template>
- </dp:text>
- </dp:section>
- <dp:section>
- <xsl:call-template name="dependent-boolean-option-summary">
- <xsl:with-param name="parent-option-name">entireContentStoreSelect</xsl:with-param>
- <xsl:with-param name="option-name">personalDataSelect</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT</xsl:with-param>
- <xsl:with-param name="do-not-include-msg">IDS_DEPLOYMENT_METHOD_DO_NOT_INCLUDE_USER_ACCOUNT</xsl:with-param>
- </xsl:call-template>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ================================================
- pager in the first page of Wizard.
- ===============================================
- -->
- <xsl:template match="dpl:fileSelectionPager">
- <utml:radio-group name="pageitem">
- <out:variable name="archiveSelected">
- <out:choose>
- <out:when test="key('env-param', 'm_archive')">
- <out:value-of select="key('env-param', 'm_archive')"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="''"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <utml:default-value>
- <out:value-of select="key('env-param', 'm_archive')"/>
- </utml:default-value>
- <cf:main-pager-section form="pform" name="fileSelection">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">/root/archiveNames/cm:listArchivesResponse/*</cf:param>
- <cf:param name="lines-per-page">
- <out:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader session-name="s_dep">
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="100%" sort="n">
- <cp:sortHref>javascript:doSort('n')</cp:sortHref>
- <xts:string id="IDS_DEPLOYMENT_DEPLOYMENT_FILE"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent>
- <out:choose>
- <out:when test="$deployment-method='import' and $archiveSelected = '' and position() = 1">
- <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">
- <out:attribute name="aria-label">
- <xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="."/></xts:param></xts:string>
- </out:attribute>
- <utml:value>
- <out:value-of select="."/>
- </utml:value>
- </utml:input>
- </out:when>
- <out:otherwise>
- <utml:input type="radio" name="pageitem" onclick="javascript:if (document.pform.m_selectArchivePageVisited != null) document.pform.m_selectArchivePageVisited.value=false;formControl(this);setArchiveValue(this)">
- <out:attribute name="aria-label">
- <xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="."/></xts:param></xts:string>
- </out:attribute>
- <utml:value>
- <out:value-of select="."/>
- </utml:value>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent>
- <img height="16" width="16">
- <out:attribute name="src"><out:value-of select="$image_root"/>icon_deployment.gif</out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_DEPLOYMENT_FOLDER"/></out:attribute>
- </img>
- </cp:columnContent>
- <cp:columnContent>
- <out:value-of select="."/>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </utml:radio-group>
- </xsl:template>
- <!--
- ================================================
- Entries pager in record page.
- ===============================================
- -->
- <xsl:template match="dpl:recordEntriesPager">
- <cf:main-pager-section name="Entries" form="pform" virtualPage="true">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='deploymentObject']/*</cf:param>
- <cf:param name="lines-per-page">
- <out:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader session-name="s_dep">
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="200" sort="n">
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <out:text/><cp:sortHref>javascript:doSort('n')</cp:sortHref><xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/><out:text/>
- </cp:columnHeader>
- <cp:columnHeader width="200">
- <xts:string id="IDS_TYPE"/>
- </cp:columnHeader>
- <cp:columnHeader width="100%">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <out:choose>
- <out:when test="cm:defaultName != ''">
- <cp:columnContent>
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="cm:deployedObjectClass"/>
- <out:with-param name="showAction" select="false()"/>
- </out:call-template>
- </cp:columnContent>
- <cp:columnContent lang="{'{$contentLocale}'}">
- <img height="16" width="20" align="absmiddle">
- <out:attribute name="alt"><out:value-of select="string( cm:ancestorDefaultNames )"/></out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>path.gif</out:attribute>
- </img>
- <out:text> </out:text>
- <out:value-of select="cm:defaultName"/>
- </cp:columnContent>
- <cp:columnContent>
- <out:choose>
- <out:when test="cm:objectType != ''">
- <out:value-of select="cm:objectType"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="cm:deployedObjectClass"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <cp:columnContent>
- <out:variable name="cmStatus">
- <out:value-of select="cm:deployedObjectStatus"/>
- </out:variable>
- <out:choose>
- <out:when test="$cmStatus='added'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_ADDED"/>
- </out:when>
- <out:when test="$cmStatus='replaced'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_REPLACED"/>
- </out:when>
- <out:when test="$cmStatus='updated'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_UPDATED"/>
- </out:when>
- <out:when test="$cmStatus='kept'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_KEPT"/>
- </out:when>
- <out:when test="$cmStatus='failed'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_FAILED"/>
- </out:when>
- <out:when test="$cmStatus='exported'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES_ACTION_EXPORTED"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="$cmStatus"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </out:when>
- </out:choose>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:template>
- <!--
- ================================================
- generalOptions
- ===============================================
- -->
- <xsl:template match="dpl:generalOptions">
- <xsl:variable name="track" select="@dpl:track"/>
- <out:variable name="recordingLevel" select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='recordingLevel']"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_GENERAL_ACCESS_PERMISSIONS" border="yes">
- <lyt:section>
- <dp:choice>
- <xsl:call-template name="option-checkbox-boolean-with-dependent">
- <xsl:with-param name="option-name">objectPolicies</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_GENERAL_INCLUDE_ACCESS_PERMISSIONS</xsl:with-param>
- <xsl:with-param name="dependent-type">radio</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- <dp:section3>
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">objectPoliciesConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_GENERAL_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_GENERAL_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_m_objectPolicies</xsl:with-param>
- </xsl:call-template>
- </dp:section3>
- </dp:choice>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_EXTERNAL_NAMESPACES_TITLE" border="yes" id="lbl_namespaceThirdParty_title">
- <lyt:section>
- <xsl:call-template name="option-radio">
- <xsl:with-param name="option-name">namespaceThirdParty</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_THIRD_PARTY</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_OPTIONS_INCLUDE_THIRD_PARTY</xsl:with-param>
- <xsl:with-param name="disable-dependent">false</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_namespaceThirdParty_title</xsl:with-param>
- </xsl:call-template>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1" id="lbl_deployment_ownership_radio_sectionTitle" title="IDS_DEPLOYMENT_OWNERSHIP_RADIO_TITLE" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_deployment_ownership_radio_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RADIO_SET_OWNER_TITLE"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <utml:radio-group name="m_deployment_ownership">
- <xsl:if test="$track='true'">
- <xsl:attribute name="utml:track">true</xsl:attribute>
- </xsl:if>
- <dp:choice aria-labelledby="lbl_deployment_ownership_radio_sectionTitle lbl_deployment_ownership_radio_groupTitle">
- <dp:section1>
- <utml:input type="radio" value="source" id="lbl_deployment_ownership_source">
- <out:if test="not(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership']) or /root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership'] != 'true'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- <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'])">
- <out:attribute name="disabled"/>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="lbl_deployment_ownership_source">
- <out:text>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_SOURCE"/>
- </out:text>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" value="user" id="lbl_deployment_ownership_user">
- <out:if test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='takeOwnership']='true'">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- <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'])">
- <out:attribute name="disabled"/>
- </out:if>
- </utml:input>
- </dp:section1>
- <dp:section2 for="lbl_deployment_ownership_user">
- <out:text>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_USER"/>
- </out:text>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- <dp:list>
- <dp:section>
- <dp:label id="lbl_ownershipConflictResolution_groupTitle">
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RADIO_APPLY_TO_TITLE"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <dp:choice aria-labelledby="lbl_ownershipConflictResolution_groupTitle">
- <xsl:call-template name="option-radio-conflict-resolution">
- <xsl:with-param name="option-name">ownershipConflictResolution</xsl:with-param>
- <xsl:with-param name="include-msg1">IDS_DEPLOYMENT_GENERAL_OWNERSHIP_NEW_ONLY_ENTRIES_RADIO</xsl:with-param>
- <xsl:with-param name="include-msg2">IDS_DEPLOYMENT_GENERAL_OWNERSHIP_NEW_AND_EXISTING_ENTRIES_RADIO</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- <xsl:with-param name="radio-group-label-id">lbl_deployment_ownership_radio_sectionTitle lbl_ownershipConflictResolution_groupTitle</xsl:with-param>
- </xsl:call-template>
- </dp:choice>
- </lyt:section>
- </lyt:layout>
- <!-- Show the level of detail to record in the history deployment records
- (as of 8.2; WO 2118)
- -->
- <lyt:layout style="1" title="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_TITLE" border="yes">
- <lyt:section>
- <dp:list title="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_DROPDOWN_LABEL" for="lbl_recordingLevel">
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_DESCRIPTION"/>
- </dp:hint>
- </dp:section>
- <dp:section>
- <select name="m_recordingLevel" id="lbl_recordingLevel" size="1">
- <option value="minimal">
- <out:if test="$recordingLevel = 'minimal'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_MINIMAL"/>
- </option>
- <option value="basic">
- <out:if test="$recordingLevel = 'basic'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_BASIC"/>
- </option>
- <option value="full">
- <out:if test="$recordingLevel = 'full'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_DEPLOYMENT_OWNERSHIP_RECORDING_LEVEL_FULL"/>
- </option>
- </select>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- ================================================
- deploymentMethodOptions
- ===============================================
- -->
- <xsl:template match="dpl:deploymentMethodOptions">
- <xsl:variable name="track" select="@dpl:track"/>
- <xsl:variable name="with-radio">
- <xsl:choose>
- <xsl:when test="dpl:param[@name='with-radio']='true'">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <out:choose>
- <out:when test="$deployment-method='import' and (key('deploymentOption', 'entireContentStoreSelect')='true' and key('deploymentOption','tenants')/*)">
- <xsl:call-template name="tenantsOptionsSummary">
- <xsl:with-param name="tenant-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenants']/*</xsl:with-param>
- <xsl:with-param name="read-only">false</xsl:with-param>
- </xsl:call-template>
- </out:when>
- <out:otherwise>
- <lyt:layout style="1">
- <xsl:choose>
- <xsl:when test="$with-radio='false'">
- <xsl:attribute name="title">IDS_DEPLOYMENT_METHOD_CONTENT_STORE</xsl:attribute>
- <xsl:attribute name="border">yes</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="border">no</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <lyt:section>
- <xsl:if test="$with-radio='true'">
- <dp:list>
- <dp:section>
- <dp:label id="lbl_exportMethod">
- <xts:string id="IDS_DEPLOYMENT_METHOD_RADIO_TITLE"/>
- </dp:label>
- </dp:section>
- </dp:list>
- <utml:radio-group name="m_exportMethod">
- <xsl:if test="$track='true'">
- <xsl:attribute name="utml:track">true</xsl:attribute>
- </xsl:if>
- <dp:choice aria-labelledby="lbl_exportMethod">
- <dp:section1>
- <utml:input id="selectContentChoice" type="radio" value="selectContent" onClick="javascript:saveMethodValue('selectContent')"/>
- </dp:section1>
- <dp:section2 for="selectContentChoice">
- <out:text>
- <xts:string id="IDS_DEPLOYMENT_METHOD_SELECTED_CONTENT"/>
- </out:text>
- </dp:section2>
- <out:if test="$showTenantInfo">
- <out:variable name="isSysAdmin" select="key('session-param', 'e_isSysAdmin')='true'"/>
- <out:if test="$isSysAdmin">
- <dp:section1>
- <utml:input id="selectTenantsChoice" type="radio" value="selectTenants" onClick="javascript:saveMethodValue('selectTenants')"/>
- </dp:section1>
- <dp:section2 for="selectTenantsChoice">
- <out:text>
- <xts:string id="IDS_DEPLOYMENT_METHOD_SELECTED_TENANTS"/>
- </out:text>
- </dp:section2>
- </out:if>
- </out:if>
- <dp:section1>
- <utml:input id="entireCSChoice" type="radio" value="entireContentStore" onClick="javascript:saveMethodValue('entireContentStore')"/>
- </dp:section1>
- <dp:section2 for="entireCSChoice">
- <out:text>
- <xts:string id="IDS_DEPLOYMENT_METHOD_ENTIRE_CONTENT_STORE"/>
- </out:text>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- </xsl:if>
- <out:if test="$deployment-method='export' or (key('deploymentOption', 'entireContentStoreSelect')='true' and not(key('deploymentOption','tenants')/*))">
- <dp:group>
- <dp:groupItem>
- <img width="16" height="16" alt="">
- <out:attribute name="src"><out:value-of select="$webcontent"/><xsl:value-of select=" '/images/space.gif' "/></out:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <xsl:call-template name="option-checkbox">
- <xsl:with-param name="option-name">personalDataSelect</xsl:with-param>
- <xsl:with-param name="include-value">true</xsl:with-param>
- <xsl:with-param name="do-not-include-value">false</xsl:with-param>
- <xsl:with-param name="include-msg">IDS_DEPLOYMENT_METHOD_INCLUDE_USER_ACCOUNT</xsl:with-param>
- <xsl:with-param name="disable-dependent">false</xsl:with-param>
- <xsl:with-param name="track-change"><xsl:value-of select="$track"/></xsl:with-param>
- </xsl:call-template>
- </dp:groupItem>
- </dp:group>
- </out:if>
- </lyt:section>
- </lyt:layout>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <!--
- =================================================================
- deployment variables
- =================================================================
- -->
- <xsl:template match="dpl:variables">
- <out:variable name="deployment-method">
- <out:choose>
- <out:when test="key('env-param','m_class')='importDeployment'">import</out:when>
- <out:otherwise>export</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="do-new">
- <out:choose>
- <out:when test="not(key('env-param','m_obj')) or key('env-param','m_obj')='' ">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="wizard-title">
- <out:choose>
- <out:when test="key('env-param','m_class')='contentTask' and key('env-param','contentTaskType')='createContentUtilizationInfo'">
- <xts:string id="IDS_NEW_CONTENT_UTILIZATION_INFO_OPTIONS_TITLE"/>
- </out:when>
- <out:when test="$deployment-method='import' and $do-new='true'">
- <xts:string id="IDS_NEW_IMPORT_DEPLOYMENT_TITLE"/>
- </out:when>
- <out:when test="$deployment-method='import' and $do-new='false'">
- <xts:string id="IDS_DEPLOYMENT_UPDATE_IMPORT_TITLE"/>
- </out:when>
- <out:when test="$deployment-method='export' and $do-new='true'">
- <xts:string id="IDS_NEW_EXPORT_DEPLOYMENT_TITLE"/>
- </out:when>
- <out:when test="$deployment-method='export' and $do-new='false'">
- <xts:string id="IDS_DEPLOYMENT_UPDATE_EXPORT_TITLE"/>
- </out:when>
- </out:choose>
- </out:variable>
- <out:variable name="normalized-content-locale">
- <!-- TODO: IS IT CORRECT TO GET THIS FROM THE HTTP HEADER... -->
- <out:value-of select="translate( $contentLocale, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz' )"/>
- </out:variable>
- </xsl:template>
- <!--
- ==============================================================
- deployment wizard page title
- ==============================================================
- -->
- <xsl:template match="dpl:title[@dpl:id != '']">
- <dp:title>
- <!-- since this logicsheet is applied many many times in the same block defining a variable out of scope caused duplicate variable issues
- so fix this by putting the variable in the scope of an if -->
- <out:if test="true()">
- <out:variable name="title">
- <xts:string id="{@dpl:id}">
- <xts:param name="wizardName">
- <out:value-of select="$wizard-title"/>
- </xts:param>
- </xts:string>
- </out:variable>
- <out:value-of select="$title"/>
- </out:if>
- </dp:title>
- </xsl:template>
- <!--
- ==============================================================
- deployment wizard page import / export description
- ==============================================================
- -->
- <xsl:template match="dpl:description[@dpl:import-id != '' and @dpl:export-id != '']">
- <out:choose>
- <out:when test="$deployment-method='import'">
- <xts:string id="{@dpl:import-id}"/>
- </out:when>
- <out:when test="$deployment-method='export'">
- <xts:string id="{@dpl:export-id}"/>
- </out:when>
- </out:choose>
- </xsl:template>
- <!--
- =================================================================
- Templates not related to UI
- =================================================================
- -->
- <!--
- ===============================================================================================
- Get the list of packages in the content from Content Manager or /root/env/param[@name = 'm_packagesInContent']
- ===============================================================================================
- -->
- <xsl:template match="dpl:getPackagesInContent">
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <out:template match="/root">
- <out:variable name="m_sort">
- <out:choose>
- <out:when test="key('env-param','m_sort')">
- <out:value-of select="key('env-param','m_sort')"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="/root/session/param[@name='s_dep']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="t_packagesInArchive">
- <out:choose>
- <out:when test="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <xts:sequence>
- <out:choose>
- <out:when test="not(key('env-param', 'm_packagesInContent') and not(/root/packagesInContent)) and key('env-param', 'm_class') = 'exportDeployment'">
- <xts:append>
- <packagesInContent>
- <out:element name="queryResponse" namespace="http://developer.cognos.com/schemas/xts-cm/1/"/>
- </packagesInContent>
- </xts:append>
- </out:when>
- <out:when test="key('env-param', 'm_packagesInContent')">
- <xts:append>
- <out:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string(key('env-param','m_packagesInContent'))), true())" disable-output-escaping="yes"/>
- </xts:append>
- </out:when>
- </out:choose>
- <out:if test="/root/newEntries">
- <!-- new packages have been added during an export. -->
- <xts:append select="/root/packagesInContent/*[local-name()='queryResponse']">
- <out:copy-of select="/root/newEntries/*"/>
- </xts:append>
- <xts:delete select="/root/*[local-name()='deploymentOptionsUI']"/>
- <xts:delete select="/root/env/param[@name='m_deploymentOptions']"/>
- <xts:delete select="/root/env/param[@name='m_p_deploymentOptions']"/>
- <xts:delete select="/root/env/param[@name='m_packagesInContent']"/>
- </out:if>
- <out:if test="key('env-param', 'm_class') = 'importDeployment' and not(key('env-param', 'm_packagesInContent')) and $t_packagesInArchive='true'">
- <!-- get the packages from CM -->
- <xts:append>
- <packagesInContent>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <out:for-each select="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo']">
- <out:variable name="obj_name">
- <out:choose>
- <out:when test="contains(cm:defaultName,'"')">
- <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>
- <out:otherwise>
- <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>
- </out:choose>
- </out:variable>
- <cm:query>
- <cm:search><out:value-of select="$obj_name"/>[permission('read')]</cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="modificationTime"/>
- <cm:property name="name"/>
- <cm:property name="parent"/>
- </cm:properties>
- </cm:query>
- </out:for-each>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </packagesInContent>
- </xts:append>
- </out:if>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Get the deployment object from Content Manager or /root/env/param[@name = 'm_deploymentObject']
- into /root/deploymentObject as
- <deploymentObject>
- <queryResponse xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <exportDeployment>
- <objectClass>exportDeployment</objectClass>
- <defaultName type="cm:tokenProp">a15</defaultName>
- <defaultDescription type="cm:stringProp" nil="true"/>
- <deploymentOptions>
- <deploymentOption class="cm:deploymentOptionPackageInfo" name="package">
- <packageDeploymentInfo>
- <sourceName>
- <cm:multilingualToken xml:lang="en-US">A</cm:multilingualToken>
- <sourceName>
- <targetName>
- <cm:multilingualToken xml:lang="fr-CA">B</cm:multilingualToken>
- <targetName>
- <enabled>false<enabled>
- </packageDeploymentInfo>
- </deploymentOption>
- <deploymentOption class="cm:deploymentOptionString" name="archive">folder 12345</deploymentOption>
- <deploymentOption class="cm:deploymentOptionBoolean" name="archiveOverwrite">true</deploymentOption>
- <deploymentOption class="cm:deploymentOptionResolution" name="namespaceConflictResolution">keep </deploymentOption>
- ...
- </deploymentOptions>
- </exportDeployment>
- </queryResponse>
- </deploymentObject>
- ===============================================================================================
- -->
- <xsl:template match="dpl:getDeploymentObject">
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <out:template match="/">
- <xts:sequence>
- <xts:append>
- <out:choose>
- <out:when test="key('env-param', 'm_deploymentObject')">
- <out:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string(key('env-param', 'm_deploymentObject'))), true())" disable-output-escaping="yes"/>
- </out:when>
- <out:otherwise>
- <deploymentObject>
- <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>
- <out:value-of select="key('env-param','m_obj')"/>
- <out:text>[permission('read')]</out:text>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="defaultDescription"/>
- <cm:property name="defaultScreenTip"/>
- <cm:property name="options"/>
- <cm:property name="executionDetails"/>
- <cm:property name="name"/>
- <cm:property name="description"/>
- <cm:property name="screenTip"/>
- </cm:properties>
- <cm:options schemaInfo="false" skipObjects="0" maxObjects="0" dataEncoding="base64" skipDataBytes="0" maxDataBytes="0"/>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:transform>
- </deploymentObject>
- </out:otherwise>
- </out:choose>
- </xts:append>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- set m_archive variable in Update deployment wizard
- ===============================================================================================
- -->
- <xsl:template match="dpl:setVariables">
- <xsl:variable name="uiType">
- <xsl:choose>
- <xsl:when test="@dpl:uiType"><xsl:value-of select="@dpl:uiType"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'wizard'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <out:template match="/root">
- <out:variable name="archive-name" select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='deploymentOptions']/child::node()[@name='archive']"/>
- <xts:sequence>
- <xts:append select="/root/env">
- <out:if test="not(key('env-param','m_uiType'))">
- <param name="m_uiType">
- <xsl:value-of select="$uiType"/>
- </param>
- </out:if>
- <out:if test="not(key('env-param','m_archive'))">
- <param name="m_archive">
- <out:value-of select="$archive-name"/>
- </param>
- </out:if>
- <out:if test="not(key('env-param','m_deploymentArchiveRadio'))">
- <out:choose>
- <out:when test="not(/root/archiveNames) or /root/archiveNames/cm:listArchivesResponse/*[string() = $archive-name]">
- <param name="m_deploymentArchiveRadio">existing</param>
- </out:when>
- <out:otherwise>
- <param name="m_deploymentArchiveRadio">new</param>
- </out:otherwise>
- </out:choose>
- </out:if>
- <out:if test="not(key('env-param','m_p_defaultName'))">
- <param name="m_p_defaultName">
- <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='defaultName']"/>
- </param>
- </out:if>
- <out:if test="not(key('env-param','m_p_defaultDescription'))">
- <param name="m_p_defaultDescription">
- <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='defaultDescription']"/>
- </param>
- </out:if>
- <out:if test="not(key('env-param','m_p_defaultScreenTip'))">
- <param name="m_p_defaultScreenTip">
- <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='defaultScreenTip']"/>
- </param>
- </out:if>
- <out:if test="not(key('env-param','m_archiveEncryptPword')) and (not(key('env-param','m_firstrun')) or key('env-param','m_firstrun') != 'false')">
- <out:variable name="encryptionPass">
- <out:value-of select="/root/deploymentObject/*[local-name()='queryResponse']/*/*[local-name()='deploymentOptions']/child::node()[@name='archiveEncryptPassword']"/>
- </out:variable>
- <out:if test="$encryptionPass != ''">
- <param name="m_archiveEncryptPword">
- <out:value-of select="$encryptionPass"/>
- </param>
- </out:if>
- </out:if>
- </xts:append>
- <out:choose>
- <out:when test="not(key('env-param','m_new_class'))">
- <xts:append select="/root/env">
- <param name="m_new_class">
- <out:value-of select="key('env-param','m_class')"/>
- </param>
- </xts:append>
- </out:when>
- <out:otherwise>
- <xts:replace select="/root/env/param[@name='m_new_class']">
- <param name="m_new_class">
- <out:value-of select="key('env-param','m_class')"/>
- </param>
- </xts:replace>
- </out:otherwise>
- </out:choose>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Get the list of archive packages from Content Manager or /root/env/param[@name = 'm_archiveOptions'] into /root/archiveOptions
- ===============================================================================================
- -->
- <xsl:template match="dpl:getArchiveOptions">
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:variable name="handleFault" select="@handleFault"/>
- <out:template match="/root">
- <out:choose>
- <out:when test="key('env-param', 'm_archiveOptions')">
- <xts:sequence>
- <xts:append>
- <out:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string(key('env-param','m_archiveOptions'))), true())" disable-output-escaping="yes"/>
- </xts:append>
- <xts:delete select="/root/env/param[@name = 'm_archiveOptions']"/>
- </xts:sequence>
- </out:when>
- <out:otherwise>
- <!-- deployment options from the archive -->
- <!-- get the packages from CM -->
- <out:variable name="archive-name">
- <out:value-of select="key('env-param', 'm_archive')"/>
- </out:variable>
- <out:variable name="archive-password">
- <out:value-of select="key('env-param', 'm_archiveEncryptPword')"/>
- </out:variable>
- <out:if test="(not(/root/archiveNames) ) or (/root/archiveNames and /root/archiveNames/cm:listArchivesResponse/*[string() = $archive-name]) or key('env-param','m_uiType')='wizard'">
- <xts:sequence>
- <xts:append>
- <archiveOptions>
- <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xsl:if test="$handleFault = 'true'">
- <xsl:attribute name="faultBlock"><xsl:value-of select="'faultHandler'"/></xsl:attribute>
- </xsl:if>
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <xtscm:getDeploymentOptions xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:inputOptions>
- <out:attribute name="archive">
- <out:value-of select="$archive-name"/>
- </out:attribute>
- <out:attribute name="archiveEncryptPassword">
- <out:value-of select="$archive-password"/>
- </out:attribute>
- <out:attribute name="upgradeArchiveOptions">true</out:attribute>
- </cm:inputOptions>
- </xtscm:getDeploymentOptions>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:transform>
- </archiveOptions>
- </xts:append>
- </xts:sequence>
- </out:if>
- </out:otherwise>
- </out:choose>
- </out:template>
- </xsl:template>
- <xsl:template match="dpl:getSourceAncestorDefaultName">
- <xsl:variable name="handleFault" select="@handleFault"/>
- <out:template match="/root">
- <out:if test="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']">
- <xts:sequence>
- <xts:replace select="/root/archiveOptions">
- <xts:transform src="transforms/portal/deploymentOptions/merge-source-default-name.xslt" processor="XSLT">
- <root>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <out:for-each select="/root/archiveOptions//cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo']">
- <out:variable name="searchPath">
- <out:value-of select="cm:ancestorInfo/cm:searchPath"/>
- </out:variable>
- <out:if test="$searchPath != ''">
- <cm:query>
- <cm:search><out:value-of select="$searchPath"/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- </cm:properties>
- </cm:query>
- </out:if>
- </out:for-each>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- <xts:queryNode select="/root/archiveOptions"/>
- </root>
- </xts:transform>
- </xts:replace>
- </xts:sequence>
- </out:if>
- </out:template>
- </xsl:template>
- <xsl:template match="dpl:getTargetAncestorInfo">
- <xsl:variable name="handleFault" select="@handleFault"/>
- <out:template match="/root">
- <out:variable name="t_getTargetAncestorInfo">
- <out:choose>
- <out:when test="/root/*[local-name()='deploymentOptionsUI']/cm:deploymentOption[@name='package']/*/*[local-name() = 'ancestors']/*[local-name() = 'ancestorInfo']/*[local-name() = 'searchPath']">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:if test="t_getTargetAncestorInfo='true'">
- <xts:sequence>
- <xts:replace select="/root/*[local-name()='deploymentOptionsUI']">
- <xts:transform src="transforms/portal/deploymentOptions/update-target-ancestors-properties.xslt" processor="XSLT">
- <root>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <out:for-each select="/root/*[local-name()='deploymentOptionsUI']/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo']">
- <out:variable name="searchPath">
- <out:value-of select="*[local-name() = 'ancestors']/*[local-name() = 'ancestorInfo']/*[local-name() = 'searchPath']"/>
- </out:variable>
- <out:if test="$searchPath != ''">
- <cm:query>
- <cm:search><out:value-of select="$searchPath"/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:query>
- </out:if>
- </out:for-each>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- <xts:queryNode select="/root/*[local-name()='deploymentOptionsUI']"/>
- </root>
- </xts:transform>
- </xts:replace>
- </xts:sequence>
- </out:if>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Get the list of archive names into /root/archiveNames
- ===============================================================================================
- -->
- <xsl:template match="dpl:getArchiveNames">
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <out:template match="/root">
- <out:variable name="m_sort">
- <out:choose>
- <out:when test="/root/session/param[@name='s_dep'] = 'nd'"><out:value-of select="'descending'"/></out:when>
- <out:otherwise><out:value-of select="'ascending'"/></out:otherwise>
- </out:choose>
- </out:variable>
- <!-- get the archive names from CM -->
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/portal/deploymentOptions/archives_sort.xslt" processor="XSLT">
- <archiveNames>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm" testBlock="testGetArchiveNames">
- <cm:listArchives xmlns:cm="http://developer.cognos.com/schemas/contentManagerService/1"/>
- </send:request>
- </xts:transform>
- <sortOrder><out:value-of select="$m_sort"/></sortOrder>
- </archiveNames>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <xsl:template match="dpl:sortDeploymentOptionsUI">
- <out:template match="/root">
- <xts:sequence>
- <xts:append>
- <out:element name="deploymentOptionsUI" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <out:for-each select="cm:unsortedDeploymentOptionsUI/*">
- <out:choose>
- <out:when test="@name != 'package'">
- <out:copy>
- <out:copy-of select="@*"/>
- <out:apply-templates/>
- </out:copy>
- </out:when>
- <out:otherwise>
- <out:copy>
- <out:copy-of select="@*"/>
- <out:for-each select="*">
- <out:sort select="cm:defaultSourceName" order="descending"/>
- <out:copy>
- <out:copy-of select="@*"/>
- <out:apply-templates/>
- </out:copy>
- </out:for-each>
- </out:copy>
- </out:otherwise>
- </out:choose>
- </out:for-each>
- </out:element>
- </xts:append>
- </xts:sequence>
- </out:template>
- <out:template match="*">
- <out:copy>
- <out:copy-of select="@*"/>
- <out:apply-templates/>
- </out:copy>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Get the Number of Packages.
- ===============================================================================================
- -->
- <xsl:template match="dpl:getNumberOfPackages">
- <out:template match="/root">
- <xts:sequence>
- <xts:append>
- <numberOfPackages>
- <out:value-of select="count(/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*[local-name() = 'packageDeploymentInfo'])"/>
- </numberOfPackages>
- </xts:append>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Save user choices in deploymentOptionsUI
- ===============================================================================================
- -->
- <xsl:template match="dpl:addOrRemoveExportPackages">
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <!--out:variable name="packagesInContent" select="/root/packagesInContent/queryResponse"/-->
- <out:template match="/root">
- <!-- Delete -->
- <out:if test="/root/env/param[@name='m_class'] = 'exportDeployment' and /root/env/param[@name='listop'] = 'delete'">
- <xts:sequence>
- <!-- delete packages marked for deletion -->
- <out:for-each select="/root/env/param[starts-with(@name, 'availablePackagesCheckboxPrefix_')]">
- <out:variable name="guid">
- <out:value-of select="."/>
- </out:variable>
- <out:variable name="storeId">
- <out:value-of select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']/*/*[local-name()='guid' and string(.)=$guid]/../*[local-name() = 'storeID']"/>
- </out:variable>
- <xts:delete>
- <out:attribute name="select">
- <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>
- <out:value-of select="$guid"/>
- <out:text>']/../.</out:text>
- </out:attribute>
- </xts:delete>
- <xts:delete>
- <out:attribute name="select">
- <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>
- <out:value-of select="$storeId"/>
- <out:text>']/../.</out:text>
- </out:attribute>
- </xts:delete>
- </out:for-each>
- <xts:delete select="/root/env/param[starts-with( @name, 'availablePackagesCheckboxPrefix_' )]"/>
- <xts:delete select="/root/env/param[@name='m_packagesInContent']"/>
- </xts:sequence>
- </out:if>
- <!-- Add -->
- <out:if test="/root/env/param[@name='m_class'] = 'exportDeployment' and /root/newEntries">
- <xts:sequence>
- <xts:append select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']">
- <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']">
- <out:variable name="sourceName" select="cm:name/cm:multilingualToken"/>
- <out:variable name="storeID" select="cm:storeID"/>
- <out:variable name="ancestors" select="cm:ancestors"/>
- <out:variable name="targetLocation" select="cm:parent/cm:storeID"/>
- <out:element name="cm:packageDeploymentInfo">
- <out:variable name="deploymentObjectPackage" select="/root/deploymentObject/cm:queryResponse/*/cm:deploymentOptions/cm:deploymentOption[@name='package']/*[cm:storeID=$storeID]"/>
- <out:choose>
- <out:when test="$deploymentObjectPackage">
- <out:call-template name="deployment-object-package">
- <out:with-param name="sourceName" select="$sourceName"/>
- </out:call-template>
- </out:when>
- <out:otherwise>
- <cm:targetName>
- <out:copy-of select="$sourceName"/>
- </cm:targetName>
- <cm:defaultTargetName>
- <out:call-template name="get-default-package-name">
- <out:with-param name="package-name" select="$sourceName"></out:with-param>
- <out:with-param name="defaultName"><out:value-of select="$sourceName/self::node()[1]"/></out:with-param>
- </out:call-template>
- </cm:defaultTargetName>
- <cm:enabled>true</cm:enabled>
- <cm:inPackagesToInclude>true</cm:inPackagesToInclude>
- </out:otherwise>
- </out:choose>
- <cm:objectClass>
- <out:value-of select="*[local-name()='objectClass']"/>
- </cm:objectClass>
- <cm:modificationTime>
- <out:value-of select="cm:modificationTime"/>
- </cm:modificationTime>
- <cm:storeID>
- <out:value-of select="cm:storeID"/>
- </cm:storeID>
- <cm:hidden>
- <out:value-of select="cm:hidden"/>
- </cm:hidden>
- <cm:searchPath>
- <out:value-of select="cm:searchPath"/>
- </cm:searchPath>
- <cm:parent>
- <out:value-of select="cm:parent/*/cm:storeID"/>
- </cm:parent>
- <cm:targetLocation>
- <out:value-of select="cm:parent/*/cm:searchPath"/>
- </cm:targetLocation>
- <cm:ancestors>
- <out:for-each select="cm:ancestors/*">
- <cm:ancestorInfo>
- <out:copy-of select="cm:objectClass"/>
- <out:copy-of select="cm:searchPath"/>
- <out:copy-of select="cm:storeID"/>
- <out:copy-of select="cm:title"/>
- </cm:ancestorInfo>
- </out:for-each>
- </cm:ancestors>
- <cm:ancestorsSource>
- <out:for-each select="cm:ancestors/*">
- <cm:ancestorInfo>
- <out:copy-of select="cm:objectClass"/>
- <out:copy-of select="cm:searchPath"/>
- <out:copy-of select="cm:storeID"/>
- <out:copy-of select="cm:title"/>
- </cm:ancestorInfo>
- </out:for-each>
- </cm:ancestorsSource>
- <out:call-template name="source-dependable-elements">
- <out:with-param name="sourceName" select="$sourceName"/>
- </out:call-template>
- </out:element>
- </out:for-each>
- </xts:append>
- <!--Sort packages -->
- <xts:replace select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']">
- <xts:transform src="transforms/portal/deploymentOptions/packages_sort.xslt" processor="XSLT">
- <xts:queryNode select="/root/*[local-name()='deploymentOptionsUI']/*[local-name()='deploymentOption' and @name='package']" />
- </xts:transform>
- </xts:replace>
- </xts:sequence>
- </out:if>
- </out:template>
- <out:template name="source-dependable-elements">
- <out:param name="sourceName"/>
- <cm:sourceName>
- <out:copy-of select="$sourceName"/>
- </cm:sourceName>
- <cm:defaultSourceName>
- <out:call-template name="get-default-package-name">
- <out:with-param name="package-name" select="$sourceName"></out:with-param>
- <out:with-param name="defaultName"><out:value-of select="$sourceName/self::node()[1]"/></out:with-param>
- </out:call-template>
- </cm:defaultSourceName>
- <out:variable name="new-guid" select="xtsext:generateGUID()"/>
- <x:guid xmlns:x="x">
- <out:value-of select="$new-guid"/>
- </x:guid>
- </out:template>
- <out:template name="target-dependable-elements">
- <out:param name="targetName"/>
- <out:param name="targetDefaultName"/>
- <out:param name="targetLocation"/>
- <cm:targetName>
- <out:copy-of select="$targetName"/>
- </cm:targetName>
- <cm:defaultTargetName>
- <out:call-template name="get-default-package-name">
- <out:with-param name="package-name" select="$targetName"></out:with-param>
- <out:with-param name="defaultName"><out:value-of select="$targetName/self::node()[1]"/></out:with-param>
- </out:call-template>
- </cm:defaultTargetName>
- <out:choose>
- <out:when test="/root/packagesInContent/cm:queryResponse/cm:queryReply/*[cm:defaultName=$targetDefaultName and cm:parent/*[local-name()='content']/*[local-name()='searchPath']=$targetLocation]">
- <cm:inTargetContent>true</cm:inTargetContent>
- </out:when>
- <out:otherwise>
- <cm:inTargetContent>false</cm:inTargetContent>
- </out:otherwise>
- </out:choose>
- <cm:modificationTime>
- <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"/>
- </cm:modificationTime>
- </out:template>
- <out:template name="deployment-object-package">
- <out:param name="sourceName"/>
- <!--
- XSLTC returns an empty node-set if $variable/something is selected.
- So we cannot get targetName as $deploymentObjectPackage/cm:targetName/cm:multilingualToken.
- To fix the problem we create a separate variable for target name. Same is for enabled
- -->
- <out:variable name="deploymentObjectPackageTargetName" select="/root/deploymentObject/cm:queryResponse/*/cm:deploymentOptions/cm:deploymentOption[@name='package']/*[cm:sourceName/cm:multilingualToken=$sourceName]/cm:targetName/cm:multilingualToken"/>
- <out:variable name="deploymentObjectPackageEnabled" select="/root/deploymentObject/cm:queryResponse/*/cm:deploymentOptions/cm:deploymentOption[@name='package']/*[cm:sourceName/cm:multilingualToken=$sourceName]/cm:enabled"/>
- <out:choose>
- <out:when test="$deployment-method='import'">
- <out:call-template name="target-dependable-elements">
- <out:with-param name="targetName" select="$deploymentObjectPackageTargetName"/>
- </out:call-template>
- </out:when>
- <out:otherwise>
- <cm:targetName>
- <out:copy-of select="$deploymentObjectPackageTargetName"/>
- </cm:targetName>
- <cm:defaultTargetName>
- <out:call-template name="get-default-package-name">
- <out:with-param name="package-name" select="$deploymentObjectPackageTargetName"></out:with-param>
- <out:with-param name="defaultName"><out:value-of select="$deploymentObjectPackageTargetName/self::node()[1]"/></out:with-param>
- </out:call-template>
- </cm:defaultTargetName>
- </out:otherwise>
- </out:choose>
- <cm:enabled>
- <out:value-of select="$deploymentObjectPackageEnabled"/>
- </cm:enabled>
- <cm:inPackagesToInclude>true</cm:inPackagesToInclude>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Serialize the data (web64 encoded)
- ===============================================================================================
- -->
- <xsl:template match="dpl:encodeOptions">
- <out:key name="env-param" match="/root/env/param" use="@name"/>
- <pf:serialize-xml/>
- <out:template match="/">
- <!-- save deployment object first time -->
- <out:if test="not(key('env-param', 'm_deploymentObject')) and /root/deploymentObject">
- <xts:sequence>
- <out:variable name="markup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="/root/deploymentObject"/>
- </out:call-template>
- </out:variable>
- <xts:delete select="/root/env/param[@name = 'm_deploymentObject']"/>
- <xts:append select="/root/env">
- <param name="m_deploymentObject">
- <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup), true()))"/>
- </param>
- </xts:append>
- </xts:sequence>
- </out:if>
- <!-- save packages in content first time -->
- <out:if test="(not(key('env-param', 'm_packagesInContent')) and /root/packagesInContent) or /root/newEntries">
- <xts:sequence>
- <out:variable name="markup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="/root/packagesInContent"/>
- </out:call-template>
- </out:variable>
- <xts:delete select="/root/env/param[@name = 'm_packagesInContent']"/>
- <xts:append select="/root/env">
- <param name="m_packagesInContent">
- <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup), true()))"/>
- </param>
- </xts:append>
- </xts:sequence>
- </out:if>
- <!-- save current deployment options first time and each time an operation is performed -->
- <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">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name = 'm_deploymentOptionsUI']"/>
- <xts:append select="/root/env">
- <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
- <param name="m_deploymentOptionsUI">
- <passport><out:value-of select="$passport"/></passport>
- <markup>
- <xts:transform name="XMLEncode">
- <out:copy-of select="/root/cm:deploymentOptionsUI"/>
- </xts:transform>
- </markup>
- </param>
- </xts:transform>
- </xts:append>
- <xts:delete select="/root/env/param[@name = 'new_ancestors']"/>
- </xts:sequence>
- </out:if>
- <!-- encode deploymentOptions -->
- <out:if test="/root/deploymentOptions">
- <xts:sequence>
- <out:variable name="markup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="/root/deploymentOptions"/>
- </out:call-template>
- </out:variable>
- <xts:delete select="/root/env/param[@name = 'm_p_deploymentOptions']"/>
- <xts:append select="/root/env">
- <param name="m_p_deploymentOptions">
- <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup), true()))"/>
- </param>
- </xts:append>
- </xts:sequence>
- <!-- Clear m_packagesOp and m_zardOp -->
- <xts:sequence>
- <xts:replace select="/root/env/param[@name = 'm_packagesOp']">
- <param name="m_packagesOp"/>
- </xts:replace>
- <xts:replace select="/root/env/param[@name = 'm_wizardOp']">
- <param name="m_wizardOp"/>
- </xts:replace>
- </xts:sequence>
- </out:if>
- <xts:sequence>
- <!-- Must delete so.id here since it holds the storeID of the last selected element from the "select a location" page.
- This could be (a) coming from the beginning of the wizard (holding the location of the deployment spec), or it could
- be (b) coming from editing the target location for a package in the archive. Either way, if you now edit the target
- location for a different package, the "select a location" page will use so.id to set the initial selected object. This
- is going to be the wrong value in case (a) above, and in case (b) if the package you're changing the location on
- is different from the package you last changed the location on.-->
- <xts:delete select="/root/env/param[@name = 'so.id']"/>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ==============================================================
- dpl:getDefaultPackageName
- ==============================================================
- -->
- <xsl:template match="dpl:getDefaultPackageName">
- <out:template name="get-default-package-name">
- <out:param name="package-name"/>
- <out:param name="defaultName"/>
- <out:variable name="defaultPackage" select="$defaultName"/>
- <out:choose>
- <out:when test="$package-name != ''">
- <xts:function name="getLocalizedName">
- <xts:param name="locale"><out:value-of select="$normalized-content-locale"/></xts:param>
- <xts:param name="namelist">
- <xts:transform src="transforms/portal/deploymentOptions/post-process-defaultName.xslt" processor="XSLT">
- <packageName>
- <out:copy-of select="$package-name"/>
- </packageName>
- </xts:transform>
- </xts:param>
- <!-- There is a new paramter introduced by XTS that when set the output will be xml encoded.
- Instead of doing xmlencode in the morphlet we should use that parameter. This change
- will happen when the first GA integration kit becomes available -->
- <xts:param name="default"><out:value-of select="xtsext:xmlencode(string($defaultPackage))"/></xts:param>
- <xts:param name="normalize">true</xts:param>
- </xts:function>
- </out:when>
- <out:when test="$defaultPackage != ''">
- <out:value-of select="xtsext:xmlencode(string($defaultPackage))"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_PROP_ENTRY_NOT_FOUND"/>
- </out:otherwise>
- </out:choose>
- </out:template>
- </xsl:template>
- <!--
- ==============================================================
- Outputs true if the Directory Content Options page is skipped
- ==============================================================
- -->
- <xsl:template match="dpl:isDirectoryContentOptionsPageSkipped">
- <out:choose>
- <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']">
- <xsl:value-of select="'true'"/>
- </out:when>
- <out:otherwise><xsl:value-of select="'false'"/></out:otherwise>
- </out:choose>
- </xsl:template>
- <!--
- =================================================================
- * - This next template is required to copy all other elements into the result.
- =================================================================
- -->
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|