1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2015
- 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:out="dummy-uri"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- exclude-result-prefixes="mt xtsext xts cp"
- xmlns:skinCache="com.cognos.portal.skin.SkinCache">
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <!--
- Toolbar options (buttons):
- ========================================================================================================================
- mt:tool[not(@name)] - Speial toolbar options generated by toollogic.
- mt:tool[@name='new'] - New object.
- mt:tool[@name='import']
- mt:tool[@name='export']
- mt:tool[@name='cut']
- mt:tool[@name='copy']
- mt:tool[@name='paste']
- mt:tool[@name='delete']
- mt:tool[@name='refresh']
- mt:tool[@name='selectall']
- mt:tool[@name='deselectall']
- mt:tool[@name='detail'] - Toggles detail view in main navigation window
- mt:tool[@name='list'] - Toggles list view in main navigation window
- mt:tool[@name='properties'] - Invoks the properties dialog for the root folder currently in focus
- mt:tool[@name='order'] - Invoks the "order" dialog to rearrange entries within a folder
- mt:tool[@name='search']
- mt:tool[@name='configuration_properties'] - Invoks the properties dialog for the root configuration folder
- mt:tool[@name='page_sizes']
- mt:tool[@name='file_system_locations']
- mt:tool[@name='enable_sched']
- mt:tool[@name='disable_sched']
- mt:tool[@name='view_events']
- mt:tool[@name='new_page']
- mt:tool[@name='edit_pagelet'] - Edit Page.
- mt:detailedEntryView - produce a detailed view for an entry.
- mt:objectNoneFound - render the 'no entries' line on main pages.
- mt:action - generate template to produce the actions available for an entry.
- renderaction - produce an action for an entry.
- -->
- <!--
- Template - mt:stylesheet:
- This template defines link elements for skin_style and skin_fonts.
- Operation:
- Defines link element.
- -->
- <xsl:template match="mt:stylesheet">
- <out:choose>
- <out:when test="/root/env/param[@name='style']">
- <link rel="stylesheet" type="text/css" href="{'{key("env-param", "style")}'}"/><!-- TODO: make sure CAF is OK with this. -->
- </out:when>
- <out:otherwise>
- <link rel="stylesheet" type="text/css" href="{'{$skin_style}'}"/>
- <link rel="stylesheet" type="text/css" href="{'{$skin_fonts}'}"/>
- <link rel="stylesheet" type="text/css" href="{'{$skin_portlet}'}"/>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <!--
- Template - mt:page:
- This template is used to render the body of the main pages.
- Operation:
- Render body.
- -->
- <xsl:template match="mt:page">
- <!-- temporary theme selector, this will go on all match thms to switch using a url parameter -->
- <body onload="if (window.init) init();">
- <xsl:attribute name="topmargin">
- <xsl:choose>
- <xsl:when test="@mode='noborders'">0</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="bottommargin">0</xsl:attribute>
- <xsl:attribute name="marginheight">
- <xsl:choose>
- <xsl:when test="@mode='noborders'">0</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="rightmargin">
- <xsl:choose>
- <xsl:when test="@mode='noborders'">0</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="leftmargin">
- <xsl:choose>
- <xsl:when test="@mode='noborders'">0</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:attribute name="marginwidth">
- <xsl:choose>
- <xsl:when test="@mode='noborders'">0</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:if test="string(@class)!=''">
- <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
- </xsl:if>
- <xsl:if test="@region != ''">
- <xsl:attribute name="role">region</xsl:attribute>
- <xsl:attribute name="aria-labelledBy"><xsl:value-of select="@region"/></xsl:attribute>
- </xsl:if>
- <xsl:if test="mt:regionLabel/@id">
- <xsl:attribute name="role">region</xsl:attribute>
- <xsl:attribute name="aria-labelledBy"><xsl:value-of select="mt:regionLabel/@id"/></xsl:attribute>
- </xsl:if>
- <out:if test="$browser = 'ie'">
- <out:attribute name="style">overflow:auto</out:attribute>
- </out:if>
- <out:if test="$is-ui-rtl">
- <out:attribute name="dir">rtl</out:attribute>
- <script language="JavaScript">
- document.documentElement.className = document.documentElement.className ? document.documentElement.className + " rtl" : "rtl";
- </script>
- </out:if>
- <xsl:if test="@region != ''">
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="{@region}"><xts:string id="{@region}"/></span>
- </xsl:if>
- <!-- bidi -->
- <script type="text/javascript">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/../ccl/i18n/bidi/BidiUtils.js<out:text/>
- </out:attribute>
- </script>
- <script language="javascript">
- var isBidiEnabled = <out:value-of select="boolean($isBidiEnabled='true')"/>;
- if (isBidiEnabled){
- var bidi = BidiUtils.getInstance();
- bidi.setProperties('<out:value-of select="xtsext:javascriptencode($baseTextDirection)"/>',
- '<out:value-of select="xtsext:getBTD('', $baseTextDirection, $productLocale)"/>',
- '<out:value-of select="xtsext:javascriptencode($productLocale)"/>');
- }
- </script>
- <xsl:call-template name="bodyContent"/>
- </body>
- </xsl:template>
- <xsl:template match="mt:customPage">
- <xsl:call-template name="bodyContent"/>
- </xsl:template>
- <xsl:template name="bodyContent">
- <a href="#maincontent" class="showOnFocus" tabindex="0"><xts:string id="IDS_SECTION508_JUMPTOMAIN"/></a>
- <!-- Generate common script code here (main page only for now) -->
- <xsl:if test="@mode = 'main'">
- <script language="JavaScript">
- function g_PS_getPageContext()
- {
- return "<out:value-of select="$javascriptescapedPageID"/>";
- }
- function g_PS_getPageRemoveConfMsg()
- {
- var bPageFound = !(<out:value-of select="$pageNotFound"/>);
- if (bPageFound)
- return "<xts:string id='IDS_PAGE_MENU_REMOVE_CONF' encode="javascript"><xts:param name="pageName"><out:value-of select="xtsext:javascriptencode(string($pageName))"/></xts:param></xts:string>";
- else
- return "";
- }
- </script>
- </xsl:if>
- <xsl:apply-templates select="*"/>
- </xsl:template>
- <xsl:template match="mt:regionLabel">
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <xsl:copy-of select="@id"/>
- <xsl:copy-of select="./child::node()"/>
- </span>
- </xsl:template>
- <!--
- Template - mt:h1:
- This template renders the first line of the main pages.
- Operation:
- Renders the OEM and/or username as well as links to mypages, and studios on the first line.
- -->
- <xsl:template match="mt:h1">
- <out:variable name="runTimeDisplayMode">
- <out:choose>
- <out:when test="/root/page/displayMode = 'viewer'">viewer</out:when>
- <out:when test="key('env-param', 'search')">search</out:when>
- <out:otherwise>default</out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:variable name="compileMode">
- <xsl:choose>
- <xsl:when test="@mode = 'main'">main</xsl:when>
- <xsl:when test="@mode = 'mainSearch'">mainSearch</xsl:when>
- <xsl:when test="@mode = 'subscriptions'">subscriptions</xsl:when>
- <xsl:when test="@mode = 'drillthrough'">drillthrough</xsl:when>
- <xsl:when test="@mode= 'mydatasets'">mydatasets</xsl:when>
- <xsl:otherwise>basic</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER '))">
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/banner.js"></script>
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/aboutdialog.js"></script>
- <div role="banner">
- <xsl:choose>
- <xsl:when test="@id != ''">
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="id">headerBack</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <table cellspacing="0" cellpadding="0" class="mainHeader1" border="0" role="presentation">
- <tr>
- <!-- Component title -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_TITLE '))">
- <out:variable name="smuCustomHeader">
- <out:variable name="customHeaderPropertyName">/uiSkin/branding/header/value[@name='cognos.connection.header']</out:variable>
- <out:value-of disable-output-escaping="yes" select="skinCache:getSkinPropertyStatic(key('session-param', 'skin'), string($customHeaderPropertyName), string(/root/cookies/cookie[@name='cam_passport']))"/>
- </out:variable>
- <out:choose>
- <!-- SMU Custom header is specified -->
- <out:when test="$smuCustomHeader != ''">
- <td class="headerTitle" role="heading">
- <out:copy-of select="$smuCustomHeader"/>
- </td>
- </out:when>
- <!-- Custom header is specified -->
- <out:when test="key('system-param', 'OEM')/customHeader/style[@styleFolderName = key('session-param', 'skin')]">
- <td class="headerTitle" role="heading">
- <out:copy-of select="key('system-param', 'OEM')/customHeader/style[@styleFolderName = key('session-param', 'skin')]/child::node()"/>
- </td>
- </out:when>
- <!-- Insert the standard header -->
- <out:otherwise>
- <td class="logoContainer"><div class="logo"/></td>
- <td class="headerTitle" onclick="debug(event)" role="heading">
- <xsl:choose>
- <xsl:when test="mt:title/child::node()">
- <xsl:apply-templates select="mt:title/child::node()"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PORTAL"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:otherwise>
- </out:choose>
- </out:if>
- <td class="mainHeader1Middle">
- <table role="presentation"><tr>
- <out:if test=" not(contains($ui_black_list, ' CRN_HEADER_OPTIONS ')) ">
- <xsl:if test="$compileMode != 'basic'">
- <!-- User Name -->
- <out:if test=" $is-named = '1'">
- <td class="userNameContainer">
- <out:choose>
- <out:when test="key('session-param', 'e_showTenantInfo') = 'true' and key('session-param', 'e_tenantDisplayName') != ''">
- <xts:string id="IDS_USERINFO_WITHTENANT">
- <xts:param name="userName"><out:value-of select="key('session-param', 'e_user')"/></xts:param>
- <xts:param name="tenantName"><out:value-of select="key('session-param', 'e_tenantDisplayName')"/></xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_USERINFO">
- <xts:param name="userName"><out:value-of select="key('session-param', 'e_user')"/></xts:param>
- </xts:string>
- </out:otherwise>
- </out:choose>
- </td>
- </out:if>
- <!-- Logon -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_AUTHENTICATION '))">
- <td class="authOptionContainer">
- <out:variable name="logOnURL" select="xtsext:javascriptencode(string(concat($gateway, '?', key("system-param", "COGNOSHome"))))"/>
- <out:variable name="reLogOnURL" select="xtsext:javascriptencode($back-url)"/>
- <out:variable name="logOffURL" select="xtsext:javascriptencode(string(concat($gateway, '?b_action=xts.run&m=', $app, '/logoff.xts&h_CAM_action=logoff')))"/>
- <out:choose>
- <!-- If both log on and off options are not hidden then show the drop-down control -->
- <!-- Modified based on COGCQ00265525 - Unable to Hide Log On link in Cognos Connection. (Multiple namespaces defined) -->
- <out:when test="$is-named = '1' and key('session-param', 'show_logon') = 'true' and not(contains($ui_black_list, ' CC_HEADER_MENU_logon ') or contains($ui_black_list, ' CC_HEADER_MENU_logoff '))">
- <out:variable name="authMenu">
- <flyout id="authMenu">
- <label><xts:string encode="javascript" id="IDS_BANNER_MENU_AUTH"/></label>
- <items>
- <out:if test="not(contains($ui_black_list, ' CC_HEADER_MENU_logon '))">
- <item id="logon">
- <text><xts:string id="IDS_TOOLS_LOGON"/></text>
- <action>authenticate('relogon','<out:value-of select="$reLogOnURL"/>')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_logon.gif')"/></icon>
- </item>
- </out:if>
- <out:if test="not(contains($ui_black_list, ' CC_HEADER_MENU_logoff '))">
- <item id="logoff">
- <text><xts:string id="IDS_TOOLS_LOGOFF"/></text>
- <action>authenticate('logoff','<out:value-of select="$logOffURL"/>')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_logoff.gif')"/></icon>
- </item>
- </out:if>
- </items>
- </flyout>
- </out:variable>
- <out:if test="$authMenu/flyout/items/*">
- <out:variable name="logonMenuLab"><xts:string id="IDS_LOGON_MENU_TOOLTIP"/></out:variable>
- <div id="authMenu_span" style="position:relative;z-index:12;">
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr>
- <td nowrap="true" tabindex="0" style="padding-right:3px;"
- onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) authenticate('logon', '{'{$reLogOnURL}'}'); return false;"
- onclick="authenticate('logon', '{'{$reLogOnURL}'}')" role="link" aria-labelledby="logonLinkId">
- <a role="presentation" id="logonLinkId" class="bannerOptions" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" tabindex="-1">
- <xts:string id="IDS_TOOLS_LOGON"/>
- </a>
- </td>
- <td class="bannerOptionsButtonNormal" tabindex="0" role="button" aria-haspopup="true" aria-label="{'{$logonMenuLab}'}"
- onmouseover="this.className='bannerOptionsButtonOver';"
- onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'authMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'authMenu');">
- <img name="searchMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif" >
- <out:attribute name="alt"><xts:string id="IDS_LOGON_MENU_TOOLTIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_LOGON_MENU_TOOLTIP"/></out:attribute>
- </img>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$authMenu"/>
- </out:with-param>
- <out:with-param name="controlID">authMenu_span</out:with-param>
- </out:call-template>
- </out:if>
- </out:when>
- <!-- Security is enabled but the user is not authenticated -->
- <!-- Modified based on COGCQ00265525 - need to show logon when multiple namespaces defined and logged on already. -->
- <out:when test="$is-secure = '1' and ($is-named != '1' or ($is-named = '1' and key('session-param', 'show_logon') = 'true')) and not(contains($ui_black_list, ' CC_HEADER_MENU_logon '))">
- <!-- Show Log in -->
- <div class="authOptionContainer">
- <a href="#" class="bannerOptions" tabindex="0" onclick="authenticate('logon', '{'{$logOnURL}'}')">
- <xts:string id="IDS_TOOLS_LOGON"/>
- </a>
- </div>
- </out:when>
- <!-- User is authenticated into the only available namespace. show loggoff only -->
- <out:when test="$is-named = '1' and not(contains($ui_black_list, ' CC_HEADER_MENU_logoff '))">
- <div class="authOptionContainer">
- <a href="#" class="bannerOptions" tabindex="0" onclick="authenticate('logoff', '{'{$logOffURL}'}')">
- <xts:string id="IDS_TOOLS_LOGOFF"/>
- </a>
- </div>
- </out:when>
- <out:otherwise>
- <!-- show nothing -->
- </out:otherwise>
- </out:choose>
- </td>
- </out:if>
- <!-- Custom Banner options -->
- <out:if test="key('system-param', 'ui_add')/CC_HEADER_MENU/item">
- <td class="dividerContainer"><div class="bannerDivider"/></td>
- <out:for-each select="key('system-param', 'ui_add')/CC_HEADER_MENU/item">
- <out:variable name="s" select="concat(' ', @show, ' ')"/>
- <out:if test="
- not(@show) or
- (contains($s , 'Administrators') and $isAdminUser) or
- (contains($s , 'QSUsers') and $userCanUseFullQS) or
- (contains($s , 'RSUsers') and $userCanUseFullRS) or
- (contains($s , 'Consumers') and $is-named='1') or
- (contains($s , 'Anonymous') and $is-named='0') or
- (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
- ">
- <td class="customBannerContainer">
- <a class="bannerOptions" tabindex="0" href="{'{url}'}">
- <out:if test="./onclick">
- <out:attribute name="onclick"><out:value-of select="onclick"/></out:attribute>
- </out:if>
- <out:if test="target">
- <out:attribute name="target"><out:value-of select="target"/></out:attribute>
- </out:if>
- <out:value-of select="label[lang($productLocale)]"/>
- </a>
- </td>
- </out:if>
- </out:for-each>
- </out:if>
- <out:if test="key('session-param', 'e_showTenantInfo')='true'">
- <script language="JavaScript">
- function doImpersonateTenant(cmd, tenantId)
- {
- <!-- Flag an impersonate tenant operation -->
- document.forms[frmEditForm].impersonateTenantCmd.value=cmd;
- document.forms[frmEditForm].impersonateTenantId.value=tenantId;
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/<out:value-of select="$mname"/>";
- document.forms[frmEditForm].submit();
- if (document.body)
- document.body.style.cursor = "wait";
- }
- </script>
- <out:variable name="isAdmin" select="key('session-param', 'e_isSysAdmin')='true' or key('session-param', 'e_isTenantAdmin')='true'"/>
- <out:if test="$isAdmin and key('session-param', 'e_showTenantInfo')='true' and key('session-param', 'e_isImpersonating')!='true'">
- <td class="refreshContainer">
- <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';">
- <out:attribute name="onkeypress">if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doImpersonateTenant('read','<out:value-of select="xtsext:javascriptencode(key('session-param', 'e_tenantID'))"/>'); return false;</out:attribute>
- <out:attribute name="onclick">doImpersonateTenant('read','<out:value-of select="xtsext:javascriptencode(key('session-param', 'e_tenantID'))"/>');</out:attribute>
- <out:attribute name="title"><xts:string id="IDS_IMPERSONATE_TENANT_TOOLTIP"/></out:attribute>
- <img border="0" src="{'{$image_root}'}impersonate.gif">
- <out:attribute name="alt"><xts:string id="IDS_IMPERSONATE_TENANT_TOOLTIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_IMPERSONATE_TENANT_TOOLTIP"/></out:attribute>
- </img>
- </div>
- </td>
- </out:if>
- </out:if>
- <td class="dividerContainer"><div class="bannerDivider"/></td>
- <!-- Refresh -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_REFRESH '))">
- <td class="refreshContainer">
- <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) refresh(); return false;" onclick="refresh()">
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- <img border="0" src="{'{$image_root}'}action_refresh.gif">
- <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- </img>
- </div>
- </td>
- </out:if>
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_SEARCH ') or contains($ui_black_list, ' CC_HEADER_MENU_search '))">
- <!-- We don't show top search box when in: search mode, navigating upfront, outside of the portal -->
- <xsl:if test="$compileMode = 'main' ">
- <!-- At run time, if we are running search or navigating Upf newsboxes then hide search -->
- <out:if test="not(/root/env/param[@name='search']) and not(/root/upfContent/*[local-name()='queryResponse'])">
- <out:variable name="render-indexsearch" select="$userCanUseIndexSearch and not($mvc-N-enabled and $mvc-remoteNav)"/>
- <out:variable name="render-cmsearch" select="(string(/root/generalConfigSettings/configuration/property[@name='portal.disablecmsearch']) != 'true') or ($mvc-N-enabled and $mvc-remoteNav)"/>
- <out:if test="$render-indexsearch or $render-cmsearch">
- <td class="dividerContainer">
- <div class="bannerDivider"/>
- </td>
- <td class="searchEditContainer">
- <out:variable name="method">
- <out:choose>
- <out:when test="$isXSSCheckingOn='true'">post</out:when>
- <out:otherwise>get</out:otherwise>
- </out:choose>
- </out:variable>
- <form action="{'{$gateway}'}/gosearch" name="mainISearchForm" method="{'{$method}'}" style="margin:0px">
- <input id="ps_banner_isearchfrm" type="hidden" name="csn.terms"/>
- <input type="hidden" name="backURL" value="{'{$back-url}'}"/>
- </form>
- <form name="mainSearchForm" method="{'{$method}'}" style="margin:0px">
- <input class="mainSearchEdit" type="text" name="stext" id="stext" value="" onkeypress="return searchKeyHandler(event);">
- <out:attribute name="title"><xts:string id="IDS_SEARCH_STRING_ALT"/></out:attribute>
- <out:if test="$isBidiEnabled = 'true'">
- <out:variable name="textDirection">
- <out:value-of select="xtsext:getBTD('', $baseTextDirection, $productLocale)"/>
- </out:variable>
- <out:attribute name="dir">
- <out:value-of select="$textDirection"/>
- </out:attribute>
- <out:if test="$baseTextDirection = 'auto'">
- <out:attribute name="onfocus">
- <out:text>bidi.onfocus(this)</out:text>
- </out:attribute>
- </out:if>
- </out:if>
- </input>
- <input type="hidden" name="sfield" value=""/>
- <input type="hidden" name="backURL" value="{'{$back-url}'}"/>
- <input type="hidden" name="search" value=""/>
- <input type="hidden" name="b_action" value="xts.run"/>
- <input type="hidden" name="m" value="{'{$app}'}/cc.xts"/>
- <!-- m_folder is required for cm searches so that the context of the search is within the folder just navigated to -->
- <input type="hidden" name="m_folder" value="{'{$folderID}'}"/>
- <input type="hidden" name="sscope" value="fb"/>
- </form>
- </td>
- <td class="searchIconContainer">
- <out:variable name="searchMenu">
- <flyout id="searchMenu" hasCheckbox="true" >
- <label><xts:string encode="javascript" id="IDS_BANNER_MENU_SEARCH"/></label>
- <items>
- <itemGroup id="findTextInMenuGroup">
- <xsl:if test="not(mt:fields) or mt:fields/mt:field='k'">
- <out:if test="$render-indexsearch">
- <item id="findTextInMenu_k" itemSelectedState="checked">
- <text><xts:string id="IDS_KEYWORD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_k");document.mainSearchForm.sfield.value = 'k';</action>
- </item>
- </out:if>
- </xsl:if>
- <out:if test="$render-cmsearch">
- <xsl:if test="not(mt:fields) or mt:fields/mt:field='n'">
- <item id="findTextInMenu_n">
- <out:if test="not($render-indexsearch)">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_NAME_FIELD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_n");document.mainSearchForm.sfield.value = 'n';</action>
- </item>
- </xsl:if>
- <xsl:if test="not(mt:fields) or mt:fields/mt:field='d'">
- <item id="findTextInMenu_d">
- <text><xts:string id="IDS_DESC_FIELD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_d");document.mainSearchForm.sfield.value = 'd';</action>
- </item>
- </xsl:if>
- <xsl:if test="not(mt:fields) or mt:fields/mt:field='nd'">
- <item id="findTextInMenu_nd">
- <text><xts:string id="IDS_NAME_DESC_FIELD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_nd");document.mainSearchForm.sfield.value = 'nd';</action>
- </item>
- </xsl:if>
- </out:if>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
- <div id="searchflyout_span" style="position:relative; z-index:12;">
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr>
- <td>
- <div nowrap="true" class="bannerOptionsButtonNormal" tabindex="0" role="button"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) search(); return false;" onclick="search()">
- <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
- <img id="bannerSearch" border="0" src="{'{$image_root}'}action_search.gif">
- <out:attribute name="alt"><xts:string id="IDS_SEARCH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
- </img>
- </div>
- </td>
- <td>
- <div class="bannerOptionsButtonNormal" tabindex="0" aria-haspopup="true" role="button"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'searchMenu');">
- <out:attribute name="title"><xts:string id="IDS_SEARCH_OPTIONS"/></out:attribute>
- <img name="searchMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif" >
- <out:attribute name="alt"><xts:string id="IDS_SEARCH_OPTIONS"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SEARCH_OPTIONS"/></out:attribute>
- </img>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$searchMenu"/>
- </out:with-param>
- <out:with-param name="controlID">searchflyout_span</out:with-param>
- </out:call-template>
- </td>
- </out:if>
- </out:if>
- </xsl:if>
- </out:if>
- <!-- Return -->
- <out:if test=" key('env-param', 'backURL') != '' and not(contains($ui_black_list, ' CC_HEADER_MENU_return '))">
- <td class="returnContainer">
- <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doReturn(); return false;" onclick="doReturn()">
- <out:attribute name="title"><xts:string id="IDS_RETURN"/></out:attribute>
- <img border="0" src="{'{$skin_shared_images}'}action_return.gif">
- <out:attribute name="alt"><xts:string id="IDS_RETURN"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_RETURN"/></out:attribute>
- </img>
- </div>
- </td>
- </out:if>
- <!-- Personal Options -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_PERSONAL '))">
- <out:variable name="psPersonal">
- <!-- prefs -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_PERSONAL_preferences ') or contains($ui_black_list, ' CC_HEADER_MENU_preferences '))">
- <item id="preferences">
- <text><xts:string id="IDS_TOOLS_PREFERENCES"/></text>
- <action>personalOptions('preferences')</action>
- </item>
- </out:if>
- </out:variable>
- <td class="personalOptionsContainer">
- <out:variable name="personalOptions">
- <flyout id="personalOptions" >
- <label><xts:string encode="javascript" id="IDS_BANNER_MENU_PERSONAL"/></label>
- <items>
- <out:copy-of select="$psPersonal"/>
- </items>
- </flyout>
- </out:variable>
- <!-- If there are personal options to show then show them -->
- <out:if test="$personalOptions/flyout/items/*">
- <div id="personalOptions_span" style="position:relative;z-index:12">
- <div class="bannerOptionsButtonNormal" tabindex="0" role="button" aria-haspopup="true"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'personalOptions');" onclick="return CCPopupMenu.dropDown(event,0,0,'personalOptions');">
- <out:attribute name="title"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr>
- <td style="padding-right:4px;">
- <img src="{'{$skin_shared_images}'}icon_my_area.gif">
- <out:attribute name="alt"><xts:string id="IDS_MY_AREA"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
- </img>
- </td>
- <td style="padding-right:4px;">
- <img name="toolsMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif">
- <out:attribute name="alt"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
- </img>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$personalOptions"/>
- </out:with-param>
- <out:with-param name="controlID">personalOptions_span</out:with-param>
- </out:call-template>
- </out:if>
- </td>
- </out:if>
- <!-- Launch -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_LAUNCH '))">
- <!-- build the apps list -->
- <out:variable name="WebApps">
- <!-- Planning Contributor -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_pc ')) and $userCanUsePlanningContributor">
- <item id="pc">
- <text><xts:string id="IDS_TOOLS_CONTRIBUTOR"/></text>
- <action>launchApp('PlanningContributor')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_contributor.gif')"/></icon>
- </item>
- </out:if>
- <!-- Controller Studio -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cs ')) and $userCanUseControllerStudio">
- <item id="cs">
- <text><xts:string id="IDS_TOOLS_CONTROLLER"/></text>
- <action>launchApp('Controller')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_controller.gif')"/></icon>
- </item>
- </out:if>
- <!-- MetricsManager Studio -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_mm ')) and $userCanUseMetricsManager">
- <item id="mm">
- <text><xts:string id="IDS_TOOLS_METRICSMANAGER"/></text>
- <action>launchApp('MetricsManager')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_metrics_manager.gif')"/></icon>
- </item>
- </out:if>
- </out:variable>
- <out:variable name="StudioApps">
- <!-- IBM Cognos Dashboard -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cbi ')) and $userCanUseDashboardViewer">
- <out:variable name="launchMode">
- <out:if test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
- <out:text/>, {"IBMCognosDashboard":"chromeless"}<out:text/>
- </out:if>
- </out:variable>
- <item id="icd">
- <text><xts:string id="IDS_TOOLS_ICD"/></text>
- <action>launchApp('IBMCognosDashboard'<out:value-of select="$launchMode"/>)</action>
- <icon><out:value-of select="concat($brand_images, 'tools_dashboard.gif')"/></icon>
- </item>
- </out:if>
- <!-- IBM Cognos Explorer -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cbia ')) and $userCanUseRS and $rsBIAProfile">
- <item id="ice">
- <text><xts:string id="IDS_TOOLS_ICE"/></text>
- <action>launchApp('IBMBusinessInsight')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_report_studio_bua.gif')"/></icon>
- </item>
- </out:if>
- <!-- Cognos Insight -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_ci ')) and $userCanUseCI">
- <item id="ci">
- <text><xts:string id="IDS_TOOLS_CI"/></text>
- <action>launchApp('IBMCognosInsight')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_cognos_insight.gif')"/></icon>
- </item>
- </out:if>
- <!-- Express Advisor -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_ev ')) and $userCanUseEV">
- <item id="ev">
- <text><xts:string id="IDS_TOOLS_EV"/></text>
- <action>launchApp('executiveViewer')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_analyzer.gif')"/></icon>
- </item>
- </out:if>
- <!-- Adaptive Analytics -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_aa ')) and $userCanUseAdaptiveAnalyticsAdministration">
- <item id="aa">
- <text><xts:string id="IDS_TOOLS_ANALYTICS"/></text>
- <action>launchApp('AdaptiveAnalytics')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_adaptive_analytics.gif')"/></icon>
- </item>
- </out:if>
- <!-- Query Studio -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_qs ')) and $userCanUseFullQS">
- <item id="qs">
- <text><xts:string id="IDS_TOOLS_QUERY"/></text>
- <action>launchApp('QueryStudio')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_query_studio.gif')"/></icon>
- </item>
- </out:if>
- <!-- PowerPlay Studio -->
- <out:if test="$userCanUsePPS and not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_pps '))">
- <item id="pps">
- <text><xts:string id="IDS_TOOLS_POWERPLAY"/></text>
- <action>launchApp('PowerPlayStudio')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_powerplay_studio.gif')"/></icon>
- </item>
- </out:if>
- <!-- Analysis Studio -->
- <out:if test="$userCanUseANS and not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_as '))">
- <item id="as">
- <text><xts:string id="IDS_TOOLS_ANALYSIS"/></text>
- <action>launchApp('AnalysisStudio')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_analysis_studio.gif')"/></icon>
- </item>
- </out:if>
- <!-- Report Studio Professional -->
- <out:if test="$userCanUseFullRS and $rsPROProfile and not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_rs '))">
- <item id="rspro">
- <text><xts:string id="IDS_TOOLS_REPORT"/></text>
- <action>launchApp('ReportStudioPro')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_report_studio.gif')"/></icon>
- </item>
- </out:if>
- <!-- Event Studio -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_es ')) and $userCanUseAGS">
- <item id="es">
- <text><xts:string id="IDS_TOOLS_AGENT"/></text>
- <action>launchApp('EventStudio')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_agent_studio.gif')"/></icon>
- </item>
- </out:if>
- <!-- Drill-through Definitions -->
- <xsl:if test="$compileMode != 'drillthrough'">
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_dt ')) and $userCanUseDrillThroughAssistant">
- <item id="dt">
- <text><xts:string id="IDS_TOOLS_DRILLPATH"/></text>
- <action>launchApp('DrillThrough')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_drill_through.gif')"/></icon>
- </item>
- </out:if>
- </xsl:if>
- </out:variable>
- <out:variable name="CustomApps">
- <!-- Support earlier IBM Cognos versions header customization in this menu -->
- <!-- Custom Apps -->
- <out:for-each select="key('system-param', 'ui_add')/CRN_HEADER_OPTIONS/item">
- <out:variable name="s" select="concat(' ', @show, ' ')"/>
- <out:if test="
- not(@show) or
- (contains($s , 'Administrators') and $isAdminUser) or
- (contains($s , 'QSUsers') and $userCanUseFullQS) or
- (contains($s , 'RSUsers') and $userCanUseFullRS) or
- (contains($s , 'Consumers') and $is-named='1') or
- (contains($s , 'Anonymous') and $is-named='0') or
- (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
- ">
- <item id="custom_tool1{'{position()}'}">
- <text><out:value-of select="label[lang($productLocale)]"/></text>
- <action>openURL('<out:value-of select="xtsext:javascriptencode(url)"/>', '<out:value-of select="target"/>');<out:value-of select="onclick"/></action>
- <icon><out:value-of select="concat($image_root, string(icon))"/></icon>
- </item>
- </out:if>
- </out:for-each>
- </out:variable>
- <out:variable name="AdminApps">
- <xsl:if test="$compileMode != 'main'">
- <!-- Cognos Connection -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cc '))">
- <item id="cc">
- <text><xts:string id="IDS_PORTAL"/></text>
- <action>launchApp('Portal')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_portal.gif')"/></icon>
- </item>
- </out:if>
- </xsl:if>
- <!-- Cognos Administration -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_ac ')) and $userCanUseAdminConsole">
- <item id="ac">
- <text><xts:string id="IDS_TOOLS_CA"/></text>
- <action>launchApp('Administration')</action>
- <icon><out:value-of select="concat($brand_images, 'tools_cognos_administration.gif')"/></icon>
- </item>
- </out:if>
- <!-- Backwards compatibility only!! - Support custom tools near the administration consol. -->
- <out:for-each select="key('system-param', 'ui_add')/CC_VIEW_TOOLS/item">
- <out:variable name="s" select="concat(' ', @show, ' ')"/>
- <out:if test="
- not(@show) or
- (contains($s , 'Administrators') and $isAdminUser) or
- (contains($s , 'QSUsers') and $userCanUseFullQS) or
- (contains($s , 'RSUsers') and $userCanUseFullRS) or
- (contains($s , 'Consumers') and $is-named='1') or
- (contains($s , 'Anonymous') and $is-named='0') or
- (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
- ">
- <item id="custom_tool2{'{position()}'}">
- <text><out:value-of select="label[lang($productLocale)]"/></text>
- <action>openURL('<out:value-of select="xtsext:javascriptencode(url)"/>','<out:value-of select="target"/>');<out:value-of select="onclick"/></action>
- <out:if test="icon">
- <icon><out:value-of select="concat($image_root, string(icon))"/></icon>
- </out:if>
- </item>
- </out:if>
- </out:for-each>
- </out:variable>
- <out:variable name="InterfaceApps">
- <out:choose>
- <out:when test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_lchp ')) and $userCanLaunchCollaborationTools and $hasLCHomepage">
- <!-- Lotus Connections Home page -->
- <item id="lchp">
- <text><xts:string id="IDS_LOTUSCONNECTIONS"/></text>
- <action>launchApp('ConnectionsHomepage')</action>
- <icon><out:value-of select="concat($brand_images, 'lotusconnections.gif')"/></icon>
- </item>
- </out:when>
- <out:when test="not(contains($ui_black_list, ' CRN_HEADER_PERSONAL_lca ')) and $userCanLaunchCollaborationTools and $hasLCActivities">
- <!-- Lotus Connections activities -->
- <item id="lca">
- <text><xts:string id="IDS_LOTUSCONNECTIONS"/></text>
- <action>launchApp('MyConnectionsActivities')</action>
- <icon><out:value-of select="concat($brand_images, 'lotusconnections.gif')"/></icon>
- </item>
- </out:when>
- </out:choose>
- </out:variable>
- <!-- Assemble the goto menu manifest -->
- <out:variable name="goto">
- <flyout id="goto" >
- <label><xts:string encode="javascript" id="IDS_BANNER_MENU_LAUNCH"/></label>
- <items>
- <out:copy-of select="$WebApps"/>
- <out:if test="$WebApps/* and ($StudioApps/* or $AdminApps/* or $CustomApps/*)">
- <item type="separator"/>
- </out:if>
- <out:copy-of select="$StudioApps"/>
- <out:if test="$AdminApps/* and ($WebApps/* or $StudioApps/*)">
- <item type="separator"/>
- </out:if>
- <out:copy-of select="$AdminApps"/>
- <out:if test="$CustomApps/* and ($WebApps/* or $StudioApps/* or $AdminApps/*)">
- <item type="separator"/>
- </out:if>
- <out:copy-of select="$CustomApps"/>
- <out:if test="$InterfaceApps/* and ($CustomApps/* or $WebApps/* or $StudioApps/* or $AdminApps/*)">
- <item type="separator"/>
- </out:if>
- <out:copy-of select="$InterfaceApps"/>
- </items>
- </flyout>
- </out:variable>
- </out:if>
- </xsl:if>
- <!-- help -->
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP ') or contains($ui_black_list, ' CC_HEADER_MENU_help '))">
- <out:variable name="helpMenuSet1">
- <item id="help">
- <text><xts:string id="IDS_HELP"/></text>
- <action>bannerHelp('help');</action>
- </item>
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP_moreDocs '))">
- <out:if test="$hasAdminCapability">
- <item id="moreDocs">
- <text><xts:string id="IDS_MORE_DOCUMENTATION"/></text>
- <action>bannerHelp('moreDocs');</action>
- </item>
- </out:if>
- </out:if>
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP_companyWebsite '))">
- <item id="companyWebsite">
- <text><xts:string id="IDS_COG_ON_WEB"/></text>
- <action>bannerHelp('companyWebsite');</action>
- </item>
- </out:if>
- </out:variable>
- <out:variable name="helpMenuSet3">
- <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP_about ') or contains($ui_black_list, ' CC_HEADER_MENU_about '))">
- <item id="about">
- <out:variable name="portalName"><xts:string id="IDS_PORTAL"/></out:variable>
- <text><xts:string id="IDS_ABOUT_PRODUCT"><xts:param name="prodName"><out:value-of select="$portalName"/></xts:param></xts:string></text>
- <action>bannerHelp('about');</action>
- </item>
- </out:if>
- </out:variable>
- <!-- Assemble the help menu manifest -->
- <out:variable name="helpMenu">
- <flyout id="helpMenu" >
- <label><xts:string encode="javascript" id="IDS_BANNER_MENU_HELP"/></label>
- <items>
- <out:copy-of select="$helpMenuSet1"/>
- <out:if test="$helpMenuSet1/* and ( $helpMenuSet3/*)">
- <item type="separator"/>
- </out:if>
- <out:copy-of select="$helpMenuSet3"/>
- </items>
- </flyout>
- </out:variable>
- <td class="helpContainer">
- <div id="helpMenu_span" style="position: relative;z-index:12;">
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr>
- <td>
- <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
- onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) bannerHelp('help'); return false;" onclick="bannerHelp('help')">
- <out:attribute name="title"><xts:string id="IDS_HELP"/></out:attribute>
- <img src="{'{$skin_shared_images}'}action_help.gif">
- <out:attribute name="alt"><xts:string id="IDS_HELP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_HELP"/></out:attribute>
- </img>
- </div>
- </td>
- <td>
- <div class="bannerOptionsButtonNormal" tabindex="0" role="button" aria-haspopup="true" onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'helpMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'helpMenu');">
- <out:attribute name="title"><xts:string id="IDS_HELP_OPTIONS"/></out:attribute>
- <img name="searchMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif" >
- <out:attribute name="alt"><xts:string id="IDS_HELP_OPTIONS"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_HELP_OPTIONS"/></out:attribute>
- </img>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$helpMenu"/>
- </out:with-param>
- <out:with-param name="controlID">helpMenu_span</out:with-param>
- </out:call-template>
- </td>
- </out:if>
- </out:if>
- </tr></table>
- </td>
- <td id="ibmLogo"></td>
- </tr>
- </table>
- <div class="headerBannerLip"></div>
- </div>
- </out:if>
- <xsl:call-template name="impersonateTenantHeader"/>
- </xsl:template>
- <!--
- Template - mt:h3:
- This template renders the third line of the main pages.
- Operation:
- Renders each of the tabs for main portal pages (Welcome,Public Folders,My Folders for main page) along with the tools
- available to the user (Directory,Capabilities,Schedule Management,Server Administration and Deployment) on the third line.
- -->
- <xsl:template match="mt:h3">
- <out:if test="not(contains($ui_black_list, ' CC_VIEW '))">
- <table class="mainHeader3" cellspacing="0" cellpadding="0" border="0" width="100%" role="presentation" style="clear:left;">
- <tr>
- <!-- Tab bar -->
- <out:choose>
- <!-- Skip showing the tab bar if it is supposed to be hidden -->
- <out:when test="not(contains($ui_black_list, ' CC_VIEW_TABS '))">
- <xsl:choose>
- <!-- Consumer UI tab bar - We handle this here instead of the source morphlet -->
- <xsl:when test="@mode = 'main'">
- <!-- Tab menu options -->
- <!-- Hide portal page options from users that cannot update their account (e.g. anonymous) -->
- <out:if test="key('session-param', 'write') = 'true' and not(contains($ui_black_list, ' CC_VIEW_TABS_OPTIONS '))">
- <td style="padding-left:2px;">
- <xsl:call-template name="buildTabMenuOptions"/>
- </td>
- </out:if>
- <out:choose>
- <!-- Single tab mode -->
- <out:when test="$isSingleTabRequest and not(/root/search)">
- <xsl:call-template name="renderSinglePageTab"/>
- </out:when>
- <!-- Normal tab mode -->
- <out:otherwise>
- <!-- Show Portal Tabs -->
- <xsl:call-template name="renderPersonalTabBar"/>
- </out:otherwise>
- </out:choose>
- </xsl:when>
- <!-- Administration -->
- <xsl:otherwise>
- <td valign="bottom">
- <xsl:apply-templates select="mt:tabs/child::node()"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </out:when>
- <!-- Tab bar is supposed to be hidden. Draw a line instead. -->
- <out:otherwise>
- <td width="100%" class="tabTail"> </td>
- </out:otherwise>
- </out:choose>
- </tr>
- </table>
- </out:if>
- </xsl:template>
- <!--
- Template - mt:h4:
- This template renders the fourth line of the main pages. The path and the toolbar buttons.
- -->
- <xsl:template match="mt:h4">
- <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR '))">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'">
- <table width="100%" cellspacing="0" style="padding-right:3px; padding-left:3px;" role="presentation" class="dialogBody">
- <tbody>
- <tr>
- <!-- Path -->
- <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_PATH '))">
- <td width="100%" nowrap="" style="padding-left: 10px;" class="dialogHeaderText">
- <xsl:apply-templates select="mt:path/child::node()"/>
- </td>
- </out:if>
- <!-- Toolbar buttons -->
- <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_BUTTONS '))">
- <td valign="middle" nowrap="" role="toolbar">
- <out:attribute name="aria-label"><xts:string id="IDS_TOOLBAR_COMMON"/></out:attribute>
- <xsl:apply-templates select="mt:toolbar"/>
- </td>
- </out:if>
- </tr>
- </tbody>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table width="100%" border="0" cellpadding="0" cellspacing="3" role="presentation" class="dialogBody">
- <tr>
- <!-- Path -->
- <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_PATH '))">
- <td valign="middle" width="100%" class="dialogHeaderText">
- <xsl:apply-templates select="mt:path/child::node()"/>
- </td>
- </out:if>
- <td width="100%">
- <img height="30" width="1" src="{'{$webcontent}'}/images/space.gif" alt=""/>
- </td>
- <!-- Toolbar buttons -->
- <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_BUTTONS '))">
- <td valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="3" role="presentation" class="dialogBody">
- <tr role="toolbar" >
- <out:attribute name="aria-label"><xts:string id="IDS_TOOLBAR_COMMON"/></out:attribute>
- <xsl:apply-templates select="mt:toolbar"/>
- </tr>
- </table>
- </td>
- </out:if>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </out:if>
- <xsl:if test ="@jumpToMain != 'false' ">
- <div id="maincontent">
- <out:attribute name="aria-label"><xts:string id="IDS_SECTION508_CONTENT"/></out:attribute>
- </div>
- </xsl:if>
- </xsl:template>
- <xsl:template name="impersonateTenantHeader">
- <out:if test="key('session-param', 'e_isImpersonating')='true'">
- <out:variable name="readingAs">
- </out:variable>
- <link id="themeStyles" rel="stylesheet" href="{{$webRoot}}/dojo16/dijit/themes/tundra/tundra.css" />
- <link id="themeStyles" rel="stylesheet" href="{{$webRoot}}/ps/portal/js/impersonate.css" />
- <script src="{{$webRoot}}/dojo16/dojo/dojo.js"/>
- <script src="{{$webRoot}}/ps/portal/js/impersonateTenant.js"/>
- <script type="text/javascript">
- var impersonateTenant;
- dojo.addOnLoad(function() {
- var context = {
- onChange : doImpersonateTenant,
- <out:if test="boolean(key('session-param', 'e_readTenantID'))">
- readAs : '<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_readTenantID')))"/>',
- </out:if>
- writeAs : '<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_writeTenantID')))"/>',
- listSize : '<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'linesPerPage')))"/>'
- }
- impersonateTenant = new impersonateTenantSelector(context);
- var bannerDivEl = dojo.byId('impersonateBanner');
- if (bannerDivEl != null){
- bannerDivEl.style.display="table";
- bannerDivEl.style.width="100%";
- }
- });
- </script>
- <div class="impersonate impersonate-banner" id="impersonateBanner">
- <table class="impersonate" id="_THIS_impersonateTenantBannerTable" cellpadding="0" cellspacing="0" border="0" role="banner">
- <tr>
- <td class="impersonate-icon">
- <img src="{{$webcontent}}/portal/images/mt/impersonate_icon_banner.gif" alt=""/>
- </td>
- <td class="headerTitle">
- <text><xts:string id="IDS_TENANT_IMPERSONATION"/></text>
- </td>
- <td class="impersonate cogstyle-header-section userNameContainer">
- <label for="impersonatedTenant" style="position: absolute;margin-left: -9999px; margin-top: -9999px;"><xts:string id="IDS_PROP_TENANT_NAME"/></label>
- <input name="impersonatedTenant" id="impersonatedTenant" style="display:none"/>
- </td>
- <td class="cogstyle-header-section userNameContainer">
- <input id="showTenantContentOnly" onclick="doImpersonateTenant(this.checked ? 'read' : 'write',impersonateTenant.filteringSelect.item.id);" style="display:none">
- <label for="showTenantContentOnly" class="impersonate-show-tenants-content-only-text"><xts:string id="IDS_IMPERSONATE_TENANT_SHOW_TENANTS_CONTENT_ONLY"/></label>
- </input>
- </td>
- <td class="cogstyle-header-middle-section"/>
- <td class="cogstyle-header-right-section">
- <out:variable name="close"><xts:string id="IDS_CLOSE"/></out:variable>
- <img class="dialogClose" width="25px" height="25px" alt="{{$close}}" title="{{$close}}" src="{{$webcontent}}/portal/images/mt/close_icon.gif" role="button" onmouseout="this.className = 'dialogClose'" onmouseover="this.className = 'dialogCloseOver'" onclick="doImpersonateTenant('cancel','');"/>
- </td>
- </tr>
- </table>
- </div>
- </out:if>
- </xsl:template>
- <!-- Consumer portal tab menu options -->
- <xsl:template name="buildTabMenuOptions">
- <out:variable name="pageMenu">
- <flyout id="TabsMenu" >
- <label><xts:string encode="javascript" id="IDS_MENU_PAGE"/></label>
- <items>
- <out:if test="not($isSingleTabRequest)">
- <item id="addTab">
- <text><xts:string id="IDS_PAGE_MENU_ADD_PAGE"/></text>
- <action>pageCmd('add');</action>
- </item>
- </out:if>
- <out:if test="$canAddPageToPortal">
- <item id="addToMyPages">
- <text><xts:string id="IDS_PAGE_MENU_ADD_TO_PAGES"/></text>
- <action>pageCmd('addToMyPages');</action>
- </item>
- </out:if>
- <out:if test="$isPersonalPortalPage">
- <item id="removeTab">
- <text><xts:string id="IDS_PAGE_MENU_REMOVE_PAGE"/></text>
- <action>pageCmd('remove');</action>
- </item>
- </out:if>
- <out:if test="count($portalPages/*) > 1 and not($isSingleTabRequest)">
- <item id="resequenceTabs">
- <text><xts:string id="IDS_PAGE_MENU_MODIFY_SEQUENCE"/></text>
- <action>pageCmd('resequence');</action>
- </item>
- </out:if>
- <out:if test="$canEditPage">
- <item id="editPage">
- <text><xts:string id="IDS_PAGE_MENU_EDIT_PAGE"/></text>
- <action>pageCmd('edit');</action>
- </item>
- </out:if>
- <out:if test="$isSingleTabRequest">
- <item id="myPortal">
- <text><xts:string id="IDS_PAGE_MENU_MY_PAGES"/></text>
- <action>pageCmd('myPortal');</action>
- </item>
- </out:if>
- </items>
- </flyout>
- </out:variable>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$pageMenu"/>
- </out:with-param>
- <out:with-param name="controlID">tabscontroldiv</out:with-param>
- </out:call-template>
- <!-- <div class="tabMenuButtonNormal" style="position: relative; cursor:pointer;z-index:15;" onmouseover="this.className='tabMenuButtonOver'" onmouseout="this.className='tabMenuButtonNormal'"> -->
- <div class="tabMenuButtonNormal" style="position: relative; cursor:pointer;z-index:15;top: 3px" >
- <div id="tabscontroldiv" tabindex="0" role="button" aria-haspopup="true" onkeypress="return CCPopupMenu.dropDown(event,0,0,'TabsMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'TabsMenu');" onmouseover="this.parentNode.className='tabMenuButtonOver'" onmouseout="this.parentNode.className='tabMenuButtonNormal'">
- <span style="cursor:pointer; position:relative;">
- <img style="vertical-align: absmiddle; " name="pageMenu_imgFlyControl" src="{'{$skin_images}'}page_menu.gif" >
- <out:attribute name="alt"><xts:string id="IDS_PAGE_MENU_TOOLTIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PAGE_MENU_TOOLTIP"/></out:attribute>
- </img>
- </span>
- </div>
- </div>
- </xsl:template>
- <!-- Single tab view -->
- <xsl:template name="renderSinglePageTab">
- <out:if test="true()">
- <out:variable name="collapsedAltText"><xts:string id="IDS_COLLAPSED_TABS"/></out:variable>
- <td style="padding-left:3px;"><img src="{'{$skin_images}'}icon_collapsed_tabs.gif" alt="{'{$collapsedAltText}'}"/></td>
- </out:if>
- <td style="padding-left:10px;padding-right:10px;">
- <div style="height:15px;" class="ccOptionsDivider"/>
- </td>
- <td valign="bottom" width="100%" style="padding-right:5px;padding-left:2px;">
- <table role="presentation" style="padding-bottom:2px;" border="0" width="100%" cellpadding="0" cellspacing="0" class="singlePageDisplayHeader">
- <tr>
- <td align="left" nowrap="nowrap" class="singlePageName">
- <out:call-template name="genWarningSigns">
- <out:with-param name="pageProp" select="$pageProperties/*"/>
- </out:call-template>
- <out:call-template name="genTabLable">
- <out:with-param name="CMClass" select="$pageClass"/>
- <out:with-param name="CMName" select="$pageName"/>
- </out:call-template>
- </td>
- <td width="100%" class="formText" nowrap="nowrap" style="text-align:right;">
- <out:if test="$canAddPageToPortal">
- <a href="javascript:pageCmd('addToMyPages')"><xts:string id="IDS_PAGE_MENU_ADD_TO_PAGES"/></a>
- </out:if>
-   
- <out:choose>
- <out:when test="key('env-param', 'backURL') != ''">
- <a href="{'{key("env-param", "backURL")}'}"><xts:string id="IDS_PAGE_MENU_MY_PAGES"/></a>
- </out:when>
- <out:otherwise>
- <a href="javascript:defaultPortalView()"><xts:string id="IDS_PAGE_MENU_MY_PAGES"/></a>
- </out:otherwise>
- </out:choose>
- </td>
- </tr>
- </table>
- </td>
- </xsl:template>
- <!-- Personal tab bar -->
- <xsl:template name="renderPersonalTabBar">
- <!-- build the tab XML -->
- <out:variable name="tabs">
- <out:for-each select="$portalPages/*">
- <!-- Build the tab label -->
- <out:variable name="tabLabel">
- <out:call-template name="genTabLable">
- <out:with-param name="CMClass" select="cm:objectClass"/>
- <out:with-param name="CMName" select="cm:defaultName"/>
- </out:call-template>
- </out:variable>
- <!-- Build warning if there is any -->
- <out:variable name="warning">
- <out:call-template name="genWarningSigns">
- <out:with-param name="pageProp" select="."/>
- </out:call-template>
- </out:variable>
- <tab>
- <out:choose>
- <out:when test="cm:storeID = $pageID">
- <out:attribute name="selected">true</out:attribute>
- <out:copy-of select="$warning"/>
- <out:value-of select="$tabLabel"/>
- </out:when>
- <out:otherwise>
- <!-- Show any warnings -->
- <out:copy-of select="$warning"/>
- <!-- Render the link -->
- <a class="tabAnchor" role="presentation">
- <out:attribute name="href">
- <out:call-template name="genTabURL">
- <out:with-param name="pageID" select="cm:storeID"/>
- <out:with-param name="pageClass" select="cm:objectClass"/>
- </out:call-template>
- </out:attribute>
- <out:value-of select="$tabLabel"/>
- </a>
- </out:otherwise>
- </out:choose>
- </tab>
- </out:for-each>
- </out:variable>
- <!-- Render the tab bar -->
- <td valign="bottom" width="100%" style="padding-left:2px;">
- <out:call-template name="renderTabs">
- <out:with-param name="tabs" select="$tabs"/>
- <out:with-param name="scroll" select="true()"/>
- </out:call-template>
- </td>
- </xsl:template>
- <!--
- Template - mt:toolbar:
- -->
- <xsl:template match="mt:toolbar">
- <script language="javascript">
- var frmCmdForm = "<out:value-of select="$cmd-form"/>";
- var frmEditForm = "<out:value-of select="$edit-form"/>";
- var defaultPrefix = "checkbox_";
- <!-- common functions for "Edit" tools -->
- var sDelimiter = "<out:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d1))"/>"; <!-- used to delimit entries -->
- <xsl:choose>
- <xsl:when test="@cogadmin='true'">
- var toolbarImageNormal = "toolbarImageNormal2";
- </xsl:when>
- <xsl:otherwise>
- var toolbarImageNormal = "toolbarImageNormal";
- </xsl:otherwise>
- </xsl:choose>
- <![CDATA[
- //<!-- change the images for the toolbar during a mouseover -->
- function mouseoverImage(item)
- {
- if (item.className == toolbarImageNormal)
- item.className = 'toolbarImageOver';
- if (item.className == 'toolbarImagePressed')
- item.className = 'toolbarImageOverPressed';
- }
- //<!-- change the images for the toolbar during a mouseout -->
- function mouseoutImage(item)
- {
- if (item.className == 'toolbarImageOver')
- item.className = toolbarImageNormal;
- if (item.className == 'toolbarImageOverPressed')
- item.className = 'toolbarImagePressed';
- }
- //<!-- Determines if the total number of selected entries exceeds a given limit. Returns true if the limit is exceeded, false if it is not. -->
- function isOverItemsLimit(limit)
- {
- //<!-- Don't bother doing any check if the limit passed in is bogus (none integer)-->
- if (isNaN(limit) || (limit < 0) || (Math.floor(limit) < limit) )
- return false;
- var bLimitExceeded = false;
- var items = document.forms[frmEditForm].elements.length;
- var counter = 0;
- for (var i=0; i<items; i++)
- {
- if (document.forms[frmEditForm].elements[i].name.substring(0,9) == "checkbox_" && document.forms[frmEditForm].elements[i].checked)
- {
- counter++;
- if (counter > limit)
- {
- bLimitExceeded = true;
- break;
- }
- }
- }
- return bLimitExceeded;
- }
- ]]>
- function doNew(newClass, classSubtype)
- {
- if (newClass == 'dashboard')
- {
- <xsl:choose>
- <xsl:when test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
- if(window.cognosLaunchInWindow)
- {
- var winProp="menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes";
- cognosLaunchInWindow('_blank', 'winProp', 'ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'new');
- }
- </xsl:when>
- <xsl:otherwise>
- if(window.directLaunch)
- { var uierrURL = "<xsl:value-of select="/root/system/param[@name='COGNOSHome']"/>";
- var uiencoding = "<xsl:value-of select="/root/env/param[@name='encoding']"/>";
- directLaunch('ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'new','ui.errURL', uierrURL, 'ui.encoding', uiencoding);
- }
- </xsl:otherwise>
- </xsl:choose>
- return;
- }
- if (newClass == 'pagelet' && document.forms[frmCmdForm].m_path.value == '')
- {
- document.forms[frmCmdForm].m_path.value = "<out:value-of select="xtsext:javascriptencode(key('session-param', 'e_mrootpath'))"/>";
- }
- document.forms[frmCmdForm].m.value = "<out:value-of select="$app"/>/new_general.xts";
- document.forms[frmCmdForm].m_new_class.value = newClass;
- if (classSubtype)
- document.forms[frmCmdForm].m_classSubtype.value = classSubtype;
- document.forms[frmCmdForm].backURL.value= "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmCmdForm].submit();
- }
- </script>
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/list.js"></script>
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="mt:tool-group">
- <xsl:variable name="hideDivider"><xsl:value-of select="string(@hideDivider)"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'">
- <style>
- .toolbarImageNormal2 {
- padding-left: 3px;
- padding-right: 3px;
- cursor: pointer;
- }
- .toolbarImageUnavailable2 {
- padding-left: 3px;
- padding-right: 3px;
- }
- </style>
- <xsl:apply-templates />
- <xsl:if test="@lastgroup != 'true'">
- <td valign="middle"><img style="padding-left: 3px; padding-right: 3px;" alt="" src="{'{$webcontent}/cogadmin/images/divider.gif'}" /></td>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$hideDivider='true'">
- <td style="padding-left:5px;"/>
- </xsl:when>
- <xsl:otherwise>
- <td class="toolbarDividerContainer"><div class="toolbarDivider"/></td>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- Toolbar buttons -->
- <xsl:template match="mt:tool[not(@name)]">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="button">
- <xsl:apply-templates/>
- </td>
- </xsl:template>
- <!-- New -->
- <xsl:template match="mt:tool[@name='new']">
- <xsl:variable name="image">
- <xsl:choose>
- <xsl:when test="@new-class = 'folder' or @new-class='subscriptionFolder'">
- <xsl:choose>
- <xsl:when test="not(string(@disable) = 'true')">action_new_folder.gif</xsl:when>
- <xsl:otherwise>action_new_folder_dis.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'pagelet'">action_new_page.gif</xsl:when>
- <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance'">action_new_cognos_content.gif</xsl:when> <!-- MVC -->
- <xsl:when test="@new-class = 'namespaceFolder'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_folder_dis.gif</xsl:when>
- <xsl:otherwise>action_new_folder.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'adminFolder'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_folder_dis.gif</xsl:when>
- <xsl:otherwise>action_new_folder.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'portletFolder'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_folder_dis.gif</xsl:when>
- <xsl:otherwise>action_new_folder_dis.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'contentTask'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_content_task_drop_arrow_dis.gif</xsl:when>
- <xsl:otherwise>action_new_content_task_drop_arrow.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'indexUpdateTask'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_index_update_dis.gif</xsl:when>
- <xsl:otherwise>action_new_index_update.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'URL'">action_new_url.gif</xsl:when>
- <xsl:when test="@new-class = 'dataSource'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_datasource_dis.gif</xsl:when>
- <xsl:otherwise>action_new_data_source.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'dataSourceConnection'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_connection_dis.gif</xsl:when>
- <xsl:otherwise>action_new_connection.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'dataSourceSignon'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_signon_dis.gif</xsl:when>
- <xsl:otherwise>action_new_signon.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'role'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_role_dis.gif</xsl:when>
- <xsl:otherwise>action_new_role.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'group'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_group_dis.gif</xsl:when>
- <xsl:otherwise>action_new_group.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'jobDefinition'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_job_dis.gif</xsl:when>
- <xsl:otherwise>action_new_job.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'configurationFolder'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_configuration_folder_dis.gif</xsl:when>
- <xsl:otherwise>action_new_folder.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'contact'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_contact_dis.gif</xsl:when>
- <xsl:otherwise>action_new_contact.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'distributionList'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_distribution_list_dis.gif</xsl:when>
- <xsl:otherwise>action_new_distribution_list.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'printer'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_printer_dis.gif</xsl:when>
- <xsl:otherwise>action_new_printer.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'metricsIntegrationTaskGroup'">action_new_data_integration_drop_arrow.gif</xsl:when>
- <xsl:when test="@new-class = 'metricsPackage'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_metrics_package_dis.gif</xsl:when>
- <xsl:otherwise>action_new_metrics_package.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'drillPath'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_drill_through_dis.gif</xsl:when>
- <xsl:otherwise>action_new_drill_through.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'portalSkin'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_style_wizard_dis.gif</xsl:when>
- <xsl:otherwise>action_new_style_wizard.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@new-class = 'dashboard'">action_new_dashboard.gif</xsl:when>
- <xsl:when test="@new-class = 'self-service-package'">action_new_package.gif</xsl:when>
- <xsl:when test="@new-class = 'queryServiceTask'">
- <xsl:choose>
- <xsl:when test="string(@disable) = 'true'">action_new_queryServiceTask_dis.gif</xsl:when>
- <xsl:otherwise>action_new_queryServiceTask.gif</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="alt-id">
- <xsl:choose>
- <xsl:when test="@new-class = 'adminFolder' or @new-class = 'folder' or @new-class = 'namespaceFolder' or @new-class = 'portletFolder' or @new-class = 'subscriptionFolder'">IDS_NEW_FOLDER</xsl:when>
- <xsl:when test="@new-class = 'pagelet'">IDS_NEW_PAGELET</xsl:when>
- <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance' and @context = 'Personal'">IDS_NEW_MVC_LAUNCHABLE_MYFOLDER</xsl:when> <!-- MVC -->
- <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance'">IDS_NEW_MVC_LAUNCHABLE</xsl:when> <!-- MVC -->
- <xsl:when test="@new-class = 'printer'">IDS_NEW_PRINTER_TIP</xsl:when>
- <xsl:when test="@new-class = 'contentTask'">IDS_MAIN_NEW_CONTENT_TASK</xsl:when>
- <xsl:when test="@new-class = 'indexUpdateTask'">IDS_MAIN_NEW_INDEX_UPDATE_TASK</xsl:when>
- <xsl:when test="@new-class = 'URL'">IDS_NEW_SHORTCUT_TO_URL</xsl:when>
- <xsl:when test="@new-class = 'dataSource'">IDS_NEW_DATA_SOURCE</xsl:when>
- <xsl:when test="@new-class = 'dataSourceConnection'">IDS_NEW_CONNECTION</xsl:when>
- <xsl:when test="@new-class = 'dataSourceSignon'">IDS_NEW_SIGNON</xsl:when>
- <xsl:when test="@new-class = 'role'">IDS_NEW_COGNOS_ROLE</xsl:when>
- <xsl:when test="@new-class = 'group'">IDS_NEW_COGNOS_GROUP</xsl:when>
- <xsl:when test="@new-class = 'jobDefinition'">IDS_NEW_JOB</xsl:when>
- <xsl:when test="@new-class = 'configurationFolder'">IDS_NEW_CONFIGURATION_FOLDER</xsl:when>
- <xsl:when test="@new-class = 'contact'">IDS_NEW_CONTACT</xsl:when>
- <xsl:when test="@new-class = 'distributionList'">IDS_NEW_DISTRIBUTION_LIST</xsl:when>
- <xsl:when test="@new-class = 'metricsIntegrationTaskGroup'">IDS_METRICS_INTEGRATION_TASK_GROUP_TIP</xsl:when>
- <xsl:when test="@new-class = 'metricsPackage'">IDS_NEW_METRICS_PACKAGE_TIP</xsl:when>
- <xsl:when test="@new-class = 'drillPath'">IDS_NEW_DRILLPATH</xsl:when>
- <xsl:when test="@new-class = 'portalSkin'">IDS_NEW_PORTALSKIN</xsl:when>
- <xsl:when test="@new-class = 'dashboard'">IDS_NEW_DASHBOARD</xsl:when>
- <xsl:when test="@new-class = 'self-service-package'">IDS_NEW_PACKAGE</xsl:when>
- <xsl:when test="@new-class = 'queryServiceTask'">IDS_NEW_QUERYSERVICETASK</xsl:when>
- </xsl:choose>
- </xsl:variable>
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_new{@new-class}'))">
- <xsl:choose>
- <xsl:when test="@new-class='self-service-package'">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" class="toolbarImageNormal" role="presentation">
- <script language="javascript">
- <out:attribute name="src"><out:value-of select="$webcontent"/><out:value-of select="concat('/',$app)"/><xsl:value-of select="'/js/utilities.js'"/></out:attribute>
- </script>
- <script language="JavaScript">
- function createSelfServicePackage()
- {
- var curDoc = document.<out:value-of select="$cmd-form"/>;
- if (curDoc)
- {
- setFormInputElement('so.select','selfServicePackage','hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('so.backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('so.return.m','<out:value-of select="$app"/>/new_package.xts','hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('from_CC','true','hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('m_selfServicePackageLocation','','hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('m_new_class','package','hidden','<out:value-of select="$cmd-form"/>');
- curDoc.m.value = "<out:value-of select="$app"/>/select/select.xts";
- window.setTimeout( "document.<out:value-of select="$cmd-form"/>.submit();" , 1 );
- }
- }
- </script>
- <a role="button" tabindex="0" href="javascript:createSelfServicePackage()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) createSelfServicePackage(); return false;">
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
- <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- </img>
- </a>
- </td>
- </xsl:when>
- <xsl:when test="@new-class='contentTask' and @disable!='true'">
- <script language="JavaScript">
- function newContentTask(cmd)
- {
- document.forms[frmCmdForm].contentTaskType.value = cmd;
- doNew('contentTask');
- }
- </script>
- <out:variable name="isECMFeatureInstalled" select="count(/root/installedComponents/configuration/property[@name='installedComponents']/component[string(.)='repositoryIntegration']) >= 1"/>
- <out:variable name="contentTaskMenu">
- <flyout id="contentTask" >
- <label><xts:string encode="javascript" id="IDS_MENU_CONTENTTASK"/></label>
- <items>
- <item id="consistency">
- <text><xts:string id="IDS_CONTENT_TASK_NEW_CONSISTENCY"/></text>
- <action>newContentTask("consistency");</action>
- </item>
- <item id="reportUpgrade">
- <text><xts:string id="IDS_CONTENT_TASK_NEW_REPORT_UPGRADE"/></text>
- <action>newContentTask("reportUpgrade");</action>
- </item>
- <item id="contentRemoval">
- <text><xts:string id="IDS_CONTENT_TASK_NEW_CONTENTREMOVAL"/></text>
- <action>newContentTask("contentRemoval");</action>
- </item>
- <out:if test="$isECMFeatureInstalled">
- <item id="retentionRuleUpdate">
- <text><xts:string id="IDS_CONTENT_TASK_NEW_RETENTION_RULE_UPDATE"/></text>
- <action>newContentTask("retentionRuleUpdate");</action>
- </item>
- <item id="contentArchival">
- <text><xts:string id="IDS_CONTENT_TASK_NEW_CONTENTARCHIVAL"/></text>
- <action>newContentTask("contentArchival");</action>
- </item>
- </out:if>
- </items>
- </flyout>
- </out:variable>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$contentTaskMenu"/>
- </out:with-param>
- <out:with-param name="controlID">contentTaskMenu_td</out:with-param>
- </out:call-template>
- <out:variable name="altText"><xts:string id="{$alt-id}"/></out:variable>
- <td class="toolbarFlyoutNormal" onmouseover="this.className='toolbarFlyoutOver'" onmouseout="this.className='toolbarFlyoutNormal'" height="20" role="presentation">
- <div style="position: relative; cursor:pointer;z-index:9;" id="contentTaskMenu_td">
- <div tabindex="0" onkeypress="return CCPopupMenu.dropDown(event,0,0,'contentTask');" onclick="return CCPopupMenu.dropDown(event,0,0,'contentTask');" role="button" aria-haspopup="true">
- <span style="cursor:pointer; position:relative;">
- <img style="vertical-align: absmiddle; " name="contentTaskMenu_imgFlyControl" src="{'{$image_root}'}{$image}" title="{'{$altText}'}" alt="{'{$altText}'}"/>
- </span>
- </div>
- </div>
- </td>
- </xsl:when>
- <xsl:when test="@new-class='metricsIntegrationTaskGroup'">
- <script language="javascript">
- <out:attribute name="src"><out:value-of select="$webcontent"/><out:value-of select="concat('/',$app)"/><xsl:value-of select="'/js/utilities.js'"/></out:attribute>
- </script>
- <script language="JavaScript">
- function createMetricTask(sReportType, location, pkg)
- {
- if(sReportType!='metricsFileImportTask' && sReportType!='metricsMaintenanceTask' && sReportType!='metricsExportTask')
- return;
- var curDoc = document.<out:value-of select="$cmd-form"/>;
- if (curDoc)
- {
- setFormInputElement('so.select','newmetricstaskspackage','hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('so.backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('so.return.m','<out:value-of select="$app"/>/new_general.xts','hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('so.defaultObject',pkg,'hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('so.defaultLocation',location,'hidden','<out:value-of select="$cmd-form"/>');
- setFormInputElement('m_new_class',sReportType,'hidden','<out:value-of select="$cmd-form"/>');
- curDoc.m.value = "<out:value-of select="$app"/>/newMetricsTasks/processNewTasks.xts";
- <out:variable name="javatarget2">
- <out:choose>
- <out:when test="/root/env/param[@name='wtarget'] = 'top'">_top</out:when>
- <out:when test="/root/env/param[@name='wtarget'] = 'parent'">_parent</out:when>
- <out:when test="/root/env/param[@name='wtarget'] = 'blank'">_blank</out:when>
- <out:when test="/root/env/param[@name='wtarget'] = 'self'">_self</out:when>
- </out:choose>
- </out:variable>
- <out:if test="$javatarget2 != ''">
- curDoc.target= "<out:value-of select="$javatarget2"/>";
- </out:if>
- window.setTimeout( "document.<out:value-of select="$cmd-form"/>.submit();" , 1 );
- }
- }
- function newMetricsTask(cmd)
- {
- switch (cmd)
- {
- case 'NewMetricsFileImport':
- createMetricTask('metricsFileImportTask', '<out:value-of select="xtsext:javascriptencode(string($location))"/>', '<out:value-of select="xtsext:javascriptencode(string($pkg))"/>');
- break;
- case 'NewMetricsMaintenance':
- createMetricTask('metricsMaintenanceTask', '<out:value-of select="xtsext:javascriptencode(string($location))"/>', '<out:value-of select="xtsext:javascriptencode(string($pkg))"/>');
- break;
- case 'NewMetricsExport':
- createMetricTask('metricsExportTask', '<out:value-of select="xtsext:javascriptencode(string($location))"/>', '<out:value-of select="xtsext:javascriptencode(string($pkg))"/>');
- break;
- }
- }
- </script>
- <out:variable name="metricsIntegrationTaskMenu">
- <flyout id="metricsIntegrationTaskMenu" >
- <label><xts:string encode="javascript" id="IDS_MENU_METRICSTASK"/></label>
- <items>
- <item id="NewMetricsFileImport">
- <text><xts:string id="IDS_NEW_METRICS_MENU_FILE_IMPORT"/></text>
- <action>newMetricsTask("NewMetricsFileImport");</action>
- </item>
- <item id="NewMetricsMaintenance">
- <text><xts:string id="IDS_NEW_METRICS_MENU_MAINTENANCE"/></text>
- <action>newMetricsTask("NewMetricsMaintenance");</action>
- </item>
- <item id="NewMetricsExport">
- <text><xts:string id="IDS_NEW_METRICS_MENU_EXPORT"/></text>
- <action>newMetricsTask("NewMetricsExport");</action>
- </item>
- </items>
- </flyout>
- </out:variable>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$metricsIntegrationTaskMenu"/>
- </out:with-param>
- <out:with-param name="controlID">metricsIntegrationTaskHomeMenu_span</out:with-param>
- </out:call-template>
- <out:variable name="altText"><xts:string id="{$alt-id}"/></out:variable>
- <td class="toolbarFlyoutNormal" onmouseover="this.className='toolbarFlyoutOver'" onmouseout="this.className='toolbarFlyoutNormal'" role="presentation">
- <div style="position: relative; cursor:pointer;z-index:10;" id="metricsIntegrationTaskHomeMenu_span">
- <div tabindex="0" onkeypress="return CCPopupMenu.dropDown(event,0,0,'metricsIntegrationTaskMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'metricsIntegrationTaskMenu');" role="button" aria-haspopup="true">
- <span style="cursor:pointer; position:relative;">
- <img style="vertical-align: absmiddle; " name="metricsIntegrationTaskHomeMenu_imgFlyControl" src="{'{$image_root}'}{$image}" title="{'{$altText}'}" alt="{'{$altText}'}"/>
- </span>
- </div>
- </div>
- </td>
- </xsl:when>
- <xsl:when test="@new-class='queryServiceTask' and @disable!='true'">
- <out:variable name="queryServiceTaskMenu">
- <flyout id="queryServiceTask" >
- <label><xts:string encode="javascript" id="IDS_MENU_QUERYSERVICESTASK"/></label>
- <items>
- <item id="DMR">
- <text><xts:string id="IDS_QUERYSERVICETASK_NEW_DMR"/></text>
- <action>doNew('<xsl:value-of select="@new-class"/>','DMR');</action>
- </item>
- <item id="ESSBASE">
- <text><xts:string id="IDS_QUERYSERVICETASK_NEW_ESSBASE"/></text>
- <action>doNew('<xsl:value-of select="@new-class"/>','ESSBASE');</action>
- </item>
- <item id="ROLAP">
- <text><xts:string id="IDS_QUERYSERVICETASK_NEW_ROLAP"/></text>
- <action>doNew('<xsl:value-of select="@new-class"/>','ROLAP');</action>
- </item>
- <item id="SAPBW">
- <text><xts:string id="IDS_QUERYSERVICETASK_NEW_SAPBW"/></text>
- <action>doNew('<xsl:value-of select="@new-class"/>','SAPBW');</action>
- </item>
- </items>
- </flyout>
- </out:variable>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$queryServiceTaskMenu"/>
- </out:with-param>
- <out:with-param name="controlID">queryServiceTask_div</out:with-param>
- </out:call-template>
- <out:variable name="altText"><xts:string id="{$alt-id}"/></out:variable>
- <td class="toolbarFlyoutNormal" onmouseover="this.className='toolbarFlyoutOver'" onmouseout="this.className='toolbarFlyoutNormal'" height="20" role="presentation">
- <div style="position: relative; cursor:pointer;z-index:10;" id="queryServiceTask_div">
- <div tabindex="0" onkeypress="return CCPopupMenu.dropDown(event,0,0,'queryServiceTask');" onclick="return CCPopupMenu.dropDown(event,0,0,'queryServiceTask');" role="button" aria-haspopup="true">
- <span style="cursor:pointer; position:relative;">
- <img style="vertical-align: absmiddle; " name="queryServiceTaskMenu_imgFlyControl" src="{'{$image_root}'}{$image}" title="{'{$altText}'}" alt="{'{$altText}'}"/>
- </span>
- </div>
- </div>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="@new-class='metricsPackage' and @disable != 'true'">
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>
- <out:text/>?b_action=mms.run&pid=new_mpwizard_start<out:text/>
- <out:if test="$cafContextIDCMM != ''">
- <out:text/>&ui.cafcontextid=<out:value-of select="$cafContextIDCMM"/><out:text/>
- </out:if>
- <out:text/>&ui.backURL=<out:value-of select="$encoded-back-url"/><out:text/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
- <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance' and @context = 'Personal'">
- <a role="button" tabindex="0" href="javascript:mvcShowPersonalRCRDialog()">
- <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
- <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@disable = 'true' and contains('portalSkin metricsPackage contentTask queryServiceTask indexUpdateTask adminFolder jobDefinition dataSourceConnection dataSource dataSourceSignon group role printer namespaceFolder contact distributionList drillPath configurationFolder', string(@new-class))">
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
- <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- </img>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <a role="button" tabindex="0" href="javascript:doNew('{@new-class}','{@class-subType}')" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doNew('{@new-class}','{@class-subType}'); return false;">
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
- <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
- <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
- </img>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </out:if>
- </xsl:template>
- <!-- New Import (Special case. Does not use the common "New" template) -->
- <xsl:template match="mt:tool[@name='import']">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <xsl:choose>
- <xsl:when test="@disable ='true'">
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_new_import_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
- </img>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/><out:value-of select="'/new_deployment2.xts'"/>
- <out:text/>&m_class=importDeployment&m_setArchiveChanged=false&m_selectArchivePageVisited=false&m_deploymentWizardPage=select-archive&m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
- <out:text/>&backURL=<out:value-of select="$encoded-back-url"/>
- <out:text/>&from_tool=true<out:text/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_import.gif">
- <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
- </img>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </out:if>
- </xsl:template>
- <!-- New Export (Special case. Does not use the common "New" template) -->
- <xsl:template match=" mt:tool[@name='export'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <xsl:choose>
- <xsl:when test="@disable ='true'">
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_new_export_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
- </img>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/><out:value-of select="'/new_general.xts'"/>
- <out:text/>&m_new_class=exportDeployment&m_deploymentWizardPage=method&m_setArchiveChanged=true&m_archive&m_class=exportDeployment&m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
- <out:text/>&backURL=<out:value-of select="$encoded-back-url"/>
- <out:text/>&from_tool=true<out:text/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_export.gif">
- <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
- </img>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </out:if>
- </xsl:template>
- <!-- Cut -->
- <xsl:template match=" mt:tool[@name='cut'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:variable name="cutContext"><xsl:call-template name="mt:contentcontext"/></out:variable>
- <td id="cut" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <out:choose>
- <out:when test="'{@disable}'='true' or $cutContext = 'unknown'">
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_cut_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_CUT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_CUT"/></out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="starts-with(key('session-param', 'edit'),'move')">
- <out:attribute name="class">toolbarImagePressed</out:attribute>
- </out:when>
- <out:otherwise>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
- </xsl:choose>
- </out:otherwise>
- </out:choose>
- <a role="button" tabindex="0" href="javascript:doCut()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doCut(); return false;">
- <out:attribute name="title"><xts:string id="IDS_CUT"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_cut.gif">
- <out:attribute name="alt"><xts:string id="IDS_CUT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_CUT"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- function switchCut(state)
- {
- if ("<out:value-of select="$browser"/>" == "ie")
- {
- if (state == "on")
- document.all["cut"].className="toolbarImagePressed";
- else
- document.all["cut"].className="toolbarImageNormal";
- }
- }
- function doCut()
- {
- var sContext = '<out:value-of select="$cutContext"/>';
- var s1 = "<xts:string id="IDS_ERR_CUT_NO_SELECTION" encode="javascript"/>";
- if (isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- <out:if test="key('system-param', 'maxEditEntries') and key('system-param', 'maxEditEntries') != ''">
- var s2 = "<xts:string id="IDS_ERR_LIMIT_EXCEEDED" encode="javascript"><xts:param name="limit"><out:value-of select="key('system-param', 'maxEditEntries')"/></xts:param></xts:string>";
- if (isOverItemsLimit("<out:value-of select="key('system-param', 'maxEditEntries')"/>"))
- {
- alert( s2 );
- return;
- }
- </out:if>
- <!-- Flag a cut operation -->
- setStateValue("edit", "move_" + sContext);
- switchCut("on");
- if (document.all && document.all["copy"] && document.switchCopy)
- switchCopy("off");
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/<out:value-of select="$mname"/>";
- document.forms[frmEditForm].submit();
- if (document.body)
- document.body.style.cursor = "wait";
- }
- </script>
- </out:otherwise>
- </out:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Copy -->
- <xsl:template match=" mt:tool[@name='copy'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:variable name="copyContext"><xsl:call-template name="mt:contentcontext"/></out:variable>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <out:choose>
- <out:when test="'{@disable}'='true' or $copyContext = 'unknown'">
- <!-- <out:attribute name="class">toolbarImageUnavailable</out:attribute> -->
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
- </xsl:choose>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_copy_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_COPY"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_COPY"/></out:attribute>
- </img>
- </out:when>
- <out:otherwise>
- <out:attribute name="id">copy</out:attribute>
- <out:choose>
- <out:when test="starts-with(key('session-param', 'edit'),'copy')">
- <out:attribute name="class">toolbarImagePressed</out:attribute>
- </out:when>
- <out:otherwise>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
- </xsl:choose>
- </out:otherwise>
- </out:choose>
- <a role="button" tabindex="0" href="javascript:doCopy()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doCopy(); return false;">
- <out:attribute name="title"><xts:string id="IDS_COPY"/></out:attribute>
- <img height="16" width="16" border="0">
- <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_copy.gif</xsl:attribute>
- <out:attribute name="alt"><xts:string id="IDS_COPY"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_COPY"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- //<!-- apply changes to the classes-->
- function switchCopy(state)
- {
- if ("<out:value-of select="$browser"/>" == "ie")
- {
- if (state == "on")
- document.all["copy"].className="toolbarImagePressed";
- else
- document.all["copy"].className="toolbarImageNormal";
- }
- }
- function doCopy()
- {
- var sContext = '<out:value-of select="$copyContext"/>';
- var s1 = "<xts:string id="IDS_ERR_COPY_NO_SELECTION" encode="javascript"/>";
- if (isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- <out:if test="key('system-param', 'maxEditEntries') and key('system-param', 'maxEditEntries') != ''">
- var s2 = "<xts:string id="IDS_ERR_LIMIT_EXCEEDED" encode="javascript"><xts:param name="limit"><out:value-of select="key('system-param', 'maxEditEntries')"/></xts:param></xts:string>";
- if (isOverItemsLimit("<out:value-of select="key('system-param', 'maxEditEntries')"/>"))
- {
- alert( s2 );
- return;
- }
- </out:if>
- if (document.all && document.all["cut"] && document.switchCut)
- switchCut("off");
- <!-- flag a copy operation -->
- setStateValue("edit", "copy_" + sContext);
- switchCopy("on");
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/<out:value-of select="$mname"/>";
- document.forms[frmEditForm].submit();
- if (document.body)
- document.body.style.cursor = "wait";
- }
- </script>
- </out:otherwise>
- </out:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Paste -->
- <xsl:template match=" mt:tool[@name='paste'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:variable name="pasteContext"><xsl:call-template name="mt:contentcontext"/></out:variable>
- <td id="paste" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <out:choose>
- <out:when test="(starts-with(key('session-param', 'edit'),'copy') or starts-with(key('session-param', 'edit'),'move')) and contains(key('session-param', 'edit'), $pasteContext) and not($pasteContext = 'unknown') and '{@disable}' != 'true'">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doPaste()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doPaste(); return false;" name="paste-link">
- <out:attribute name="title"><xts:string id="IDS_PASTE"/></out:attribute>
- <img height="16" width="16" border="0" name="paste-img" src="{'{$image_root}'}action_paste.gif">
- <out:attribute name="alt"><xts:string id="IDS_PASTE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PASTE"/></out:attribute>
- </img>
- </a>
- </out:when>
- <out:otherwise>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
- </xsl:choose>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" name="paste-img" src="{'{$image_root}'}action_paste_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_PASTE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PASTE"/></out:attribute>
- </img>
- </out:otherwise>
- </out:choose>
- <script language="javascript">
- //define the two paste images
- var pasteImg = new Image();
- pasteImg.src = "<out:value-of select="xtsext:javascriptencode($image_root)"/>action_paste.gif";
- var pasteDisabledImg = new Image();
- pasteDisabledImg.src = "<out:value-of select="$image_root"/>action_paste_dis.gif";
- //<!-- this will switch the paste icon and class -->
- function switchPaste(state)
- {
- if (state == "on")
- {
- document.images["paste-img"].src = pasteImg.src;
- if ("<out:value-of select="$browser"/>" == "ie")
- {
- document.all["paste-link"].className = "";
- document.all["paste"].className = "toolbarImageNormal";
- }
- }
- else
- {
- document.images["paste-img"].src = pasteDisabledImg.src;
- if ("<out:value-of select="$browser"/>" == "ie")
- {
- document.all["paste-link"].className = "toolbarImageDefaultCursor";
- document.all["paste"].className = "toolbarImageUnavailable";
- }
- }
- }
- function doPaste()
- {
- var sContext = '<out:value-of select="$pasteContext"/>';
- var s1 = "<xts:string id="IDS_ERR_PASTE_NO_SELECTION" encode="javascript"/>";
- var s5 = "<xts:string id="IDS_ERR_PASTE_CONFIG" encode="javascript"/>";
- var sEditCommand = getSessionValue("edit");
- var aEditCommand = sEditCommand.split("_");
- //<!-- If entries have not been "coppied" or "cut" then there is no point of being here -->
- if ( !((aEditCommand[0] == "move" || aEditCommand[0] == "copy") && (aEditCommand[1] == sContext) ) )
- {
- alert( s1 );
- return;
- }
- <xsl:if test="@type and @type = 'config'">
- if (!confirm ( s5 ))
- return;
- </xsl:if>
- if (aEditCommand[0] == "move")
- resetStateParam('edit'); <!-- Reset any pending edit operation -->
- <!-- Save full page state -->
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- document.forms[frmEditForm].ifrmcmd.value = aEditCommand[0];
- document.forms[frmEditForm].submit();
- if (document.body)
- document.body.style.cursor = "wait";
- }
- </script>
- </td>
- </out:if>
- </xsl:template>
- <!-- Delete -->
- <xsl:template match=" mt:tool[@name='delete'] ">
- <!-- Bug 230373 need to search for exact name with space after it so doesn't get confused with CC_TOOLBAR_BUTTONS_delete_page -->
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name} '))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@disable='true'">
- <out:attribute name="class"></out:attribute>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
- </xsl:choose>
- <img role="button" aria-disabled="true" height="16" width="16" border="0" src="{'{$image_root}'}action_delete_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
- </img>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doDelete()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doDelete(); return false;">
- <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
- <img height="16" width="16" border="0">
- <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_delete.gif</xsl:attribute>
- <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- <xsl:choose>
- <!-- Config Delete : Delete action in server admin configure tab. User can only delete configuration folder without any contents, and can't delete dispatcher. -->
- <xsl:when test="@type and @type = 'config'">
- function doDelete()
- {
- var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
- var s2 = "<xts:string id="IDS_ERR_DELETE_CONFIG" encode="javascript"/>";
- var s3 = "<xts:string id="IDS_CONF_DELETE_MULTI" encode="javascript"/>";
- var s4 = "<xts:string id="IDS_ERR_DELETE_CONFIG_DISP" encode="javascript"/>";
- var s5 = "<xts:string id="IDS_ERR_DELETE_CONFIG_FOLDER" encode="javascript"/>";
- var isInvalidDisp = false;
- var isInvalidFolder = false;
- var len = 0;
- var items = document.forms[frmEditForm].length;
- for (var i=0; i < items; i++)
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf(defaultPrefix) == 0 && document.forms[frmEditForm].elements[i].checked)
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf("checkbox_dispatcher_") == 0)
- {
- isInvalidDisp = true;
- }
- else
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf("checkbox_configurationFolder_true_") == 0)
- {
- isInvalidFolder = true;
- }
- else
- {
- len = len +1;
- }
- }
- }
- }
- <!-- check for no selection -->
- if (len == 0 && !isInvalidDisp && !isInvalidFolder)
- {
- alert( s1 );
- return;
- }
- <!-- check if user try to delete the dispatchers and configuration folders with contents. -->
- if ( isInvalidDisp && isInvalidFolder)
- {
- alert( s2 );
- }
- else
- {
- <!-- check if user try to delete a configuration folders with contents. -->
- if (isInvalidFolder)
- alert( s5 );
- <!-- check if user try to delete a dispatchers with contents. -->
- if (isInvalidDisp)
- alert( s4 );
- }
- if ( len > 0 )
- {
- <!--Perform the delete after confirmation -->
- if ( confirm( s3 ) )
- {
- if( window.preDelete )
- preDelete(frmEditForm, defaultPrefix);
- document.forms[frmEditForm].ifrmcmd.value = "delete"; <!--set the operation, and submit it. -->
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- resetStateParam("edit"); <!-- Reset any pending edit operation -->
- document.forms[frmEditForm].submit();
- }
- }
- }
- </xsl:when>
- <xsl:otherwise>
- function doDelete()
- {
- var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
- var s2 = "<xts:string id="IDS_CONF_DELETE_BROKEN_LINKS" encode="javascript"/>";
- if ( isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- <!-- Perform the delete after confirmation -->
- if ( confirm( s2 ) )
- {
- if( window.preDelete )
- preDelete(frmEditForm, defaultPrefix);
- document.forms[frmEditForm].ifrmcmd.value = "delete"; <!--set the operation, and submit it. -->
- <!-- Add full page state -->
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- document.forms[frmEditForm].errURL.value = document.forms[frmEditForm].backURL.value;
- resetStateParam("edit"); <!-- Reset any pending edit operation -->
- document.forms[frmEditForm].submit();
- }
- }
- </xsl:otherwise>
- </xsl:choose>
- </script>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Delete Dataset-->
- <xsl:template match=" mt:tool[@name='deleteDataset'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name} '))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@disable='true'">
- <out:attribute name="class"></out:attribute>
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <img role="button" aria-disabled="true" height="16" width="16" border="0" src="{'{$image_root}'}action_delete_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
- </img>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <a role="button" tabindex="0" href="javascript:doDeleteDataset()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doDelete(); return false;">
- <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
- <img height="16" width="16" border="0">
- <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_delete.gif</xsl:attribute>
- <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
- </img>
- </a>
- <out:variable name="chkSpaceEnterKeyEvent">if (event.keyCode==13 || event.keyCode==32 || event.charCode==32)</out:variable>
- <cp:genericDialog id="confirmDeleteDialog" interactive="true" align="left" width="300" positionVertical="true" positionHorizontal="true" helpid="12345" focusidOnShiftTab="IDS_OK">
- <cp:param name="title"><xts:string id="IDS_MYDS_CONFIRM_DELETE_TITLE"/></cp:param>
- <cp:param name="body">
- <div class="dialogHeaderText">
- <table role="presentation">
- <tr><td>
- <dp:list>
- <dp:section><xts:string id="IDS_MYDS_DELETE_WARNING"/></dp:section>
- <dp:section><img src="{'{$webcontent}/images/space.gif'}" alt="" height="10"/></dp:section>
- <dp:section><xts:string id="IDS_MYDS_DELETE_QUESTION"/></dp:section>
- </dp:list>
- </td></tr>
- <tr><td>
- <dp:choice>
- <dp:section1>
- <utml:input type="checkbox" name="ctrl_deletePackage" value="true" utml:track="false" utml:default-condition="false" id="ctrl_deletePackage" onclick="if(window.event)window.event.cancelBubble = true;"/>
- </dp:section1>
- <dp:section2>
- <label for="ctrl_deletePackage"><xts:string id="IDS_MYDS_DELETE_PACKAGES"/></label>
- </dp:section2>
- </dp:choice>
- </td></tr>
- </table>
- </div>
- </cp:param>
- <cp:param name="footer">
- <dp:simpleFooter>
- <td>
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td>
- <cp:cmdButton defaultState="active" id="contactOK">
- <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:confirmDeleteDialog.hide(); performDelete();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<out:value-of select="$chkSpaceEnterKeyEvent"/><out:text>{</out:text> this.onclick(); return false; <out:text>}</out:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- <td>
- <cp:cmdButton defaultState="active" id="contactCancel">
- <cp:cmdButtonText><xts:string id="IDS_CANCEL"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:confirmDeleteDialog.hide();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<out:value-of select="$chkSpaceEnterKeyEvent"/><out:text>{</out:text> this.onclick(); return false; <out:text>}</out:text> return true;</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeydown">javascript:if(event.keyCode==9) <out:text>{</out:text> if(event.shiftKey==true) return true; else <out:text>{</out:text> if(document.getElementById("contactHelp")) <out:text>{</out:text>document.getElementById("contactHelp").focus(); return false; <out:text>}</out:text> <out:text>}</out:text> <out:text>}</out:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- </tr>
- </table>
- </td>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- <script language="javascript">
- function doDeleteDataset()
- {
- var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
- if ( isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- confirmDeleteDialog.show();
- setTimeout('setConfirmDialogFocus()', 11);
- }
- function setConfirmDialogFocus()
- {
- <!-- if (confirmDeleteDialog.className = "visible") -->
- <!-- document.pform.emailAddress.focus(); -->
- }
- function performDelete()
- {
- if( window.preDelete )
- preDelete(frmEditForm, defaultPrefix);
- document.forms[frmEditForm].ifrmcmd.value = "deleteDataset"; <!--set the operation, and submit it. -->
- <!-- Add full page state -->
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- document.forms[frmEditForm].errURL.value = document.forms[frmEditForm].backURL.value;
- var includePackages = document.getElementById('ctrl_deletePackage').checked;
- document.forms[frmEditForm].includePackages.value = includePackages;
- resetStateParam("edit"); <!-- Reset any pending edit operation -->
- document.forms[frmEditForm].submit();
- }
- </script>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Refresh -->
- <xsl:template match=" mt:tool[@name='refresh'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="not(string(@disable) = 'true')">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:window.location.reload(true)">
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_refresh.gif">
- <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
- <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
- </xsl:choose>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_refresh_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Refresh using GET -->
- <xsl:template match=" mt:tool[@name='refreshUsingGet'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <xsl:choose>
- <xsl:when test="not(string(@disable) = 'true')">
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <a tabindex="0" role="button">
- <xsl:attribute name="href"><xsl:value-of select="'{$back-url}'"/>&refresh=</xsl:attribute>
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_refresh.gif">
- <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_refresh_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Select all -->
- <xsl:template match=" mt:tool[@name='selectall'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <xsl:choose>
- <xsl:when test="string(@disable)='true'">
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_selectall_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
- </img>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <a role="button" tabindex="0" href="javascript:setCheck(true,'{'{$edit-form}'}','checkbox_')" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) setCheck(true,'{'{$edit-form}'}','checkbox_'); return false;">
- <out:attribute name="title"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_selectall.gif">
- <out:attribute name="alt"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
- </img>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Deselect all -->
- <xsl:template match=" mt:tool[@name='deselectall'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <xsl:choose>
- <xsl:when test="string(@disable)='true'">
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_deselectall_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
- </img>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <a role="button" tabindex="0" href="javascript:setCheck(false,'{'{$edit-form}'}','checkbox_')" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) setCheck(false,'{'{$edit-form}'}','checkbox_'); return false;">
- <out:attribute name="title"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_deselectall.gif">
- <out:attribute name="alt"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
- </img>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Detail view -->
- <xsl:template match=" mt:tool[@name='detail'] ">
- <out:if test="key('session-param', 'write') = 'true' or $is-named = '0'">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td role="presentation">
- <out:choose>
- <out:when test="key('session-param', 'displayMode') = 'detail'">
- <out:attribute name="class">toolbarImagePressed</out:attribute>
- <out:attribute name="onmouseover">this.className = 'toolbarImageOverPressed'</out:attribute>
- <out:attribute name="onmouseout">this.className = 'toolbarImagePressed'</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <out:attribute name="onmouseover">this.className = 'toolbarImageOver'</out:attribute>
- <out:attribute name="onmouseout">this.className = 'toolbarImageNormal'</out:attribute>
- </out:otherwise>
- </out:choose>
- <a role="button" tabindex="0" href="javascript:doDetailView()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doDetailView(); return false;">
- <out:attribute name="title"><xts:string id="IDS_DETAILS_VIEW"/></out:attribute>
- <img height="16" width="16" border="0">
- <out:attribute name="src">
- <out:choose>
- <out:when test="$portal.navigationView!='newspaper'"><out:value-of select="$image_root"/>action_detailedlistview.gif</out:when>
- <out:otherwise><out:value-of select="$image_root"/>action_detailview.gif</out:otherwise>
- </out:choose>
- </out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_DETAILS_VIEW"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DETAILS_VIEW"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- function doDetailView()
- {
- var cmdForm = document.<out:value-of select="$cmd-form"/>;
- cmdForm.m.value = "<out:value-of select="$app"/>/submit.xts";
- cmdForm.ifrmcmd.value = "save";
- cmdForm.m_obj.value = "~";
- cmdForm.m_class.value = "account";
- cmdForm.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- var homePageElement = document.createElement("input");
- homePageElement.setAttribute("type","hidden");
- homePageElement.setAttribute("name","m_po_displayMode");
- homePageElement.setAttribute("value","detail");
- cmdForm.appendChild(homePageElement);
- cmdForm.submit();
- }
- </script>
- </td>
- </out:if>
- </out:if>
- </xsl:template>
- <!-- List view -->
- <xsl:template match=" mt:tool[@name='list'] ">
- <out:if test="key('session-param', 'write') = 'true' or $is-named = '0'">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td role="presentation">
- <out:choose>
- <out:when test="key('session-param', 'displayMode') = 'list'">
- <out:attribute name="class">toolbarImagePressed</out:attribute>
- <out:attribute name="onmouseover">this.className = 'toolbarImageOverPressed'</out:attribute>
- <out:attribute name="onmouseout">this.className = 'toolbarImagePressed'</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <out:attribute name="onmouseover">this.className = 'toolbarImageOver'</out:attribute>
- <out:attribute name="onmouseout">this.className = 'toolbarImageNormal'</out:attribute>
- </out:otherwise>
- </out:choose>
- <a role="button" tabindex="0" href="javascript:doListView()" onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doListView(); return false;">
- <out:attribute name="title"><xts:string id="IDS_LIST_VIEW"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_listview.gif">
- <out:attribute name="alt"><xts:string id="IDS_LIST_VIEW"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_LIST_VIEW"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- function doListView()
- {
- var cmdForm = document.<out:value-of select="$cmd-form"/>;
- cmdForm.m.value = "<out:value-of select="$app"/>/submit.xts";
- cmdForm.ifrmcmd.value = "save";
- cmdForm.m_obj.value = "~";
- cmdForm.m_class.value = "account";
- cmdForm.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- var homePageElement = document.createElement("input");
- homePageElement.setAttribute("type","hidden");
- homePageElement.setAttribute("name","m_po_displayMode");
- homePageElement.setAttribute("value","list");
- cmdForm.appendChild(homePageElement);
- cmdForm.submit();
- }
- </script>
- </td>
- </out:if>
- </out:if>
- </xsl:template>
- <!-- Order -->
- <xsl:template match=" mt:tool[@name='order'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:variable name="mp-permissions" select="count($childReply/*[cm:usage != 'subObject' and not(contains(cm:permissions, 'read') and contains(cm:permissions, 'write'))])"/>
- <out:choose>
- <out:when test="$childReply/*[cm:usage != 'subObject'] and $mp-permissions = 0">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/sort.xts&m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
- </out:attribute>
- <out:attribute name="onkeypress">
- if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) document.location='<out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/sort.xts&m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>'
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ORDER"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_order.gif">
- <out:attribute name="alt"><xts:string id="IDS_ORDER"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ORDER"/></out:attribute>
- </img>
- </a>
- </td>
- </out:when>
- <out:otherwise>
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_order_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_ORDER"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ORDER"/></out:attribute>
- </img>
- </td>
- </out:otherwise>
- </out:choose>
- </out:if>
- </xsl:template>
- <!-- Edit Pagelet -->
- <xsl:template match=" mt:tool[@name='edit_pagelet'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="#" onclick="editPage('{'{$javascriptescapedPageID}'}')">
- <out:attribute name="title"><xts:string id="IDS_EDIT"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_edit_page.gif">
- <out:attribute name="alt"><xts:string id="IDS_EDIT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_EDIT"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- Search -->
- <xsl:template match=" mt:tool[@name='search']">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:choose>
- <!-- Disable the search feature for schedule tool, and directory tool when current path is root /directory-->
- <out:when test="'{string(@disable)}' = 'true' or $mname = 'tools_activity.xts' or /root/env/param[@name='m_path'] = '/directory' ">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageUnavailable2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageUnavailable</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_search_basic_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_SEARCH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
- </img>
- </td>
- </out:when>
- <out:otherwise>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="{'{$back-url}'}&search=">
- <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_search_basic.gif">
- <out:attribute name="alt"><xts:string id="IDS_SEARCH"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
- </img>
- </a>
- </td>
- </out:otherwise>
- </out:choose>
- </out:if>
- </xsl:template>
- <!-- Root properties -->
- <xsl:template match=" mt:tool[@name='properties'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <!-- need to disable the properties button if there was no root response -->
- <!-- this can occurr if viewing a pf or mf page but the container being view is not accessible -->
- <!-- because of security or it does not exist -->
- <out:variable name="objName">
- <out:value-of select="$rootReply/*/cm:defaultName"/>
- </out:variable>
- <out:variable name="objNameDisplay">
- <out:value-of select="xtsext:enforceBTD($objName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:variable>
- <out:choose>
- <out:when test="$rootReply and ($rootReply != '')">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" href="#" tabindex="0">
- <out:attribute name="onclick">
- <out:text/>rootProperties('<out:value-of select="xtsext:javascriptencode(string($rootReply/*/cm:defaultName))"/>', '<out:value-of select="$rootReply/*/cm:objectClass"/>', '<out:value-of select="xtsext:javascriptencode(string($rootReply/*/cm:searchPath))"/>', '<out:value-of select="xtsext:javascriptencode(string($rootReply/*/cm:storeID))"/>');<out:text/>
- </out:attribute>
- <out:attribute name="onkeypress">
- <out:text/>if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) rootProperties('<out:value-of select="xtsext:javascriptencode(string($rootReply/*/cm:defaultName))"/>', '<out:value-of select="$rootReply/*/cm:objectClass"/>', '<out:value-of select="xtsext:javascriptencode(string($rootReply/*/cm:searchPath))"/>', '<out:value-of select="xtsext:javascriptencode(string($rootReply/*/cm:storeID))"/>'); return false;<out:text/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$rootReply/*/cm:defaultName"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_properties_path.gif">
- <out:attribute name="alt"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
- </img>
- </a>
- </td>
- </out:when>
- <out:otherwise>
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="button">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_properties_path_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
- </img>
- </td>
- </out:otherwise>
- </out:choose>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:tool[@name='routingRules'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/><out:value-of select="'/specify_routing_rules.xts'"/>
- <out:text/>&m_class=configuration&m_obj=/configuration&backURL=<out:value-of select="$encoded-back-url"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_EDIT_ROUTING_RULE"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_define_routing_rules.gif">
- <out:attribute name="alt"><xts:string id="IDS_EDIT_ROUTING_RULE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_EDIT_ROUTING_RULE"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:tool[@name='defaultUserProfile'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/><out:value-of select="'/properties_general.xts'"/>
- <out:text/>&m_class=account&m_obj=/configuration/account[@tenantID=<out:value-of select="xtsext:protect('""','url','searchPath','getdata')"/>]&backURL=<out:value-of select="$encoded-back-url"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_EDIT_DEFAULT_USER_PROFILE"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_edit_user_profile.gif">
- <out:attribute name="alt"><xts:string id="IDS_EDIT_DEFAULT_USER_PROFILE"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_EDIT_DEFAULT_USER_PROFILE"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:tool[@name='importPersonalData']">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@disable='true'">
- <out:attribute name="class"></out:attribute>
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <a role="button" tabindex="0">
- <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_dataset_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/personal_data.xts&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
- <img height="16" width="16" border="0">
- <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_new_dataset.gif</xsl:attribute>
- <out:attribute name="alt"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
- </img>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:tool[@name='removeMeAlert']">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@disable='true'">
- <out:attribute name="class"></out:attribute>
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <a role="button" tabindex="0">
- <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_remove_from_list.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageNormal</out:attribute>
- <a role="button" tabindex="0" href="javascript:doRemoveMe()">
- <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
- <img height="16" width="16" border="0">
- <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_remove_from_list.gif</xsl:attribute>
- <out:attribute name="alt"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- function doRemoveMe()
- {
- var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
- if ( isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- if ( confirm("<xts:string id="IDS_MYSUB_TOOL_CONFIRM" encode="javascript"/>") )
- {
- action("submit.xts", "removeMultiObjNotification");
- }
- }
- function action(sTarget, sAction)
- {
- if (sAction != null && sAction != "" )
- document.pform.ifrmcmd.value = sAction;
- document.pform.m.value = "<out:value-of select="$app"/>/" + sTarget;
- document.pform.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.pform.submit();
- }
- </script>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Can be used by any UI that requries an action to edit the parent object's properties
- Supported Sub-elements include
- - tool-name: Used to generate UI black list entry name. This allows each tool to be configured uniquely
- - default-name: Used as part of the the tooltip text
- - object-class: Class of the parent object
- - search-path: SearchPath of the parent object
- -->
- <xsl:template match="mt:tool[@name='parent_properties']">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{tool-name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="#">
- <out:attribute name="onclick">
- <out:choose>
- <out:when test="string({request-path}/cm:storeID) != ''">
- <out:text/>parentProperties('<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:defaultName))"/>', '<out:value-of select="{request-path}/cm:objectClass"/>', '<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:searchPath))"/>','storeID("<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:storeID))"/>")');<out:text/>
- </out:when>
- <out:otherwise>
- <out:text/>parentProperties('<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:defaultName))"/>', '<out:value-of select="{request-path}/cm:objectClass"/>', '<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:searchPath))"/>','');<out:text/>
- </out:otherwise>
- </out:choose>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="{request-path}/cm:defaultName"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_properties_path.gif">
- <out:attribute name="alt"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="{request-path}/cm:defaultName"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="{request-path}/cm:defaultName"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- Page sizes -->
- <xsl:template match=" mt:tool[@name='page_sizes'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/edit_page_sizes.xts&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PAGE_SIZES"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_define_paper_sizes.gif">
- <out:attribute name="alt"><xts:string id="IDS_PAGE_SIZES"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_PAGE_SIZES"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- File system locations -->
- <xsl:template match=" mt:tool[@name='file_system_locations'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/edit_file_system_locations.xts&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_FILE_SYSTEM_LOCATIONS"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_define_file_system_locations.gif">
- <out:attribute name="alt"><xts:string id="IDS_FILE_SYSTEM_LOCATIONS"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_FILE_SYSTEM_LOCATIONS"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- Enable sched -->
- <xsl:template match=" mt:tool[@name='enable_sched'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doEnableSched()">
- <out:attribute name="title"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_enable_schedule.gif">
- <out:attribute name="alt"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- function doEnableSched()
- {
- var s1 = "<xts:string id="IDS_ERR_ENABLE_SCHED_NO_SELECTION" encode="javascript"/>";
- var s2 = "<xts:string id="IDS_CONF_ENABLE_SCHED_MULTI" encode="javascript"/>";
- <!-- check for no selection -->
- if (isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- <!-- if enabling/disabling a reportDataServiceAgentDefinition we need to make sure a subscriptionFolder isn't checked by mistake -->
- var items = document.forms[frmEditForm].length;
- for (var i=0; i < items; i++)
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf(defaultPrefix) == 0 && document.forms[frmEditForm].elements[i].checked)
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf('subscriptionFolder') >= 0)
- {
- alert("<xts:string id="IDS_ERR_NO_SCHED" encode="javascript"/>") ;
- return;
- }
- }
- }
- <!--Perform the delete after confirmation -->
- if ( confirm( s2 ) )
- {
- document.forms[frmEditForm].ifrmcmd.value = 'enable'; <!--set the operation, and submit it. -->
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].submit();
- }
- }
- </script>
- </td>
- </out:if>
- </xsl:template>
- <!-- Disable sched -->
- <xsl:template match=" mt:tool[@name='disable_sched'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doDisableSched()">
- <out:attribute name="title"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_disable_schedule.gif">
- <out:attribute name="alt"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></out:attribute>
- </img>
- </a>
- <script language="javascript">
- function doDisableSched()
- {
- var s1 = "<xts:string id="IDS_ERR_DISABLE_SCHED_NO_SELECTION" encode="javascript"/>";
- var s2 = "<xts:string id="IDS_CONF_DISABLE_SCHED_MULTI" encode="javascript"/>";
- <!-- check for no selection -->
- if (isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert( s1 );
- return;
- }
- <!-- if enabling/disabling a reportDataServiceAgentDefinition we need to make sure a subscriptionFolder isn't checked by mistake -->
- var items = document.forms[frmEditForm].length;
- for (var i=0; i < items; i++)
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf(defaultPrefix) == 0 && document.forms[frmEditForm].elements[i].checked)
- {
- if (document.forms[frmEditForm].elements[i].name.indexOf('subscriptionFolder') >= 0)
- {
- alert("<xts:string id="IDS_ERR_NO_SCHED" encode="javascript"/>") ;
- return;
- }
- }
- }
- <!--Perform the delete after confirmation -->
- if ( confirm( s2 ) )
- {
- document.forms[frmEditForm].ifrmcmd.value = 'disable'; <!--set the operation, and submit it. -->
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].submit();
- }
- }
- </script>
- </td>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:doScheduleActionScripts">
- <script language="javascript">
- function doScheduleAction( action )
- {
- <!-- check for no selection -->
- if (isEmptySelection(frmEditForm, defaultPrefix))
- {
- alert("<xts:string id="IDS_ERR_DISABLE_SCHED_NO_SELECTION" encode="javascript"/>");
- return;
- }
- <!-- Perform the action -->
- document.forms[frmEditForm].action.value = action;
- document.forms[frmEditForm].ifrmcmd.value = "doScheduleAction";
- document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
- document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.forms[frmEditForm].submit();
- }
- </script>
- </xsl:template>
- <!-- Cancel sched -->
- <xsl:template match=" mt:tool[@name='cancel'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doScheduleAction('cancel')">
- <out:attribute name="title"><xts:string id="IDS_CANCEL"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_cancel_execution.gif">
- <out:attribute name="alt"><xts:string id="IDS_CANCEL"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_CANCEL"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:tool[@name='suspend'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doScheduleAction('suspend')">
- <out:attribute name="title"><xts:string id="IDS_SCHED_SUSPEND_TOOLTIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_suspend_execution.gif">
- <out:attribute name="alt"><xts:string id="IDS_SCHED_SUSPEND_TOOLTIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SCHED_SUSPEND_TOOLTIP"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <xsl:template match=" mt:tool[@name='release'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:doScheduleAction('release')">
- <out:attribute name="title"><xts:string id="IDS_SCHED_RELEASE_TOOLTIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_release_execution.gif">
- <out:attribute name="alt"><xts:string id="IDS_SCHED_RELEASE_TOOLTIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_SCHED_RELEASE_TOOLTIP"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- View events -->
- <xsl:template match=" mt:tool[@name='view_events'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="#" onclick="actions('', '','','view_events.xts');">
- <out:attribute name="title"><xts:string id="IDS_VPA_ACTION_TIP"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_plan_activity.gif">
- <out:attribute name="alt"><xts:string id="IDS_VPA_ACTION_TIP"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_VPA_ACTION_TIP"/></out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- Refresh data source connections -->
- <xsl:template match="mt:tool[@name='refresh_connections'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <script language="javascript">
- function refreshConnections()
- {
- document.cfrmEntryAdmin.ifrmcmd.value = 'refreshConnections';
- document.cfrmEntryAdmin.m.value = "<out:value-of select="$app"/>/submit.xts";
- document.cfrmEntryAdmin.m_class.value = "<out:value-of select="{request-path}/cm:objectClass"/>";
- document.cfrmEntryAdmin.m_obj.value = "<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:searchPath))"/>";
- document.cfrmEntryAdmin.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.cfrmEntryAdmin.submit();
- }
- </script>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="#" onclick="refreshConnections()">
- <out:attribute name="title">
- <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS">
- <xts:param name="objectName"><out:value-of select="{request-path}/cm:defaultName"/></xts:param>
- </xts:string>
- </out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_refresh_server_connection.gif">
- <out:attribute name="alt">
- <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS">
- <xts:param name="objectName"><out:value-of select="{request-path}/cm:defaultName"/></xts:param>
- </xts:string>
- </out:attribute>
- <out:attribute name="title">
- <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS">
- <xts:param name="objectName"><out:value-of select="{request-path}/cm:defaultName"/></xts:param>
- </xts:string>
- </out:attribute>
- </img>
- </a>
- </td>
- </out:if>
- </xsl:template>
- <!-- Adds the page to the portal tabs. -->
- <xsl:template match=" mt:tool[@name='add_page']">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <script language="javascript">
- function addPageToPortal()
- {
- pageCmd("addToMyPages");
- }
- </script>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="not(string(@disable) = 'true')">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0" href="javascript:addPageToPortal()">
- <out:attribute name="title"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_add_page_toportal.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <out:attribute name="class">toolbarImageUnavailable</out:attribute>
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_add_page_toportal_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </out:if>
- </xsl:template>
- <!-- Import portlets -->
- <xsl:template match=" mt:tool[@name='import_portlets'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <xsl:choose>
- <xsl:when test="@disable ='true'">
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_import_portlet_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
- </img>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/cc.xts&m_portlet=/admin/portlet:import&rui=hh&m_pagemode=view&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_import_portlet.gif">
- <out:attribute name="alt"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
- </img>
- </a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </out:if>
- </xsl:template>
- <!-- New portlets -->
- <xsl:template match=" mt:tool[@name='new_portlets'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:choose>
- <out:when test="'{string(@disable)}' ='true'">
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_add_portlet_frm_producer_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
- </img>
- </td>
- </out:when>
- <out:otherwise>
- <out:variable name="url-encoded-path" select="xtsext:protect(xtsext:urlencode(string(/root/content/cm:queryResponse/cm:queryReply[1]/*/cm:searchPath)),'url','searchPath','getdata')"/>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/cc.xts&m_portlet=/admin/portlet:newportlet&rui=hh&m_pagemode=view&wsrp-urlType=blockingAction&cps-portlet=PORTLETID&producer=/connection/path:<out:value-of select="$url-encoded-path"/>&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_add_portlet_frm_producer.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
- </img>
- </a>
- </td>
- </out:otherwise>
- </out:choose>
- </out:if>
- </xsl:template>
- <!-- New migration -->
- <xsl:template match=" mt:tool[@name='new_migration'] ">
- <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
- <out:choose>
- <out:when test="'{string(@disable)}' ='true'">
- <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
- <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_new_migration_dis.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
- </img>
- </td>
- </out:when>
- <out:otherwise>
- <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
- <xsl:choose>
- <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
- </xsl:choose>
- <a role="button" tabindex="0">
- <out:attribute name="href">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/>/new_general.xts&m_new_class=migrationTask&backURL=<out:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>&m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
- </out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
- <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_migration.gif">
- <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
- <out:attribute name="title"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
- </img>
- </a>
- </td>
- </out:otherwise>
- </out:choose>
- </out:if>
- </xsl:template>
- <!--
- Template - mt:detailedEntryView:
- This template renders the detailed view of an individual entry.
- Operation:
- Outputs the detailed view of an entry.
- -->
- <xsl:template match="mt:detailedEntryView">
- <!-- If this is the beginning of a row then open a <table> tag -->
- <out:if test="position() mod $columns = 1">
- <out:text disable-output-escaping="yes"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="horizSpaceDetailView"><tr></out:text>
- </out:if>
- <td valign="top" align="left" width="{'{$width}'}%">
- <!-- Drop common rendering variables here to get the proper scope for generating name, icon, actions .. for the current entry -->
- <xsl:copy-of select="mt:object-variables/*"/>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td valign="top" rowspan="4" align="left" width="20">
- <out:choose>
- <out:when test="cm:nbid or cm:nid">
- <img src="{'{$webcontent}/images/space.gif'}" alt="" width="20"/>
- </out:when>
- <out:otherwise>
- <input type="checkbox" value="{'{xtsext:urlencode(string(cm:searchPath))}'}" name="checkbox_{'{position()}'}">
- <out:if test="key('env-param',concat('checkbox_' , position()))">
- <out:attribute name="checked">checked</out:attribute>
- </out:if>
- </input>
- </out:otherwise>
- </out:choose>
- </td>
- <td valign="top" align="left" rowspan="4" width="20" style="padding-top:2px;padding-right:1px;">
- <table cellpadding="0" cellspacing="0">
- <tr><td nowrap="nowrap">
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="$class"/>
- <out:with-param name="canWrite" select="$canWrite"/>
- <out:with-param name="canExecute" select="$canExecute"/>
- <out:with-param name="canTraverse" select="$canTraverse"/>
- <out:with-param name="userInterfaces" select="$userInterfaces"/>
- <out:with-param name="isDangling" select="$isDangling"/>
- <out:with-param name="output_format" select="$output_format"/>
- <out:with-param name="action" select="$action"/>
- <out:with-param name="executionFormat" select="$executionFormat"/>
- <out:with-param name="hiddenObject" select="$hiddenObject"/>
- <out:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </out:call-template>
- </td></tr>
- </table>
- </td>
- <td class="objectName">
- <xsl:copy-of select="mt:object-name/*"/>
- </td>
- </tr>
- <tr>
- <td class="objectOptions">
- <out:value-of select="xtsext:enforceBTD(cm:defaultDescription, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </td>
- </tr>
- <tr>
- <td class="objectOptions">
- <out:choose>
- <out:when test="cm:updateDate">
- <out:variable name="cmUpdateDate">
- <out:value-of select="cm:updateDate"/>
- </out:variable>
- <out:value-of select="xtsext:enforceBTD($cmUpdateDate, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:when>
- <out:otherwise>
- <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
- <out:variable name="cmModifTime">
- <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </out:variable>
- <out:value-of select="xtsext:enforceBTD($cmModifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:otherwise>
- </out:choose>
- </td>
- </tr>
- <tr>
- <td>
- <!--
- The call to action-properties does not pass the userCanUseFullRS/QS since the user is allowed to edit
- existing reports, just not allowed to create new reports (e.g. doing a Save as...)
- -->
- <out:call-template name="action-properties">
- <out:with-param name="supportRunOptionsAction" select="true()"/>
- <out:with-param name="supportScheduleAction" select="true()"/>
- <out:with-param name="canRead" select="$canRead"/>
- <out:with-param name="canWrite" select="$canWrite"/>
- <out:with-param name="canExecute" select="$canExecute"/>
- <out:with-param name="canTraverse" select="$canTraverse"/>
- <out:with-param name="class" select="$class"/>
- <out:with-param name="output_format" select="$output_format"/>
- <out:with-param name="isDangling" select="$isDangling"/>
- <out:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </out:call-template>
- </td>
- </tr>
- </table>
- </td>
- <td valign="top" width="2%"> </td>
- <!-- After the last entry, add empty (dummy) cells for each remaining column to fill out the row and leave no gaps. -->
- <out:if test="position() = last()">
- <!-- Count odd (empty) cells -->
- <out:variable name="oddCells">
- <out:choose>
- <out:when test="(position() mod $columns) = 0"><out:value-of select="number('0')"/></out:when>
- <out:otherwise><out:value-of select="$columns - (position() mod $columns)"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:if test=" $oddCells > 0">
- <xsl:variable name="dummyCells">
- <td width="{'{$width}'}%"> </td>
- <td width="2%"> </td>
- </xsl:variable>
- <out:choose>
- <out:when test="$oddCells = 1">
- <xsl:copy-of select="$dummyCells"/>
- </out:when>
- <out:when test="$oddCells = 2">
- <xsl:copy-of select="$dummyCells"/>
- <xsl:copy-of select="$dummyCells"/>
- </out:when>
- <out:when test="$oddCells = 3">
- <xsl:copy-of select="$dummyCells"/>
- <xsl:copy-of select="$dummyCells"/>
- <xsl:copy-of select="$dummyCells"/>
- </out:when>
- <out:when test="$oddCells = 4">
- <xsl:copy-of select="$dummyCells"/>
- <xsl:copy-of select="$dummyCells"/>
- <xsl:copy-of select="$dummyCells"/>
- <xsl:copy-of select="$dummyCells"/>
- </out:when>
- </out:choose>
- </out:if>
- </out:if>
- <!-- If we just had enough entries to fill a row or we have just finished rendering the last entry then close the current row / table -->
- <out:if test="(position() mod $columns) = 0 or position() = last()">
- <out:text disable-output-escaping="yes"></tr></table></out:text>
- </out:if>
- </xsl:template>
- <!--
- Template - mt:objectNoneFound:
- This template renders the No entries message on the main pages view.
- Operation:
- Outputs the No entries message.
- -->
- <xsl:template match="mt:objectNoneFound">
- <p class="objectNoneFound">
- <xsl:choose>
- <xsl:when test="@id">
- <xts:string id="{@id}"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_NO_ITEMS_FOUND"/>
- </xsl:otherwise>
- </xsl:choose>
- </p>
- </xsl:template>
- <!--
- Template - mt:containerNoAccess:
- This template renders the message letting the user know he doesn't have access to the page or it was deleted
- -->
- <xsl:template match="mt:containerNoAccess">
- <out:variable name="homeLink">
- <xts:string id="IDS_HOME"/>
- </out:variable>
- <p class="objectNoneFound">
- <xts:string id="IDS_NO_ACCESS_CONTAINER">
- <xts:param name="homeLink">
- <a href="{'{$gateway}?{key("system-param", "COGNOSHome")}'}">
- <out:value-of select="$homeLink"/>
- </a>
- </xts:param>
- </xts:string>
- </p>
- </xsl:template>
- <xsl:template match="mt:errorMessage">
- <p class="objectNoneFound">
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!--
- Template - mt:actions:
- This template generates the template action-properties which renders hyperlinked images for each action available for an entry.
- Operation:
- Generates the template to produce hyperlinked action images for an entry. The action images are for:
- properties
- report outputs
- run options
- edit with Studios
- create a custom view
- deployment:
- properties
- update export
- update import
- view deployment
- tools:
- properties
- test connection
- run once
- view history
- view outputs
- view steps
- cancel operation
- schedule
- more
- -->
- <xsl:template match="mt:actions">
- <!-- action-properties - this will be called to show the actions and properties links for each item -->
- <out:template name="action-properties">
- <out:param name="obj-name" select="cm:defaultName"/>
- <out:param name="obj-path" select="cm:searchPath"/>
- <out:param name="obj-id" select="cm:storeID"/>
- <out:param name="obj-class" select="cm:objectClass"/>
- <out:param name="userInterfaces" select="''"/>
- <out:param name="targetUserInterfaces" select="''"/>
- <out:param name="history-path" select="''"/>
- <out:param name="dataSetName" select="''"/>
- <out:param name="canRead" select="true()"/>
- <out:param name="canWrite" select="true()"/>
- <out:param name="canExecute" select="true()"/>
- <out:param name="canTraverse" select="true()"/>
- <out:param name="class" select="cm:objectClass"/><!-- this is the effective class. i.e. it is the class of the target object in case of a shortcut. -->
- <out:param name="output_format" select="''"/>
- <out:param name="isDangling" select="false()"/>
- <out:param name="reportVersion-path" select="''"/>
- <out:param name="runHistoryRequestedTime" select="''"/>
- <out:param name="agsEventList-path" select="''"/>
- <out:param name="position" select="''"/>
- <out:param name="eventID" select="''"/>
- <out:param name="effectiveUserCapabilities" select="''"/>
- <!-- supported actions - host morphlet can list which actions it wants to show when listing CM entries. -->
- <out:param name="supportDeploymentRecordAction" select="false()"/>
- <out:param name="supportScheduleAction" select="false()"/>
- <out:param name="supportRunOnce" select="false()"/>
- <out:param name="supportRunOptionsAction" select="false()"/>
- <out:param name="supportHistoryAction" select="false()"/>
- <out:param name="supportJobPropertiesAction" select="false()"/>
- <out:param name="supportViewOutputsAction" select="false()"/>
- <out:param name="supportViewHotListAction" select="false()"/>
- <out:param name="supportPropertiesAction" select="false()"/>
- <out:param name="supportPermissionsAction" select="false()"/>
- <out:param name="supportAllActionsAction" select="false()"/>
- <out:param name="supportTestConnection" select="false()"/>
- <out:param name="supportViewRunHistory" select="false()"/>
- <out:param name="supportViewRunHistoryDetails" select="false()"/>
- <out:param name="supportPortletControlAction" select="false()"/>
- <out:param name="supportDeleteAction" select="false()"/>
- <out:param name="supportActivateAction" select="false()"/>
- <out:param name="supportPreviewPortlet" select="false"/>
- <out:param name="supportCreateProfileAction" select="false"/>
- <out:param name="supportEditDataSet" select="false"/>
- <!-- Effective object name -->
- <out:variable name="name">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:defaultName"/></out:when>
- <out:otherwise><out:value-of select="$obj-name"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="objID">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:storeID"/></out:when>
- <out:otherwise><out:value-of select="$obj-id"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="toolTipName"><out:value-of select="$obj-name"/></out:variable>
- <out:variable name="js-encoded-name" select="xtsext:javascriptencode(string($name))"/>
- <!-- Versions target -->
- <out:variable name="versions_target">
- <out:choose>
- <out:when test="key('system-param', 'versions')/target"><out:value-of select="key('system-param', 'versions')/target"/></out:when>
- <out:otherwise>outputs.xts</out:otherwise>
- </out:choose>
- </out:variable>
- <!-- Effective object path -->
- <out:variable name="js-encoded-path">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="xtsext:javascriptencode(string(cm:target/*/cm:searchPath))"/></out:when>
- <out:otherwise><out:value-of select="xtsext:javascriptencode(string($obj-path))"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="ppgateway">
- <out:choose>
- <out:when test="$obj-class = 'shortcut' and starts-with( string(cm:target/*/cm:objectClass),'powerPlay' )"><out:value-of select="cm:target/*/cm:gateway"/></out:when>
- <out:when test="starts-with( string($obj-class),'powerPlay' )"><out:value-of select="cm:gateway"/></out:when>
- </out:choose>
- </out:variable>
- <!-- Effective event list path for agentDefinition/agentDefinitionView -->
- <out:variable name="event_list">
- <out:choose>
- <out:when test="$obj-class = 'shortcut' and starts-with( string(cm:target/*/cm:objectClass),'agentDefinition' )">
- <out:value-of select="cm:target/*/cm:mostRecentEventList"/>
- </out:when>
- <out:when test="starts-with( $obj-class,'agentDefinition' )">
- <out:value-of select="cm:mostRecentEventList"/>
- </out:when>
- </out:choose>
- </out:variable>
- <out:variable name="rv-lang">
- <out:if test="key('system-param', 'useReportLocaleInRVUI') = 'true'">
- <xsl:text/>&lang=<out:value-of select="$contentLocale"/>
- </out:if>
- </out:variable>
- <!-- Ref to UI object actions -->
- <out:variable name="ui-object" select="key( 'ui-object-actions', string($class) )"/>
- <table border="0" cellpadding="2" cellspacing="0" role="presentation">
- <tr class="tableText">
- <xsl:if test="@mode and (@mode = 'main' or @mode='mysub')">
- <!-- Properties ============= -->
- <!-- We do not apply any security on this since it could be used for shortcuts. The canRead, canWrite flags refer to the target in case of shortcut objects. -->
- <out:variable name="upfShortCut"><out:if test="cm:upfShortCut = 'true'">s</out:if></out:variable>
- <out:choose>
- <!-- Series 7 object -->
- <out:when test="cm:nid or cm:nbid">
- <out:variable name="daurl">
- <out:value-of select="$s7gateway"/>
- <out:choose>
- <!-- NewsItem of type URL (other) -->
- <out:when test="cm:nid and cm:objectClass = 'URL'">
- <out:choose>
- <out:when test="$upfShortCut != ''">
- <out:text/>?xmlcmd=<GetPage><Template>ni<out:value-of select="$upfShortCut"/>_properties_general.utml</Template></GetPage>&id=<out:value-of select="cm:nid"/>
- </out:when>
- <out:otherwise>
- <out:text/>?xmlcmd=<GetPage><Template>other<out:value-of select="$upfShortCut"/>_properties_general.utml</Template></GetPage>&id=<out:value-of select="cm:nid"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <!-- NewsItem of known type (IWR, PP, VIZ .. etc)-->
- <out:when test="cm:nid and cm:objectClass != 'URL'">
- <out:text/>?xmlcmd=<GetPage><Template>ni<out:value-of select="$upfShortCut"/>_properties_general.utml</Template></GetPage>&id=<out:value-of select="cm:nid"/>
- </out:when>
- <!-- NewsBox -->
- <out:otherwise>
- <out:text/>?xmlcmd=<GetPage><Template>nb<out:value-of select="$upfShortCut"/>_properties_general.utml</Template></GetPage>&isnewsbox=Y&id=<out:value-of select="cm:nbsid"/>
- </out:otherwise>
- </out:choose>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&LA=<out:value-of select="$productLocale"/>
- <out:text/>&back=<out:value-of select="$encoded-s7-back-url"/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{xtsext:protect(string($daurl),'none','s7url','s7url')}</xsl:with-param>
- <xsl:with-param name="onclick" select="'none'"/>
- <xsl:with-param name="icon" select="'action_properties.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
- </xsl:call-template>
- </out:when>
- <!-- CRN Object -->
- <out:otherwise>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">actions('{xtsext:javascriptencode(string($obj-name))}', '{$obj-class}', '{xtsext:javascriptencode(string($obj-path))}','properties_general.xts');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_properties.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
- </xsl:call-template>
- <!-- launchable actions -->
- <out:if test="$class='launchable' and $canRead">
- <out:variable name="launchableType" >
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:launchableType"/></out:when>
- <out:otherwise><out:value-of select="./cm:launchableType"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="$launchableType = 'application/vnd.ibm.cognos.ev' and $userCanUseEV">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', sGateway, 'ui.tool', 'EVStudio', 'ui.object', 'storeID("{$objID}")', 'ui.action','edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_analyzer.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_ADVISOR'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$launchableType = 'application/vnd.ibm.cognos.ev.canvas' and $userCanUseEV">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.mode','canvas', 'ui.gateway', sGateway, 'ui.tool', 'EVStudio', 'ui.object', 'storeID("{$objID}")', 'ui.action','edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_analyzer.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_ADVISOR'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$launchableType = 'application/vnd.ibm.cognos.cd' and $canExecute and $userCanUseCI">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', sGateway, 'ui.tool', 'cd', 'ui.id', '{xtsext:javascriptencode($objID)}', 'ui.action','edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_cd.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_CD'"/>
- </xsl:call-template>
- </out:when>
- </out:choose>
- </out:if>
- <out:if test="($obj-class='dashboard' or ($obj-class='shortcut' and cm:target/*/cm:objectClass='dashboard')) and $canRead and $canTraverse and $userCanUseDashboardViewer">
- <out:choose>
- <out:when test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank','menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes','ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'edit', 'ui.id', '{xtsext:javascriptencode($objID)}');</xsl:with-param>
- <xsl:with-param name="icon" select="'icon_dashboard.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_DASHBOARD_ALT'"/>
- </xsl:call-template>
- </out:when>
- <out:otherwise>
- <out:variable name="uiencoding" select="/root/env/param[@name='encoding']"/>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">directLaunch('ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'edit', 'ui.id', '{xtsext:javascriptencode($objID)}','ui.backURL', sBackURL ,'ui.errURL',sBackURL, 'ui.encoding', '{xtsext:javascriptencode($uiencoding)}');</xsl:with-param>
- <xsl:with-param name="icon" select="'icon_dashboard.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_DASHBOARD_ALT'"/>
- </xsl:call-template>
- </out:otherwise>
- </out:choose>
- </out:if>
- <out:if test="($obj-class='pagelet' or ( $obj-class='shortcut' and cm:target/*/cm:objectClass = 'pagelet')) and $canExecute and key('session-param', 'write') = 'true'">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">pageCmd('addToMyPages', '{$objID)}')</xsl:with-param>
- <xsl:with-param name="icon" select="'action_add_page_to_portal.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="(($obj-class = 'package' and $userInterfaces='metricStudio') or ($obj-class = 'shortcut' and cm:target/*/cm:objectClass='package' and $targetUserInterfaces='metricStudio'))">
- <out:if test="not($isDangling) and $ui-object/userInterface[@name='metricStudio']/action[@name = 'traverse'] and $canTraverse">
- <out:variable name="m"><out:value-of select="key('env-param','m')"/></out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{$gateway}?b_action=xts.run&m={$m}&m_folder={$objID}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_view_metrics_package.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_METRICSPACKAGE_CONTENT'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="contains($effectiveUserCapabilities, ' userCanUseMetricsManager ') and not($isDangling) and $canRead and $canExecute and $canTraverse and $ui-object/userInterface[@name='metricStudio']/action[@name = 'launchcmm']">
- <out:variable name="target-path">
- <out:choose>
- <out:when test="string($obj-class) = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
- <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'MetricStudio', 'ui.backURL', sBackURL, 'ui.object', '{xtsext:javascriptencode(string($target-path))}', 'ui.folder', '{xtsext:javascriptencode(string($location))}', 'ui.action', 'edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_cmm.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_METRICS_MANAGER'"/>
- </xsl:call-template>
- </out:if>
- </out:if>
- <out:if test="(($obj-class = 'package' and $userInterfaces='planningContributor') or ($obj-class = 'shortcut' and cm:target/*/cm:objectClass='package' and $targetUserInterfaces='planningContributor'))">
- <out:if test="not($isDangling) and $ui-object/userInterface[@name='planningContributor']/action[@name = 'traverse'] and $canRead and $canTraverse">
- <out:variable name="m"><out:value-of select="key('env-param','m')"/></out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{$gateway}?b_action=xts.run&m={$m}&m_folder={$objID}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_view_planning_package.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_PLANNINGPACKAGE_CONTENT'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="contains($effectiveUserCapabilities, ' userCanUsePlanningContributor ') and not($isDangling) and $ui-object/userInterface[@name='planningContributor']/action[@name = 'launchContributor'] and $canExecute">
- <out:variable name="target-path">
- <out:choose>
- <out:when test="string($obj-class) = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
- <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'Contributor', 'ui.backURL', sBackURL, 'ui.object', '{xtsext:javascriptencode(string($target-path))}', 'ui.folder', '{xtsext:javascriptencode(string($location))}', 'ui.action', 'new');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_contributor.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_CONTRIBUTOR'"/>
- </xsl:call-template>
- </out:if>
- </out:if>
- <out:if test="(($obj-class = 'package' and $userInterfaces='adaptiveAnalytics') or ($obj-class = 'shortcut' and cm:target/*/cm:objectClass='package' and $targetUserInterfaces='adaptiveAnalytics'))">
- <out:if test="not($isDangling) and $ui-object/userInterface[@name='adaptiveAnalytics']/action[@name = 'traverse'] and $canRead and $canTraverse">
- <out:variable name="m"><out:value-of select="key('env-param','m')"/></out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{$gateway}?b_action=xts.run&m={$m}&m_folder={$objID}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_view_analytic_package.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_ANALYTICS'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="contains($effectiveUserCapabilities, ' userCanUseAdaptiveAnalytics ') and not($isDangling) and $ui-object/userInterface[@name='adaptiveAnalytics']/action[@name = 'launchAnalyticsTOC'] and $canExecute">
- <out:variable name="target-path">
- <out:choose>
- <out:when test="string($obj-class) = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
- <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480','ui.gateway', sGateway, 'ui.tool', 'AnalyticsTOC', 'ui.backURL', sBackURL, 'ui.object', '{xtsext:javascriptencode(string($target-path))}', 'ui.folder', '{xtsext:javascriptencode(string($location))}');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_analytic.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_ANALYTICS'"/>
- </xsl:call-template>
- </out:if>
- </out:if>
- </out:otherwise>
- </out:choose>
- <!-- Previous versions ============= -->
- <out:if test="(string(cm:target/*/cm:defaultOutputFormat) !='' or string(cm:defaultOutputFormat) != '' or $class='document') and ($canRead and $canTraverse) and $ui-object/action[@name = 'previous_versions']">
- <out:choose>
- <out:when test="$class='document'">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_view_report_output.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_IMG_VIEW_DOCUMENT_ALT'"/>
- <xsl:with-param name="morphlet">{$versions_target}</xsl:with-param>
- </xsl:call-template>
- </out:when>
- <out:otherwise>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_view_report_output.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_IMG_VIEW_RPT_ALT'"/>
- <xsl:with-param name="morphlet">{$versions_target}</xsl:with-param>
- </xsl:call-template>
- </out:otherwise>
- </out:choose>
- </out:if>
- <!-- View agentHotList when exists for agents-->
- <out:if test="(starts-with( $obj-class,'agentDefinition' ) or $obj-class='shortcut' and starts-with( string(cm:target/*/cm:objectClass),'agentDefinition' )) and $canRead and $canTraverse and $event_list !='' ">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_view_AS_hotlist.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_VIEW_AGS_HOTLIST_TIP'"/>
- <xsl:with-param name="href">
- <xsl:text/>{$gateway}?b_action=cognosViewer&ui.action=view<xsl:text/>
- <xsl:text/>&ui.object={xtsext:protect(xtsext:urlencode(string($event_list)), 'url','searchPath','getdata')}<xsl:text/>
- <xsl:text/>&cv.toolbar=false<xsl:text/>
- <xsl:text/>&ui.name={xtsext:protect(xtsext:urlencode(string($name)),'url','userData','getdata')}<xsl:text/>
- <xsl:text/>{$rv-lang}&ui.cafcontextid={$cafContextIDAGS}&ui.backURL={xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')}<xsl:text/>
- </xsl:with-param>
- </xsl:call-template>
- </out:if>
- <!-- run powerPlay 7 -->
- <out:if test="not($isDangling) and $class='powerPlayReport' and $canExecute and $canRead and $ui-object/action[@name = 'run_options']">
- <out:variable name="reportPath">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
- <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:if test="$class='powerPlayReport'">
- <out:variable name="ppreportprompt">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'">
- <out:if test="string(cm:target/*/cm:hasPrompts)='true'">
- <out:text/><out:value-of select="cm:target/*/cm:options/cm:powerPlayOptionBoolean[cm:name='prompt']/cm:value"/><out:text/>
- </out:if>
- </out:when>
- <out:when test="string(cm:hasPrompts)='true'"><out:value-of select="cm:options/cm:powerPlayOptionBoolean[cm:name='prompt']/cm:value"/></out:when>
- </out:choose>
- </out:variable>
- <out:variable name="ppcubecontentname">
- <out:choose>
- <out:when test="$obj-class = 'shortcut' and starts-with( string(cm:target/*/cm:objectClass),'powerPlay' )"><out:value-of select="cm:target/*/cm:cubeContentName"/></out:when>
- <out:when test="starts-with( string($obj-class),'powerPlay' )"><out:value-of select="cm:cubeContentName"/></out:when>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="string($ppreportprompt)!=''">
- <out:variable name="ppURL">
- <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
- <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&crnccn=<out:value-of select="$ppcubecontentname"/>
- <out:text/>&crnfrm=PDF&crnp=<out:value-of select="$ppreportprompt"/>
- <out:text/>&LA=<out:value-of select="$productLocale"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&BACK=<out:value-of select="$encodedPPBack"/><out:text/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_run_16.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_RUN_PDF'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:when>
- <out:otherwise>
- <out:variable name="ppURL">
- <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
- <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&crnccn=<out:value-of select="$ppcubecontentname"/>
- <out:text/>&crnfrm=PDF&LA=<out:value-of select="$productLocale"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&BACK=<out:value-of select="$encodedPPBack"/><out:text/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_run_16.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_RUN_PDF'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:otherwise>
- </out:choose>
- </out:if>
- </out:if>
- <xsl:if test="@mode and @mode='main'">
- <!-- Run options ============= -->
- <out:if test="not(contains($class,'powerPlayReport')) and ($userCanUseRWO or not(contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' ')))) and $supportRunOptionsAction and not($isDangling) and $canExecute and $ui-object/action[@name = 'run_options'] and ((not(contains(' jobDefinition agentDefinition agentDefinitionView ', concat(' ', $class, ' ')))) or ($canRead and $canTraverse ))">
- <out:variable name="run_target">
- <out:choose>
- <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' '))">
- <out:value-of select="'runWithOptions/report.xts'"/>
- </out:when>
- <out:when test="$class = 'agentDefinitionView'">
- <out:value-of select="'runWithOptions/agentDefinition.xts'"/>
- </out:when>
- <out:when test="$class = 'dataMovementTaskAlias'">
- <out:value-of select="'runWithOptions/dataMovementTask.xts'" />
- </out:when>
- <out:when test="$class = 'queryServiceTask'">
- <out:value-of select="'runWithOptions/generic.xts'" />
- </out:when>
- <out:otherwise>
- <out:value-of select="concat('runWithOptions/', $class, '.xts')"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_run_16.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_RUN'"/>
- <xsl:with-param name="morphlet" select="'{$run_target}'"/>
- <xsl:with-param name="flippingIcon" select="true()"/>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <!-- Edit - with Studios ============= -->
- <out:if test="not($isDangling) and $canRead and $ui-object/action[contains(@name,'edit')]">
- <out:variable name="reportPath">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
- <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="$ui-object/action[@name = 'edit'] and $class='powerPlay8Report' and contains($effectiveUserCapabilities, ' userCanUsePPS ') and $canExecute">
- <out:variable name="ppdesignmode">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:options/cm:powerPlay8OptionData[cm:name='data']/cm:value"/></out:when>
- <out:otherwise><out:value-of select="cm:options/cm:powerPlay8OptionData[cm:name='data']/cm:value"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="string($ppdesignmode)!='previewWithNoData'">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_edit_with_pp8.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX8'"/>
- <xsl:with-param name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'PowerplayStudio', 'ui.object', '{xtsext:javascriptencode(string($reportPath))}', 'ui.action', 'edit', 'ui.crnfrm', 'HTML', 'ui.crngnd', 'false', 'ui.backURL', '{$javascript-encodedPP8Back}');
- </xsl:with-param>
- </xsl:call-template>
- </out:when>
- <out:otherwise>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_edit_with_pp8.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX8'"/>
- <xsl:with-param name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'PowerplayStudio', 'ui.object', '{xtsext:javascriptencode(string($reportPath))}', 'ui.action', 'edit', 'ui.crnfrm', 'HTML', 'ui.crngnd', 'true', 'ui.backURL', '{$javascript-encodedPP8Back}');
- </xsl:with-param>
- </xsl:call-template>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="$ui-object/action[@name = 'edit'] and ($class='powerPlayReport' or $class='powerPlayCube') and $canExecute">
- <out:variable name="ppdesignmode">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:options/cm:powerPlayOptionData[cm:name='data']/cm:value"/></out:when>
- <out:otherwise><out:value-of select="cm:options/cm:powerPlayOptionData[cm:name='data']/cm:value"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="ppcubecontentname">
- <out:choose>
- <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:cubeContentName"/></out:when>
- <out:otherwise><out:value-of select="cm:cubeContentName"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="string($class)='powerPlayCube'">
- <out:variable name="ppURL">
- <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
- <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&crnccn=<out:value-of select="$ppcubecontentname"/>
- <out:text/>&LA=<out:value-of select="$productLocale"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&BACK=<out:value-of select="$encodedPPBack"/><out:text/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_PP.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="string($ppdesignmode)!='previewWithNoData'">
- <out:variable name="ppURL">
- <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
- <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&crnccn=<out:value-of select="$ppcubecontentname"/>
- <out:text/>&crnfrm=HTML&crngnd=false&LA=<out:value-of select="$productLocale"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&BACK=<out:value-of select="$encodedPPBack"/><out:text/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_PP.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:when>
- <out:otherwise>
- <out:variable name="ppURL">
- <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
- <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&crnccn=<out:value-of select="$ppcubecontentname"/>
- <out:text/>&crnfrm=HTML&crngnd=true&LA=<out:value-of select="$productLocale"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&BACK=<out:value-of select="$encodedPPBack"/><out:text/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_PP_design.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX'"/>
- <xsl:with-param name="onclick" select="'none'"/>
- </xsl:call-template>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="$ui-object/action[@name = 'edit'] and contains($effectiveUserCapabilities, ' userCanUseANS ') and $class = 'analysis' and $canExecute">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', sGateway, 'ui.tool', 'AnalysisStudio', 'ui.object', '{xtsext:javascriptencode(string($reportPath))}', 'ui.action', 'edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_PS.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPS'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$ui-object/action[@name = 'edit'] and $userCanUseAGS and $class = 'agentDefinition' and $canTraverse and $canRead">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', sGateway, 'ui.tool', 'EventStudio', 'ui.backURL', sBackURL, 'ui.object', '{xtsext:javascriptencode( string( $reportPath ) )}', 'ui.action', 'edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_AS.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WAG'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$ui-object/action[contains(@name,'edit')] and contains($effectiveUserCapabilities, ' userCanUseRS ') and ( (key('session-param','rsuiprofile')!='' and ($class='report' or $class='reportTemplate')) or ((key('session-param','rsuiprofile')='pro' or key('session-param','rsuiprofile')='all') and ( $class='interactiveReport' or ($userCanOpenPPInReportStudio and $class='powerPlay8Report') )) ) ">
- <!--*
- * The powerPlay8Reports and interactiveReports are only supported for 'pro' profile.
- * The reports and reportTemplates are available for bua and pro profiles
- * -->
- <out:variable name="RS_entries">
- <!-- Report Studio -->
- <out:if test="$ui-object/action[@name = 'edit']">
- <out:if test="key('session-param','rsuiprofile')='pro' or key('session-param','rsuiprofile')='all'">
- <entry uiprofile="pro">
- <icon>action_edit_with_RS.gif</icon>
- <tooltip><xts:string id="IDS_ACT_EDIT_WRS"/></tooltip>
- <uiprofile>Professional</uiprofile>
- </entry>
- </out:if>
- </out:if>
- <!-- Cognos Workspace Advanced (aka CWA or CBIA) -->
- <out:if test="$ui-object/action[@name = 'edit_cbia']">
- <out:if test="key('session-param','rsuiprofile')='bua' or key('session-param','rsuiprofile')='all'">
- <out:if test="$class='report' or $class='reportTemplate'">
- <entry uiprofile="bua">
- <icon>action_edit_with_RS_BUA.gif</icon>
- <tooltip><xts:string id="IDS_ACT_EDIT_WBUA"/></tooltip>
- <uiprofile>BUA_standalone</uiprofile>
- </entry>
- </out:if>
- </out:if>
- </out:if>
- </out:variable>
- <out:for-each select="$RS_entries/entry">
- <out:variable name="RS_launchTool">
- <out:choose>
- <out:when test="$class='powerPlay8Report'">ReportStudioPPReport</out:when>
- <out:otherwise>ReportStudio</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="RS_Icon" select="icon"/>
- <out:variable name="RS_Tooltip" select="tooltip"/>
- <out:variable name="RS_UIProfile" select="uiprofile"/>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=no,location=no,resizable=yes,width=700,height=500', 'ui.gateway', sGateway, 'ui.tool', '{$RS_launchTool}', 'ui.object', '{xtsext:javascriptencode(string($reportPath))}', 'ui.action', 'edit', 'ui.profile', '{$RS_UIProfile}');</xsl:with-param>
- <xsl:with-param name="icon" select="'{$RS_Icon}'"/>
- <xsl:with-param name="customTooltip" select="'$RS_Tooltip'"/>
- </xsl:call-template>
- </out:for-each>
- </out:when>
- <out:when test="contains($effectiveUserCapabilities, ' userCanUseQS ') and $class = 'query' and $canExecute">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'QueryStudio', 'ui.backURL', sBackURL, 'ui.object', '{xtsext:javascriptencode(string($reportPath))}', 'ui.action', 'edit');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_edit_with_QS.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WQS'"/>
- </xsl:call-template>
- </out:when>
- </out:choose>
- </out:if>
- <!-- Custom View ============= -->
- <out:if test="not($isDangling) and $ui-object/action[@name = 'customview'] and not(cm:nid)">
- <out:choose>
- <out:when test="$class = 'powerPlay8Report' and ($canRead or $canExecute) ">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM_PP8'"/>
- <xsl:with-param name="morphlet" select="'new_general.xts'"/>
- <xsl:with-param name="newclass" select="'powerPlay8ReportView'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$class = 'dataMovementTask' and ($canRead or $canExecute) ">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM_DMT'"/>
- <xsl:with-param name="morphlet" select="'new_general.xts'"/>
- <xsl:with-param name="newclass" select="'dataMovementTaskAlias'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$class != 'agentDefinition' and ($canRead or $canExecute) ">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM'"/>
- <xsl:with-param name="morphlet" select="'new_general.xts'"/>
- <xsl:with-param name="newclass" select="'reportView'"/>
- </xsl:call-template>
- </out:when>
- <out:when test="$class = 'agentDefinition' and $canRead and $canTraverse">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM_AGENT'"/>
- <xsl:with-param name="morphlet" select="'new_general.xts'"/>
- <xsl:with-param name="newclass" select="'agentDefinitionView'"/>
- </xsl:call-template>
- </out:when>
- </out:choose>
- </out:if>
- </xsl:if>
- <xsl:if test="not(@mode and @mode = 'main')">
- <xsl:variable name="usePropertiesGeneral">properties_general.xts</xsl:variable>
- <xsl:variable name="usePropertiesPermissions">properties_privileges.xts</xsl:variable>
- <!-- Properties ============= -->
- <out:if test="$supportPropertiesAction">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">actions('{xtsext:javascriptencode(string($obj-name))}', '{$obj-class}', '{xtsext:javascriptencode(string($obj-path))}','<xsl:value-of select="$usePropertiesGeneral"/>');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_properties.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="$supportPermissionsAction">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">actions('{xtsext:javascriptencode(string($obj-name))}', '{$obj-class}', '{xtsext:javascriptencode(string($obj-path))}','<xsl:value-of select="$usePropertiesPermissions"/>');</xsl:with-param>
- <xsl:with-param name="icon" select="'action_properties.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="$supportDeleteAction">
- <out:variable name="msg">
- <xts:string id="IDS_TOOLS_DIRECTORY_DELETE_NAMESPACE"><xts:param name="defaultName"><out:value-of select="$obj-name"/></xts:param></xts:string>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">doDeleteOne('{xtsext:javascriptencode(string($obj-path))}','{xtsext:javascriptencode(string($msg))}')</xsl:with-param>
- <xsl:with-param name="icon" select="'action_delete.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_DELETE'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="$supportActivateAction and $class='contentManagerService'">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">doActivate('{xtsext:javascriptencode(string($obj-path))}')</xsl:with-param>
- <xsl:with-param name="icon" select="'action_activate.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACTION_ACTIVATE'"/>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <xsl:if test="@mode and @mode = 'tools'">
- <!-- Job action properties -->
- <out:if test="$supportJobPropertiesAction and $canExecute and $ui-object/action[@name = 'job']">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_properties.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
- <xsl:with-param name="morphlet" select="'properties_job.xts'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="$supportCreateProfileAction and $class='account' and $canWrite">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_create_user_profile.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACTION_CREATE_PROFILE'"/>
- <xsl:with-param name="onclick">
- var form = document.cfrmEntryAdmin;<xsl:text/>
- form.ifrmcmd.value='createUserProfile';<xsl:text/>
- form.m_class.value='account';<xsl:text/>
- form.m_obj.value='{$js-encoded-path}';<xsl:text/>
- form.backURL.value="{$back-url}";<xsl:text/>
- form.m.value = 'portal/submit.xts';<xsl:text/>
- form.submit();<xsl:text/>
- </xsl:with-param>
- </xsl:call-template>
- </out:if>
- <out:if test="$supportEditDataSet and $class='dataSet' and $canWrite">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_edit_dataset.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_LOB_DATA_EDIT'"/>
- <xsl:with-param name="href">{$gateway}?b_action=xts.run&m={$app}/personal_data.xts&action=edit&dataSetStoreID={xtsext:urlencode($obj-id)}&dataSetName={xtsext:urlencode($dataSetName)}&backURL={xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')}</xsl:with-param>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <xsl:if test="@mode and (@mode = 'tools' or @mode='main')">
- <xsl:if test="@mode != 'main'">
- <!-- Run options ============= -->
- <out:if test="not(contains($class,'powerPlayReport')) and ($userCanUseRWO or not(contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' ')))) and $supportRunOptionsAction and not($isDangling) and $canExecute and $ui-object/action[@name = 'run_options'] and ((not(contains(' jobDefinition agentDefinition agentDefinitionView ', concat(' ', $class, ' ')))) or ($canRead and $canTraverse ))">
- <out:variable name="run_target">
- <out:choose>
- <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' '))">
- <out:value-of select="'runWithOptions/report.xts'"/>
- </out:when>
- <out:when test="$class = 'agentDefinitionView'">
- <out:value-of select="'runWithOptions/agentDefinition.xts'"/>
- </out:when>
- <out:when test="$class = 'dataMovementTaskAlias'">
- <out:value-of select="'runWithOptions/dataMovementTask.xts'" />
- </out:when>
- <out:when test="$class = 'exportDeployment' or $class = 'importDeployment'">
- <out:value-of select="'runWithOptions/deployment.xts'"/>
- </out:when>
- <out:when test="$class = 'queryServiceTask'">
- <out:value-of select="'runWithOptions/generic.xts'" />
- </out:when>
- <out:otherwise>
- <out:value-of select="concat('runWithOptions/', $class, '.xts')"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_run_16.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_RUN'"/>
- <xsl:with-param name="morphlet" select="'{$run_target}'"/>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <!-- Schedule -->
- <out:if test="$userCanUseSched and $supportScheduleAction = 'true' and not($isDangling) and $canRead and $canTraverse and $canExecute and $ui-object/action[@name = 'schedule'] and not(cm:nid)">
- <out:variable name="run_target">
- <out:choose>
- <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', $class)">
- <out:value-of select="'schedule/report.xts'"/>
- </out:when>
- <out:when test="contains(' exportDeployment importDeployment ', $class)">
- <out:value-of select="'schedule/deployment.xts'"/>
- </out:when>
- <out:when test="contains(' agentDefinition agentDefinitionView ', $class)">
- <out:value-of select="'schedule/agentDefinition.xts'"/>
- </out:when>
- <out:when test=" $class = 'dataMovementTaskAlias' ">
- <out:value-of select="'schedule/dataMovementTask.xts'" />
- </out:when>
- <out:when test=" $class = 'queryServiceTask' ">
- <out:value-of select="'schedule/generic.xts'" />
- </out:when>
- <out:otherwise>
- <out:value-of select="concat('schedule/', $class, '.xts')"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_schedule.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_SCHEDULE'"/>
- <xsl:with-param name="morphlet" select="'{$run_target}'"/>
- </xsl:call-template>
- </out:if>
- <out:if test="$ui-object/action[@name = 'shortcut' and @visible = 'main'] and not(cm:nid) and not($obj-class = 'shortcut')">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_new_ref.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_SHORTCUT_TIP'"/>
- <xsl:with-param name="morphlet" select="'new_general.xts'"/>
- <xsl:with-param name="newclass" select="'shortcut'"/>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <xsl:if test="@mode and @mode = 'tools'">
- <!-- Test connection -->
- <out:if test="$supportTestConnection = 'true' and ($canRead) and $canTraverse and $ui-object/action[@name = 'test']">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_test_connection.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACTION_TEST_CONNECTION_TIP'"/>
- <xsl:with-param name="morphlet" select="'test_connection.xts'"/>
- </xsl:call-template>
- </out:if>
- <!-- runOnce -->
- <out:if test="$supportRunOnce = 'true' and not($isDangling) and ($userCanUseRWO or not(contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' ')))) and $canExecute and ((not(contains(' jobDefinition agentDefinition agentDefinitionView ', concat(' ', $class, ' ')))) or ($canRead and $canTraverse )) and $ui-object/action[@name = 'run_once']">
- <out:variable name="run_target">
- <out:choose>
- <out:when test=" $class = 'dataMovementTaskAlias' ">runWithOptions/dataMovementTask.xts</out:when>
- <out:when test=" $class = 'queryServiceTask' ">runWithOptions/generic.xts</out:when>
- <out:when test=" $class = 'importDeployment' or $class = 'exportDeployment' ">runWithOptions/deployment.xts</out:when>
- <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' '))">
- <out:value-of select="'runWithOptions/report_advanced.xts'"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="concat('runWithOptions/', $class, '.xts')"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_run_once.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_RUN_ONCE'"/>
- <xsl:with-param name="morphlet" select="'{$run_target}'"/>
- </xsl:call-template>
- </out:if>
- <!-- View Run History -->
- <out:if test="$supportViewRunHistory = 'true' and $canRead and $canTraverse and $ui-object/action[@name = 'run_history']">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_view_run_history.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_IMG_VIEW_HISTORY_ALT'"/>
- <xsl:with-param name="morphlet" select="'history/view.xts'"/>
- </xsl:call-template>
- </out:if>
- <!-- view history details -->
- <out:if test="$supportViewRunHistoryDetails = 'true'">
- <out:variable name="js-encoded-history-path">
- <out:value-of select="xtsext:javascriptencode(string($history-path))"/>
- </out:variable>
- <out:variable name="runHistoryDetail">
- <xsl:choose>
- <xsl:when test="@monitorServiceResponse = 'true'">
- <xsl:value-of select="'history/view_executing_details.xts'"/>
- </xsl:when>
- <xsl:otherwise>
- <out:choose>
- <out:when test="$class = 'exportDeployment' or $class = 'importDeployment'">
- <xsl:value-of select="'history/deployment_details.xts'"/>
- </out:when>
- <out:when test="$class = 'dataMovementTask' or $class = 'dataMovementTaskAlias'">
- <xsl:value-of select="'history/dataMovement_details.xts'"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="'history/view_details.xts'"/>
- </out:otherwise>
- </out:choose>
- </xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="tooltip">
- <out:choose>
- <out:when test="$class = 'exportDeployment' or $class = 'importDeployment'"><xts:string id="IDS_VRH_ACT_VIEW_DETAILS_DEPLOYMENT"><xts:param name="requestTime"><out:value-of select="xtsext:enforceBTD(xtsext:formatDateFromUTC( string( $runHistoryRequestedTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) ), 'auto', $productLocale)"/></xts:param></xts:string></out:when>
- <out:otherwise><xts:string id="IDS_VRH_ACT_VIEW_DETAILS"><xts:param name="requestTime"><out:value-of select="xtsext:enforceBTD(xtsext:formatDateFromUTC( string( $runHistoryRequestedTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) ), 'auto', $productLocale)"/></xts:param></xts:string></out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_view_run_history_details.gif'"/>
- <xsl:with-param name="customTooltip" select="'$tooltip'"/>
- <xsl:with-param name="onclick">
- var form = document.<xsl:value-of select="@viewOutputForm"/>;<xsl:text/>
- <xsl:choose>
- <xsl:when test="@maintain = 'true'">
- form.ps_nav_op.value = 'maintain';<xsl:text/>
- form.m_obj.value = '{$js-encoded-history-path}';<xsl:text/>
- form.m_name.value = '{$js-encoded-name}';<xsl:text/>
- form.m_class.value = '{$class}';<xsl:text/>
- form.m.value = 'portal/{$runHistoryDetail}';<xsl:text/>
- <xsl:if test="@monitorServiceResponse = 'true'">
- form.eventID.value = '{xtsext:javascriptencode(string($eventID))}';<xsl:text/>
- </xsl:if>
- form.submit();<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- actions('{$js-encoded-name}', '{$class}', '{$js-encoded-history-path}', '{$runHistoryDetail}');
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <xsl:if test="@mode and @mode = 'portlets'">
- <!-- Preview Portlet -->
- <out:if test="$supportPreviewPortlet = 'true' and $canRead">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_preview_portlet.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_PORTLET'"/>
- <xsl:with-param name="onclick">
- <out:text/>window.open('{$gateway}?b_action=xts.run&m={$app}/cc.xts&<out:text/>
- <out:text/>m_portlet=/connection/portlet:path:{xtsext:protect(concat('storeID(%22', $obj-id, '%22)'),'url','storeID','getdata')}<out:text/>
- <out:text/>&rui=hh&m_pagemode=preview','','');<out:text/>
- </xsl:with-param>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <xsl:if test="@mode and (@mode = 'tools' or @mode = 'view_versions')">
- <!-- Output versions -->
- <out:if test="$supportViewOutputsAction = 'true' and $canRead and $canTraverse and $ui-object/action[@name = 'previous_versions']">
- <out:variable name="js-encoded-reportVersion-path">
- <out:value-of select="xtsext:javascriptencode(string($reportVersion-path))"/>
- </out:variable>
- <out:variable name="js-encoded-runHistoryRequestedTime">
- <out:value-of select="xtsext:javascriptencode(string($runHistoryRequestedTime))"/>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="onclick">
- var form = document.<xsl:value-of select="@viewOutputForm"/>;<xsl:text/>
- form.reportVersionPath.value = '{$js-encoded-reportVersion-path}';<xsl:text/>
- form.runHistoryRequestedTime.value = '{$js-encoded-runHistoryRequestedTime}';<xsl:text/>
- <xsl:choose>
- <xsl:when test="@stackUp = 'true'">
- form.ps_nav_op.value = 'push';<xsl:text/>
- form.m_obj.value = '{$js-encoded-path}';<xsl:text/>
- form.m_name.value = '{$js-encoded-name}';<xsl:text/>
- form.m.value = 'portal/{$versions_target}';<xsl:text/>
- form.submit();<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- actions('{$js-encoded-name}', '{$class}', '{$js-encoded-path}', '{$versions_target}');
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="icon" select="'action_view_report_output.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_VIEW_OUTPUTS'"/>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <out:if test="$supportViewHotListAction = 'true' and $canTraverse">
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'action_view_AS_hotlist.gif'"/>
- <xsl:with-param name="tooltip" select="'IDS_VIEW_AGS_HOTLIST_TIP'"/>
- <xsl:with-param name="onclick">
- <xsl:text>javascript:window.open(</xsl:text>
- <xsl:text>"{$gateway}?b_action=cognosViewer&ui.action=view&ui.object={xtsext:javascriptencode( xtsext:protect( xtsext:urlencode(string($agsEventList-path)), 'url','searchPath','getdata'))}&cv.header=false&cv.toolbar=false&ui.name={xtsext:javascriptencode(xtsext:protect(xtsext:urlencode(string(cm:parent/*/cm:defaultName)),'url','userData','getdata'))}&ui.format={$output_format}{$rv-lang}&ui.cafcontextid={$cafContextIDAGS}&ui.backURL=" + sEncodedBackURL</xsl:text>
- <xsl:text>, "", "menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480");</xsl:text>
- </xsl:with-param>
- </xsl:call-template>
- </out:if>
- <xsl:if test="@mode and @mode = 'tools'">
- <out:if test="$supportPortletControlAction = 'true' and $class='portlet' and $canWrite and $canRead">
- <!-- toggle the canCustomize property of the portlet -->
- <out:variable name="canCustomize">
- <out:choose>
- <out:when test="cm:canCustomize='false'"><out:value-of select="'true'"/></out:when>
- <out:otherwise><out:value-of select="'false'"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="action_icon">
- <out:choose>
- <out:when test="cm:canCustomize='false'"><out:value-of select="'locked.gif'"/></out:when>
- <out:otherwise><out:value-of select="'unlocked.gif'"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="tooltip">
- <out:choose>
- <out:when test="cm:canCustomize = 'false'"><xts:string id="IDS_ACT_PORTLET_CONTROL_CUSTOMIZATION_UNLOCK"/></out:when>
- <out:otherwise><xts:string id="IDS_ACT_PORTLET_CONTROL_CUSTOMIZATION_LOCK"/></out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon" select="'{$action_icon}'"/>
- <xsl:with-param name="customTooltip" select="'$tooltip'"/>
- <xsl:with-param name="onclick">
- var form = document.cfrmEntryAdmin;<xsl:text/>
- form.ifrmcmd.value='save';<xsl:text/>
- form.m_class.value='portlet';<xsl:text/>
- form.m_obj.value="{$js-encoded-path}";<xsl:text/>
- form.backURL.value="{$back-url}";<xsl:text/>
- form.m_p_canCustomize.value='{$canCustomize}';<xsl:text/>
- form.m.value = 'portal/submit.xts';<xsl:text/>
- form.submit();<xsl:text/>
- </xsl:with-param>
- </xsl:call-template>
- </out:if>
- </xsl:if>
- <!-- Render custom actions for the object currently in context if there are any -->
- <!-- Define references to the context object that we care about -->
- <out:variable name="obj" select="."/>
- <out:variable name="target" select="./cm:target/*/*"/>
- <out:for-each select="$ui-object/action[@type = 'custom']">
- <!-- if there is at least one property to pass on the custom action then build a query string to tack on to the end of the custom action command -->
- <out:variable name="qs">
- <out:if test="objProperties/property">
- <!-- Make an attempt to generate a well-formed http GET request given the specified url which may or may not be a cgi command -->
- <out:choose>
- <out:when test="contains(string(url), '=')">&</out:when> <!-- cgi command with some existing query values -->
- <out:when test="contains(string(url), '?')"></out:when> <!-- cgi command without query values -->
- <out:otherwise>?</out:otherwise> <!-- some url! make sure there is a ? at the end before adding our query values -->
- </out:choose>
- <out:variable name="encoding">
- <out:choose>
- <out:when test="objProperties/@encode"><out:value-of select="objProperties/@encode"/></out:when>
- <out:otherwise>utf-8</out:otherwise>
- </out:choose>
- </out:variable>
- <!-- Build the query values -->
- <out:for-each select="objProperties/property">
- <out:if test="position() != 1">&</out:if>
- <out:value-of select="."/>=<xsl:text/>
- <out:choose>
- <!-- If this is a shortcut then use the properties of the object it points to -->
- <out:when test="$obj-class = 'shortcut'">
- <out:value-of select="xtsext:protect(xtsext:urlencode(string($target[local-name()= string(current())]), string($encoding)),'url',concat('NAME',string(.)),'getdata')"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:protect(xtsext:urlencode(string($obj/*[local-name()= string(current())]), string($encoding)),'url',concat('NAME',string(.)),'getdata')"/>
- </out:otherwise>
- </out:choose>
- </out:for-each>
- </out:if>
- </out:variable>
- <xsl:call-template name="renderAction">
- <xsl:with-param name="icon">{icon}</xsl:with-param>
- <xsl:with-param name="customTooltip">tooltip[lang($productLocale)]</xsl:with-param>
- <xsl:with-param name="onclick">none</xsl:with-param>
- <xsl:with-param name="href">{url}{$qs}</xsl:with-param>
- </xsl:call-template>
- </out:for-each>
- <out:variable name="objNameDisplay">
- <out:value-of select="xtsext:enforceBTD($obj-name, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:variable>
- <xsl:choose>
- <xsl:when test="@mode and (@mode = 'main' or @mode='mysub')">
- <!-- Actions -->
- <td class="objectOptions" nowrap="nowrap">
- <out:choose>
- <out:when test="cm:nid or cm:nbid">
- <out:choose>
- <!-- NewsItem -->
- <out:when test="cm:nid">
- <out:choose>
- <out:when test="$upfShortCut != '' or cm:upfProviderType = ''">
- <!-- build the url -->
- <out:variable name="daurl">
- <out:value-of select="$s7gateway"/>?xmlcmd=<GetPage><Template>ni<out:value-of select="$upfShortCut"/>_actions.utml</Template></GetPage><out:text/>
- <out:text/>&id=<out:value-of select="cm:nid"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&LA=<out:value-of select="$productLocale"/>
- <out:text/>&back=<out:value-of select="$encoded-s7-back-url"/>
- </out:variable>
- <a href="{'{xtsext:protect(string($daurl),"none","s7url","s7url")}'}">
- <out:attribute name="title">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <out:attribute name="aria-label">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <xts:string id="IDS_ACT_MORE"/>
- </a>
- </out:when>
- <out:otherwise>
- <!-- build the url -->
- <out:variable name="daurl">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/><out:value-of select="'/upf_actions.xts'"/>
- <out:text/>&id=<out:value-of select="cm:nid"/>&provider=<out:value-of select="cm:upfProviderType"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&LA=<out:value-of select="$productLocale"/>
- <out:text/>&back=<out:value-of select="xtsext:protect(string($encoded-s7-back-url),'none','s7url','s7url')"/>
- </out:variable>
- <a href="{'{$daurl}'}">
- <out:attribute name="title">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <out:attribute name="aria-label">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <xts:string id="IDS_ACT_MORE"/>
- </a>
- </out:otherwise>
- </out:choose>
- </out:when>
- <!-- NewsBox -->
- <out:otherwise>
- <!-- build the url -->
- <out:variable name="daurl">
- <out:value-of select="$s7gateway"/>?xmlcmd=<GetPage><Template>nb<out:value-of select="$upfShortCut"/>_actions.utml</Template></GetPage><out:text/>
- <out:text/>&isnewsbox=Y&id=<out:value-of select="cm:nbsid"/>
- <out:text/>&LO=<out:value-of select="$contentLocale"/>
- <out:text/>&LA=<out:value-of select="$productLocale"/>
- <out:text/>&back=<out:value-of select="$encoded-s7-back-url"/>
- </out:variable>
- <a href="{'{xtsext:protect(string($daurl),"none","s7url","s7url")}'}">
- <out:attribute name="title">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <out:attribute name="aria-label">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <xts:string id="IDS_ACT_MORE"/>
- </a>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="starts-with(string($class),'powerPlay')">
- <out:variable name="ppurl">
- <out:value-of select="$gateway"/>?b_action=xts.run&m=<out:value-of select="$app"/><out:value-of select="'/actions.xts'"/>
- <out:text/>&m_name=<out:value-of select="xtsext:protect(xtsext:urlencode(string($obj-name)),'url','userData','getdata')"/>
- <out:text/>&m_class=<out:value-of select="$obj-class"/>
- <out:text/>&ppBACK=<out:value-of select="xtsext:protect(string($encodedPPBack),'url','url','getdata')"/>
- <out:text/>&backURL=<out:value-of select="$encoded-back-url"/>
- <out:text/>&m_obj=<out:value-of select="xtsext:protect(xtsext:urlencode(string($obj-path)),'url','searchPath','getdata')"/>
- <out:text/>&m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
- </out:variable>
- <a href="{'{$ppurl}'}">
- <out:attribute name="title">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <out:attribute name="aria-label">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <xts:string id="IDS_ACT_MORE"/>
- </a>
- </out:when>
- <!-- CRN object -->
- <out:otherwise>
- <a href="#">
- <!-- For shortcuts we always use the current object's class, name, and path to launch the "Actions" dialog -->
- <out:attribute name="onClick">actions('<out:value-of select="xtsext:javascriptencode(string($obj-name))"/>', '<out:value-of select="$obj-class"/>','<out:value-of select="xtsext:javascriptencode(string($obj-path))"/>','actions.xts', null, '<out:value-of select="xtsext:javascriptencode(string($location))"/>');</out:attribute>
- <out:attribute name="title">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <out:attribute name="aria-label">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <xts:string id="IDS_ACT_MORE"/>
- </a>
- </out:otherwise>
- </out:choose>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="useActions">actions.xts</xsl:variable>
- <!-- Actions -->
- <out:if test="$supportAllActionsAction">
- <td class="objectOptions" nowrap="nowrap">
- <a href="#">
- <!-- For shortcuts we always use the current object's class, name, and path to launch the "Actions" dialog -->
- <out:attribute name="onClick">actions('<out:value-of select="xtsext:javascriptencode(string($obj-name))"/>', '<out:value-of select="$obj-class"/>','<out:value-of select="xtsext:javascriptencode(string($obj-path))"/>','<xsl:value-of select="$useActions"/>');</out:attribute>
- <out:attribute name="title">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <out:attribute name="aria-label">
- <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
- </out:attribute>
- <xts:string id="IDS_ACT_MORE"/>
- </a>
- </td>
- </out:if>
- </xsl:otherwise>
- </xsl:choose>
- </tr>
- </table>
- </out:template>
- </xsl:template>
- <!--
- Template - mt:renderAction:
- This template renders the hyperlinked action images for an individual entry.
- Operation:
- Outputs the hyperlinked action images for an entry.
- -->
- <xsl:template name="renderAction">
- <xsl:param name="onclick" select="''"/>
- <xsl:param name="href" select="''"/>
- <xsl:param name="icon"/>
- <xsl:param name="flippingIcon" select="false()"/>
- <xsl:param name="tooltip"/>
- <xsl:param name="customTooltip"/>
- <xsl:param name="morphlet" select="''"/>
- <xsl:param name="newclass" select="''"/>
- <td>
- <a>
- <xsl:attribute name="href">
- <xsl:choose>
- <xsl:when test="$href != ''"><xsl:value-of select="$href"/></xsl:when>
- <xsl:otherwise>#</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:if test="$onclick != 'none'">
- <xsl:attribute name="onclick">
- <xsl:choose>
- <xsl:when test="$onclick != ''"><xsl:value-of select="$onclick"/></xsl:when>
- <xsl:otherwise>actions('{$js-encoded-name}', '{$class}', '{$js-encoded-path}', '<xsl:value-of select="$morphlet"/>', '<xsl:value-of select="$newclass"/>');</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:if>
- <img height="16" width="16" border="0">
- <xsl:attribute name="src">{$image_root}<xsl:value-of select="$icon"/></xsl:attribute>
- <out:attribute name="alt">
- <!-- It is unlikely that we would want to show a tooltip AND a custom tooltip together, but heck it can be done! -->
- <xsl:if test="$tooltip != ''">
- <xts:string id="{$tooltip}"/>
- </xsl:if>
- <xsl:if test="$customTooltip != ''">
- <out:value-of select="{$customTooltip}"/>
- </xsl:if>
- <out:value-of select="' - '"/>
- <out:value-of select="xtsext:enforceBTD($toolTipName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </out:attribute>
- <xsl:if test="$flippingIcon">
- <out:attribute name="class">
- <out:value-of select="'flippingImages'" />
- </out:attribute>
- </xsl:if>
- </img>
- </a>
- </td>
- </xsl:template>
- <!--
- Define contexts to be used when copying/moving data. This allows you to copy/move data between tools with compatable contexts.
- Context is determined by the objectClass of the container object.
- Note: A context _MUST_ be defined for the copy/cut/paste operations to function. If a context is not defined for an area you will
- not be able to paste any objects there.
- -->
- <xsl:template name="mt:contentcontext">
- <out:variable name="containerobjcls">
- <out:choose>
- <out:when test="/root/cmContent/cm:queryResponse/cm:queryReply[2]/*/cm:objectClass">
- <out:value-of select="/root/cmContent/cm:queryResponse/cm:queryReply[2]/*/cm:objectClass"/>
- </out:when>
- <out:when test="/root/path/cm:queryResponse/*/cm:objectClass">
- <out:value-of select="/root/path/cm:queryResponse/*/cm:objectClass"/>
- </out:when>
- <out:when test="/root/content/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass">
- <out:value-of select="/root/content/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass"/>
- </out:when>
- <out:when test="/root/navContent/*[local-name()='searchResponse']/*[local-name()='scopeInfo']/*[local-name()='type']">
- <out:value-of select="/root/navContent/*[local-name()='searchResponse']/*[local-name()='scopeInfo']/*[local-name()='type']"/>
- </out:when>
- <out:otherwise>
- <out:text>unknown</out:text>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="$containerobjcls = 'content' or $containerobjcls = 'package' or $containerobjcls = 'folder'">
- <out:text>content</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'dataSourceConnection'">
- <out:text>datasourcecon</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'dataSource'">
- <out:text>datasrc</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'namespace' or $containerobjcls = 'namespaceFolder'">
- <out:text>directory</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'account'">
- <out:text>user</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'adminFolder'">
- <out:text>admin</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'portletFolder'">
- <out:text>portletprods</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'portletProducer'">
- <out:text>portlets</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'portalSkinFolder'">
- <out:text>styles</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'configuration' or $containerobjcls = 'configurationFolder'">
- <out:text>configObj</out:text>
- </out:when>
- <out:when test="$containerobjcls = 'subscriptionFolder'">
- <out:text>subscription</out:text>
- </out:when>
- <out:otherwise>
- <!-- Unknown context - Copy/Cut/Paste buttons will be disabled. -->
- <out:text>unknown</out:text>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|