presentation.xsl 256 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2015
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:out="dummy-uri"
  15. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  16. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  17. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  18. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  19. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  20. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  21. exclude-result-prefixes="mt xtsext xts cp"
  22. xmlns:skinCache="com.cognos.portal.skin.SkinCache">
  23. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  24. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  25. <!--
  26. Toolbar options (buttons):
  27. ========================================================================================================================
  28. mt:tool[not(@name)] - Speial toolbar options generated by toollogic.
  29. mt:tool[@name='new'] - New object.
  30. mt:tool[@name='import']
  31. mt:tool[@name='export']
  32. mt:tool[@name='cut']
  33. mt:tool[@name='copy']
  34. mt:tool[@name='paste']
  35. mt:tool[@name='delete']
  36. mt:tool[@name='refresh']
  37. mt:tool[@name='selectall']
  38. mt:tool[@name='deselectall']
  39. mt:tool[@name='detail'] - Toggles detail view in main navigation window
  40. mt:tool[@name='list'] - Toggles list view in main navigation window
  41. mt:tool[@name='properties'] - Invoks the properties dialog for the root folder currently in focus
  42. mt:tool[@name='order'] - Invoks the "order" dialog to rearrange entries within a folder
  43. mt:tool[@name='search']
  44. mt:tool[@name='configuration_properties'] - Invoks the properties dialog for the root configuration folder
  45. mt:tool[@name='page_sizes']
  46. mt:tool[@name='file_system_locations']
  47. mt:tool[@name='enable_sched']
  48. mt:tool[@name='disable_sched']
  49. mt:tool[@name='view_events']
  50. mt:tool[@name='new_page']
  51. mt:tool[@name='edit_pagelet'] - Edit Page.
  52. mt:detailedEntryView - produce a detailed view for an entry.
  53. mt:objectNoneFound - render the 'no entries' line on main pages.
  54. mt:action - generate template to produce the actions available for an entry.
  55. renderaction - produce an action for an entry.
  56. -->
  57. <!--
  58. Template - mt:stylesheet:
  59. This template defines link elements for skin_style and skin_fonts.
  60. Operation:
  61. Defines link element.
  62. -->
  63. <xsl:template match="mt:stylesheet">
  64. <out:choose>
  65. <out:when test="/root/env/param[@name='style']">
  66. <link rel="stylesheet" type="text/css" href="{'{key(&quot;env-param&quot;, &quot;style&quot;)}'}"/><!-- TODO: make sure CAF is OK with this. -->
  67. </out:when>
  68. <out:otherwise>
  69. <link rel="stylesheet" type="text/css" href="{'{$skin_style}'}"/>
  70. <link rel="stylesheet" type="text/css" href="{'{$skin_fonts}'}"/>
  71. <link rel="stylesheet" type="text/css" href="{'{$skin_portlet}'}"/>
  72. </out:otherwise>
  73. </out:choose>
  74. </xsl:template>
  75. <!--
  76. Template - mt:page:
  77. This template is used to render the body of the main pages.
  78. Operation:
  79. Render body.
  80. -->
  81. <xsl:template match="mt:page">
  82. <!-- temporary theme selector, this will go on all match thms to switch using a url parameter -->
  83. <body onload="if (window.init) init();">
  84. <xsl:attribute name="topmargin">
  85. <xsl:choose>
  86. <xsl:when test="@mode='noborders'">0</xsl:when>
  87. <xsl:otherwise>0</xsl:otherwise>
  88. </xsl:choose>
  89. </xsl:attribute>
  90. <xsl:attribute name="bottommargin">0</xsl:attribute>
  91. <xsl:attribute name="marginheight">
  92. <xsl:choose>
  93. <xsl:when test="@mode='noborders'">0</xsl:when>
  94. <xsl:otherwise>0</xsl:otherwise>
  95. </xsl:choose>
  96. </xsl:attribute>
  97. <xsl:attribute name="rightmargin">
  98. <xsl:choose>
  99. <xsl:when test="@mode='noborders'">0</xsl:when>
  100. <xsl:otherwise>0</xsl:otherwise>
  101. </xsl:choose>
  102. </xsl:attribute>
  103. <xsl:attribute name="leftmargin">
  104. <xsl:choose>
  105. <xsl:when test="@mode='noborders'">0</xsl:when>
  106. <xsl:otherwise>0</xsl:otherwise>
  107. </xsl:choose>
  108. </xsl:attribute>
  109. <xsl:attribute name="marginwidth">
  110. <xsl:choose>
  111. <xsl:when test="@mode='noborders'">0</xsl:when>
  112. <xsl:otherwise>0</xsl:otherwise>
  113. </xsl:choose>
  114. </xsl:attribute>
  115. <xsl:if test="string(@class)!=''">
  116. <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
  117. </xsl:if>
  118. <xsl:if test="@region != ''">
  119. <xsl:attribute name="role">region</xsl:attribute>
  120. <xsl:attribute name="aria-labelledBy"><xsl:value-of select="@region"/></xsl:attribute>
  121. </xsl:if>
  122. <xsl:if test="mt:regionLabel/@id">
  123. <xsl:attribute name="role">region</xsl:attribute>
  124. <xsl:attribute name="aria-labelledBy"><xsl:value-of select="mt:regionLabel/@id"/></xsl:attribute>
  125. </xsl:if>
  126. <out:if test="$browser = 'ie'">
  127. <out:attribute name="style">overflow:auto</out:attribute>
  128. </out:if>
  129. <out:if test="$is-ui-rtl">
  130. <out:attribute name="dir">rtl</out:attribute>
  131. <script language="JavaScript">
  132. document.documentElement.className = document.documentElement.className ? document.documentElement.className + " rtl" : "rtl";
  133. </script>
  134. </out:if>
  135. <xsl:if test="@region != ''">
  136. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="{@region}"><xts:string id="{@region}"/></span>
  137. </xsl:if>
  138. <!-- bidi -->
  139. <script type="text/javascript">
  140. <out:attribute name="src">
  141. <out:value-of select="$webcontent"/>/../ccl/i18n/bidi/BidiUtils.js<out:text/>
  142. </out:attribute>
  143. </script>
  144. <script language="javascript">
  145. var isBidiEnabled = <out:value-of select="boolean($isBidiEnabled='true')"/>;
  146. if (isBidiEnabled){
  147. var bidi = BidiUtils.getInstance();
  148. bidi.setProperties('<out:value-of select="xtsext:javascriptencode($baseTextDirection)"/>',
  149. '<out:value-of select="xtsext:getBTD('', $baseTextDirection, $productLocale)"/>',
  150. '<out:value-of select="xtsext:javascriptencode($productLocale)"/>');
  151. }
  152. </script>
  153. <xsl:call-template name="bodyContent"/>
  154. </body>
  155. </xsl:template>
  156. <xsl:template match="mt:customPage">
  157. <xsl:call-template name="bodyContent"/>
  158. </xsl:template>
  159. <xsl:template name="bodyContent">
  160. <a href="#maincontent" class="showOnFocus" tabindex="0"><xts:string id="IDS_SECTION508_JUMPTOMAIN"/></a>
  161. <!-- Generate common script code here (main page only for now) -->
  162. <xsl:if test="@mode = 'main'">
  163. <script language="JavaScript">
  164. function g_PS_getPageContext()
  165. {
  166. return "<out:value-of select="$javascriptescapedPageID"/>";
  167. }
  168. function g_PS_getPageRemoveConfMsg()
  169. {
  170. var bPageFound = !(<out:value-of select="$pageNotFound"/>);
  171. if (bPageFound)
  172. 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>";
  173. else
  174. return "";
  175. }
  176. </script>
  177. </xsl:if>
  178. <xsl:apply-templates select="*"/>
  179. </xsl:template>
  180. <xsl:template match="mt:regionLabel">
  181. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
  182. <xsl:copy-of select="@id"/>
  183. <xsl:copy-of select="./child::node()"/>
  184. </span>
  185. </xsl:template>
  186. <!--
  187. Template - mt:h1:
  188. This template renders the first line of the main pages.
  189. Operation:
  190. Renders the OEM and/or username as well as links to mypages, and studios on the first line.
  191. -->
  192. <xsl:template match="mt:h1">
  193. <out:variable name="runTimeDisplayMode">
  194. <out:choose>
  195. <out:when test="/root/page/displayMode = 'viewer'">viewer</out:when>
  196. <out:when test="key('env-param', 'search')">search</out:when>
  197. <out:otherwise>default</out:otherwise>
  198. </out:choose>
  199. </out:variable>
  200. <xsl:variable name="compileMode">
  201. <xsl:choose>
  202. <xsl:when test="@mode = 'main'">main</xsl:when>
  203. <xsl:when test="@mode = 'mainSearch'">mainSearch</xsl:when>
  204. <xsl:when test="@mode = 'subscriptions'">subscriptions</xsl:when>
  205. <xsl:when test="@mode = 'drillthrough'">drillthrough</xsl:when>
  206. <xsl:when test="@mode= 'mydatasets'">mydatasets</xsl:when>
  207. <xsl:otherwise>basic</xsl:otherwise>
  208. </xsl:choose>
  209. </xsl:variable>
  210. <out:if test="not(contains($ui_black_list, ' CRN_HEADER '))">
  211. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/banner.js"></script>
  212. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/aboutdialog.js"></script>
  213. <div role="banner">
  214. <xsl:choose>
  215. <xsl:when test="@id != ''">
  216. <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
  217. </xsl:when>
  218. <xsl:otherwise>
  219. <xsl:attribute name="id">headerBack</xsl:attribute>
  220. </xsl:otherwise>
  221. </xsl:choose>
  222. <table cellspacing="0" cellpadding="0" class="mainHeader1" border="0" role="presentation">
  223. <tr>
  224. <!-- Component title -->
  225. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_TITLE '))">
  226. <out:variable name="smuCustomHeader">
  227. <out:variable name="customHeaderPropertyName">/uiSkin/branding/header/value[@name='cognos.connection.header']</out:variable>
  228. <out:value-of disable-output-escaping="yes" select="skinCache:getSkinPropertyStatic(key('session-param', 'skin'), string($customHeaderPropertyName), string(/root/cookies/cookie[@name='cam_passport']))"/>
  229. </out:variable>
  230. <out:choose>
  231. <!-- SMU Custom header is specified -->
  232. <out:when test="$smuCustomHeader != ''">
  233. <td class="headerTitle" role="heading">
  234. <out:copy-of select="$smuCustomHeader"/>
  235. </td>
  236. </out:when>
  237. <!-- Custom header is specified -->
  238. <out:when test="key('system-param', 'OEM')/customHeader/style[@styleFolderName = key('session-param', 'skin')]">
  239. <td class="headerTitle" role="heading">
  240. <out:copy-of select="key('system-param', 'OEM')/customHeader/style[@styleFolderName = key('session-param', 'skin')]/child::node()"/>
  241. </td>
  242. </out:when>
  243. <!-- Insert the standard header -->
  244. <out:otherwise>
  245. <td class="logoContainer"><div class="logo"/></td>
  246. <td class="headerTitle" onclick="debug(event)" role="heading">
  247. <xsl:choose>
  248. <xsl:when test="mt:title/child::node()">
  249. <xsl:apply-templates select="mt:title/child::node()"/>
  250. </xsl:when>
  251. <xsl:otherwise>
  252. <xts:string id="IDS_PORTAL"/>
  253. </xsl:otherwise>
  254. </xsl:choose>
  255. </td>
  256. </out:otherwise>
  257. </out:choose>
  258. </out:if>
  259. <td class="mainHeader1Middle">
  260. <table role="presentation"><tr>
  261. <out:if test=" not(contains($ui_black_list, ' CRN_HEADER_OPTIONS ')) ">
  262. <xsl:if test="$compileMode != 'basic'">
  263. <!-- User Name -->
  264. <out:if test=" $is-named = '1'">
  265. <td class="userNameContainer">
  266. <out:choose>
  267. <out:when test="key('session-param', 'e_showTenantInfo') = 'true' and key('session-param', 'e_tenantDisplayName') != ''">
  268. <xts:string id="IDS_USERINFO_WITHTENANT">
  269. <xts:param name="userName"><out:value-of select="key('session-param', 'e_user')"/></xts:param>
  270. <xts:param name="tenantName"><out:value-of select="key('session-param', 'e_tenantDisplayName')"/></xts:param>
  271. </xts:string>
  272. </out:when>
  273. <out:otherwise>
  274. <xts:string id="IDS_USERINFO">
  275. <xts:param name="userName"><out:value-of select="key('session-param', 'e_user')"/></xts:param>
  276. </xts:string>
  277. </out:otherwise>
  278. </out:choose>
  279. </td>
  280. </out:if>
  281. <!-- Logon -->
  282. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_AUTHENTICATION '))">
  283. <td class="authOptionContainer">
  284. <out:variable name="logOnURL" select="xtsext:javascriptencode(string(concat($gateway, '?', key(&quot;system-param&quot;, &quot;COGNOSHome&quot;))))"/>
  285. <out:variable name="reLogOnURL" select="xtsext:javascriptencode($back-url)"/>
  286. <out:variable name="logOffURL" select="xtsext:javascriptencode(string(concat($gateway, '?b_action=xts.run&amp;m=', $app, '/logoff.xts&amp;h_CAM_action=logoff')))"/>
  287. <out:choose>
  288. <!-- If both log on and off options are not hidden then show the drop-down control -->
  289. <!-- Modified based on COGCQ00265525 - Unable to Hide Log On link in Cognos Connection. (Multiple namespaces defined) -->
  290. <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 '))">
  291. <out:variable name="authMenu">
  292. <flyout id="authMenu">
  293. <label><xts:string encode="javascript" id="IDS_BANNER_MENU_AUTH"/></label>
  294. <items>
  295. <out:if test="not(contains($ui_black_list, ' CC_HEADER_MENU_logon '))">
  296. <item id="logon">
  297. <text><xts:string id="IDS_TOOLS_LOGON"/></text>
  298. <action>authenticate('relogon','<out:value-of select="$reLogOnURL"/>')</action>
  299. <icon><out:value-of select="concat($brand_images, 'tools_logon.gif')"/></icon>
  300. </item>
  301. </out:if>
  302. <out:if test="not(contains($ui_black_list, ' CC_HEADER_MENU_logoff '))">
  303. <item id="logoff">
  304. <text><xts:string id="IDS_TOOLS_LOGOFF"/></text>
  305. <action>authenticate('logoff','<out:value-of select="$logOffURL"/>')</action>
  306. <icon><out:value-of select="concat($brand_images, 'tools_logoff.gif')"/></icon>
  307. </item>
  308. </out:if>
  309. </items>
  310. </flyout>
  311. </out:variable>
  312. <out:if test="$authMenu/flyout/items/*">
  313. <out:variable name="logonMenuLab"><xts:string id="IDS_LOGON_MENU_TOOLTIP"/></out:variable>
  314. <div id="authMenu_span" style="position:relative;z-index:12;">
  315. <table cellspacing="0" cellpadding="0" role="presentation">
  316. <tr>
  317. <td nowrap="true" tabindex="0" style="padding-right:3px;"
  318. onkeypress="if (event.keyCode==9) return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) authenticate('logon', '{'{$reLogOnURL}'}'); return false;"
  319. onclick="authenticate('logon', '{'{$reLogOnURL}'}')" role="link" aria-labelledby="logonLinkId">
  320. <a role="presentation" id="logonLinkId" class="bannerOptions" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" tabindex="-1">
  321. <xts:string id="IDS_TOOLS_LOGON"/>
  322. </a>
  323. </td>
  324. <td class="bannerOptionsButtonNormal" tabindex="0" role="button" aria-haspopup="true" aria-label="{'{$logonMenuLab}'}"
  325. onmouseover="this.className='bannerOptionsButtonOver';"
  326. onmouseout="this.className='bannerOptionsButtonNormal';"
  327. onkeypress="return CCPopupMenu.dropDown(event,0,0,'authMenu');"
  328. onclick="return CCPopupMenu.dropDown(event,0,0,'authMenu');">
  329. <img name="searchMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif" >
  330. <out:attribute name="alt"><xts:string id="IDS_LOGON_MENU_TOOLTIP"/></out:attribute>
  331. <out:attribute name="title"><xts:string id="IDS_LOGON_MENU_TOOLTIP"/></out:attribute>
  332. </img>
  333. </td>
  334. </tr>
  335. </table>
  336. </div>
  337. <out:call-template name="renderPopup">
  338. <out:with-param name="flyoutXML">
  339. <out:copy-of select="$authMenu"/>
  340. </out:with-param>
  341. <out:with-param name="controlID">authMenu_span</out:with-param>
  342. </out:call-template>
  343. </out:if>
  344. </out:when>
  345. <!-- Security is enabled but the user is not authenticated -->
  346. <!-- Modified based on COGCQ00265525 - need to show logon when multiple namespaces defined and logged on already. -->
  347. <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 '))">
  348. <!-- Show Log in -->
  349. <div class="authOptionContainer">
  350. <a href="#" class="bannerOptions" tabindex="0" onclick="authenticate('logon', '{'{$logOnURL}'}')">
  351. <xts:string id="IDS_TOOLS_LOGON"/>
  352. </a>
  353. </div>
  354. </out:when>
  355. <!-- User is authenticated into the only available namespace. show loggoff only -->
  356. <out:when test="$is-named = '1' and not(contains($ui_black_list, ' CC_HEADER_MENU_logoff '))">
  357. <div class="authOptionContainer">
  358. <a href="#" class="bannerOptions" tabindex="0" onclick="authenticate('logoff', '{'{$logOffURL}'}')">
  359. <xts:string id="IDS_TOOLS_LOGOFF"/>
  360. </a>
  361. </div>
  362. </out:when>
  363. <out:otherwise>
  364. <!-- show nothing -->
  365. </out:otherwise>
  366. </out:choose>
  367. </td>
  368. </out:if>
  369. <!-- Custom Banner options -->
  370. <out:if test="key('system-param', 'ui_add')/CC_HEADER_MENU/item">
  371. <td class="dividerContainer"><div class="bannerDivider"/></td>
  372. <out:for-each select="key('system-param', 'ui_add')/CC_HEADER_MENU/item">
  373. <out:variable name="s" select="concat(' ', @show, ' ')"/>
  374. <out:if test="
  375. not(@show) or
  376. (contains($s , 'Administrators') and $isAdminUser) or
  377. (contains($s , 'QSUsers') and $userCanUseFullQS) or
  378. (contains($s , 'RSUsers') and $userCanUseFullRS) or
  379. (contains($s , 'Consumers') and $is-named='1') or
  380. (contains($s , 'Anonymous') and $is-named='0') or
  381. (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
  382. ">
  383. <td class="customBannerContainer">
  384. <a class="bannerOptions" tabindex="0" href="{'{url}'}">
  385. <out:if test="./onclick">
  386. <out:attribute name="onclick"><out:value-of select="onclick"/></out:attribute>
  387. </out:if>
  388. <out:if test="target">
  389. <out:attribute name="target"><out:value-of select="target"/></out:attribute>
  390. </out:if>
  391. <out:value-of select="label[lang($productLocale)]"/>
  392. </a>
  393. </td>
  394. </out:if>
  395. </out:for-each>
  396. </out:if>
  397. <out:if test="key('session-param', 'e_showTenantInfo')='true'">
  398. <script language="JavaScript">
  399. function doImpersonateTenant(cmd, tenantId)
  400. {
  401. <!-- Flag an impersonate tenant operation -->
  402. document.forms[frmEditForm].impersonateTenantCmd.value=cmd;
  403. document.forms[frmEditForm].impersonateTenantId.value=tenantId;
  404. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/<out:value-of select="$mname"/>";
  405. document.forms[frmEditForm].submit();
  406. if (document.body)
  407. document.body.style.cursor = "wait";
  408. }
  409. </script>
  410. <out:variable name="isAdmin" select="key('session-param', 'e_isSysAdmin')='true' or key('session-param', 'e_isTenantAdmin')='true'"/>
  411. <out:if test="$isAdmin and key('session-param', 'e_showTenantInfo')='true' and key('session-param', 'e_isImpersonating')!='true'">
  412. <td class="refreshContainer">
  413. <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
  414. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';">
  415. <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>
  416. <out:attribute name="onclick">doImpersonateTenant('read','<out:value-of select="xtsext:javascriptencode(key('session-param', 'e_tenantID'))"/>');</out:attribute>
  417. <out:attribute name="title"><xts:string id="IDS_IMPERSONATE_TENANT_TOOLTIP"/></out:attribute>
  418. <img border="0" src="{'{$image_root}'}impersonate.gif">
  419. <out:attribute name="alt"><xts:string id="IDS_IMPERSONATE_TENANT_TOOLTIP"/></out:attribute>
  420. <out:attribute name="title"><xts:string id="IDS_IMPERSONATE_TENANT_TOOLTIP"/></out:attribute>
  421. </img>
  422. </div>
  423. </td>
  424. </out:if>
  425. </out:if>
  426. <td class="dividerContainer"><div class="bannerDivider"/></td>
  427. <!-- Refresh -->
  428. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_REFRESH '))">
  429. <td class="refreshContainer">
  430. <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
  431. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  432. onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) refresh(); return false;" onclick="refresh()">
  433. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  434. <img border="0" src="{'{$image_root}'}action_refresh.gif">
  435. <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
  436. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  437. </img>
  438. </div>
  439. </td>
  440. </out:if>
  441. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_SEARCH ') or contains($ui_black_list, ' CC_HEADER_MENU_search '))">
  442. <!-- We don't show top search box when in: search mode, navigating upfront, outside of the portal -->
  443. <xsl:if test="$compileMode = 'main' ">
  444. <!-- At run time, if we are running search or navigating Upf newsboxes then hide search -->
  445. <out:if test="not(/root/env/param[@name='search']) and not(/root/upfContent/*[local-name()='queryResponse'])">
  446. <out:variable name="render-indexsearch" select="$userCanUseIndexSearch and not($mvc-N-enabled and $mvc-remoteNav)"/>
  447. <out:variable name="render-cmsearch" select="(string(/root/generalConfigSettings/configuration/property[@name='portal.disablecmsearch']) != 'true') or ($mvc-N-enabled and $mvc-remoteNav)"/>
  448. <out:if test="$render-indexsearch or $render-cmsearch">
  449. <td class="dividerContainer">
  450. <div class="bannerDivider"/>
  451. </td>
  452. <td class="searchEditContainer">
  453. <out:variable name="method">
  454. <out:choose>
  455. <out:when test="$isXSSCheckingOn='true'">post</out:when>
  456. <out:otherwise>get</out:otherwise>
  457. </out:choose>
  458. </out:variable>
  459. <form action="{'{$gateway}'}/gosearch" name="mainISearchForm" method="{'{$method}'}" style="margin:0px">
  460. <input id="ps_banner_isearchfrm" type="hidden" name="csn.terms"/>
  461. <input type="hidden" name="backURL" value="{'{$back-url}'}"/>
  462. </form>
  463. <form name="mainSearchForm" method="{'{$method}'}" style="margin:0px">
  464. <input class="mainSearchEdit" type="text" name="stext" id="stext" value="" onkeypress="return searchKeyHandler(event);">
  465. <out:attribute name="title"><xts:string id="IDS_SEARCH_STRING_ALT"/></out:attribute>
  466. <out:if test="$isBidiEnabled = 'true'">
  467. <out:variable name="textDirection">
  468. <out:value-of select="xtsext:getBTD('', $baseTextDirection, $productLocale)"/>
  469. </out:variable>
  470. <out:attribute name="dir">
  471. <out:value-of select="$textDirection"/>
  472. </out:attribute>
  473. <out:if test="$baseTextDirection = 'auto'">
  474. <out:attribute name="onfocus">
  475. <out:text>bidi.onfocus(this)</out:text>
  476. </out:attribute>
  477. </out:if>
  478. </out:if>
  479. </input>
  480. <input type="hidden" name="sfield" value=""/>
  481. <input type="hidden" name="backURL" value="{'{$back-url}'}"/>
  482. <input type="hidden" name="search" value=""/>
  483. <input type="hidden" name="b_action" value="xts.run"/>
  484. <input type="hidden" name="m" value="{'{$app}'}/cc.xts"/>
  485. <!-- m_folder is required for cm searches so that the context of the search is within the folder just navigated to -->
  486. <input type="hidden" name="m_folder" value="{'{$folderID}'}"/>
  487. <input type="hidden" name="sscope" value="fb"/>
  488. </form>
  489. </td>
  490. <td class="searchIconContainer">
  491. <out:variable name="searchMenu">
  492. <flyout id="searchMenu" hasCheckbox="true" >
  493. <label><xts:string encode="javascript" id="IDS_BANNER_MENU_SEARCH"/></label>
  494. <items>
  495. <itemGroup id="findTextInMenuGroup">
  496. <xsl:if test="not(mt:fields) or mt:fields/mt:field='k'">
  497. <out:if test="$render-indexsearch">
  498. <item id="findTextInMenu_k" itemSelectedState="checked">
  499. <text><xts:string id="IDS_KEYWORD"/></text>
  500. <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_k");document.mainSearchForm.sfield.value = 'k';</action>
  501. </item>
  502. </out:if>
  503. </xsl:if>
  504. <out:if test="$render-cmsearch">
  505. <xsl:if test="not(mt:fields) or mt:fields/mt:field='n'">
  506. <item id="findTextInMenu_n">
  507. <out:if test="not($render-indexsearch)">
  508. <out:attribute name="itemSelectedState">checked</out:attribute>
  509. </out:if>
  510. <text><xts:string id="IDS_NAME_FIELD"/></text>
  511. <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_n");document.mainSearchForm.sfield.value = 'n';</action>
  512. </item>
  513. </xsl:if>
  514. <xsl:if test="not(mt:fields) or mt:fields/mt:field='d'">
  515. <item id="findTextInMenu_d">
  516. <text><xts:string id="IDS_DESC_FIELD"/></text>
  517. <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_d");document.mainSearchForm.sfield.value = 'd';</action>
  518. </item>
  519. </xsl:if>
  520. <xsl:if test="not(mt:fields) or mt:fields/mt:field='nd'">
  521. <item id="findTextInMenu_nd">
  522. <text><xts:string id="IDS_NAME_DESC_FIELD"/></text>
  523. <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_nd");document.mainSearchForm.sfield.value = 'nd';</action>
  524. </item>
  525. </xsl:if>
  526. </out:if>
  527. </itemGroup>
  528. </items>
  529. </flyout>
  530. </out:variable>
  531. <div id="searchflyout_span" style="position:relative; z-index:12;">
  532. <table cellspacing="0" cellpadding="0" role="presentation">
  533. <tr>
  534. <td>
  535. <div nowrap="true" class="bannerOptionsButtonNormal" tabindex="0" role="button"
  536. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  537. onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) search(); return false;" onclick="search()">
  538. <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
  539. <img id="bannerSearch" border="0" src="{'{$image_root}'}action_search.gif">
  540. <out:attribute name="alt"><xts:string id="IDS_SEARCH"/></out:attribute>
  541. <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
  542. </img>
  543. </div>
  544. </td>
  545. <td>
  546. <div class="bannerOptionsButtonNormal" tabindex="0" aria-haspopup="true" role="button"
  547. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  548. onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'searchMenu');">
  549. <out:attribute name="title"><xts:string id="IDS_SEARCH_OPTIONS"/></out:attribute>
  550. <img name="searchMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif" >
  551. <out:attribute name="alt"><xts:string id="IDS_SEARCH_OPTIONS"/></out:attribute>
  552. <out:attribute name="title"><xts:string id="IDS_SEARCH_OPTIONS"/></out:attribute>
  553. </img>
  554. </div>
  555. </td>
  556. </tr>
  557. </table>
  558. </div>
  559. <out:call-template name="renderPopup">
  560. <out:with-param name="flyoutXML">
  561. <out:copy-of select="$searchMenu"/>
  562. </out:with-param>
  563. <out:with-param name="controlID">searchflyout_span</out:with-param>
  564. </out:call-template>
  565. </td>
  566. </out:if>
  567. </out:if>
  568. </xsl:if>
  569. </out:if>
  570. <!-- Return -->
  571. <out:if test=" key('env-param', 'backURL') != '' and not(contains($ui_black_list, ' CC_HEADER_MENU_return '))">
  572. <td class="returnContainer">
  573. <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
  574. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  575. onkeypress="if(event.keyCode==9)return true; else if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) doReturn(); return false;" onclick="doReturn()">
  576. <out:attribute name="title"><xts:string id="IDS_RETURN"/></out:attribute>
  577. <img border="0" src="{'{$skin_shared_images}'}action_return.gif">
  578. <out:attribute name="alt"><xts:string id="IDS_RETURN"/></out:attribute>
  579. <out:attribute name="title"><xts:string id="IDS_RETURN"/></out:attribute>
  580. </img>
  581. </div>
  582. </td>
  583. </out:if>
  584. <!-- Personal Options -->
  585. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_PERSONAL '))">
  586. <out:variable name="psPersonal">
  587. <!-- prefs -->
  588. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_PERSONAL_preferences ') or contains($ui_black_list, ' CC_HEADER_MENU_preferences '))">
  589. <item id="preferences">
  590. <text><xts:string id="IDS_TOOLS_PREFERENCES"/></text>
  591. <action>personalOptions('preferences')</action>
  592. </item>
  593. </out:if>
  594. </out:variable>
  595. <td class="personalOptionsContainer">
  596. <out:variable name="personalOptions">
  597. <flyout id="personalOptions" >
  598. <label><xts:string encode="javascript" id="IDS_BANNER_MENU_PERSONAL"/></label>
  599. <items>
  600. <out:copy-of select="$psPersonal"/>
  601. </items>
  602. </flyout>
  603. </out:variable>
  604. <!-- If there are personal options to show then show them -->
  605. <out:if test="$personalOptions/flyout/items/*">
  606. <div id="personalOptions_span" style="position:relative;z-index:12">
  607. <div class="bannerOptionsButtonNormal" tabindex="0" role="button" aria-haspopup="true"
  608. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  609. onkeypress="return CCPopupMenu.dropDown(event,0,0,'personalOptions');" onclick="return CCPopupMenu.dropDown(event,0,0,'personalOptions');">
  610. <out:attribute name="title"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
  611. <table cellspacing="0" cellpadding="0" role="presentation">
  612. <tr>
  613. <td style="padding-right:4px;">
  614. <img src="{'{$skin_shared_images}'}icon_my_area.gif">
  615. <out:attribute name="alt"><xts:string id="IDS_MY_AREA"/></out:attribute>
  616. <out:attribute name="title"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
  617. </img>
  618. </td>
  619. <td style="padding-right:4px;">
  620. <img name="toolsMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif">
  621. <out:attribute name="alt"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
  622. <out:attribute name="title"><xts:string id="IDS_MY_AREA_OPTIONS"/></out:attribute>
  623. </img>
  624. </td>
  625. </tr>
  626. </table>
  627. </div>
  628. </div>
  629. <out:call-template name="renderPopup">
  630. <out:with-param name="flyoutXML">
  631. <out:copy-of select="$personalOptions"/>
  632. </out:with-param>
  633. <out:with-param name="controlID">personalOptions_span</out:with-param>
  634. </out:call-template>
  635. </out:if>
  636. </td>
  637. </out:if>
  638. <!-- Launch -->
  639. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_LAUNCH '))">
  640. <!-- build the apps list -->
  641. <out:variable name="WebApps">
  642. <!-- Planning Contributor -->
  643. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_pc ')) and $userCanUsePlanningContributor">
  644. <item id="pc">
  645. <text><xts:string id="IDS_TOOLS_CONTRIBUTOR"/></text>
  646. <action>launchApp('PlanningContributor')</action>
  647. <icon><out:value-of select="concat($brand_images, 'tools_contributor.gif')"/></icon>
  648. </item>
  649. </out:if>
  650. <!-- Controller Studio -->
  651. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cs ')) and $userCanUseControllerStudio">
  652. <item id="cs">
  653. <text><xts:string id="IDS_TOOLS_CONTROLLER"/></text>
  654. <action>launchApp('Controller')</action>
  655. <icon><out:value-of select="concat($brand_images, 'tools_controller.gif')"/></icon>
  656. </item>
  657. </out:if>
  658. <!-- MetricsManager Studio -->
  659. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_mm ')) and $userCanUseMetricsManager">
  660. <item id="mm">
  661. <text><xts:string id="IDS_TOOLS_METRICSMANAGER"/></text>
  662. <action>launchApp('MetricsManager')</action>
  663. <icon><out:value-of select="concat($brand_images, 'tools_metrics_manager.gif')"/></icon>
  664. </item>
  665. </out:if>
  666. </out:variable>
  667. <out:variable name="StudioApps">
  668. <!-- IBM Cognos Dashboard -->
  669. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cbi ')) and $userCanUseDashboardViewer">
  670. <out:variable name="launchMode">
  671. <out:if test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
  672. <out:text/>, {"IBMCognosDashboard":"chromeless"}<out:text/>
  673. </out:if>
  674. </out:variable>
  675. <item id="icd">
  676. <text><xts:string id="IDS_TOOLS_ICD"/></text>
  677. <action>launchApp('IBMCognosDashboard'<out:value-of select="$launchMode"/>)</action>
  678. <icon><out:value-of select="concat($brand_images, 'tools_dashboard.gif')"/></icon>
  679. </item>
  680. </out:if>
  681. <!-- IBM Cognos Explorer -->
  682. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cbia ')) and $userCanUseRS and $rsBIAProfile">
  683. <item id="ice">
  684. <text><xts:string id="IDS_TOOLS_ICE"/></text>
  685. <action>launchApp('IBMBusinessInsight')</action>
  686. <icon><out:value-of select="concat($brand_images, 'tools_report_studio_bua.gif')"/></icon>
  687. </item>
  688. </out:if>
  689. <!-- Cognos Insight -->
  690. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_ci ')) and $userCanUseCI">
  691. <item id="ci">
  692. <text><xts:string id="IDS_TOOLS_CI"/></text>
  693. <action>launchApp('IBMCognosInsight')</action>
  694. <icon><out:value-of select="concat($brand_images, 'tools_cognos_insight.gif')"/></icon>
  695. </item>
  696. </out:if>
  697. <!-- Express Advisor -->
  698. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_ev ')) and $userCanUseEV">
  699. <item id="ev">
  700. <text><xts:string id="IDS_TOOLS_EV"/></text>
  701. <action>launchApp('executiveViewer')</action>
  702. <icon><out:value-of select="concat($brand_images, 'tools_analyzer.gif')"/></icon>
  703. </item>
  704. </out:if>
  705. <!-- Adaptive Analytics -->
  706. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_aa ')) and $userCanUseAdaptiveAnalyticsAdministration">
  707. <item id="aa">
  708. <text><xts:string id="IDS_TOOLS_ANALYTICS"/></text>
  709. <action>launchApp('AdaptiveAnalytics')</action>
  710. <icon><out:value-of select="concat($brand_images, 'tools_adaptive_analytics.gif')"/></icon>
  711. </item>
  712. </out:if>
  713. <!-- Query Studio -->
  714. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_qs ')) and $userCanUseFullQS">
  715. <item id="qs">
  716. <text><xts:string id="IDS_TOOLS_QUERY"/></text>
  717. <action>launchApp('QueryStudio')</action>
  718. <icon><out:value-of select="concat($brand_images, 'tools_query_studio.gif')"/></icon>
  719. </item>
  720. </out:if>
  721. <!-- PowerPlay Studio -->
  722. <out:if test="$userCanUsePPS and not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_pps '))">
  723. <item id="pps">
  724. <text><xts:string id="IDS_TOOLS_POWERPLAY"/></text>
  725. <action>launchApp('PowerPlayStudio')</action>
  726. <icon><out:value-of select="concat($brand_images, 'tools_powerplay_studio.gif')"/></icon>
  727. </item>
  728. </out:if>
  729. <!-- Analysis Studio -->
  730. <out:if test="$userCanUseANS and not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_as '))">
  731. <item id="as">
  732. <text><xts:string id="IDS_TOOLS_ANALYSIS"/></text>
  733. <action>launchApp('AnalysisStudio')</action>
  734. <icon><out:value-of select="concat($brand_images, 'tools_analysis_studio.gif')"/></icon>
  735. </item>
  736. </out:if>
  737. <!-- Report Studio Professional -->
  738. <out:if test="$userCanUseFullRS and $rsPROProfile and not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_rs '))">
  739. <item id="rspro">
  740. <text><xts:string id="IDS_TOOLS_REPORT"/></text>
  741. <action>launchApp('ReportStudioPro')</action>
  742. <icon><out:value-of select="concat($brand_images, 'tools_report_studio.gif')"/></icon>
  743. </item>
  744. </out:if>
  745. <!-- Event Studio -->
  746. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_es ')) and $userCanUseAGS">
  747. <item id="es">
  748. <text><xts:string id="IDS_TOOLS_AGENT"/></text>
  749. <action>launchApp('EventStudio')</action>
  750. <icon><out:value-of select="concat($brand_images, 'tools_agent_studio.gif')"/></icon>
  751. </item>
  752. </out:if>
  753. <!-- Drill-through Definitions -->
  754. <xsl:if test="$compileMode != 'drillthrough'">
  755. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_dt ')) and $userCanUseDrillThroughAssistant">
  756. <item id="dt">
  757. <text><xts:string id="IDS_TOOLS_DRILLPATH"/></text>
  758. <action>launchApp('DrillThrough')</action>
  759. <icon><out:value-of select="concat($brand_images, 'tools_drill_through.gif')"/></icon>
  760. </item>
  761. </out:if>
  762. </xsl:if>
  763. </out:variable>
  764. <out:variable name="CustomApps">
  765. <!-- Support earlier IBM Cognos versions header customization in this menu -->
  766. <!-- Custom Apps -->
  767. <out:for-each select="key('system-param', 'ui_add')/CRN_HEADER_OPTIONS/item">
  768. <out:variable name="s" select="concat(' ', @show, ' ')"/>
  769. <out:if test="
  770. not(@show) or
  771. (contains($s , 'Administrators') and $isAdminUser) or
  772. (contains($s , 'QSUsers') and $userCanUseFullQS) or
  773. (contains($s , 'RSUsers') and $userCanUseFullRS) or
  774. (contains($s , 'Consumers') and $is-named='1') or
  775. (contains($s , 'Anonymous') and $is-named='0') or
  776. (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
  777. ">
  778. <item id="custom_tool1{'{position()}'}">
  779. <text><out:value-of select="label[lang($productLocale)]"/></text>
  780. <action>openURL('<out:value-of select="xtsext:javascriptencode(url)"/>', '<out:value-of select="target"/>');<out:value-of select="onclick"/></action>
  781. <icon><out:value-of select="concat($image_root, string(icon))"/></icon>
  782. </item>
  783. </out:if>
  784. </out:for-each>
  785. </out:variable>
  786. <out:variable name="AdminApps">
  787. <xsl:if test="$compileMode != 'main'">
  788. <!-- Cognos Connection -->
  789. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_cc '))">
  790. <item id="cc">
  791. <text><xts:string id="IDS_PORTAL"/></text>
  792. <action>launchApp('Portal')</action>
  793. <icon><out:value-of select="concat($brand_images, 'tools_portal.gif')"/></icon>
  794. </item>
  795. </out:if>
  796. </xsl:if>
  797. <!-- Cognos Administration -->
  798. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_ac ')) and $userCanUseAdminConsole">
  799. <item id="ac">
  800. <text><xts:string id="IDS_TOOLS_CA"/></text>
  801. <action>launchApp('Administration')</action>
  802. <icon><out:value-of select="concat($brand_images, 'tools_cognos_administration.gif')"/></icon>
  803. </item>
  804. </out:if>
  805. <!-- Backwards compatibility only!! - Support custom tools near the administration consol. -->
  806. <out:for-each select="key('system-param', 'ui_add')/CC_VIEW_TOOLS/item">
  807. <out:variable name="s" select="concat(' ', @show, ' ')"/>
  808. <out:if test="
  809. not(@show) or
  810. (contains($s , 'Administrators') and $isAdminUser) or
  811. (contains($s , 'QSUsers') and $userCanUseFullQS) or
  812. (contains($s , 'RSUsers') and $userCanUseFullRS) or
  813. (contains($s , 'Consumers') and $is-named='1') or
  814. (contains($s , 'Anonymous') and $is-named='0') or
  815. (key('system-param', 'ui_groups')/group[contains($s, concat(' ', @id, ' ')) and contains( key('session-param', 'uig'), concat(' ', @id, ' '))])
  816. ">
  817. <item id="custom_tool2{'{position()}'}">
  818. <text><out:value-of select="label[lang($productLocale)]"/></text>
  819. <action>openURL('<out:value-of select="xtsext:javascriptencode(url)"/>','<out:value-of select="target"/>');<out:value-of select="onclick"/></action>
  820. <out:if test="icon">
  821. <icon><out:value-of select="concat($image_root, string(icon))"/></icon>
  822. </out:if>
  823. </item>
  824. </out:if>
  825. </out:for-each>
  826. </out:variable>
  827. <out:variable name="InterfaceApps">
  828. <out:choose>
  829. <out:when test="not(contains($ui_black_list, ' CRN_HEADER_OPTIONS_lchp ')) and $userCanLaunchCollaborationTools and $hasLCHomepage">
  830. <!-- Lotus Connections Home page -->
  831. <item id="lchp">
  832. <text><xts:string id="IDS_LOTUSCONNECTIONS"/></text>
  833. <action>launchApp('ConnectionsHomepage')</action>
  834. <icon><out:value-of select="concat($brand_images, 'lotusconnections.gif')"/></icon>
  835. </item>
  836. </out:when>
  837. <out:when test="not(contains($ui_black_list, ' CRN_HEADER_PERSONAL_lca ')) and $userCanLaunchCollaborationTools and $hasLCActivities">
  838. <!-- Lotus Connections activities -->
  839. <item id="lca">
  840. <text><xts:string id="IDS_LOTUSCONNECTIONS"/></text>
  841. <action>launchApp('MyConnectionsActivities')</action>
  842. <icon><out:value-of select="concat($brand_images, 'lotusconnections.gif')"/></icon>
  843. </item>
  844. </out:when>
  845. </out:choose>
  846. </out:variable>
  847. <!-- Assemble the goto menu manifest -->
  848. <out:variable name="goto">
  849. <flyout id="goto" >
  850. <label><xts:string encode="javascript" id="IDS_BANNER_MENU_LAUNCH"/></label>
  851. <items>
  852. <out:copy-of select="$WebApps"/>
  853. <out:if test="$WebApps/* and ($StudioApps/* or $AdminApps/* or $CustomApps/*)">
  854. <item type="separator"/>
  855. </out:if>
  856. <out:copy-of select="$StudioApps"/>
  857. <out:if test="$AdminApps/* and ($WebApps/* or $StudioApps/*)">
  858. <item type="separator"/>
  859. </out:if>
  860. <out:copy-of select="$AdminApps"/>
  861. <out:if test="$CustomApps/* and ($WebApps/* or $StudioApps/* or $AdminApps/*)">
  862. <item type="separator"/>
  863. </out:if>
  864. <out:copy-of select="$CustomApps"/>
  865. <out:if test="$InterfaceApps/* and ($CustomApps/* or $WebApps/* or $StudioApps/* or $AdminApps/*)">
  866. <item type="separator"/>
  867. </out:if>
  868. <out:copy-of select="$InterfaceApps"/>
  869. </items>
  870. </flyout>
  871. </out:variable>
  872. </out:if>
  873. </xsl:if>
  874. <!-- help -->
  875. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP ') or contains($ui_black_list, ' CC_HEADER_MENU_help '))">
  876. <out:variable name="helpMenuSet1">
  877. <item id="help">
  878. <text><xts:string id="IDS_HELP"/></text>
  879. <action>bannerHelp('help');</action>
  880. </item>
  881. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP_moreDocs '))">
  882. <out:if test="$hasAdminCapability">
  883. <item id="moreDocs">
  884. <text><xts:string id="IDS_MORE_DOCUMENTATION"/></text>
  885. <action>bannerHelp('moreDocs');</action>
  886. </item>
  887. </out:if>
  888. </out:if>
  889. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP_companyWebsite '))">
  890. <item id="companyWebsite">
  891. <text><xts:string id="IDS_COG_ON_WEB"/></text>
  892. <action>bannerHelp('companyWebsite');</action>
  893. </item>
  894. </out:if>
  895. </out:variable>
  896. <out:variable name="helpMenuSet3">
  897. <out:if test="not(contains($ui_black_list, ' CRN_HEADER_HELP_about ') or contains($ui_black_list, ' CC_HEADER_MENU_about '))">
  898. <item id="about">
  899. <out:variable name="portalName"><xts:string id="IDS_PORTAL"/></out:variable>
  900. <text><xts:string id="IDS_ABOUT_PRODUCT"><xts:param name="prodName"><out:value-of select="$portalName"/></xts:param></xts:string></text>
  901. <action>bannerHelp('about');</action>
  902. </item>
  903. </out:if>
  904. </out:variable>
  905. <!-- Assemble the help menu manifest -->
  906. <out:variable name="helpMenu">
  907. <flyout id="helpMenu" >
  908. <label><xts:string encode="javascript" id="IDS_BANNER_MENU_HELP"/></label>
  909. <items>
  910. <out:copy-of select="$helpMenuSet1"/>
  911. <out:if test="$helpMenuSet1/* and ( $helpMenuSet3/*)">
  912. <item type="separator"/>
  913. </out:if>
  914. <out:copy-of select="$helpMenuSet3"/>
  915. </items>
  916. </flyout>
  917. </out:variable>
  918. <td class="helpContainer">
  919. <div id="helpMenu_span" style="position: relative;z-index:12;">
  920. <table cellspacing="0" cellpadding="0" role="presentation">
  921. <tr>
  922. <td>
  923. <div class="bannerOptionsButtonNormal" tabindex="0" role="button"
  924. onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  925. 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')">
  926. <out:attribute name="title"><xts:string id="IDS_HELP"/></out:attribute>
  927. <img src="{'{$skin_shared_images}'}action_help.gif">
  928. <out:attribute name="alt"><xts:string id="IDS_HELP"/></out:attribute>
  929. <out:attribute name="title"><xts:string id="IDS_HELP"/></out:attribute>
  930. </img>
  931. </div>
  932. </td>
  933. <td>
  934. <div class="bannerOptionsButtonNormal" tabindex="0" role="button" aria-haspopup="true" onmouseover="this.className='bannerOptionsButtonOver';" onmouseout="this.className='bannerOptionsButtonNormal';"
  935. onkeypress="return CCPopupMenu.dropDown(event,0,0,'helpMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'helpMenu');">
  936. <out:attribute name="title"><xts:string id="IDS_HELP_OPTIONS"/></out:attribute>
  937. <img name="searchMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow_banner.gif" >
  938. <out:attribute name="alt"><xts:string id="IDS_HELP_OPTIONS"/></out:attribute>
  939. <out:attribute name="title"><xts:string id="IDS_HELP_OPTIONS"/></out:attribute>
  940. </img>
  941. </div>
  942. </td>
  943. </tr>
  944. </table>
  945. </div>
  946. <out:call-template name="renderPopup">
  947. <out:with-param name="flyoutXML">
  948. <out:copy-of select="$helpMenu"/>
  949. </out:with-param>
  950. <out:with-param name="controlID">helpMenu_span</out:with-param>
  951. </out:call-template>
  952. </td>
  953. </out:if>
  954. </out:if>
  955. </tr></table>
  956. </td>
  957. <td id="ibmLogo"></td>
  958. </tr>
  959. </table>
  960. <div class="headerBannerLip"></div>
  961. </div>
  962. </out:if>
  963. <xsl:call-template name="impersonateTenantHeader"/>
  964. </xsl:template>
  965. <!--
  966. Template - mt:h3:
  967. This template renders the third line of the main pages.
  968. Operation:
  969. Renders each of the tabs for main portal pages (Welcome,Public Folders,My Folders for main page) along with the tools
  970. available to the user (Directory,Capabilities,Schedule Management,Server Administration and Deployment) on the third line.
  971. -->
  972. <xsl:template match="mt:h3">
  973. <out:if test="not(contains($ui_black_list, ' CC_VIEW '))">
  974. <table class="mainHeader3" cellspacing="0" cellpadding="0" border="0" width="100%" role="presentation" style="clear:left;">
  975. <tr>
  976. <!-- Tab bar -->
  977. <out:choose>
  978. <!-- Skip showing the tab bar if it is supposed to be hidden -->
  979. <out:when test="not(contains($ui_black_list, ' CC_VIEW_TABS '))">
  980. <xsl:choose>
  981. <!-- Consumer UI tab bar - We handle this here instead of the source morphlet -->
  982. <xsl:when test="@mode = 'main'">
  983. <!-- Tab menu options -->
  984. <!-- Hide portal page options from users that cannot update their account (e.g. anonymous) -->
  985. <out:if test="key('session-param', 'write') = 'true' and not(contains($ui_black_list, ' CC_VIEW_TABS_OPTIONS '))">
  986. <td style="padding-left:2px;">
  987. <xsl:call-template name="buildTabMenuOptions"/>
  988. </td>
  989. </out:if>
  990. <out:choose>
  991. <!-- Single tab mode -->
  992. <out:when test="$isSingleTabRequest and not(/root/search)">
  993. <xsl:call-template name="renderSinglePageTab"/>
  994. </out:when>
  995. <!-- Normal tab mode -->
  996. <out:otherwise>
  997. <!-- Show Portal Tabs -->
  998. <xsl:call-template name="renderPersonalTabBar"/>
  999. </out:otherwise>
  1000. </out:choose>
  1001. </xsl:when>
  1002. <!-- Administration -->
  1003. <xsl:otherwise>
  1004. <td valign="bottom">
  1005. <xsl:apply-templates select="mt:tabs/child::node()"/>
  1006. </td>
  1007. </xsl:otherwise>
  1008. </xsl:choose>
  1009. </out:when>
  1010. <!-- Tab bar is supposed to be hidden. Draw a line instead. -->
  1011. <out:otherwise>
  1012. <td width="100%" class="tabTail">&#160;</td>
  1013. </out:otherwise>
  1014. </out:choose>
  1015. </tr>
  1016. </table>
  1017. </out:if>
  1018. </xsl:template>
  1019. <!--
  1020. Template - mt:h4:
  1021. This template renders the fourth line of the main pages. The path and the toolbar buttons.
  1022. -->
  1023. <xsl:template match="mt:h4">
  1024. <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR '))">
  1025. <xsl:choose>
  1026. <xsl:when test="@cogadmin='true'">
  1027. <table width="100%" cellspacing="0" style="padding-right:3px; padding-left:3px;" role="presentation" class="dialogBody">
  1028. <tbody>
  1029. <tr>
  1030. <!-- Path -->
  1031. <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_PATH '))">
  1032. <td width="100%" nowrap="" style="padding-left: 10px;" class="dialogHeaderText">
  1033. <xsl:apply-templates select="mt:path/child::node()"/>
  1034. </td>
  1035. </out:if>
  1036. <!-- Toolbar buttons -->
  1037. <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_BUTTONS '))">
  1038. <td valign="middle" nowrap="" role="toolbar">
  1039. <out:attribute name="aria-label"><xts:string id="IDS_TOOLBAR_COMMON"/></out:attribute>
  1040. <xsl:apply-templates select="mt:toolbar"/>
  1041. </td>
  1042. </out:if>
  1043. </tr>
  1044. </tbody>
  1045. </table>
  1046. </xsl:when>
  1047. <xsl:otherwise>
  1048. <table width="100%" border="0" cellpadding="0" cellspacing="3" role="presentation" class="dialogBody">
  1049. <tr>
  1050. <!-- Path -->
  1051. <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_PATH '))">
  1052. <td valign="middle" width="100%" class="dialogHeaderText">
  1053. <xsl:apply-templates select="mt:path/child::node()"/>
  1054. </td>
  1055. </out:if>
  1056. <td width="100%">
  1057. <img height="30" width="1" src="{'{$webcontent}'}/images/space.gif" alt=""/>
  1058. </td>
  1059. <!-- Toolbar buttons -->
  1060. <out:if test="not(contains($ui_black_list, ' CC_TOOLBAR_BUTTONS '))">
  1061. <td valign="top">
  1062. <table width="100%" border="0" cellpadding="0" cellspacing="3" role="presentation" class="dialogBody">
  1063. <tr role="toolbar" >
  1064. <out:attribute name="aria-label"><xts:string id="IDS_TOOLBAR_COMMON"/></out:attribute>
  1065. <xsl:apply-templates select="mt:toolbar"/>
  1066. </tr>
  1067. </table>
  1068. </td>
  1069. </out:if>
  1070. </tr>
  1071. </table>
  1072. </xsl:otherwise>
  1073. </xsl:choose>
  1074. </out:if>
  1075. <xsl:if test ="@jumpToMain != 'false' ">
  1076. <div id="maincontent">
  1077. <out:attribute name="aria-label"><xts:string id="IDS_SECTION508_CONTENT"/></out:attribute>
  1078. </div>
  1079. </xsl:if>
  1080. </xsl:template>
  1081. <xsl:template name="impersonateTenantHeader">
  1082. <out:if test="key('session-param', 'e_isImpersonating')='true'">
  1083. <out:variable name="readingAs">
  1084. </out:variable>
  1085. <link id="themeStyles" rel="stylesheet" href="{{$webRoot}}/dojo16/dijit/themes/tundra/tundra.css" />
  1086. <link id="themeStyles" rel="stylesheet" href="{{$webRoot}}/ps/portal/js/impersonate.css" />
  1087. <script src="{{$webRoot}}/dojo16/dojo/dojo.js"/>
  1088. <script src="{{$webRoot}}/ps/portal/js/impersonateTenant.js"/>
  1089. <script type="text/javascript">
  1090. var impersonateTenant;
  1091. dojo.addOnLoad(function() {
  1092. var context = {
  1093. onChange : doImpersonateTenant,
  1094. <out:if test="boolean(key('session-param', 'e_readTenantID'))">
  1095. readAs : '<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_readTenantID')))"/>',
  1096. </out:if>
  1097. writeAs : '<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_writeTenantID')))"/>',
  1098. listSize : '<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'linesPerPage')))"/>'
  1099. }
  1100. impersonateTenant = new impersonateTenantSelector(context);
  1101. var bannerDivEl = dojo.byId('impersonateBanner');
  1102. if (bannerDivEl != null){
  1103. bannerDivEl.style.display="table";
  1104. bannerDivEl.style.width="100%";
  1105. }
  1106. });
  1107. </script>
  1108. <div class="impersonate impersonate-banner" id="impersonateBanner">
  1109. <table class="impersonate" id="_THIS_impersonateTenantBannerTable" cellpadding="0" cellspacing="0" border="0" role="banner">
  1110. <tr>
  1111. <td class="impersonate-icon">
  1112. <img src="{{$webcontent}}/portal/images/mt/impersonate_icon_banner.gif" alt=""/>
  1113. </td>
  1114. <td class="headerTitle">
  1115. <text><xts:string id="IDS_TENANT_IMPERSONATION"/></text>
  1116. </td>
  1117. <td class="impersonate cogstyle-header-section userNameContainer">
  1118. <label for="impersonatedTenant" style="position: absolute;margin-left: -9999px; margin-top: -9999px;"><xts:string id="IDS_PROP_TENANT_NAME"/></label>
  1119. <input name="impersonatedTenant" id="impersonatedTenant" style="display:none"/>
  1120. </td>
  1121. <td class="cogstyle-header-section userNameContainer">
  1122. <input id="showTenantContentOnly" onclick="doImpersonateTenant(this.checked ? 'read' : 'write',impersonateTenant.filteringSelect.item.id);" style="display:none">
  1123. <label for="showTenantContentOnly" class="impersonate-show-tenants-content-only-text"><xts:string id="IDS_IMPERSONATE_TENANT_SHOW_TENANTS_CONTENT_ONLY"/></label>
  1124. </input>
  1125. </td>
  1126. <td class="cogstyle-header-middle-section"/>
  1127. <td class="cogstyle-header-right-section">
  1128. <out:variable name="close"><xts:string id="IDS_CLOSE"/></out:variable>
  1129. <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','');"/>
  1130. </td>
  1131. </tr>
  1132. </table>
  1133. </div>
  1134. </out:if>
  1135. </xsl:template>
  1136. <!-- Consumer portal tab menu options -->
  1137. <xsl:template name="buildTabMenuOptions">
  1138. <out:variable name="pageMenu">
  1139. <flyout id="TabsMenu" >
  1140. <label><xts:string encode="javascript" id="IDS_MENU_PAGE"/></label>
  1141. <items>
  1142. <out:if test="not($isSingleTabRequest)">
  1143. <item id="addTab">
  1144. <text><xts:string id="IDS_PAGE_MENU_ADD_PAGE"/></text>
  1145. <action>pageCmd('add');</action>
  1146. </item>
  1147. </out:if>
  1148. <out:if test="$canAddPageToPortal">
  1149. <item id="addToMyPages">
  1150. <text><xts:string id="IDS_PAGE_MENU_ADD_TO_PAGES"/></text>
  1151. <action>pageCmd('addToMyPages');</action>
  1152. </item>
  1153. </out:if>
  1154. <out:if test="$isPersonalPortalPage">
  1155. <item id="removeTab">
  1156. <text><xts:string id="IDS_PAGE_MENU_REMOVE_PAGE"/></text>
  1157. <action>pageCmd('remove');</action>
  1158. </item>
  1159. </out:if>
  1160. <out:if test="count($portalPages/*) > 1 and not($isSingleTabRequest)">
  1161. <item id="resequenceTabs">
  1162. <text><xts:string id="IDS_PAGE_MENU_MODIFY_SEQUENCE"/></text>
  1163. <action>pageCmd('resequence');</action>
  1164. </item>
  1165. </out:if>
  1166. <out:if test="$canEditPage">
  1167. <item id="editPage">
  1168. <text><xts:string id="IDS_PAGE_MENU_EDIT_PAGE"/></text>
  1169. <action>pageCmd('edit');</action>
  1170. </item>
  1171. </out:if>
  1172. <out:if test="$isSingleTabRequest">
  1173. <item id="myPortal">
  1174. <text><xts:string id="IDS_PAGE_MENU_MY_PAGES"/></text>
  1175. <action>pageCmd('myPortal');</action>
  1176. </item>
  1177. </out:if>
  1178. </items>
  1179. </flyout>
  1180. </out:variable>
  1181. <out:call-template name="renderPopup">
  1182. <out:with-param name="flyoutXML">
  1183. <out:copy-of select="$pageMenu"/>
  1184. </out:with-param>
  1185. <out:with-param name="controlID">tabscontroldiv</out:with-param>
  1186. </out:call-template>
  1187. <!-- <div class="tabMenuButtonNormal" style="position: relative; cursor:pointer;z-index:15;" onmouseover="this.className='tabMenuButtonOver'" onmouseout="this.className='tabMenuButtonNormal'"> -->
  1188. <div class="tabMenuButtonNormal" style="position: relative; cursor:pointer;z-index:15;top: 3px" >
  1189. <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'">
  1190. <span style="cursor:pointer; position:relative;">
  1191. <img style="vertical-align: absmiddle; " name="pageMenu_imgFlyControl" src="{'{$skin_images}'}page_menu.gif" >
  1192. <out:attribute name="alt"><xts:string id="IDS_PAGE_MENU_TOOLTIP"/></out:attribute>
  1193. <out:attribute name="title"><xts:string id="IDS_PAGE_MENU_TOOLTIP"/></out:attribute>
  1194. </img>
  1195. </span>
  1196. </div>
  1197. </div>
  1198. </xsl:template>
  1199. <!-- Single tab view -->
  1200. <xsl:template name="renderSinglePageTab">
  1201. <out:if test="true()">
  1202. <out:variable name="collapsedAltText"><xts:string id="IDS_COLLAPSED_TABS"/></out:variable>
  1203. <td style="padding-left:3px;"><img src="{'{$skin_images}'}icon_collapsed_tabs.gif" alt="{'{$collapsedAltText}'}"/></td>
  1204. </out:if>
  1205. <td style="padding-left:10px;padding-right:10px;">
  1206. <div style="height:15px;" class="ccOptionsDivider"/>
  1207. </td>
  1208. <td valign="bottom" width="100%" style="padding-right:5px;padding-left:2px;">
  1209. <table role="presentation" style="padding-bottom:2px;" border="0" width="100%" cellpadding="0" cellspacing="0" class="singlePageDisplayHeader">
  1210. <tr>
  1211. <td align="left" nowrap="nowrap" class="singlePageName">
  1212. <out:call-template name="genWarningSigns">
  1213. <out:with-param name="pageProp" select="$pageProperties/*"/>
  1214. </out:call-template>
  1215. <out:call-template name="genTabLable">
  1216. <out:with-param name="CMClass" select="$pageClass"/>
  1217. <out:with-param name="CMName" select="$pageName"/>
  1218. </out:call-template>
  1219. </td>
  1220. <td width="100%" class="formText" nowrap="nowrap" style="text-align:right;">
  1221. <out:if test="$canAddPageToPortal">
  1222. <a href="javascript:pageCmd('addToMyPages')"><xts:string id="IDS_PAGE_MENU_ADD_TO_PAGES"/></a>
  1223. </out:if>
  1224. &#160;&#160;
  1225. <out:choose>
  1226. <out:when test="key('env-param', 'backURL') != ''">
  1227. <a href="{'{key(&quot;env-param&quot;, &quot;backURL&quot;)}'}"><xts:string id="IDS_PAGE_MENU_MY_PAGES"/></a>
  1228. </out:when>
  1229. <out:otherwise>
  1230. <a href="javascript:defaultPortalView()"><xts:string id="IDS_PAGE_MENU_MY_PAGES"/></a>
  1231. </out:otherwise>
  1232. </out:choose>
  1233. </td>
  1234. </tr>
  1235. </table>
  1236. </td>
  1237. </xsl:template>
  1238. <!-- Personal tab bar -->
  1239. <xsl:template name="renderPersonalTabBar">
  1240. <!-- build the tab XML -->
  1241. <out:variable name="tabs">
  1242. <out:for-each select="$portalPages/*">
  1243. <!-- Build the tab label -->
  1244. <out:variable name="tabLabel">
  1245. <out:call-template name="genTabLable">
  1246. <out:with-param name="CMClass" select="cm:objectClass"/>
  1247. <out:with-param name="CMName" select="cm:defaultName"/>
  1248. </out:call-template>
  1249. </out:variable>
  1250. <!-- Build warning if there is any -->
  1251. <out:variable name="warning">
  1252. <out:call-template name="genWarningSigns">
  1253. <out:with-param name="pageProp" select="."/>
  1254. </out:call-template>
  1255. </out:variable>
  1256. <tab>
  1257. <out:choose>
  1258. <out:when test="cm:storeID = $pageID">
  1259. <out:attribute name="selected">true</out:attribute>
  1260. <out:copy-of select="$warning"/>
  1261. <out:value-of select="$tabLabel"/>
  1262. </out:when>
  1263. <out:otherwise>
  1264. <!-- Show any warnings -->
  1265. <out:copy-of select="$warning"/>
  1266. <!-- Render the link -->
  1267. <a class="tabAnchor" role="presentation">
  1268. <out:attribute name="href">
  1269. <out:call-template name="genTabURL">
  1270. <out:with-param name="pageID" select="cm:storeID"/>
  1271. <out:with-param name="pageClass" select="cm:objectClass"/>
  1272. </out:call-template>
  1273. </out:attribute>
  1274. <out:value-of select="$tabLabel"/>
  1275. </a>
  1276. </out:otherwise>
  1277. </out:choose>
  1278. </tab>
  1279. </out:for-each>
  1280. </out:variable>
  1281. <!-- Render the tab bar -->
  1282. <td valign="bottom" width="100%" style="padding-left:2px;">
  1283. <out:call-template name="renderTabs">
  1284. <out:with-param name="tabs" select="$tabs"/>
  1285. <out:with-param name="scroll" select="true()"/>
  1286. </out:call-template>
  1287. </td>
  1288. </xsl:template>
  1289. <!--
  1290. Template - mt:toolbar:
  1291. -->
  1292. <xsl:template match="mt:toolbar">
  1293. <script language="javascript">
  1294. var frmCmdForm = "<out:value-of select="$cmd-form"/>";
  1295. var frmEditForm = "<out:value-of select="$edit-form"/>";
  1296. var defaultPrefix = "checkbox_";
  1297. <!-- common functions for "Edit" tools -->
  1298. var sDelimiter = "<out:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d1))"/>"; <!-- used to delimit entries -->
  1299. <xsl:choose>
  1300. <xsl:when test="@cogadmin='true'">
  1301. var toolbarImageNormal = "toolbarImageNormal2";
  1302. </xsl:when>
  1303. <xsl:otherwise>
  1304. var toolbarImageNormal = "toolbarImageNormal";
  1305. </xsl:otherwise>
  1306. </xsl:choose>
  1307. <![CDATA[
  1308. //<!-- change the images for the toolbar during a mouseover -->
  1309. function mouseoverImage(item)
  1310. {
  1311. if (item.className == toolbarImageNormal)
  1312. item.className = 'toolbarImageOver';
  1313. if (item.className == 'toolbarImagePressed')
  1314. item.className = 'toolbarImageOverPressed';
  1315. }
  1316. //<!-- change the images for the toolbar during a mouseout -->
  1317. function mouseoutImage(item)
  1318. {
  1319. if (item.className == 'toolbarImageOver')
  1320. item.className = toolbarImageNormal;
  1321. if (item.className == 'toolbarImageOverPressed')
  1322. item.className = 'toolbarImagePressed';
  1323. }
  1324. //<!-- Determines if the total number of selected entries exceeds a given limit. Returns true if the limit is exceeded, false if it is not. -->
  1325. function isOverItemsLimit(limit)
  1326. {
  1327. //<!-- Don't bother doing any check if the limit passed in is bogus (none integer)-->
  1328. if (isNaN(limit) || (limit < 0) || (Math.floor(limit) < limit) )
  1329. return false;
  1330. var bLimitExceeded = false;
  1331. var items = document.forms[frmEditForm].elements.length;
  1332. var counter = 0;
  1333. for (var i=0; i<items; i++)
  1334. {
  1335. if (document.forms[frmEditForm].elements[i].name.substring(0,9) == "checkbox_" && document.forms[frmEditForm].elements[i].checked)
  1336. {
  1337. counter++;
  1338. if (counter > limit)
  1339. {
  1340. bLimitExceeded = true;
  1341. break;
  1342. }
  1343. }
  1344. }
  1345. return bLimitExceeded;
  1346. }
  1347. ]]>
  1348. function doNew(newClass, classSubtype)
  1349. {
  1350. if (newClass == 'dashboard')
  1351. {
  1352. <xsl:choose>
  1353. <xsl:when test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
  1354. if(window.cognosLaunchInWindow)
  1355. {
  1356. var winProp="menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes";
  1357. cognosLaunchInWindow('_blank', 'winProp', 'ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'new');
  1358. }
  1359. </xsl:when>
  1360. <xsl:otherwise>
  1361. if(window.directLaunch)
  1362. { var uierrURL = "<xsl:value-of select="/root/system/param[@name='COGNOSHome']"/>";
  1363. var uiencoding = "<xsl:value-of select="/root/env/param[@name='encoding']"/>";
  1364. directLaunch('ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'new','ui.errURL', uierrURL, 'ui.encoding', uiencoding);
  1365. }
  1366. </xsl:otherwise>
  1367. </xsl:choose>
  1368. return;
  1369. }
  1370. if (newClass == 'pagelet' &amp;&amp; document.forms[frmCmdForm].m_path.value == '')
  1371. {
  1372. document.forms[frmCmdForm].m_path.value = "<out:value-of select="xtsext:javascriptencode(key('session-param', 'e_mrootpath'))"/>";
  1373. }
  1374. document.forms[frmCmdForm].m.value = "<out:value-of select="$app"/>/new_general.xts";
  1375. document.forms[frmCmdForm].m_new_class.value = newClass;
  1376. if (classSubtype)
  1377. document.forms[frmCmdForm].m_classSubtype.value = classSubtype;
  1378. document.forms[frmCmdForm].backURL.value= "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  1379. document.forms[frmCmdForm].submit();
  1380. }
  1381. </script>
  1382. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/list.js"></script>
  1383. <xsl:apply-templates />
  1384. </xsl:template>
  1385. <xsl:template match="mt:tool-group">
  1386. <xsl:variable name="hideDivider"><xsl:value-of select="string(@hideDivider)"/></xsl:variable>
  1387. <xsl:choose>
  1388. <xsl:when test="@cogadmin='true'">
  1389. <style>
  1390. .toolbarImageNormal2 {
  1391. padding-left: 3px;
  1392. padding-right: 3px;
  1393. cursor: pointer;
  1394. }
  1395. .toolbarImageUnavailable2 {
  1396. padding-left: 3px;
  1397. padding-right: 3px;
  1398. }
  1399. </style>
  1400. <xsl:apply-templates />
  1401. <xsl:if test="@lastgroup != 'true'">
  1402. <td valign="middle"><img style="padding-left: 3px; padding-right: 3px;" alt="" src="{'{$webcontent}/cogadmin/images/divider.gif'}" /></td>
  1403. </xsl:if>
  1404. </xsl:when>
  1405. <xsl:otherwise>
  1406. <xsl:choose>
  1407. <xsl:when test="$hideDivider='true'">
  1408. <td style="padding-left:5px;"/>
  1409. </xsl:when>
  1410. <xsl:otherwise>
  1411. <td class="toolbarDividerContainer"><div class="toolbarDivider"/></td>
  1412. </xsl:otherwise>
  1413. </xsl:choose>
  1414. <xsl:apply-templates/>
  1415. </xsl:otherwise>
  1416. </xsl:choose>
  1417. </xsl:template>
  1418. <!-- Toolbar buttons -->
  1419. <xsl:template match="mt:tool[not(@name)]">
  1420. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="button">
  1421. <xsl:apply-templates/>
  1422. </td>
  1423. </xsl:template>
  1424. <!-- New -->
  1425. <xsl:template match="mt:tool[@name='new']">
  1426. <xsl:variable name="image">
  1427. <xsl:choose>
  1428. <xsl:when test="@new-class = 'folder' or @new-class='subscriptionFolder'">
  1429. <xsl:choose>
  1430. <xsl:when test="not(string(@disable) = 'true')">action_new_folder.gif</xsl:when>
  1431. <xsl:otherwise>action_new_folder_dis.gif</xsl:otherwise>
  1432. </xsl:choose>
  1433. </xsl:when>
  1434. <xsl:when test="@new-class = 'pagelet'">action_new_page.gif</xsl:when>
  1435. <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance'">action_new_cognos_content.gif</xsl:when> <!-- MVC -->
  1436. <xsl:when test="@new-class = 'namespaceFolder'">
  1437. <xsl:choose>
  1438. <xsl:when test="string(@disable) = 'true'">action_new_folder_dis.gif</xsl:when>
  1439. <xsl:otherwise>action_new_folder.gif</xsl:otherwise>
  1440. </xsl:choose>
  1441. </xsl:when>
  1442. <xsl:when test="@new-class = 'adminFolder'">
  1443. <xsl:choose>
  1444. <xsl:when test="string(@disable) = 'true'">action_new_folder_dis.gif</xsl:when>
  1445. <xsl:otherwise>action_new_folder.gif</xsl:otherwise>
  1446. </xsl:choose>
  1447. </xsl:when>
  1448. <xsl:when test="@new-class = 'portletFolder'">
  1449. <xsl:choose>
  1450. <xsl:when test="string(@disable) = 'true'">action_new_folder_dis.gif</xsl:when>
  1451. <xsl:otherwise>action_new_folder_dis.gif</xsl:otherwise>
  1452. </xsl:choose>
  1453. </xsl:when>
  1454. <xsl:when test="@new-class = 'contentTask'">
  1455. <xsl:choose>
  1456. <xsl:when test="string(@disable) = 'true'">action_new_content_task_drop_arrow_dis.gif</xsl:when>
  1457. <xsl:otherwise>action_new_content_task_drop_arrow.gif</xsl:otherwise>
  1458. </xsl:choose>
  1459. </xsl:when>
  1460. <xsl:when test="@new-class = 'indexUpdateTask'">
  1461. <xsl:choose>
  1462. <xsl:when test="string(@disable) = 'true'">action_new_index_update_dis.gif</xsl:when>
  1463. <xsl:otherwise>action_new_index_update.gif</xsl:otherwise>
  1464. </xsl:choose>
  1465. </xsl:when>
  1466. <xsl:when test="@new-class = 'URL'">action_new_url.gif</xsl:when>
  1467. <xsl:when test="@new-class = 'dataSource'">
  1468. <xsl:choose>
  1469. <xsl:when test="string(@disable) = 'true'">action_new_datasource_dis.gif</xsl:when>
  1470. <xsl:otherwise>action_new_data_source.gif</xsl:otherwise>
  1471. </xsl:choose>
  1472. </xsl:when>
  1473. <xsl:when test="@new-class = 'dataSourceConnection'">
  1474. <xsl:choose>
  1475. <xsl:when test="string(@disable) = 'true'">action_new_connection_dis.gif</xsl:when>
  1476. <xsl:otherwise>action_new_connection.gif</xsl:otherwise>
  1477. </xsl:choose>
  1478. </xsl:when>
  1479. <xsl:when test="@new-class = 'dataSourceSignon'">
  1480. <xsl:choose>
  1481. <xsl:when test="string(@disable) = 'true'">action_new_signon_dis.gif</xsl:when>
  1482. <xsl:otherwise>action_new_signon.gif</xsl:otherwise>
  1483. </xsl:choose>
  1484. </xsl:when>
  1485. <xsl:when test="@new-class = 'role'">
  1486. <xsl:choose>
  1487. <xsl:when test="string(@disable) = 'true'">action_new_role_dis.gif</xsl:when>
  1488. <xsl:otherwise>action_new_role.gif</xsl:otherwise>
  1489. </xsl:choose>
  1490. </xsl:when>
  1491. <xsl:when test="@new-class = 'group'">
  1492. <xsl:choose>
  1493. <xsl:when test="string(@disable) = 'true'">action_new_group_dis.gif</xsl:when>
  1494. <xsl:otherwise>action_new_group.gif</xsl:otherwise>
  1495. </xsl:choose>
  1496. </xsl:when>
  1497. <xsl:when test="@new-class = 'jobDefinition'">
  1498. <xsl:choose>
  1499. <xsl:when test="string(@disable) = 'true'">action_new_job_dis.gif</xsl:when>
  1500. <xsl:otherwise>action_new_job.gif</xsl:otherwise>
  1501. </xsl:choose>
  1502. </xsl:when>
  1503. <xsl:when test="@new-class = 'configurationFolder'">
  1504. <xsl:choose>
  1505. <xsl:when test="string(@disable) = 'true'">action_new_configuration_folder_dis.gif</xsl:when>
  1506. <xsl:otherwise>action_new_folder.gif</xsl:otherwise>
  1507. </xsl:choose>
  1508. </xsl:when>
  1509. <xsl:when test="@new-class = 'contact'">
  1510. <xsl:choose>
  1511. <xsl:when test="string(@disable) = 'true'">action_new_contact_dis.gif</xsl:when>
  1512. <xsl:otherwise>action_new_contact.gif</xsl:otherwise>
  1513. </xsl:choose>
  1514. </xsl:when>
  1515. <xsl:when test="@new-class = 'distributionList'">
  1516. <xsl:choose>
  1517. <xsl:when test="string(@disable) = 'true'">action_new_distribution_list_dis.gif</xsl:when>
  1518. <xsl:otherwise>action_new_distribution_list.gif</xsl:otherwise>
  1519. </xsl:choose>
  1520. </xsl:when>
  1521. <xsl:when test="@new-class = 'printer'">
  1522. <xsl:choose>
  1523. <xsl:when test="string(@disable) = 'true'">action_new_printer_dis.gif</xsl:when>
  1524. <xsl:otherwise>action_new_printer.gif</xsl:otherwise>
  1525. </xsl:choose>
  1526. </xsl:when>
  1527. <xsl:when test="@new-class = 'metricsIntegrationTaskGroup'">action_new_data_integration_drop_arrow.gif</xsl:when>
  1528. <xsl:when test="@new-class = 'metricsPackage'">
  1529. <xsl:choose>
  1530. <xsl:when test="string(@disable) = 'true'">action_new_metrics_package_dis.gif</xsl:when>
  1531. <xsl:otherwise>action_new_metrics_package.gif</xsl:otherwise>
  1532. </xsl:choose>
  1533. </xsl:when>
  1534. <xsl:when test="@new-class = 'drillPath'">
  1535. <xsl:choose>
  1536. <xsl:when test="string(@disable) = 'true'">action_new_drill_through_dis.gif</xsl:when>
  1537. <xsl:otherwise>action_new_drill_through.gif</xsl:otherwise>
  1538. </xsl:choose>
  1539. </xsl:when>
  1540. <xsl:when test="@new-class = 'portalSkin'">
  1541. <xsl:choose>
  1542. <xsl:when test="string(@disable) = 'true'">action_new_style_wizard_dis.gif</xsl:when>
  1543. <xsl:otherwise>action_new_style_wizard.gif</xsl:otherwise>
  1544. </xsl:choose>
  1545. </xsl:when>
  1546. <xsl:when test="@new-class = 'dashboard'">action_new_dashboard.gif</xsl:when>
  1547. <xsl:when test="@new-class = 'self-service-package'">action_new_package.gif</xsl:when>
  1548. <xsl:when test="@new-class = 'queryServiceTask'">
  1549. <xsl:choose>
  1550. <xsl:when test="string(@disable) = 'true'">action_new_queryServiceTask_dis.gif</xsl:when>
  1551. <xsl:otherwise>action_new_queryServiceTask.gif</xsl:otherwise>
  1552. </xsl:choose>
  1553. </xsl:when>
  1554. </xsl:choose>
  1555. </xsl:variable>
  1556. <xsl:variable name="alt-id">
  1557. <xsl:choose>
  1558. <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>
  1559. <xsl:when test="@new-class = 'pagelet'">IDS_NEW_PAGELET</xsl:when>
  1560. <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 -->
  1561. <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance'">IDS_NEW_MVC_LAUNCHABLE</xsl:when> <!-- MVC -->
  1562. <xsl:when test="@new-class = 'printer'">IDS_NEW_PRINTER_TIP</xsl:when>
  1563. <xsl:when test="@new-class = 'contentTask'">IDS_MAIN_NEW_CONTENT_TASK</xsl:when>
  1564. <xsl:when test="@new-class = 'indexUpdateTask'">IDS_MAIN_NEW_INDEX_UPDATE_TASK</xsl:when>
  1565. <xsl:when test="@new-class = 'URL'">IDS_NEW_SHORTCUT_TO_URL</xsl:when>
  1566. <xsl:when test="@new-class = 'dataSource'">IDS_NEW_DATA_SOURCE</xsl:when>
  1567. <xsl:when test="@new-class = 'dataSourceConnection'">IDS_NEW_CONNECTION</xsl:when>
  1568. <xsl:when test="@new-class = 'dataSourceSignon'">IDS_NEW_SIGNON</xsl:when>
  1569. <xsl:when test="@new-class = 'role'">IDS_NEW_COGNOS_ROLE</xsl:when>
  1570. <xsl:when test="@new-class = 'group'">IDS_NEW_COGNOS_GROUP</xsl:when>
  1571. <xsl:when test="@new-class = 'jobDefinition'">IDS_NEW_JOB</xsl:when>
  1572. <xsl:when test="@new-class = 'configurationFolder'">IDS_NEW_CONFIGURATION_FOLDER</xsl:when>
  1573. <xsl:when test="@new-class = 'contact'">IDS_NEW_CONTACT</xsl:when>
  1574. <xsl:when test="@new-class = 'distributionList'">IDS_NEW_DISTRIBUTION_LIST</xsl:when>
  1575. <xsl:when test="@new-class = 'metricsIntegrationTaskGroup'">IDS_METRICS_INTEGRATION_TASK_GROUP_TIP</xsl:when>
  1576. <xsl:when test="@new-class = 'metricsPackage'">IDS_NEW_METRICS_PACKAGE_TIP</xsl:when>
  1577. <xsl:when test="@new-class = 'drillPath'">IDS_NEW_DRILLPATH</xsl:when>
  1578. <xsl:when test="@new-class = 'portalSkin'">IDS_NEW_PORTALSKIN</xsl:when>
  1579. <xsl:when test="@new-class = 'dashboard'">IDS_NEW_DASHBOARD</xsl:when>
  1580. <xsl:when test="@new-class = 'self-service-package'">IDS_NEW_PACKAGE</xsl:when>
  1581. <xsl:when test="@new-class = 'queryServiceTask'">IDS_NEW_QUERYSERVICETASK</xsl:when>
  1582. </xsl:choose>
  1583. </xsl:variable>
  1584. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_new{@new-class}'))">
  1585. <xsl:choose>
  1586. <xsl:when test="@new-class='self-service-package'">
  1587. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" class="toolbarImageNormal" role="presentation">
  1588. <script language="javascript">
  1589. <out:attribute name="src"><out:value-of select="$webcontent"/><out:value-of select="concat('/',$app)"/><xsl:value-of select="'/js/utilities.js'"/></out:attribute>
  1590. </script>
  1591. <script language="JavaScript">
  1592. function createSelfServicePackage()
  1593. {
  1594. var curDoc = document.<out:value-of select="$cmd-form"/>;
  1595. if (curDoc)
  1596. {
  1597. setFormInputElement('so.select','selfServicePackage','hidden','<out:value-of select="$cmd-form"/>');
  1598. setFormInputElement('so.backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
  1599. setFormInputElement('backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
  1600. setFormInputElement('so.return.m','<out:value-of select="$app"/>/new_package.xts','hidden','<out:value-of select="$cmd-form"/>');
  1601. setFormInputElement('from_CC','true','hidden','<out:value-of select="$cmd-form"/>');
  1602. setFormInputElement('m_selfServicePackageLocation','','hidden','<out:value-of select="$cmd-form"/>');
  1603. setFormInputElement('m_new_class','package','hidden','<out:value-of select="$cmd-form"/>');
  1604. curDoc.m.value = "<out:value-of select="$app"/>/select/select.xts";
  1605. window.setTimeout( "document.<out:value-of select="$cmd-form"/>.submit();" , 1 );
  1606. }
  1607. }
  1608. </script>
  1609. <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;">
  1610. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1611. <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
  1612. <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
  1613. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1614. </img>
  1615. </a>
  1616. </td>
  1617. </xsl:when>
  1618. <xsl:when test="@new-class='contentTask' and @disable!='true'">
  1619. <script language="JavaScript">
  1620. function newContentTask(cmd)
  1621. {
  1622. document.forms[frmCmdForm].contentTaskType.value = cmd;
  1623. doNew('contentTask');
  1624. }
  1625. </script>
  1626. <out:variable name="isECMFeatureInstalled" select="count(/root/installedComponents/configuration/property[@name='installedComponents']/component[string(.)='repositoryIntegration']) >= 1"/>
  1627. <out:variable name="contentTaskMenu">
  1628. <flyout id="contentTask" >
  1629. <label><xts:string encode="javascript" id="IDS_MENU_CONTENTTASK"/></label>
  1630. <items>
  1631. <item id="consistency">
  1632. <text><xts:string id="IDS_CONTENT_TASK_NEW_CONSISTENCY"/></text>
  1633. <action>newContentTask("consistency");</action>
  1634. </item>
  1635. <item id="reportUpgrade">
  1636. <text><xts:string id="IDS_CONTENT_TASK_NEW_REPORT_UPGRADE"/></text>
  1637. <action>newContentTask("reportUpgrade");</action>
  1638. </item>
  1639. <item id="contentRemoval">
  1640. <text><xts:string id="IDS_CONTENT_TASK_NEW_CONTENTREMOVAL"/></text>
  1641. <action>newContentTask("contentRemoval");</action>
  1642. </item>
  1643. <out:if test="$isECMFeatureInstalled">
  1644. <item id="retentionRuleUpdate">
  1645. <text><xts:string id="IDS_CONTENT_TASK_NEW_RETENTION_RULE_UPDATE"/></text>
  1646. <action>newContentTask("retentionRuleUpdate");</action>
  1647. </item>
  1648. <item id="contentArchival">
  1649. <text><xts:string id="IDS_CONTENT_TASK_NEW_CONTENTARCHIVAL"/></text>
  1650. <action>newContentTask("contentArchival");</action>
  1651. </item>
  1652. </out:if>
  1653. </items>
  1654. </flyout>
  1655. </out:variable>
  1656. <out:call-template name="renderPopup">
  1657. <out:with-param name="flyoutXML">
  1658. <out:copy-of select="$contentTaskMenu"/>
  1659. </out:with-param>
  1660. <out:with-param name="controlID">contentTaskMenu_td</out:with-param>
  1661. </out:call-template>
  1662. <out:variable name="altText"><xts:string id="{$alt-id}"/></out:variable>
  1663. <td class="toolbarFlyoutNormal" onmouseover="this.className='toolbarFlyoutOver'" onmouseout="this.className='toolbarFlyoutNormal'" height="20" role="presentation">
  1664. <div style="position: relative; cursor:pointer;z-index:9;" id="contentTaskMenu_td">
  1665. <div tabindex="0" onkeypress="return CCPopupMenu.dropDown(event,0,0,'contentTask');" onclick="return CCPopupMenu.dropDown(event,0,0,'contentTask');" role="button" aria-haspopup="true">
  1666. <span style="cursor:pointer; position:relative;">
  1667. <img style="vertical-align: absmiddle; " name="contentTaskMenu_imgFlyControl" src="{'{$image_root}'}{$image}" title="{'{$altText}'}" alt="{'{$altText}'}"/>
  1668. </span>
  1669. </div>
  1670. </div>
  1671. </td>
  1672. </xsl:when>
  1673. <xsl:when test="@new-class='metricsIntegrationTaskGroup'">
  1674. <script language="javascript">
  1675. <out:attribute name="src"><out:value-of select="$webcontent"/><out:value-of select="concat('/',$app)"/><xsl:value-of select="'/js/utilities.js'"/></out:attribute>
  1676. </script>
  1677. <script language="JavaScript">
  1678. function createMetricTask(sReportType, location, pkg)
  1679. {
  1680. if(sReportType!='metricsFileImportTask' &amp;&amp; sReportType!='metricsMaintenanceTask' &amp;&amp; sReportType!='metricsExportTask')
  1681. return;
  1682. var curDoc = document.<out:value-of select="$cmd-form"/>;
  1683. if (curDoc)
  1684. {
  1685. setFormInputElement('so.select','newmetricstaskspackage','hidden','<out:value-of select="$cmd-form"/>');
  1686. setFormInputElement('so.backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
  1687. setFormInputElement('backURL',sBackURL,'hidden','<out:value-of select="$cmd-form"/>');
  1688. setFormInputElement('so.return.m','<out:value-of select="$app"/>/new_general.xts','hidden','<out:value-of select="$cmd-form"/>');
  1689. setFormInputElement('so.defaultObject',pkg,'hidden','<out:value-of select="$cmd-form"/>');
  1690. setFormInputElement('so.defaultLocation',location,'hidden','<out:value-of select="$cmd-form"/>');
  1691. setFormInputElement('m_new_class',sReportType,'hidden','<out:value-of select="$cmd-form"/>');
  1692. curDoc.m.value = "<out:value-of select="$app"/>/newMetricsTasks/processNewTasks.xts";
  1693. <out:variable name="javatarget2">
  1694. <out:choose>
  1695. <out:when test="/root/env/param[@name='wtarget'] = 'top'">_top</out:when>
  1696. <out:when test="/root/env/param[@name='wtarget'] = 'parent'">_parent</out:when>
  1697. <out:when test="/root/env/param[@name='wtarget'] = 'blank'">_blank</out:when>
  1698. <out:when test="/root/env/param[@name='wtarget'] = 'self'">_self</out:when>
  1699. </out:choose>
  1700. </out:variable>
  1701. <out:if test="$javatarget2 != ''">
  1702. curDoc.target= "<out:value-of select="$javatarget2"/>";
  1703. </out:if>
  1704. window.setTimeout( "document.<out:value-of select="$cmd-form"/>.submit();" , 1 );
  1705. }
  1706. }
  1707. function newMetricsTask(cmd)
  1708. {
  1709. switch (cmd)
  1710. {
  1711. case 'NewMetricsFileImport':
  1712. createMetricTask('metricsFileImportTask', '<out:value-of select="xtsext:javascriptencode(string($location))"/>', '<out:value-of select="xtsext:javascriptencode(string($pkg))"/>');
  1713. break;
  1714. case 'NewMetricsMaintenance':
  1715. createMetricTask('metricsMaintenanceTask', '<out:value-of select="xtsext:javascriptencode(string($location))"/>', '<out:value-of select="xtsext:javascriptencode(string($pkg))"/>');
  1716. break;
  1717. case 'NewMetricsExport':
  1718. createMetricTask('metricsExportTask', '<out:value-of select="xtsext:javascriptencode(string($location))"/>', '<out:value-of select="xtsext:javascriptencode(string($pkg))"/>');
  1719. break;
  1720. }
  1721. }
  1722. </script>
  1723. <out:variable name="metricsIntegrationTaskMenu">
  1724. <flyout id="metricsIntegrationTaskMenu" >
  1725. <label><xts:string encode="javascript" id="IDS_MENU_METRICSTASK"/></label>
  1726. <items>
  1727. <item id="NewMetricsFileImport">
  1728. <text><xts:string id="IDS_NEW_METRICS_MENU_FILE_IMPORT"/></text>
  1729. <action>newMetricsTask("NewMetricsFileImport");</action>
  1730. </item>
  1731. <item id="NewMetricsMaintenance">
  1732. <text><xts:string id="IDS_NEW_METRICS_MENU_MAINTENANCE"/></text>
  1733. <action>newMetricsTask("NewMetricsMaintenance");</action>
  1734. </item>
  1735. <item id="NewMetricsExport">
  1736. <text><xts:string id="IDS_NEW_METRICS_MENU_EXPORT"/></text>
  1737. <action>newMetricsTask("NewMetricsExport");</action>
  1738. </item>
  1739. </items>
  1740. </flyout>
  1741. </out:variable>
  1742. <out:call-template name="renderPopup">
  1743. <out:with-param name="flyoutXML">
  1744. <out:copy-of select="$metricsIntegrationTaskMenu"/>
  1745. </out:with-param>
  1746. <out:with-param name="controlID">metricsIntegrationTaskHomeMenu_span</out:with-param>
  1747. </out:call-template>
  1748. <out:variable name="altText"><xts:string id="{$alt-id}"/></out:variable>
  1749. <td class="toolbarFlyoutNormal" onmouseover="this.className='toolbarFlyoutOver'" onmouseout="this.className='toolbarFlyoutNormal'" role="presentation">
  1750. <div style="position: relative; cursor:pointer;z-index:10;" id="metricsIntegrationTaskHomeMenu_span">
  1751. <div tabindex="0" onkeypress="return CCPopupMenu.dropDown(event,0,0,'metricsIntegrationTaskMenu');" onclick="return CCPopupMenu.dropDown(event,0,0,'metricsIntegrationTaskMenu');" role="button" aria-haspopup="true">
  1752. <span style="cursor:pointer; position:relative;">
  1753. <img style="vertical-align: absmiddle; " name="metricsIntegrationTaskHomeMenu_imgFlyControl" src="{'{$image_root}'}{$image}" title="{'{$altText}'}" alt="{'{$altText}'}"/>
  1754. </span>
  1755. </div>
  1756. </div>
  1757. </td>
  1758. </xsl:when>
  1759. <xsl:when test="@new-class='queryServiceTask' and @disable!='true'">
  1760. <out:variable name="queryServiceTaskMenu">
  1761. <flyout id="queryServiceTask" >
  1762. <label><xts:string encode="javascript" id="IDS_MENU_QUERYSERVICESTASK"/></label>
  1763. <items>
  1764. <item id="DMR">
  1765. <text><xts:string id="IDS_QUERYSERVICETASK_NEW_DMR"/></text>
  1766. <action>doNew('<xsl:value-of select="@new-class"/>','DMR');</action>
  1767. </item>
  1768. <item id="ESSBASE">
  1769. <text><xts:string id="IDS_QUERYSERVICETASK_NEW_ESSBASE"/></text>
  1770. <action>doNew('<xsl:value-of select="@new-class"/>','ESSBASE');</action>
  1771. </item>
  1772. <item id="ROLAP">
  1773. <text><xts:string id="IDS_QUERYSERVICETASK_NEW_ROLAP"/></text>
  1774. <action>doNew('<xsl:value-of select="@new-class"/>','ROLAP');</action>
  1775. </item>
  1776. <item id="SAPBW">
  1777. <text><xts:string id="IDS_QUERYSERVICETASK_NEW_SAPBW"/></text>
  1778. <action>doNew('<xsl:value-of select="@new-class"/>','SAPBW');</action>
  1779. </item>
  1780. </items>
  1781. </flyout>
  1782. </out:variable>
  1783. <out:call-template name="renderPopup">
  1784. <out:with-param name="flyoutXML">
  1785. <out:copy-of select="$queryServiceTaskMenu"/>
  1786. </out:with-param>
  1787. <out:with-param name="controlID">queryServiceTask_div</out:with-param>
  1788. </out:call-template>
  1789. <out:variable name="altText"><xts:string id="{$alt-id}"/></out:variable>
  1790. <td class="toolbarFlyoutNormal" onmouseover="this.className='toolbarFlyoutOver'" onmouseout="this.className='toolbarFlyoutNormal'" height="20" role="presentation">
  1791. <div style="position: relative; cursor:pointer;z-index:10;" id="queryServiceTask_div">
  1792. <div tabindex="0" onkeypress="return CCPopupMenu.dropDown(event,0,0,'queryServiceTask');" onclick="return CCPopupMenu.dropDown(event,0,0,'queryServiceTask');" role="button" aria-haspopup="true">
  1793. <span style="cursor:pointer; position:relative;">
  1794. <img style="vertical-align: absmiddle; " name="queryServiceTaskMenu_imgFlyControl" src="{'{$image_root}'}{$image}" title="{'{$altText}'}" alt="{'{$altText}'}"/>
  1795. </span>
  1796. </div>
  1797. </div>
  1798. </td>
  1799. </xsl:when>
  1800. <xsl:otherwise>
  1801. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  1802. <xsl:choose>
  1803. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  1804. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  1805. </xsl:choose>
  1806. <xsl:choose>
  1807. <xsl:when test="@new-class='metricsPackage' and @disable != 'true'">
  1808. <a role="button" tabindex="0">
  1809. <out:attribute name="href">
  1810. <out:value-of select="$gateway"/>
  1811. <out:text/>?b_action=mms.run&amp;pid=new_mpwizard_start<out:text/>
  1812. <out:if test="$cafContextIDCMM != ''">
  1813. <out:text/>&amp;ui.cafcontextid=<out:value-of select="$cafContextIDCMM"/><out:text/>
  1814. </out:if>
  1815. <out:text/>&amp;ui.backURL=<out:value-of select="$encoded-back-url"/><out:text/>
  1816. </out:attribute>
  1817. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1818. <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
  1819. <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
  1820. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1821. </img>
  1822. </a>
  1823. </xsl:when>
  1824. <xsl:when test="@new-class = 'launchable' and @class-subType='application/vnd.ibm.cognos.instance' and @context = 'Personal'">
  1825. <a role="button" tabindex="0" href="javascript:mvcShowPersonalRCRDialog()">
  1826. <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
  1827. <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
  1828. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1829. </img>
  1830. </a>
  1831. </xsl:when>
  1832. <xsl:otherwise>
  1833. <xsl:choose>
  1834. <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))">
  1835. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  1836. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
  1837. <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
  1838. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1839. </img>
  1840. </td>
  1841. </xsl:when>
  1842. <xsl:otherwise>
  1843. <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;">
  1844. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1845. <img height="16" width="16" border="0" src="{'{$image_root}'}{$image}">
  1846. <out:attribute name="alt"><xts:string id="{$alt-id}"/></out:attribute>
  1847. <out:attribute name="title"><xts:string id="{$alt-id}"/></out:attribute>
  1848. </img>
  1849. </a>
  1850. </xsl:otherwise>
  1851. </xsl:choose>
  1852. </xsl:otherwise>
  1853. </xsl:choose>
  1854. </td>
  1855. </xsl:otherwise>
  1856. </xsl:choose>
  1857. </out:if>
  1858. </xsl:template>
  1859. <!-- New Import (Special case. Does not use the common "New" template) -->
  1860. <xsl:template match="mt:tool[@name='import']">
  1861. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  1862. <xsl:choose>
  1863. <xsl:when test="@disable ='true'">
  1864. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  1865. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_new_import_dis.gif">
  1866. <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
  1867. <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
  1868. </img>
  1869. </td>
  1870. </xsl:when>
  1871. <xsl:otherwise>
  1872. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  1873. <xsl:choose>
  1874. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  1875. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  1876. </xsl:choose>
  1877. <a role="button" tabindex="0">
  1878. <out:attribute name="href">
  1879. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/><out:value-of select="'/new_deployment2.xts'"/>
  1880. <out:text/>&amp;m_class=importDeployment&amp;m_setArchiveChanged=false&amp;m_selectArchivePageVisited=false&amp;m_deploymentWizardPage=select-archive&amp;m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
  1881. <out:text/>&amp;backURL=<out:value-of select="$encoded-back-url"/>
  1882. <out:text/>&amp;from_tool=true<out:text/>
  1883. </out:attribute>
  1884. <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
  1885. <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_import.gif">
  1886. <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
  1887. <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_IMPORT"/></out:attribute>
  1888. </img>
  1889. </a>
  1890. </td>
  1891. </xsl:otherwise>
  1892. </xsl:choose>
  1893. </out:if>
  1894. </xsl:template>
  1895. <!-- New Export (Special case. Does not use the common "New" template) -->
  1896. <xsl:template match=" mt:tool[@name='export'] ">
  1897. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  1898. <xsl:choose>
  1899. <xsl:when test="@disable ='true'">
  1900. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  1901. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_new_export_dis.gif">
  1902. <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
  1903. <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
  1904. </img>
  1905. </td>
  1906. </xsl:when>
  1907. <xsl:otherwise>
  1908. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  1909. <xsl:choose>
  1910. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  1911. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  1912. </xsl:choose>
  1913. <a role="button" tabindex="0">
  1914. <out:attribute name="href">
  1915. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/><out:value-of select="'/new_general.xts'"/>
  1916. <out:text/>&amp;m_new_class=exportDeployment&amp;m_deploymentWizardPage=method&amp;m_setArchiveChanged=true&amp;m_archive&amp;m_class=exportDeployment&amp;m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
  1917. <out:text/>&amp;backURL=<out:value-of select="$encoded-back-url"/>
  1918. <out:text/>&amp;from_tool=true<out:text/>
  1919. </out:attribute>
  1920. <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
  1921. <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_export.gif">
  1922. <out:attribute name="alt"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
  1923. <out:attribute name="title"><xts:string id="IDS_MAIN_NEW_EXPORT"/></out:attribute>
  1924. </img>
  1925. </a>
  1926. </td>
  1927. </xsl:otherwise>
  1928. </xsl:choose>
  1929. </out:if>
  1930. </xsl:template>
  1931. <!-- Cut -->
  1932. <xsl:template match=" mt:tool[@name='cut'] ">
  1933. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  1934. <out:variable name="cutContext"><xsl:call-template name="mt:contentcontext"/></out:variable>
  1935. <td id="cut" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  1936. <out:choose>
  1937. <out:when test="'{@disable}'='true' or $cutContext = 'unknown'">
  1938. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  1939. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_cut_dis.gif">
  1940. <out:attribute name="alt"><xts:string id="IDS_CUT"/></out:attribute>
  1941. <out:attribute name="title"><xts:string id="IDS_CUT"/></out:attribute>
  1942. </img>
  1943. </out:when>
  1944. <out:otherwise>
  1945. <out:choose>
  1946. <out:when test="starts-with(key('session-param', 'edit'),'move')">
  1947. <out:attribute name="class">toolbarImagePressed</out:attribute>
  1948. </out:when>
  1949. <out:otherwise>
  1950. <xsl:choose>
  1951. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
  1952. <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
  1953. </xsl:choose>
  1954. </out:otherwise>
  1955. </out:choose>
  1956. <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;">
  1957. <out:attribute name="title"><xts:string id="IDS_CUT"/></out:attribute>
  1958. <img height="16" width="16" border="0" src="{'{$image_root}'}action_cut.gif">
  1959. <out:attribute name="alt"><xts:string id="IDS_CUT"/></out:attribute>
  1960. <out:attribute name="title"><xts:string id="IDS_CUT"/></out:attribute>
  1961. </img>
  1962. </a>
  1963. <script language="javascript">
  1964. function switchCut(state)
  1965. {
  1966. if ("<out:value-of select="$browser"/>" == "ie")
  1967. {
  1968. if (state == "on")
  1969. document.all["cut"].className="toolbarImagePressed";
  1970. else
  1971. document.all["cut"].className="toolbarImageNormal";
  1972. }
  1973. }
  1974. function doCut()
  1975. {
  1976. var sContext = '<out:value-of select="$cutContext"/>';
  1977. var s1 = "<xts:string id="IDS_ERR_CUT_NO_SELECTION" encode="javascript"/>";
  1978. if (isEmptySelection(frmEditForm, defaultPrefix))
  1979. {
  1980. alert( s1 );
  1981. return;
  1982. }
  1983. <out:if test="key('system-param', 'maxEditEntries') and key('system-param', 'maxEditEntries') != ''">
  1984. 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>";
  1985. if (isOverItemsLimit("<out:value-of select="key('system-param', 'maxEditEntries')"/>"))
  1986. {
  1987. alert( s2 );
  1988. return;
  1989. }
  1990. </out:if>
  1991. <!-- Flag a cut operation -->
  1992. setStateValue("edit", "move_" + sContext);
  1993. switchCut("on");
  1994. if (document.all &amp;&amp; document.all["copy"] &amp;&amp; document.switchCopy)
  1995. switchCopy("off");
  1996. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/<out:value-of select="$mname"/>";
  1997. document.forms[frmEditForm].submit();
  1998. if (document.body)
  1999. document.body.style.cursor = "wait";
  2000. }
  2001. </script>
  2002. </out:otherwise>
  2003. </out:choose>
  2004. </td>
  2005. </out:if>
  2006. </xsl:template>
  2007. <!-- Copy -->
  2008. <xsl:template match=" mt:tool[@name='copy'] ">
  2009. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2010. <out:variable name="copyContext"><xsl:call-template name="mt:contentcontext"/></out:variable>
  2011. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2012. <out:choose>
  2013. <out:when test="'{@disable}'='true' or $copyContext = 'unknown'">
  2014. <!-- <out:attribute name="class">toolbarImageUnavailable</out:attribute> -->
  2015. <xsl:choose>
  2016. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
  2017. <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
  2018. </xsl:choose>
  2019. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_copy_dis.gif">
  2020. <out:attribute name="alt"><xts:string id="IDS_COPY"/></out:attribute>
  2021. <out:attribute name="title"><xts:string id="IDS_COPY"/></out:attribute>
  2022. </img>
  2023. </out:when>
  2024. <out:otherwise>
  2025. <out:attribute name="id">copy</out:attribute>
  2026. <out:choose>
  2027. <out:when test="starts-with(key('session-param', 'edit'),'copy')">
  2028. <out:attribute name="class">toolbarImagePressed</out:attribute>
  2029. </out:when>
  2030. <out:otherwise>
  2031. <xsl:choose>
  2032. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
  2033. <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
  2034. </xsl:choose>
  2035. </out:otherwise>
  2036. </out:choose>
  2037. <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;">
  2038. <out:attribute name="title"><xts:string id="IDS_COPY"/></out:attribute>
  2039. <img height="16" width="16" border="0">
  2040. <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_copy.gif</xsl:attribute>
  2041. <out:attribute name="alt"><xts:string id="IDS_COPY"/></out:attribute>
  2042. <out:attribute name="title"><xts:string id="IDS_COPY"/></out:attribute>
  2043. </img>
  2044. </a>
  2045. <script language="javascript">
  2046. //<!-- apply changes to the classes-->
  2047. function switchCopy(state)
  2048. {
  2049. if ("<out:value-of select="$browser"/>" == "ie")
  2050. {
  2051. if (state == "on")
  2052. document.all["copy"].className="toolbarImagePressed";
  2053. else
  2054. document.all["copy"].className="toolbarImageNormal";
  2055. }
  2056. }
  2057. function doCopy()
  2058. {
  2059. var sContext = '<out:value-of select="$copyContext"/>';
  2060. var s1 = "<xts:string id="IDS_ERR_COPY_NO_SELECTION" encode="javascript"/>";
  2061. if (isEmptySelection(frmEditForm, defaultPrefix))
  2062. {
  2063. alert( s1 );
  2064. return;
  2065. }
  2066. <out:if test="key('system-param', 'maxEditEntries') and key('system-param', 'maxEditEntries') != ''">
  2067. 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>";
  2068. if (isOverItemsLimit("<out:value-of select="key('system-param', 'maxEditEntries')"/>"))
  2069. {
  2070. alert( s2 );
  2071. return;
  2072. }
  2073. </out:if>
  2074. if (document.all &amp;&amp; document.all["cut"] &amp;&amp; document.switchCut)
  2075. switchCut("off");
  2076. <!-- flag a copy operation -->
  2077. setStateValue("edit", "copy_" + sContext);
  2078. switchCopy("on");
  2079. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/<out:value-of select="$mname"/>";
  2080. document.forms[frmEditForm].submit();
  2081. if (document.body)
  2082. document.body.style.cursor = "wait";
  2083. }
  2084. </script>
  2085. </out:otherwise>
  2086. </out:choose>
  2087. </td>
  2088. </out:if>
  2089. </xsl:template>
  2090. <!-- Paste -->
  2091. <xsl:template match=" mt:tool[@name='paste'] ">
  2092. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2093. <out:variable name="pasteContext"><xsl:call-template name="mt:contentcontext"/></out:variable>
  2094. <td id="paste" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2095. <out:choose>
  2096. <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'">
  2097. <xsl:choose>
  2098. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
  2099. <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
  2100. </xsl:choose>
  2101. <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">
  2102. <out:attribute name="title"><xts:string id="IDS_PASTE"/></out:attribute>
  2103. <img height="16" width="16" border="0" name="paste-img" src="{'{$image_root}'}action_paste.gif">
  2104. <out:attribute name="alt"><xts:string id="IDS_PASTE"/></out:attribute>
  2105. <out:attribute name="title"><xts:string id="IDS_PASTE"/></out:attribute>
  2106. </img>
  2107. </a>
  2108. </out:when>
  2109. <out:otherwise>
  2110. <xsl:choose>
  2111. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
  2112. <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
  2113. </xsl:choose>
  2114. <img aria-disabled="true" role="button" height="16" width="16" border="0" name="paste-img" src="{'{$image_root}'}action_paste_dis.gif">
  2115. <out:attribute name="alt"><xts:string id="IDS_PASTE"/></out:attribute>
  2116. <out:attribute name="title"><xts:string id="IDS_PASTE"/></out:attribute>
  2117. </img>
  2118. </out:otherwise>
  2119. </out:choose>
  2120. <script language="javascript">
  2121. //define the two paste images
  2122. var pasteImg = new Image();
  2123. pasteImg.src = "<out:value-of select="xtsext:javascriptencode($image_root)"/>action_paste.gif";
  2124. var pasteDisabledImg = new Image();
  2125. pasteDisabledImg.src = "<out:value-of select="$image_root"/>action_paste_dis.gif";
  2126. //<!-- this will switch the paste icon and class -->
  2127. function switchPaste(state)
  2128. {
  2129. if (state == "on")
  2130. {
  2131. document.images["paste-img"].src = pasteImg.src;
  2132. if ("<out:value-of select="$browser"/>" == "ie")
  2133. {
  2134. document.all["paste-link"].className = "";
  2135. document.all["paste"].className = "toolbarImageNormal";
  2136. }
  2137. }
  2138. else
  2139. {
  2140. document.images["paste-img"].src = pasteDisabledImg.src;
  2141. if ("<out:value-of select="$browser"/>" == "ie")
  2142. {
  2143. document.all["paste-link"].className = "toolbarImageDefaultCursor";
  2144. document.all["paste"].className = "toolbarImageUnavailable";
  2145. }
  2146. }
  2147. }
  2148. function doPaste()
  2149. {
  2150. var sContext = '<out:value-of select="$pasteContext"/>';
  2151. var s1 = "<xts:string id="IDS_ERR_PASTE_NO_SELECTION" encode="javascript"/>";
  2152. var s5 = "<xts:string id="IDS_ERR_PASTE_CONFIG" encode="javascript"/>";
  2153. var sEditCommand = getSessionValue("edit");
  2154. var aEditCommand = sEditCommand.split("_");
  2155. //<!-- If entries have not been "coppied" or "cut" then there is no point of being here -->
  2156. if ( !((aEditCommand[0] == "move" || aEditCommand[0] == "copy") &amp;&amp; (aEditCommand[1] == sContext) ) )
  2157. {
  2158. alert( s1 );
  2159. return;
  2160. }
  2161. <xsl:if test="@type and @type = 'config'">
  2162. if (!confirm ( s5 ))
  2163. return;
  2164. </xsl:if>
  2165. if (aEditCommand[0] == "move")
  2166. resetStateParam('edit'); <!-- Reset any pending edit operation -->
  2167. <!-- Save full page state -->
  2168. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2169. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  2170. document.forms[frmEditForm].ifrmcmd.value = aEditCommand[0];
  2171. document.forms[frmEditForm].submit();
  2172. if (document.body)
  2173. document.body.style.cursor = "wait";
  2174. }
  2175. </script>
  2176. </td>
  2177. </out:if>
  2178. </xsl:template>
  2179. <!-- Delete -->
  2180. <xsl:template match=" mt:tool[@name='delete'] ">
  2181. <!-- Bug 230373 need to search for exact name with space after it so doesn't get confused with CC_TOOLBAR_BUTTONS_delete_page -->
  2182. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name} '))">
  2183. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2184. <xsl:choose>
  2185. <xsl:when test="@disable='true'">
  2186. <out:attribute name="class"></out:attribute>
  2187. <xsl:choose>
  2188. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
  2189. <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
  2190. </xsl:choose>
  2191. <img role="button" aria-disabled="true" height="16" width="16" border="0" src="{'{$image_root}'}action_delete_dis.gif">
  2192. <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
  2193. <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
  2194. </img>
  2195. </xsl:when>
  2196. <xsl:otherwise>
  2197. <xsl:choose>
  2198. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
  2199. <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
  2200. </xsl:choose>
  2201. <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;">
  2202. <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
  2203. <img height="16" width="16" border="0">
  2204. <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_delete.gif</xsl:attribute>
  2205. <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
  2206. <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
  2207. </img>
  2208. </a>
  2209. <script language="javascript">
  2210. <xsl:choose>
  2211. <!-- Config Delete : Delete action in server admin configure tab. User can only delete configuration folder without any contents, and can't delete dispatcher. -->
  2212. <xsl:when test="@type and @type = 'config'">
  2213. function doDelete()
  2214. {
  2215. var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
  2216. var s2 = "<xts:string id="IDS_ERR_DELETE_CONFIG" encode="javascript"/>";
  2217. var s3 = "<xts:string id="IDS_CONF_DELETE_MULTI" encode="javascript"/>";
  2218. var s4 = "<xts:string id="IDS_ERR_DELETE_CONFIG_DISP" encode="javascript"/>";
  2219. var s5 = "<xts:string id="IDS_ERR_DELETE_CONFIG_FOLDER" encode="javascript"/>";
  2220. var isInvalidDisp = false;
  2221. var isInvalidFolder = false;
  2222. var len = 0;
  2223. var items = document.forms[frmEditForm].length;
  2224. for (var i=0; i &lt; items; i++)
  2225. {
  2226. if (document.forms[frmEditForm].elements[i].name.indexOf(defaultPrefix) == 0 &amp;&amp; document.forms[frmEditForm].elements[i].checked)
  2227. {
  2228. if (document.forms[frmEditForm].elements[i].name.indexOf("checkbox_dispatcher_") == 0)
  2229. {
  2230. isInvalidDisp = true;
  2231. }
  2232. else
  2233. {
  2234. if (document.forms[frmEditForm].elements[i].name.indexOf("checkbox_configurationFolder_true_") == 0)
  2235. {
  2236. isInvalidFolder = true;
  2237. }
  2238. else
  2239. {
  2240. len = len +1;
  2241. }
  2242. }
  2243. }
  2244. }
  2245. <!-- check for no selection -->
  2246. if (len == 0 &amp;&amp; !isInvalidDisp &amp;&amp; !isInvalidFolder)
  2247. {
  2248. alert( s1 );
  2249. return;
  2250. }
  2251. <!-- check if user try to delete the dispatchers and configuration folders with contents. -->
  2252. if ( isInvalidDisp &amp;&amp; isInvalidFolder)
  2253. {
  2254. alert( s2 );
  2255. }
  2256. else
  2257. {
  2258. <!-- check if user try to delete a configuration folders with contents. -->
  2259. if (isInvalidFolder)
  2260. alert( s5 );
  2261. <!-- check if user try to delete a dispatchers with contents. -->
  2262. if (isInvalidDisp)
  2263. alert( s4 );
  2264. }
  2265. if ( len &gt; 0 )
  2266. {
  2267. <!--Perform the delete after confirmation -->
  2268. if ( confirm( s3 ) )
  2269. {
  2270. if( window.preDelete )
  2271. preDelete(frmEditForm, defaultPrefix);
  2272. document.forms[frmEditForm].ifrmcmd.value = "delete"; <!--set the operation, and submit it. -->
  2273. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2274. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  2275. resetStateParam("edit"); <!-- Reset any pending edit operation -->
  2276. document.forms[frmEditForm].submit();
  2277. }
  2278. }
  2279. }
  2280. </xsl:when>
  2281. <xsl:otherwise>
  2282. function doDelete()
  2283. {
  2284. var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
  2285. var s2 = "<xts:string id="IDS_CONF_DELETE_BROKEN_LINKS" encode="javascript"/>";
  2286. if ( isEmptySelection(frmEditForm, defaultPrefix))
  2287. {
  2288. alert( s1 );
  2289. return;
  2290. }
  2291. <!-- Perform the delete after confirmation -->
  2292. if ( confirm( s2 ) )
  2293. {
  2294. if( window.preDelete )
  2295. preDelete(frmEditForm, defaultPrefix);
  2296. document.forms[frmEditForm].ifrmcmd.value = "delete"; <!--set the operation, and submit it. -->
  2297. <!-- Add full page state -->
  2298. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2299. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  2300. document.forms[frmEditForm].errURL.value = document.forms[frmEditForm].backURL.value;
  2301. resetStateParam("edit"); <!-- Reset any pending edit operation -->
  2302. document.forms[frmEditForm].submit();
  2303. }
  2304. }
  2305. </xsl:otherwise>
  2306. </xsl:choose>
  2307. </script>
  2308. </xsl:otherwise>
  2309. </xsl:choose>
  2310. </td>
  2311. </out:if>
  2312. </xsl:template>
  2313. <!-- Delete Dataset-->
  2314. <xsl:template match=" mt:tool[@name='deleteDataset'] ">
  2315. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name} '))">
  2316. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2317. <xsl:choose>
  2318. <xsl:when test="@disable='true'">
  2319. <out:attribute name="class"></out:attribute>
  2320. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  2321. <img role="button" aria-disabled="true" height="16" width="16" border="0" src="{'{$image_root}'}action_delete_dis.gif">
  2322. <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
  2323. <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
  2324. </img>
  2325. </xsl:when>
  2326. <xsl:otherwise>
  2327. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2328. <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;">
  2329. <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
  2330. <img height="16" width="16" border="0">
  2331. <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_delete.gif</xsl:attribute>
  2332. <out:attribute name="alt"><xts:string id="IDS_DELETE"/></out:attribute>
  2333. <out:attribute name="title"><xts:string id="IDS_DELETE"/></out:attribute>
  2334. </img>
  2335. </a>
  2336. <out:variable name="chkSpaceEnterKeyEvent">if (event.keyCode==13 || event.keyCode==32 || event.charCode==32)</out:variable>
  2337. <cp:genericDialog id="confirmDeleteDialog" interactive="true" align="left" width="300" positionVertical="true" positionHorizontal="true" helpid="12345" focusidOnShiftTab="IDS_OK">
  2338. <cp:param name="title"><xts:string id="IDS_MYDS_CONFIRM_DELETE_TITLE"/></cp:param>
  2339. <cp:param name="body">
  2340. <div class="dialogHeaderText">
  2341. <table role="presentation">
  2342. <tr><td>
  2343. <dp:list>
  2344. <dp:section><xts:string id="IDS_MYDS_DELETE_WARNING"/></dp:section>
  2345. <dp:section><img src="{'{$webcontent}/images/space.gif'}" alt="" height="10"/></dp:section>
  2346. <dp:section><xts:string id="IDS_MYDS_DELETE_QUESTION"/></dp:section>
  2347. </dp:list>
  2348. </td></tr>
  2349. <tr><td>
  2350. <dp:choice>
  2351. <dp:section1>
  2352. <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;"/>
  2353. </dp:section1>
  2354. <dp:section2>
  2355. <label for="ctrl_deletePackage"><xts:string id="IDS_MYDS_DELETE_PACKAGES"/></label>
  2356. </dp:section2>
  2357. </dp:choice>
  2358. </td></tr>
  2359. </table>
  2360. </div>
  2361. </cp:param>
  2362. <cp:param name="footer">
  2363. <dp:simpleFooter>
  2364. <td>
  2365. <table cellpadding="0" cellspacing="0" role="presentation">
  2366. <tr>
  2367. <td>
  2368. <cp:cmdButton defaultState="active" id="contactOK">
  2369. <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
  2370. <cp:cmdButtonEvents>
  2371. <cp:cmdButtonEvent name="onclick">javascript:confirmDeleteDialog.hide(); performDelete();</cp:cmdButtonEvent>
  2372. <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>
  2373. </cp:cmdButtonEvents>
  2374. </cp:cmdButton>
  2375. </td>
  2376. <td>
  2377. <cp:cmdButton defaultState="active" id="contactCancel">
  2378. <cp:cmdButtonText><xts:string id="IDS_CANCEL"/></cp:cmdButtonText>
  2379. <cp:cmdButtonEvents>
  2380. <cp:cmdButtonEvent name="onclick">javascript:confirmDeleteDialog.hide();</cp:cmdButtonEvent>
  2381. <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>
  2382. <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>
  2383. </cp:cmdButtonEvents>
  2384. </cp:cmdButton>
  2385. </td>
  2386. </tr>
  2387. </table>
  2388. </td>
  2389. </dp:simpleFooter>
  2390. </cp:param>
  2391. </cp:genericDialog>
  2392. <script language="javascript">
  2393. function doDeleteDataset()
  2394. {
  2395. var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
  2396. if ( isEmptySelection(frmEditForm, defaultPrefix))
  2397. {
  2398. alert( s1 );
  2399. return;
  2400. }
  2401. confirmDeleteDialog.show();
  2402. setTimeout('setConfirmDialogFocus()', 11);
  2403. }
  2404. function setConfirmDialogFocus()
  2405. {
  2406. <!-- if (confirmDeleteDialog.className = "visible") -->
  2407. <!-- document.pform.emailAddress.focus(); -->
  2408. }
  2409. function performDelete()
  2410. {
  2411. if( window.preDelete )
  2412. preDelete(frmEditForm, defaultPrefix);
  2413. document.forms[frmEditForm].ifrmcmd.value = "deleteDataset"; <!--set the operation, and submit it. -->
  2414. <!-- Add full page state -->
  2415. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2416. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  2417. document.forms[frmEditForm].errURL.value = document.forms[frmEditForm].backURL.value;
  2418. var includePackages = document.getElementById('ctrl_deletePackage').checked;
  2419. document.forms[frmEditForm].includePackages.value = includePackages;
  2420. resetStateParam("edit"); <!-- Reset any pending edit operation -->
  2421. document.forms[frmEditForm].submit();
  2422. }
  2423. </script>
  2424. </xsl:otherwise>
  2425. </xsl:choose>
  2426. </td>
  2427. </out:if>
  2428. </xsl:template>
  2429. <!-- Refresh -->
  2430. <xsl:template match=" mt:tool[@name='refresh'] ">
  2431. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2432. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2433. <xsl:choose>
  2434. <xsl:when test="not(string(@disable) = 'true')">
  2435. <xsl:choose>
  2436. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageNormal2</out:attribute></xsl:when>
  2437. <xsl:otherwise><out:attribute name="class">toolbarImageNormal</out:attribute></xsl:otherwise>
  2438. </xsl:choose>
  2439. <a role="button" tabindex="0" href="javascript:window.location.reload(true)">
  2440. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  2441. <img height="16" width="16" border="0" src="{'{$image_root}'}action_refresh.gif">
  2442. <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
  2443. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  2444. </img>
  2445. </a>
  2446. </xsl:when>
  2447. <xsl:otherwise>
  2448. <xsl:choose>
  2449. <xsl:when test="@cogadmin='true'"><out:attribute name="class">toolbarImageUnavailable2</out:attribute></xsl:when>
  2450. <xsl:otherwise><out:attribute name="class">toolbarImageUnavailable</out:attribute></xsl:otherwise>
  2451. </xsl:choose>
  2452. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_refresh_dis.gif">
  2453. <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
  2454. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  2455. </img>
  2456. </xsl:otherwise>
  2457. </xsl:choose>
  2458. </td>
  2459. </out:if>
  2460. </xsl:template>
  2461. <!-- Refresh using GET -->
  2462. <xsl:template match=" mt:tool[@name='refreshUsingGet'] ">
  2463. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2464. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  2465. <xsl:choose>
  2466. <xsl:when test="not(string(@disable) = 'true')">
  2467. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2468. <a tabindex="0" role="button">
  2469. <xsl:attribute name="href"><xsl:value-of select="'{$back-url}'"/>&amp;refresh=</xsl:attribute>
  2470. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  2471. <img height="16" width="16" border="0" src="{'{$image_root}'}action_refresh.gif">
  2472. <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
  2473. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  2474. </img>
  2475. </a>
  2476. </xsl:when>
  2477. <xsl:otherwise>
  2478. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  2479. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_refresh_dis.gif">
  2480. <out:attribute name="alt"><xts:string id="IDS_REFRESH"/></out:attribute>
  2481. <out:attribute name="title"><xts:string id="IDS_REFRESH"/></out:attribute>
  2482. </img>
  2483. </xsl:otherwise>
  2484. </xsl:choose>
  2485. </td>
  2486. </out:if>
  2487. </xsl:template>
  2488. <!-- Select all -->
  2489. <xsl:template match=" mt:tool[@name='selectall'] ">
  2490. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2491. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  2492. <xsl:choose>
  2493. <xsl:when test="string(@disable)='true'">
  2494. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  2495. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_selectall_dis.gif">
  2496. <out:attribute name="alt"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
  2497. <out:attribute name="title"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
  2498. </img>
  2499. </xsl:when>
  2500. <xsl:otherwise>
  2501. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2502. <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;">
  2503. <out:attribute name="title"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
  2504. <img height="16" width="16" border="0" src="{'{$image_root}'}action_selectall.gif">
  2505. <out:attribute name="alt"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
  2506. <out:attribute name="title"><xts:string id="IDS_SELECT_PAGE_TIP"/></out:attribute>
  2507. </img>
  2508. </a>
  2509. </xsl:otherwise>
  2510. </xsl:choose>
  2511. </td>
  2512. </out:if>
  2513. </xsl:template>
  2514. <!-- Deselect all -->
  2515. <xsl:template match=" mt:tool[@name='deselectall'] ">
  2516. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2517. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  2518. <xsl:choose>
  2519. <xsl:when test="string(@disable)='true'">
  2520. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  2521. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_deselectall_dis.gif">
  2522. <out:attribute name="alt"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
  2523. <out:attribute name="title"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
  2524. </img>
  2525. </xsl:when>
  2526. <xsl:otherwise>
  2527. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2528. <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;">
  2529. <out:attribute name="title"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
  2530. <img height="16" width="16" border="0" src="{'{$image_root}'}action_deselectall.gif">
  2531. <out:attribute name="alt"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
  2532. <out:attribute name="title"><xts:string id="IDS_DESELECT_PAGE_TIP"/></out:attribute>
  2533. </img>
  2534. </a>
  2535. </xsl:otherwise>
  2536. </xsl:choose>
  2537. </td>
  2538. </out:if>
  2539. </xsl:template>
  2540. <!-- Detail view -->
  2541. <xsl:template match=" mt:tool[@name='detail'] ">
  2542. <out:if test="key('session-param', 'write') = 'true' or $is-named = '0'">
  2543. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2544. <td role="presentation">
  2545. <out:choose>
  2546. <out:when test="key('session-param', 'displayMode') = 'detail'">
  2547. <out:attribute name="class">toolbarImagePressed</out:attribute>
  2548. <out:attribute name="onmouseover">this.className = 'toolbarImageOverPressed'</out:attribute>
  2549. <out:attribute name="onmouseout">this.className = 'toolbarImagePressed'</out:attribute>
  2550. </out:when>
  2551. <out:otherwise>
  2552. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2553. <out:attribute name="onmouseover">this.className = 'toolbarImageOver'</out:attribute>
  2554. <out:attribute name="onmouseout">this.className = 'toolbarImageNormal'</out:attribute>
  2555. </out:otherwise>
  2556. </out:choose>
  2557. <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;">
  2558. <out:attribute name="title"><xts:string id="IDS_DETAILS_VIEW"/></out:attribute>
  2559. <img height="16" width="16" border="0">
  2560. <out:attribute name="src">
  2561. <out:choose>
  2562. <out:when test="$portal.navigationView!='newspaper'"><out:value-of select="$image_root"/>action_detailedlistview.gif</out:when>
  2563. <out:otherwise><out:value-of select="$image_root"/>action_detailview.gif</out:otherwise>
  2564. </out:choose>
  2565. </out:attribute>
  2566. <out:attribute name="alt"><xts:string id="IDS_DETAILS_VIEW"/></out:attribute>
  2567. <out:attribute name="title"><xts:string id="IDS_DETAILS_VIEW"/></out:attribute>
  2568. </img>
  2569. </a>
  2570. <script language="javascript">
  2571. function doDetailView()
  2572. {
  2573. var cmdForm = document.<out:value-of select="$cmd-form"/>;
  2574. cmdForm.m.value = "<out:value-of select="$app"/>/submit.xts";
  2575. cmdForm.ifrmcmd.value = "save";
  2576. cmdForm.m_obj.value = "~";
  2577. cmdForm.m_class.value = "account";
  2578. cmdForm.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2579. var homePageElement = document.createElement("input");
  2580. homePageElement.setAttribute("type","hidden");
  2581. homePageElement.setAttribute("name","m_po_displayMode");
  2582. homePageElement.setAttribute("value","detail");
  2583. cmdForm.appendChild(homePageElement);
  2584. cmdForm.submit();
  2585. }
  2586. </script>
  2587. </td>
  2588. </out:if>
  2589. </out:if>
  2590. </xsl:template>
  2591. <!-- List view -->
  2592. <xsl:template match=" mt:tool[@name='list'] ">
  2593. <out:if test="key('session-param', 'write') = 'true' or $is-named = '0'">
  2594. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2595. <td role="presentation">
  2596. <out:choose>
  2597. <out:when test="key('session-param', 'displayMode') = 'list'">
  2598. <out:attribute name="class">toolbarImagePressed</out:attribute>
  2599. <out:attribute name="onmouseover">this.className = 'toolbarImageOverPressed'</out:attribute>
  2600. <out:attribute name="onmouseout">this.className = 'toolbarImagePressed'</out:attribute>
  2601. </out:when>
  2602. <out:otherwise>
  2603. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2604. <out:attribute name="onmouseover">this.className = 'toolbarImageOver'</out:attribute>
  2605. <out:attribute name="onmouseout">this.className = 'toolbarImageNormal'</out:attribute>
  2606. </out:otherwise>
  2607. </out:choose>
  2608. <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;">
  2609. <out:attribute name="title"><xts:string id="IDS_LIST_VIEW"/></out:attribute>
  2610. <img height="16" width="16" border="0" src="{'{$image_root}'}action_listview.gif">
  2611. <out:attribute name="alt"><xts:string id="IDS_LIST_VIEW"/></out:attribute>
  2612. <out:attribute name="title"><xts:string id="IDS_LIST_VIEW"/></out:attribute>
  2613. </img>
  2614. </a>
  2615. <script language="javascript">
  2616. function doListView()
  2617. {
  2618. var cmdForm = document.<out:value-of select="$cmd-form"/>;
  2619. cmdForm.m.value = "<out:value-of select="$app"/>/submit.xts";
  2620. cmdForm.ifrmcmd.value = "save";
  2621. cmdForm.m_obj.value = "~";
  2622. cmdForm.m_class.value = "account";
  2623. cmdForm.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2624. var homePageElement = document.createElement("input");
  2625. homePageElement.setAttribute("type","hidden");
  2626. homePageElement.setAttribute("name","m_po_displayMode");
  2627. homePageElement.setAttribute("value","list");
  2628. cmdForm.appendChild(homePageElement);
  2629. cmdForm.submit();
  2630. }
  2631. </script>
  2632. </td>
  2633. </out:if>
  2634. </out:if>
  2635. </xsl:template>
  2636. <!-- Order -->
  2637. <xsl:template match=" mt:tool[@name='order'] ">
  2638. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2639. <out:variable name="mp-permissions" select="count($childReply/*[cm:usage != 'subObject' and not(contains(cm:permissions, 'read') and contains(cm:permissions, 'write'))])"/>
  2640. <out:choose>
  2641. <out:when test="$childReply/*[cm:usage != 'subObject'] and $mp-permissions = 0">
  2642. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2643. <xsl:choose>
  2644. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2645. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2646. </xsl:choose>
  2647. <a role="button" tabindex="0">
  2648. <out:attribute name="href">
  2649. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/sort.xts&amp;m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
  2650. </out:attribute>
  2651. <out:attribute name="onkeypress">
  2652. 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&amp;m=<out:value-of select="$app"/>/sort.xts&amp;m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>'
  2653. </out:attribute>
  2654. <out:attribute name="title"><xts:string id="IDS_ORDER"/></out:attribute>
  2655. <img height="16" width="16" border="0" src="{'{$image_root}'}action_order.gif">
  2656. <out:attribute name="alt"><xts:string id="IDS_ORDER"/></out:attribute>
  2657. <out:attribute name="title"><xts:string id="IDS_ORDER"/></out:attribute>
  2658. </img>
  2659. </a>
  2660. </td>
  2661. </out:when>
  2662. <out:otherwise>
  2663. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2664. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_order_dis.gif">
  2665. <out:attribute name="alt"><xts:string id="IDS_ORDER"/></out:attribute>
  2666. <out:attribute name="title"><xts:string id="IDS_ORDER"/></out:attribute>
  2667. </img>
  2668. </td>
  2669. </out:otherwise>
  2670. </out:choose>
  2671. </out:if>
  2672. </xsl:template>
  2673. <!-- Edit Pagelet -->
  2674. <xsl:template match=" mt:tool[@name='edit_pagelet'] ">
  2675. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2676. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2677. <xsl:choose>
  2678. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2679. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2680. </xsl:choose>
  2681. <a role="button" tabindex="0" href="#" onclick="editPage('{'{$javascriptescapedPageID}'}')">
  2682. <out:attribute name="title"><xts:string id="IDS_EDIT"/></out:attribute>
  2683. <img height="16" width="16" border="0" src="{'{$image_root}'}action_edit_page.gif">
  2684. <out:attribute name="alt"><xts:string id="IDS_EDIT"/></out:attribute>
  2685. <out:attribute name="title"><xts:string id="IDS_EDIT"/></out:attribute>
  2686. </img>
  2687. </a>
  2688. </td>
  2689. </out:if>
  2690. </xsl:template>
  2691. <!-- Search -->
  2692. <xsl:template match=" mt:tool[@name='search']">
  2693. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2694. <out:choose>
  2695. <!-- Disable the search feature for schedule tool, and directory tool when current path is root /directory-->
  2696. <out:when test="'{string(@disable)}' = 'true' or $mname = 'tools_activity.xts' or /root/env/param[@name='m_path'] = '/directory' ">
  2697. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2698. <xsl:choose>
  2699. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageUnavailable2</xsl:attribute></xsl:when>
  2700. <xsl:otherwise><xsl:attribute name="class">toolbarImageUnavailable</xsl:attribute></xsl:otherwise>
  2701. </xsl:choose>
  2702. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_search_basic_dis.gif">
  2703. <out:attribute name="alt"><xts:string id="IDS_SEARCH"/></out:attribute>
  2704. <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
  2705. </img>
  2706. </td>
  2707. </out:when>
  2708. <out:otherwise>
  2709. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2710. <xsl:choose>
  2711. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2712. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2713. </xsl:choose>
  2714. <a role="button" tabindex="0" href="{'{$back-url}'}&amp;search=">
  2715. <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
  2716. <img height="16" width="16" border="0" src="{'{$image_root}'}action_search_basic.gif">
  2717. <out:attribute name="alt"><xts:string id="IDS_SEARCH"/></out:attribute>
  2718. <out:attribute name="title"><xts:string id="IDS_SEARCH"/></out:attribute>
  2719. </img>
  2720. </a>
  2721. </td>
  2722. </out:otherwise>
  2723. </out:choose>
  2724. </out:if>
  2725. </xsl:template>
  2726. <!-- Root properties -->
  2727. <xsl:template match=" mt:tool[@name='properties'] ">
  2728. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2729. <!-- need to disable the properties button if there was no root response -->
  2730. <!-- this can occurr if viewing a pf or mf page but the container being view is not accessible -->
  2731. <!-- because of security or it does not exist -->
  2732. <out:variable name="objName">
  2733. <out:value-of select="$rootReply/*/cm:defaultName"/>
  2734. </out:variable>
  2735. <out:variable name="objNameDisplay">
  2736. <out:value-of select="xtsext:enforceBTD($objName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  2737. </out:variable>
  2738. <out:choose>
  2739. <out:when test="$rootReply and ($rootReply != '')">
  2740. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2741. <xsl:choose>
  2742. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2743. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2744. </xsl:choose>
  2745. <a role="button" href="#" tabindex="0">
  2746. <out:attribute name="onclick">
  2747. <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/>
  2748. </out:attribute>
  2749. <out:attribute name="onkeypress">
  2750. <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/>
  2751. </out:attribute>
  2752. <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$rootReply/*/cm:defaultName"/></out:attribute>
  2753. <img height="16" width="16" border="0" src="{'{$image_root}'}action_properties_path.gif">
  2754. <out:attribute name="alt"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
  2755. <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
  2756. </img>
  2757. </a>
  2758. </td>
  2759. </out:when>
  2760. <out:otherwise>
  2761. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="button">
  2762. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_properties_path_dis.gif">
  2763. <out:attribute name="alt"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
  2764. <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="$objNameDisplay"/></out:attribute>
  2765. </img>
  2766. </td>
  2767. </out:otherwise>
  2768. </out:choose>
  2769. </out:if>
  2770. </xsl:template>
  2771. <xsl:template match=" mt:tool[@name='routingRules'] ">
  2772. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2773. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2774. <xsl:choose>
  2775. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2776. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2777. </xsl:choose>
  2778. <a role="button" tabindex="0">
  2779. <out:attribute name="href">
  2780. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/><out:value-of select="'/specify_routing_rules.xts'"/>
  2781. <out:text/>&amp;m_class=configuration&amp;m_obj=/configuration&amp;backURL=<out:value-of select="$encoded-back-url"/>
  2782. </out:attribute>
  2783. <out:attribute name="title"><xts:string id="IDS_EDIT_ROUTING_RULE"/></out:attribute>
  2784. <img height="16" width="16" border="0" src="{'{$image_root}'}action_define_routing_rules.gif">
  2785. <out:attribute name="alt"><xts:string id="IDS_EDIT_ROUTING_RULE"/></out:attribute>
  2786. <out:attribute name="title"><xts:string id="IDS_EDIT_ROUTING_RULE"/></out:attribute>
  2787. </img>
  2788. </a>
  2789. </td>
  2790. </out:if>
  2791. </xsl:template>
  2792. <xsl:template match=" mt:tool[@name='defaultUserProfile'] ">
  2793. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2794. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2795. <xsl:choose>
  2796. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2797. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2798. </xsl:choose>
  2799. <a role="button" tabindex="0">
  2800. <out:attribute name="href">
  2801. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/><out:value-of select="'/properties_general.xts'"/>
  2802. <out:text/>&amp;m_class=account&amp;m_obj=/configuration/account[@tenantID=<out:value-of select="xtsext:protect('&quot;&quot;','url','searchPath','getdata')"/>]&amp;backURL=<out:value-of select="$encoded-back-url"/>
  2803. </out:attribute>
  2804. <out:attribute name="title"><xts:string id="IDS_EDIT_DEFAULT_USER_PROFILE"/></out:attribute>
  2805. <img height="16" width="16" border="0" src="{'{$image_root}'}action_edit_user_profile.gif">
  2806. <out:attribute name="alt"><xts:string id="IDS_EDIT_DEFAULT_USER_PROFILE"/></out:attribute>
  2807. <out:attribute name="title"><xts:string id="IDS_EDIT_DEFAULT_USER_PROFILE"/></out:attribute>
  2808. </img>
  2809. </a>
  2810. </td>
  2811. </out:if>
  2812. </xsl:template>
  2813. <xsl:template match=" mt:tool[@name='importPersonalData']">
  2814. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2815. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2816. <xsl:choose>
  2817. <xsl:when test="@disable='true'">
  2818. <out:attribute name="class"></out:attribute>
  2819. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  2820. <a role="button" tabindex="0">
  2821. <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
  2822. <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_dataset_dis.gif">
  2823. <out:attribute name="alt"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
  2824. <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
  2825. </img>
  2826. </a>
  2827. </xsl:when>
  2828. <xsl:otherwise>
  2829. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2830. <a role="button" tabindex="0">
  2831. <out:attribute name="href">
  2832. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/personal_data.xts&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
  2833. </out:attribute>
  2834. <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
  2835. <img height="16" width="16" border="0">
  2836. <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_new_dataset.gif</xsl:attribute>
  2837. <out:attribute name="alt"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
  2838. <out:attribute name="title"><xts:string id="IDS_LOB_DATA_IMPORT" encoding="html"/></out:attribute>
  2839. </img>
  2840. </a>
  2841. </xsl:otherwise>
  2842. </xsl:choose>
  2843. </td>
  2844. </out:if>
  2845. </xsl:template>
  2846. <xsl:template match=" mt:tool[@name='removeMeAlert']">
  2847. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2848. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2849. <xsl:choose>
  2850. <xsl:when test="@disable='true'">
  2851. <out:attribute name="class"></out:attribute>
  2852. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  2853. <a role="button" tabindex="0">
  2854. <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
  2855. <img height="16" width="16" border="0" src="{'{$image_root}'}action_remove_from_list.gif">
  2856. <out:attribute name="alt"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
  2857. <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
  2858. </img>
  2859. </a>
  2860. </xsl:when>
  2861. <xsl:otherwise>
  2862. <out:attribute name="class">toolbarImageNormal</out:attribute>
  2863. <a role="button" tabindex="0" href="javascript:doRemoveMe()">
  2864. <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
  2865. <img height="16" width="16" border="0">
  2866. <xsl:attribute name="src"><xsl:value-of select="'{$image_root}'"/>action_remove_from_list.gif</xsl:attribute>
  2867. <out:attribute name="alt"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
  2868. <out:attribute name="title"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></out:attribute>
  2869. </img>
  2870. </a>
  2871. <script language="javascript">
  2872. function doRemoveMe()
  2873. {
  2874. var s1 = "<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>";
  2875. if ( isEmptySelection(frmEditForm, defaultPrefix))
  2876. {
  2877. alert( s1 );
  2878. return;
  2879. }
  2880. if ( confirm("<xts:string id="IDS_MYSUB_TOOL_CONFIRM" encode="javascript"/>") )
  2881. {
  2882. action("submit.xts", "removeMultiObjNotification");
  2883. }
  2884. }
  2885. function action(sTarget, sAction)
  2886. {
  2887. if (sAction != null &amp;&amp; sAction != "" )
  2888. document.pform.ifrmcmd.value = sAction;
  2889. document.pform.m.value = "<out:value-of select="$app"/>/" + sTarget;
  2890. document.pform.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  2891. document.pform.submit();
  2892. }
  2893. </script>
  2894. </xsl:otherwise>
  2895. </xsl:choose>
  2896. </td>
  2897. </out:if>
  2898. </xsl:template>
  2899. <!-- Can be used by any UI that requries an action to edit the parent object's properties
  2900. Supported Sub-elements include
  2901. - tool-name: Used to generate UI black list entry name. This allows each tool to be configured uniquely
  2902. - default-name: Used as part of the the tooltip text
  2903. - object-class: Class of the parent object
  2904. - search-path: SearchPath of the parent object
  2905. -->
  2906. <xsl:template match="mt:tool[@name='parent_properties']">
  2907. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{tool-name}'))">
  2908. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2909. <xsl:choose>
  2910. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2911. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2912. </xsl:choose>
  2913. <a role="button" tabindex="0" href="#">
  2914. <out:attribute name="onclick">
  2915. <out:choose>
  2916. <out:when test="string({request-path}/cm:storeID) != ''">
  2917. <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/>
  2918. </out:when>
  2919. <out:otherwise>
  2920. <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/>
  2921. </out:otherwise>
  2922. </out:choose>
  2923. </out:attribute>
  2924. <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="{request-path}/cm:defaultName"/></out:attribute>
  2925. <img height="16" width="16" border="0" src="{'{$image_root}'}action_properties_path.gif">
  2926. <out:attribute name="alt"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="{request-path}/cm:defaultName"/></out:attribute>
  2927. <out:attribute name="title"><xts:string id="IDS_PROPERTIES"/><out:value-of select="' - '"/><out:value-of select="{request-path}/cm:defaultName"/></out:attribute>
  2928. </img>
  2929. </a>
  2930. </td>
  2931. </out:if>
  2932. </xsl:template>
  2933. <!-- Page sizes -->
  2934. <xsl:template match=" mt:tool[@name='page_sizes'] ">
  2935. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2936. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2937. <xsl:choose>
  2938. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2939. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2940. </xsl:choose>
  2941. <a role="button" tabindex="0">
  2942. <out:attribute name="href">
  2943. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/edit_page_sizes.xts&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
  2944. </out:attribute>
  2945. <out:attribute name="title"><xts:string id="IDS_PAGE_SIZES"/></out:attribute>
  2946. <img height="16" width="16" border="0" src="{'{$image_root}'}action_define_paper_sizes.gif">
  2947. <out:attribute name="alt"><xts:string id="IDS_PAGE_SIZES"/></out:attribute>
  2948. <out:attribute name="title"><xts:string id="IDS_PAGE_SIZES"/></out:attribute>
  2949. </img>
  2950. </a>
  2951. </td>
  2952. </out:if>
  2953. </xsl:template>
  2954. <!-- File system locations -->
  2955. <xsl:template match=" mt:tool[@name='file_system_locations'] ">
  2956. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2957. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2958. <xsl:choose>
  2959. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2960. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2961. </xsl:choose>
  2962. <a role="button" tabindex="0">
  2963. <out:attribute name="href">
  2964. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/edit_file_system_locations.xts&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
  2965. </out:attribute>
  2966. <out:attribute name="title"><xts:string id="IDS_FILE_SYSTEM_LOCATIONS"/></out:attribute>
  2967. <img height="16" width="16" border="0" src="{'{$image_root}'}action_define_file_system_locations.gif">
  2968. <out:attribute name="alt"><xts:string id="IDS_FILE_SYSTEM_LOCATIONS"/></out:attribute>
  2969. <out:attribute name="title"><xts:string id="IDS_FILE_SYSTEM_LOCATIONS"/></out:attribute>
  2970. </img>
  2971. </a>
  2972. </td>
  2973. </out:if>
  2974. </xsl:template>
  2975. <!-- Enable sched -->
  2976. <xsl:template match=" mt:tool[@name='enable_sched'] ">
  2977. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  2978. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  2979. <xsl:choose>
  2980. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  2981. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  2982. </xsl:choose>
  2983. <a role="button" tabindex="0" href="javascript:doEnableSched()">
  2984. <out:attribute name="title"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></out:attribute>
  2985. <img height="16" width="16" border="0" src="{'{$image_root}'}action_enable_schedule.gif">
  2986. <out:attribute name="alt"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></out:attribute>
  2987. <out:attribute name="title"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></out:attribute>
  2988. </img>
  2989. </a>
  2990. <script language="javascript">
  2991. function doEnableSched()
  2992. {
  2993. var s1 = "<xts:string id="IDS_ERR_ENABLE_SCHED_NO_SELECTION" encode="javascript"/>";
  2994. var s2 = "<xts:string id="IDS_CONF_ENABLE_SCHED_MULTI" encode="javascript"/>";
  2995. <!-- check for no selection -->
  2996. if (isEmptySelection(frmEditForm, defaultPrefix))
  2997. {
  2998. alert( s1 );
  2999. return;
  3000. }
  3001. <!-- if enabling/disabling a reportDataServiceAgentDefinition we need to make sure a subscriptionFolder isn't checked by mistake -->
  3002. var items = document.forms[frmEditForm].length;
  3003. for (var i=0; i &lt; items; i++)
  3004. {
  3005. if (document.forms[frmEditForm].elements[i].name.indexOf(defaultPrefix) == 0 &amp;&amp; document.forms[frmEditForm].elements[i].checked)
  3006. {
  3007. if (document.forms[frmEditForm].elements[i].name.indexOf('subscriptionFolder') &gt;= 0)
  3008. {
  3009. alert("<xts:string id="IDS_ERR_NO_SCHED" encode="javascript"/>") ;
  3010. return;
  3011. }
  3012. }
  3013. }
  3014. <!--Perform the delete after confirmation -->
  3015. if ( confirm( s2 ) )
  3016. {
  3017. document.forms[frmEditForm].ifrmcmd.value = 'enable'; <!--set the operation, and submit it. -->
  3018. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  3019. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  3020. document.forms[frmEditForm].submit();
  3021. }
  3022. }
  3023. </script>
  3024. </td>
  3025. </out:if>
  3026. </xsl:template>
  3027. <!-- Disable sched -->
  3028. <xsl:template match=" mt:tool[@name='disable_sched'] ">
  3029. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3030. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3031. <xsl:choose>
  3032. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3033. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3034. </xsl:choose>
  3035. <a role="button" tabindex="0" href="javascript:doDisableSched()">
  3036. <out:attribute name="title"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></out:attribute>
  3037. <img height="16" width="16" border="0" src="{'{$image_root}'}action_disable_schedule.gif">
  3038. <out:attribute name="alt"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></out:attribute>
  3039. <out:attribute name="title"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></out:attribute>
  3040. </img>
  3041. </a>
  3042. <script language="javascript">
  3043. function doDisableSched()
  3044. {
  3045. var s1 = "<xts:string id="IDS_ERR_DISABLE_SCHED_NO_SELECTION" encode="javascript"/>";
  3046. var s2 = "<xts:string id="IDS_CONF_DISABLE_SCHED_MULTI" encode="javascript"/>";
  3047. <!-- check for no selection -->
  3048. if (isEmptySelection(frmEditForm, defaultPrefix))
  3049. {
  3050. alert( s1 );
  3051. return;
  3052. }
  3053. <!-- if enabling/disabling a reportDataServiceAgentDefinition we need to make sure a subscriptionFolder isn't checked by mistake -->
  3054. var items = document.forms[frmEditForm].length;
  3055. for (var i=0; i &lt; items; i++)
  3056. {
  3057. if (document.forms[frmEditForm].elements[i].name.indexOf(defaultPrefix) == 0 &amp;&amp; document.forms[frmEditForm].elements[i].checked)
  3058. {
  3059. if (document.forms[frmEditForm].elements[i].name.indexOf('subscriptionFolder') &gt;= 0)
  3060. {
  3061. alert("<xts:string id="IDS_ERR_NO_SCHED" encode="javascript"/>") ;
  3062. return;
  3063. }
  3064. }
  3065. }
  3066. <!--Perform the delete after confirmation -->
  3067. if ( confirm( s2 ) )
  3068. {
  3069. document.forms[frmEditForm].ifrmcmd.value = 'disable'; <!--set the operation, and submit it. -->
  3070. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  3071. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  3072. document.forms[frmEditForm].submit();
  3073. }
  3074. }
  3075. </script>
  3076. </td>
  3077. </out:if>
  3078. </xsl:template>
  3079. <xsl:template match=" mt:doScheduleActionScripts">
  3080. <script language="javascript">
  3081. function doScheduleAction( action )
  3082. {
  3083. <!-- check for no selection -->
  3084. if (isEmptySelection(frmEditForm, defaultPrefix))
  3085. {
  3086. alert("<xts:string id="IDS_ERR_DISABLE_SCHED_NO_SELECTION" encode="javascript"/>");
  3087. return;
  3088. }
  3089. <!-- Perform the action -->
  3090. document.forms[frmEditForm].action.value = action;
  3091. document.forms[frmEditForm].ifrmcmd.value = "doScheduleAction";
  3092. document.forms[frmEditForm].m.value = "<out:value-of select="$app"/>/submit.xts";
  3093. document.forms[frmEditForm].backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  3094. document.forms[frmEditForm].submit();
  3095. }
  3096. </script>
  3097. </xsl:template>
  3098. <!-- Cancel sched -->
  3099. <xsl:template match=" mt:tool[@name='cancel'] ">
  3100. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3101. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3102. <xsl:choose>
  3103. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3104. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3105. </xsl:choose>
  3106. <a role="button" tabindex="0" href="javascript:doScheduleAction('cancel')">
  3107. <out:attribute name="title"><xts:string id="IDS_CANCEL"/></out:attribute>
  3108. <img height="16" width="16" border="0" src="{'{$image_root}'}action_cancel_execution.gif">
  3109. <out:attribute name="alt"><xts:string id="IDS_CANCEL"/></out:attribute>
  3110. <out:attribute name="title"><xts:string id="IDS_CANCEL"/></out:attribute>
  3111. </img>
  3112. </a>
  3113. </td>
  3114. </out:if>
  3115. </xsl:template>
  3116. <xsl:template match=" mt:tool[@name='suspend'] ">
  3117. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3118. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3119. <xsl:choose>
  3120. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3121. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3122. </xsl:choose>
  3123. <a role="button" tabindex="0" href="javascript:doScheduleAction('suspend')">
  3124. <out:attribute name="title"><xts:string id="IDS_SCHED_SUSPEND_TOOLTIP"/></out:attribute>
  3125. <img height="16" width="16" border="0" src="{'{$image_root}'}action_suspend_execution.gif">
  3126. <out:attribute name="alt"><xts:string id="IDS_SCHED_SUSPEND_TOOLTIP"/></out:attribute>
  3127. <out:attribute name="title"><xts:string id="IDS_SCHED_SUSPEND_TOOLTIP"/></out:attribute>
  3128. </img>
  3129. </a>
  3130. </td>
  3131. </out:if>
  3132. </xsl:template>
  3133. <xsl:template match=" mt:tool[@name='release'] ">
  3134. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3135. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3136. <xsl:choose>
  3137. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3138. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3139. </xsl:choose>
  3140. <a role="button" tabindex="0" href="javascript:doScheduleAction('release')">
  3141. <out:attribute name="title"><xts:string id="IDS_SCHED_RELEASE_TOOLTIP"/></out:attribute>
  3142. <img height="16" width="16" border="0" src="{'{$image_root}'}action_release_execution.gif">
  3143. <out:attribute name="alt"><xts:string id="IDS_SCHED_RELEASE_TOOLTIP"/></out:attribute>
  3144. <out:attribute name="title"><xts:string id="IDS_SCHED_RELEASE_TOOLTIP"/></out:attribute>
  3145. </img>
  3146. </a>
  3147. </td>
  3148. </out:if>
  3149. </xsl:template>
  3150. <!-- View events -->
  3151. <xsl:template match=" mt:tool[@name='view_events'] ">
  3152. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3153. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3154. <xsl:choose>
  3155. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3156. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3157. </xsl:choose>
  3158. <a role="button" tabindex="0" href="#" onclick="actions('', '','','view_events.xts');">
  3159. <out:attribute name="title"><xts:string id="IDS_VPA_ACTION_TIP"/></out:attribute>
  3160. <img height="16" width="16" border="0" src="{'{$image_root}'}action_plan_activity.gif">
  3161. <out:attribute name="alt"><xts:string id="IDS_VPA_ACTION_TIP"/></out:attribute>
  3162. <out:attribute name="title"><xts:string id="IDS_VPA_ACTION_TIP"/></out:attribute>
  3163. </img>
  3164. </a>
  3165. </td>
  3166. </out:if>
  3167. </xsl:template>
  3168. <!-- Refresh data source connections -->
  3169. <xsl:template match="mt:tool[@name='refresh_connections'] ">
  3170. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3171. <script language="javascript">
  3172. function refreshConnections()
  3173. {
  3174. document.cfrmEntryAdmin.ifrmcmd.value = 'refreshConnections';
  3175. document.cfrmEntryAdmin.m.value = "<out:value-of select="$app"/>/submit.xts";
  3176. document.cfrmEntryAdmin.m_class.value = "<out:value-of select="{request-path}/cm:objectClass"/>";
  3177. document.cfrmEntryAdmin.m_obj.value = "<out:value-of select="xtsext:javascriptencode(string({request-path}/cm:searchPath))"/>";
  3178. document.cfrmEntryAdmin.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";
  3179. document.cfrmEntryAdmin.submit();
  3180. }
  3181. </script>
  3182. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3183. <xsl:choose>
  3184. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3185. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3186. </xsl:choose>
  3187. <a role="button" tabindex="0" href="#" onclick="refreshConnections()">
  3188. <out:attribute name="title">
  3189. <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS">
  3190. <xts:param name="objectName"><out:value-of select="{request-path}/cm:defaultName"/></xts:param>
  3191. </xts:string>
  3192. </out:attribute>
  3193. <img height="16" width="16" border="0" src="{'{$image_root}'}action_refresh_server_connection.gif">
  3194. <out:attribute name="alt">
  3195. <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS">
  3196. <xts:param name="objectName"><out:value-of select="{request-path}/cm:defaultName"/></xts:param>
  3197. </xts:string>
  3198. </out:attribute>
  3199. <out:attribute name="title">
  3200. <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS">
  3201. <xts:param name="objectName"><out:value-of select="{request-path}/cm:defaultName"/></xts:param>
  3202. </xts:string>
  3203. </out:attribute>
  3204. </img>
  3205. </a>
  3206. </td>
  3207. </out:if>
  3208. </xsl:template>
  3209. <!-- Adds the page to the portal tabs. -->
  3210. <xsl:template match=" mt:tool[@name='add_page']">
  3211. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3212. <script language="javascript">
  3213. function addPageToPortal()
  3214. {
  3215. pageCmd("addToMyPages");
  3216. }
  3217. </script>
  3218. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3219. <xsl:choose>
  3220. <xsl:when test="not(string(@disable) = 'true')">
  3221. <xsl:choose>
  3222. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3223. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3224. </xsl:choose>
  3225. <a role="button" tabindex="0" href="javascript:addPageToPortal()">
  3226. <out:attribute name="title"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
  3227. <img height="16" width="16" border="0" src="{'{$image_root}'}action_add_page_toportal.gif">
  3228. <out:attribute name="alt"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
  3229. <out:attribute name="title"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
  3230. </img>
  3231. </a>
  3232. </xsl:when>
  3233. <xsl:otherwise>
  3234. <out:attribute name="class">toolbarImageUnavailable</out:attribute>
  3235. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_add_page_toportal_dis.gif">
  3236. <out:attribute name="alt"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
  3237. <out:attribute name="title"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></out:attribute>
  3238. </img>
  3239. </xsl:otherwise>
  3240. </xsl:choose>
  3241. </td>
  3242. </out:if>
  3243. </xsl:template>
  3244. <!-- Import portlets -->
  3245. <xsl:template match=" mt:tool[@name='import_portlets'] ">
  3246. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3247. <xsl:choose>
  3248. <xsl:when test="@disable ='true'">
  3249. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  3250. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_import_portlet_dis.gif">
  3251. <out:attribute name="alt"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
  3252. <out:attribute name="title"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
  3253. </img>
  3254. </td>
  3255. </xsl:when>
  3256. <xsl:otherwise>
  3257. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3258. <xsl:choose>
  3259. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3260. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3261. </xsl:choose>
  3262. <a role="button" tabindex="0">
  3263. <out:attribute name="href">
  3264. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/cc.xts&amp;m_portlet=/admin/portlet:import&amp;rui=hh&amp;m_pagemode=view&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')"/>
  3265. </out:attribute>
  3266. <out:attribute name="title"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
  3267. <img height="16" width="16" border="0" src="{'{$image_root}'}action_import_portlet.gif">
  3268. <out:attribute name="alt"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
  3269. <out:attribute name="title"><xts:string id="IDS_IMPORT_PORTLETS"/></out:attribute>
  3270. </img>
  3271. </a>
  3272. </td>
  3273. </xsl:otherwise>
  3274. </xsl:choose>
  3275. </out:if>
  3276. </xsl:template>
  3277. <!-- New portlets -->
  3278. <xsl:template match=" mt:tool[@name='new_portlets'] ">
  3279. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3280. <out:choose>
  3281. <out:when test="'{string(@disable)}' ='true'">
  3282. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  3283. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_add_portlet_frm_producer_dis.gif">
  3284. <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
  3285. <out:attribute name="title"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
  3286. </img>
  3287. </td>
  3288. </out:when>
  3289. <out:otherwise>
  3290. <out:variable name="url-encoded-path" select="xtsext:protect(xtsext:urlencode(string(/root/content/cm:queryResponse/cm:queryReply[1]/*/cm:searchPath)),'url','searchPath','getdata')"/>
  3291. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3292. <xsl:choose>
  3293. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3294. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3295. </xsl:choose>
  3296. <a role="button" tabindex="0">
  3297. <out:attribute name="href">
  3298. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/cc.xts&amp;m_portlet=/admin/portlet:newportlet&amp;rui=hh&amp;m_pagemode=view&amp;wsrp-urlType=blockingAction&amp;cps-portlet=PORTLETID&amp;producer=/connection/path:<out:value-of select="$url-encoded-path"/>&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>
  3299. </out:attribute>
  3300. <out:attribute name="title"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
  3301. <img height="16" width="16" border="0" src="{'{$image_root}'}action_add_portlet_frm_producer.gif">
  3302. <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
  3303. <out:attribute name="title"><xts:string id="IDS_ACT_NEW_PORTLET_ALT"/></out:attribute>
  3304. </img>
  3305. </a>
  3306. </td>
  3307. </out:otherwise>
  3308. </out:choose>
  3309. </out:if>
  3310. </xsl:template>
  3311. <!-- New migration -->
  3312. <xsl:template match=" mt:tool[@name='new_migration'] ">
  3313. <out:if test="not(contains($ui_black_list, 'CC_TOOLBAR_BUTTONS_{@name}'))">
  3314. <out:choose>
  3315. <out:when test="'{string(@disable)}' ='true'">
  3316. <td class="toolbarImageUnavailable" onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)">
  3317. <img aria-disabled="true" role="button" height="16" width="16" border="0" src="{'{$image_root}'}action_new_migration_dis.gif">
  3318. <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
  3319. <out:attribute name="title"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
  3320. </img>
  3321. </td>
  3322. </out:when>
  3323. <out:otherwise>
  3324. <td onmouseover="mouseoverImage(this)" onmouseout="mouseoutImage(this)" role="presentation">
  3325. <xsl:choose>
  3326. <xsl:when test="@cogadmin='true'"><xsl:attribute name="class">toolbarImageNormal2</xsl:attribute></xsl:when>
  3327. <xsl:otherwise><xsl:attribute name="class">toolbarImageNormal</xsl:attribute></xsl:otherwise>
  3328. </xsl:choose>
  3329. <a role="button" tabindex="0">
  3330. <out:attribute name="href">
  3331. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/>/new_general.xts&amp;m_new_class=migrationTask&amp;backURL=<out:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>&amp;m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
  3332. </out:attribute>
  3333. <out:attribute name="title"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
  3334. <img height="16" width="16" border="0" src="{'{$image_root}'}action_new_migration.gif">
  3335. <out:attribute name="alt"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
  3336. <out:attribute name="title"><xts:string id="IDS_ACT_NEW_MIGRATION_ALT"/></out:attribute>
  3337. </img>
  3338. </a>
  3339. </td>
  3340. </out:otherwise>
  3341. </out:choose>
  3342. </out:if>
  3343. </xsl:template>
  3344. <!--
  3345. Template - mt:detailedEntryView:
  3346. This template renders the detailed view of an individual entry.
  3347. Operation:
  3348. Outputs the detailed view of an entry.
  3349. -->
  3350. <xsl:template match="mt:detailedEntryView">
  3351. <!-- If this is the beginning of a row then open a <table> tag -->
  3352. <out:if test="position() mod $columns = 1">
  3353. <out:text disable-output-escaping="yes">&lt;table width="100%" border="0" cellpadding="0" cellspacing="0" class="horizSpaceDetailView"&gt;&lt;tr&gt;</out:text>
  3354. </out:if>
  3355. <td valign="top" align="left" width="{'{$width}'}%">
  3356. <!-- Drop common rendering variables here to get the proper scope for generating name, icon, actions .. for the current entry -->
  3357. <xsl:copy-of select="mt:object-variables/*"/>
  3358. <table width="100%" cellpadding="0" cellspacing="0">
  3359. <tr>
  3360. <td valign="top" rowspan="4" align="left" width="20">
  3361. <out:choose>
  3362. <out:when test="cm:nbid or cm:nid">
  3363. <img src="{'{$webcontent}/images/space.gif'}" alt="" width="20"/>
  3364. </out:when>
  3365. <out:otherwise>
  3366. <input type="checkbox" value="{'{xtsext:urlencode(string(cm:searchPath))}'}" name="checkbox_{'{position()}'}">
  3367. <out:if test="key('env-param',concat('checkbox_' , position()))">
  3368. <out:attribute name="checked">checked</out:attribute>
  3369. </out:if>
  3370. </input>
  3371. </out:otherwise>
  3372. </out:choose>
  3373. </td>
  3374. <td valign="top" align="left" rowspan="4" width="20" style="padding-top:2px;padding-right:1px;">
  3375. <table cellpadding="0" cellspacing="0">
  3376. <tr><td nowrap="nowrap">
  3377. <out:call-template name="gen-icon">
  3378. <out:with-param name="class" select="$class"/>
  3379. <out:with-param name="canWrite" select="$canWrite"/>
  3380. <out:with-param name="canExecute" select="$canExecute"/>
  3381. <out:with-param name="canTraverse" select="$canTraverse"/>
  3382. <out:with-param name="userInterfaces" select="$userInterfaces"/>
  3383. <out:with-param name="isDangling" select="$isDangling"/>
  3384. <out:with-param name="output_format" select="$output_format"/>
  3385. <out:with-param name="action" select="$action"/>
  3386. <out:with-param name="executionFormat" select="$executionFormat"/>
  3387. <out:with-param name="hiddenObject" select="$hiddenObject"/>
  3388. <out:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  3389. </out:call-template>
  3390. </td></tr>
  3391. </table>
  3392. </td>
  3393. <td class="objectName">
  3394. <xsl:copy-of select="mt:object-name/*"/>
  3395. </td>
  3396. </tr>
  3397. <tr>
  3398. <td class="objectOptions">
  3399. <out:value-of select="xtsext:enforceBTD(cm:defaultDescription, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  3400. </td>
  3401. </tr>
  3402. <tr>
  3403. <td class="objectOptions">
  3404. <out:choose>
  3405. <out:when test="cm:updateDate">
  3406. <out:variable name="cmUpdateDate">
  3407. <out:value-of select="cm:updateDate"/>
  3408. </out:variable>
  3409. <out:value-of select="xtsext:enforceBTD($cmUpdateDate, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
  3410. </out:when>
  3411. <out:otherwise>
  3412. <!-- 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 -->
  3413. <out:variable name="cmModifTime">
  3414. <out:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  3415. </out:variable>
  3416. <out:value-of select="xtsext:enforceBTD($cmModifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
  3417. </out:otherwise>
  3418. </out:choose>
  3419. </td>
  3420. </tr>
  3421. <tr>
  3422. <td>
  3423. <!--
  3424. The call to action-properties does not pass the userCanUseFullRS/QS since the user is allowed to edit
  3425. existing reports, just not allowed to create new reports (e.g. doing a Save as...)
  3426. -->
  3427. <out:call-template name="action-properties">
  3428. <out:with-param name="supportRunOptionsAction" select="true()"/>
  3429. <out:with-param name="supportScheduleAction" select="true()"/>
  3430. <out:with-param name="canRead" select="$canRead"/>
  3431. <out:with-param name="canWrite" select="$canWrite"/>
  3432. <out:with-param name="canExecute" select="$canExecute"/>
  3433. <out:with-param name="canTraverse" select="$canTraverse"/>
  3434. <out:with-param name="class" select="$class"/>
  3435. <out:with-param name="output_format" select="$output_format"/>
  3436. <out:with-param name="isDangling" select="$isDangling"/>
  3437. <out:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
  3438. </out:call-template>
  3439. </td>
  3440. </tr>
  3441. </table>
  3442. </td>
  3443. <td valign="top" width="2%">&#160;</td>
  3444. <!-- After the last entry, add empty (dummy) cells for each remaining column to fill out the row and leave no gaps. -->
  3445. <out:if test="position() = last()">
  3446. <!-- Count odd (empty) cells -->
  3447. <out:variable name="oddCells">
  3448. <out:choose>
  3449. <out:when test="(position() mod $columns) = 0"><out:value-of select="number('0')"/></out:when>
  3450. <out:otherwise><out:value-of select="$columns - (position() mod $columns)"/></out:otherwise>
  3451. </out:choose>
  3452. </out:variable>
  3453. <out:if test=" $oddCells > 0">
  3454. <xsl:variable name="dummyCells">
  3455. <td width="{'{$width}'}%">&#160;</td>
  3456. <td width="2%">&#160;</td>
  3457. </xsl:variable>
  3458. <out:choose>
  3459. <out:when test="$oddCells = 1">
  3460. <xsl:copy-of select="$dummyCells"/>
  3461. </out:when>
  3462. <out:when test="$oddCells = 2">
  3463. <xsl:copy-of select="$dummyCells"/>
  3464. <xsl:copy-of select="$dummyCells"/>
  3465. </out:when>
  3466. <out:when test="$oddCells = 3">
  3467. <xsl:copy-of select="$dummyCells"/>
  3468. <xsl:copy-of select="$dummyCells"/>
  3469. <xsl:copy-of select="$dummyCells"/>
  3470. </out:when>
  3471. <out:when test="$oddCells = 4">
  3472. <xsl:copy-of select="$dummyCells"/>
  3473. <xsl:copy-of select="$dummyCells"/>
  3474. <xsl:copy-of select="$dummyCells"/>
  3475. <xsl:copy-of select="$dummyCells"/>
  3476. </out:when>
  3477. </out:choose>
  3478. </out:if>
  3479. </out:if>
  3480. <!-- 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 -->
  3481. <out:if test="(position() mod $columns) = 0 or position() = last()">
  3482. <out:text disable-output-escaping="yes">&lt;/tr&gt;&lt;/table&gt;</out:text>
  3483. </out:if>
  3484. </xsl:template>
  3485. <!--
  3486. Template - mt:objectNoneFound:
  3487. This template renders the No entries message on the main pages view.
  3488. Operation:
  3489. Outputs the No entries message.
  3490. -->
  3491. <xsl:template match="mt:objectNoneFound">
  3492. <p class="objectNoneFound">
  3493. <xsl:choose>
  3494. <xsl:when test="@id">
  3495. <xts:string id="{@id}"/>
  3496. </xsl:when>
  3497. <xsl:otherwise>
  3498. <xts:string id="IDS_NO_ITEMS_FOUND"/>
  3499. </xsl:otherwise>
  3500. </xsl:choose>
  3501. </p>
  3502. </xsl:template>
  3503. <!--
  3504. Template - mt:containerNoAccess:
  3505. This template renders the message letting the user know he doesn't have access to the page or it was deleted
  3506. -->
  3507. <xsl:template match="mt:containerNoAccess">
  3508. <out:variable name="homeLink">
  3509. <xts:string id="IDS_HOME"/>
  3510. </out:variable>
  3511. <p class="objectNoneFound">
  3512. <xts:string id="IDS_NO_ACCESS_CONTAINER">
  3513. <xts:param name="homeLink">
  3514. <a href="{'{$gateway}?{key(&quot;system-param&quot;, &quot;COGNOSHome&quot;)}'}">
  3515. <out:value-of select="$homeLink"/>
  3516. </a>
  3517. </xts:param>
  3518. </xts:string>
  3519. </p>
  3520. </xsl:template>
  3521. <xsl:template match="mt:errorMessage">
  3522. <p class="objectNoneFound">
  3523. <xsl:apply-templates/>
  3524. </p>
  3525. </xsl:template>
  3526. <!--
  3527. Template - mt:actions:
  3528. This template generates the template action-properties which renders hyperlinked images for each action available for an entry.
  3529. Operation:
  3530. Generates the template to produce hyperlinked action images for an entry. The action images are for:
  3531. properties
  3532. report outputs
  3533. run options
  3534. edit with Studios
  3535. create a custom view
  3536. deployment:
  3537. properties
  3538. update export
  3539. update import
  3540. view deployment
  3541. tools:
  3542. properties
  3543. test connection
  3544. run once
  3545. view history
  3546. view outputs
  3547. view steps
  3548. cancel operation
  3549. schedule
  3550. more
  3551. -->
  3552. <xsl:template match="mt:actions">
  3553. <!-- action-properties - this will be called to show the actions and properties links for each item -->
  3554. <out:template name="action-properties">
  3555. <out:param name="obj-name" select="cm:defaultName"/>
  3556. <out:param name="obj-path" select="cm:searchPath"/>
  3557. <out:param name="obj-id" select="cm:storeID"/>
  3558. <out:param name="obj-class" select="cm:objectClass"/>
  3559. <out:param name="userInterfaces" select="''"/>
  3560. <out:param name="targetUserInterfaces" select="''"/>
  3561. <out:param name="history-path" select="''"/>
  3562. <out:param name="dataSetName" select="''"/>
  3563. <out:param name="canRead" select="true()"/>
  3564. <out:param name="canWrite" select="true()"/>
  3565. <out:param name="canExecute" select="true()"/>
  3566. <out:param name="canTraverse" select="true()"/>
  3567. <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. -->
  3568. <out:param name="output_format" select="''"/>
  3569. <out:param name="isDangling" select="false()"/>
  3570. <out:param name="reportVersion-path" select="''"/>
  3571. <out:param name="runHistoryRequestedTime" select="''"/>
  3572. <out:param name="agsEventList-path" select="''"/>
  3573. <out:param name="position" select="''"/>
  3574. <out:param name="eventID" select="''"/>
  3575. <out:param name="effectiveUserCapabilities" select="''"/>
  3576. <!-- supported actions - host morphlet can list which actions it wants to show when listing CM entries. -->
  3577. <out:param name="supportDeploymentRecordAction" select="false()"/>
  3578. <out:param name="supportScheduleAction" select="false()"/>
  3579. <out:param name="supportRunOnce" select="false()"/>
  3580. <out:param name="supportRunOptionsAction" select="false()"/>
  3581. <out:param name="supportHistoryAction" select="false()"/>
  3582. <out:param name="supportJobPropertiesAction" select="false()"/>
  3583. <out:param name="supportViewOutputsAction" select="false()"/>
  3584. <out:param name="supportViewHotListAction" select="false()"/>
  3585. <out:param name="supportPropertiesAction" select="false()"/>
  3586. <out:param name="supportPermissionsAction" select="false()"/>
  3587. <out:param name="supportAllActionsAction" select="false()"/>
  3588. <out:param name="supportTestConnection" select="false()"/>
  3589. <out:param name="supportViewRunHistory" select="false()"/>
  3590. <out:param name="supportViewRunHistoryDetails" select="false()"/>
  3591. <out:param name="supportPortletControlAction" select="false()"/>
  3592. <out:param name="supportDeleteAction" select="false()"/>
  3593. <out:param name="supportActivateAction" select="false()"/>
  3594. <out:param name="supportPreviewPortlet" select="false"/>
  3595. <out:param name="supportCreateProfileAction" select="false"/>
  3596. <out:param name="supportEditDataSet" select="false"/>
  3597. <!-- Effective object name -->
  3598. <out:variable name="name">
  3599. <out:choose>
  3600. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:defaultName"/></out:when>
  3601. <out:otherwise><out:value-of select="$obj-name"/></out:otherwise>
  3602. </out:choose>
  3603. </out:variable>
  3604. <out:variable name="objID">
  3605. <out:choose>
  3606. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:storeID"/></out:when>
  3607. <out:otherwise><out:value-of select="$obj-id"/></out:otherwise>
  3608. </out:choose>
  3609. </out:variable>
  3610. <out:variable name="toolTipName"><out:value-of select="$obj-name"/></out:variable>
  3611. <out:variable name="js-encoded-name" select="xtsext:javascriptencode(string($name))"/>
  3612. <!-- Versions target -->
  3613. <out:variable name="versions_target">
  3614. <out:choose>
  3615. <out:when test="key('system-param', 'versions')/target"><out:value-of select="key('system-param', 'versions')/target"/></out:when>
  3616. <out:otherwise>outputs.xts</out:otherwise>
  3617. </out:choose>
  3618. </out:variable>
  3619. <!-- Effective object path -->
  3620. <out:variable name="js-encoded-path">
  3621. <out:choose>
  3622. <out:when test="$obj-class = 'shortcut'"><out:value-of select="xtsext:javascriptencode(string(cm:target/*/cm:searchPath))"/></out:when>
  3623. <out:otherwise><out:value-of select="xtsext:javascriptencode(string($obj-path))"/></out:otherwise>
  3624. </out:choose>
  3625. </out:variable>
  3626. <out:variable name="ppgateway">
  3627. <out:choose>
  3628. <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>
  3629. <out:when test="starts-with( string($obj-class),'powerPlay' )"><out:value-of select="cm:gateway"/></out:when>
  3630. </out:choose>
  3631. </out:variable>
  3632. <!-- Effective event list path for agentDefinition/agentDefinitionView -->
  3633. <out:variable name="event_list">
  3634. <out:choose>
  3635. <out:when test="$obj-class = 'shortcut' and starts-with( string(cm:target/*/cm:objectClass),'agentDefinition' )">
  3636. <out:value-of select="cm:target/*/cm:mostRecentEventList"/>
  3637. </out:when>
  3638. <out:when test="starts-with( $obj-class,'agentDefinition' )">
  3639. <out:value-of select="cm:mostRecentEventList"/>
  3640. </out:when>
  3641. </out:choose>
  3642. </out:variable>
  3643. <out:variable name="rv-lang">
  3644. <out:if test="key('system-param', 'useReportLocaleInRVUI') = 'true'">
  3645. <xsl:text/>&amp;lang=<out:value-of select="$contentLocale"/>
  3646. </out:if>
  3647. </out:variable>
  3648. <!-- Ref to UI object actions -->
  3649. <out:variable name="ui-object" select="key( 'ui-object-actions', string($class) )"/>
  3650. <table border="0" cellpadding="2" cellspacing="0" role="presentation">
  3651. <tr class="tableText">
  3652. <xsl:if test="@mode and (@mode = 'main' or @mode='mysub')">
  3653. <!-- Properties ============= -->
  3654. <!-- 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. -->
  3655. <out:variable name="upfShortCut"><out:if test="cm:upfShortCut = 'true'">s</out:if></out:variable>
  3656. <out:choose>
  3657. <!-- Series 7 object -->
  3658. <out:when test="cm:nid or cm:nbid">
  3659. <out:variable name="daurl">
  3660. <out:value-of select="$s7gateway"/>
  3661. <out:choose>
  3662. <!-- NewsItem of type URL (other) -->
  3663. <out:when test="cm:nid and cm:objectClass = 'URL'">
  3664. <out:choose>
  3665. <out:when test="$upfShortCut != ''">
  3666. <out:text/>?xmlcmd=&lt;GetPage>&lt;Template>ni<out:value-of select="$upfShortCut"/>_properties_general.utml&lt;/Template>&lt;/GetPage>&amp;id=<out:value-of select="cm:nid"/>
  3667. </out:when>
  3668. <out:otherwise>
  3669. <out:text/>?xmlcmd=&lt;GetPage>&lt;Template>other<out:value-of select="$upfShortCut"/>_properties_general.utml&lt;/Template>&lt;/GetPage>&amp;id=<out:value-of select="cm:nid"/>
  3670. </out:otherwise>
  3671. </out:choose>
  3672. </out:when>
  3673. <!-- NewsItem of known type (IWR, PP, VIZ .. etc)-->
  3674. <out:when test="cm:nid and cm:objectClass != 'URL'">
  3675. <out:text/>?xmlcmd=&lt;GetPage>&lt;Template>ni<out:value-of select="$upfShortCut"/>_properties_general.utml&lt;/Template>&lt;/GetPage>&amp;id=<out:value-of select="cm:nid"/>
  3676. </out:when>
  3677. <!-- NewsBox -->
  3678. <out:otherwise>
  3679. <out:text/>?xmlcmd=&lt;GetPage>&lt;Template>nb<out:value-of select="$upfShortCut"/>_properties_general.utml&lt;/Template>&lt;/GetPage>&amp;isnewsbox=Y&amp;id=<out:value-of select="cm:nbsid"/>
  3680. </out:otherwise>
  3681. </out:choose>
  3682. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  3683. <out:text/>&amp;LA=<out:value-of select="$productLocale"/>
  3684. <out:text/>&amp;back=<out:value-of select="$encoded-s7-back-url"/>
  3685. </out:variable>
  3686. <xsl:call-template name="renderAction">
  3687. <xsl:with-param name="href">{xtsext:protect(string($daurl),'none','s7url','s7url')}</xsl:with-param>
  3688. <xsl:with-param name="onclick" select="'none'"/>
  3689. <xsl:with-param name="icon" select="'action_properties.gif'"/>
  3690. <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
  3691. </xsl:call-template>
  3692. </out:when>
  3693. <!-- CRN Object -->
  3694. <out:otherwise>
  3695. <xsl:call-template name="renderAction">
  3696. <xsl:with-param name="onclick">actions('{xtsext:javascriptencode(string($obj-name))}', '{$obj-class}', '{xtsext:javascriptencode(string($obj-path))}','properties_general.xts');</xsl:with-param>
  3697. <xsl:with-param name="icon" select="'action_properties.gif'"/>
  3698. <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
  3699. </xsl:call-template>
  3700. <!-- launchable actions -->
  3701. <out:if test="$class='launchable' and $canRead">
  3702. <out:variable name="launchableType" >
  3703. <out:choose>
  3704. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:launchableType"/></out:when>
  3705. <out:otherwise><out:value-of select="./cm:launchableType"/></out:otherwise>
  3706. </out:choose>
  3707. </out:variable>
  3708. <out:choose>
  3709. <out:when test="$launchableType = 'application/vnd.ibm.cognos.ev' and $userCanUseEV">
  3710. <xsl:call-template name="renderAction">
  3711. <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>
  3712. <xsl:with-param name="icon" select="'action_edit_with_analyzer.gif'"/>
  3713. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_ADVISOR'"/>
  3714. </xsl:call-template>
  3715. </out:when>
  3716. <out:when test="$launchableType = 'application/vnd.ibm.cognos.ev.canvas' and $userCanUseEV">
  3717. <xsl:call-template name="renderAction">
  3718. <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>
  3719. <xsl:with-param name="icon" select="'action_edit_with_analyzer.gif'"/>
  3720. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_ADVISOR'"/>
  3721. </xsl:call-template>
  3722. </out:when>
  3723. <out:when test="$launchableType = 'application/vnd.ibm.cognos.cd' and $canExecute and $userCanUseCI">
  3724. <xsl:call-template name="renderAction">
  3725. <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>
  3726. <xsl:with-param name="icon" select="'action_edit_with_cd.gif'"/>
  3727. <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_CD'"/>
  3728. </xsl:call-template>
  3729. </out:when>
  3730. </out:choose>
  3731. </out:if>
  3732. <out:if test="($obj-class='dashboard' or ($obj-class='shortcut' and cm:target/*/cm:objectClass='dashboard')) and $canRead and $canTraverse and $userCanUseDashboardViewer">
  3733. <out:choose>
  3734. <out:when test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
  3735. <xsl:call-template name="renderAction">
  3736. <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>
  3737. <xsl:with-param name="icon" select="'icon_dashboard.gif'"/>
  3738. <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_DASHBOARD_ALT'"/>
  3739. </xsl:call-template>
  3740. </out:when>
  3741. <out:otherwise>
  3742. <out:variable name="uiencoding" select="/root/env/param[@name='encoding']"/>
  3743. <xsl:call-template name="renderAction">
  3744. <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>
  3745. <xsl:with-param name="icon" select="'icon_dashboard.gif'"/>
  3746. <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_DASHBOARD_ALT'"/>
  3747. </xsl:call-template>
  3748. </out:otherwise>
  3749. </out:choose>
  3750. </out:if>
  3751. <out:if test="($obj-class='pagelet' or ( $obj-class='shortcut' and cm:target/*/cm:objectClass = 'pagelet')) and $canExecute and key('session-param', 'write') = 'true'">
  3752. <xsl:call-template name="renderAction">
  3753. <xsl:with-param name="onclick">pageCmd('addToMyPages', '{$objID)}')</xsl:with-param>
  3754. <xsl:with-param name="icon" select="'action_add_page_to_portal.gif'"/>
  3755. <xsl:with-param name="tooltip" select="'IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW'"/>
  3756. <xsl:with-param name="onclick" select="'none'"/>
  3757. </xsl:call-template>
  3758. </out:if>
  3759. <out:if test="(($obj-class = 'package' and $userInterfaces='metricStudio') or ($obj-class = 'shortcut' and cm:target/*/cm:objectClass='package' and $targetUserInterfaces='metricStudio'))">
  3760. <out:if test="not($isDangling) and $ui-object/userInterface[@name='metricStudio']/action[@name = 'traverse'] and $canTraverse">
  3761. <out:variable name="m"><out:value-of select="key('env-param','m')"/></out:variable>
  3762. <xsl:call-template name="renderAction">
  3763. <xsl:with-param name="href">{$gateway}?b_action=xts.run&amp;m={$m}&amp;m_folder={$objID}</xsl:with-param>
  3764. <xsl:with-param name="icon" select="'action_view_metrics_package.gif'"/>
  3765. <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_METRICSPACKAGE_CONTENT'"/>
  3766. <xsl:with-param name="onclick" select="'none'"/>
  3767. </xsl:call-template>
  3768. </out:if>
  3769. <out:if test="contains($effectiveUserCapabilities, ' userCanUseMetricsManager ') and not($isDangling) and $canRead and $canExecute and $canTraverse and $ui-object/userInterface[@name='metricStudio']/action[@name = 'launchcmm']">
  3770. <out:variable name="target-path">
  3771. <out:choose>
  3772. <out:when test="string($obj-class) = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
  3773. <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
  3774. </out:choose>
  3775. </out:variable>
  3776. <xsl:call-template name="renderAction">
  3777. <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>
  3778. <xsl:with-param name="icon" select="'action_edit_with_cmm.gif'"/>
  3779. <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_METRICS_MANAGER'"/>
  3780. </xsl:call-template>
  3781. </out:if>
  3782. </out:if>
  3783. <out:if test="(($obj-class = 'package' and $userInterfaces='planningContributor') or ($obj-class = 'shortcut' and cm:target/*/cm:objectClass='package' and $targetUserInterfaces='planningContributor'))">
  3784. <out:if test="not($isDangling) and $ui-object/userInterface[@name='planningContributor']/action[@name = 'traverse'] and $canRead and $canTraverse">
  3785. <out:variable name="m"><out:value-of select="key('env-param','m')"/></out:variable>
  3786. <xsl:call-template name="renderAction">
  3787. <xsl:with-param name="href">{$gateway}?b_action=xts.run&amp;m={$m}&amp;m_folder={$objID}</xsl:with-param>
  3788. <xsl:with-param name="icon" select="'action_view_planning_package.gif'"/>
  3789. <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_PLANNINGPACKAGE_CONTENT'"/>
  3790. <xsl:with-param name="onclick" select="'none'"/>
  3791. </xsl:call-template>
  3792. </out:if>
  3793. <out:if test="contains($effectiveUserCapabilities, ' userCanUsePlanningContributor ') and not($isDangling) and $ui-object/userInterface[@name='planningContributor']/action[@name = 'launchContributor'] and $canExecute">
  3794. <out:variable name="target-path">
  3795. <out:choose>
  3796. <out:when test="string($obj-class) = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
  3797. <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
  3798. </out:choose>
  3799. </out:variable>
  3800. <xsl:call-template name="renderAction">
  3801. <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>
  3802. <xsl:with-param name="icon" select="'action_edit_with_contributor.gif'"/>
  3803. <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_CONTRIBUTOR'"/>
  3804. </xsl:call-template>
  3805. </out:if>
  3806. </out:if>
  3807. <out:if test="(($obj-class = 'package' and $userInterfaces='adaptiveAnalytics') or ($obj-class = 'shortcut' and cm:target/*/cm:objectClass='package' and $targetUserInterfaces='adaptiveAnalytics'))">
  3808. <out:if test="not($isDangling) and $ui-object/userInterface[@name='adaptiveAnalytics']/action[@name = 'traverse'] and $canRead and $canTraverse">
  3809. <out:variable name="m"><out:value-of select="key('env-param','m')"/></out:variable>
  3810. <xsl:call-template name="renderAction">
  3811. <xsl:with-param name="href">{$gateway}?b_action=xts.run&amp;m={$m}&amp;m_folder={$objID}</xsl:with-param>
  3812. <xsl:with-param name="icon" select="'action_view_analytic_package.gif'"/>
  3813. <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_ANALYTICS'"/>
  3814. <xsl:with-param name="onclick" select="'none'"/>
  3815. </xsl:call-template>
  3816. </out:if>
  3817. <out:if test="contains($effectiveUserCapabilities, ' userCanUseAdaptiveAnalytics ') and not($isDangling) and $ui-object/userInterface[@name='adaptiveAnalytics']/action[@name = 'launchAnalyticsTOC'] and $canExecute">
  3818. <out:variable name="target-path">
  3819. <out:choose>
  3820. <out:when test="string($obj-class) = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
  3821. <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
  3822. </out:choose>
  3823. </out:variable>
  3824. <xsl:call-template name="renderAction">
  3825. <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>
  3826. <xsl:with-param name="icon" select="'action_analytic.gif'"/>
  3827. <xsl:with-param name="tooltip" select="'IDS_ACT_OPEN_ANALYTICS'"/>
  3828. </xsl:call-template>
  3829. </out:if>
  3830. </out:if>
  3831. </out:otherwise>
  3832. </out:choose>
  3833. <!-- Previous versions ============= -->
  3834. <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']">
  3835. <out:choose>
  3836. <out:when test="$class='document'">
  3837. <xsl:call-template name="renderAction">
  3838. <xsl:with-param name="icon" select="'action_view_report_output.gif'"/>
  3839. <xsl:with-param name="tooltip" select="'IDS_IMG_VIEW_DOCUMENT_ALT'"/>
  3840. <xsl:with-param name="morphlet">{$versions_target}</xsl:with-param>
  3841. </xsl:call-template>
  3842. </out:when>
  3843. <out:otherwise>
  3844. <xsl:call-template name="renderAction">
  3845. <xsl:with-param name="icon" select="'action_view_report_output.gif'"/>
  3846. <xsl:with-param name="tooltip" select="'IDS_IMG_VIEW_RPT_ALT'"/>
  3847. <xsl:with-param name="morphlet">{$versions_target}</xsl:with-param>
  3848. </xsl:call-template>
  3849. </out:otherwise>
  3850. </out:choose>
  3851. </out:if>
  3852. <!-- View agentHotList when exists for agents-->
  3853. <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 !='' ">
  3854. <xsl:call-template name="renderAction">
  3855. <xsl:with-param name="icon" select="'action_view_AS_hotlist.gif'"/>
  3856. <xsl:with-param name="tooltip" select="'IDS_VIEW_AGS_HOTLIST_TIP'"/>
  3857. <xsl:with-param name="href">
  3858. <xsl:text/>{$gateway}?b_action=cognosViewer&amp;ui.action=view<xsl:text/>
  3859. <xsl:text/>&amp;ui.object={xtsext:protect(xtsext:urlencode(string($event_list)), 'url','searchPath','getdata')}<xsl:text/>
  3860. <xsl:text/>&amp;cv.toolbar=false<xsl:text/>
  3861. <xsl:text/>&amp;ui.name={xtsext:protect(xtsext:urlencode(string($name)),'url','userData','getdata')}<xsl:text/>
  3862. <xsl:text/>{$rv-lang}&amp;ui.cafcontextid={$cafContextIDAGS}&amp;ui.backURL={xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')}<xsl:text/>
  3863. </xsl:with-param>
  3864. </xsl:call-template>
  3865. </out:if>
  3866. <!-- run powerPlay 7 -->
  3867. <out:if test="not($isDangling) and $class='powerPlayReport' and $canExecute and $canRead and $ui-object/action[@name = 'run_options']">
  3868. <out:variable name="reportPath">
  3869. <out:choose>
  3870. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
  3871. <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
  3872. </out:choose>
  3873. </out:variable>
  3874. <out:if test="$class='powerPlayReport'">
  3875. <out:variable name="ppreportprompt">
  3876. <out:choose>
  3877. <out:when test="$obj-class = 'shortcut'">
  3878. <out:if test="string(cm:target/*/cm:hasPrompts)='true'">
  3879. <out:text/><out:value-of select="cm:target/*/cm:options/cm:powerPlayOptionBoolean[cm:name='prompt']/cm:value"/><out:text/>
  3880. </out:if>
  3881. </out:when>
  3882. <out:when test="string(cm:hasPrompts)='true'"><out:value-of select="cm:options/cm:powerPlayOptionBoolean[cm:name='prompt']/cm:value"/></out:when>
  3883. </out:choose>
  3884. </out:variable>
  3885. <out:variable name="ppcubecontentname">
  3886. <out:choose>
  3887. <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>
  3888. <out:when test="starts-with( string($obj-class),'powerPlay' )"><out:value-of select="cm:cubeContentName"/></out:when>
  3889. </out:choose>
  3890. </out:variable>
  3891. <out:choose>
  3892. <out:when test="string($ppreportprompt)!=''">
  3893. <out:variable name="ppURL">
  3894. <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
  3895. <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&amp;crnccn=<out:value-of select="$ppcubecontentname"/>
  3896. <out:text/>&amp;crnfrm=PDF&amp;crnp=<out:value-of select="$ppreportprompt"/>
  3897. <out:text/>&amp;LA=<out:value-of select="$productLocale"/>
  3898. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  3899. <out:text/>&amp;BACK=<out:value-of select="$encodedPPBack"/><out:text/>
  3900. </out:variable>
  3901. <xsl:call-template name="renderAction">
  3902. <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
  3903. <xsl:with-param name="icon" select="'action_run_16.gif'"/>
  3904. <xsl:with-param name="tooltip" select="'IDS_ACT_RUN_PDF'"/>
  3905. <xsl:with-param name="onclick" select="'none'"/>
  3906. </xsl:call-template>
  3907. </out:when>
  3908. <out:otherwise>
  3909. <out:variable name="ppURL">
  3910. <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
  3911. <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&amp;crnccn=<out:value-of select="$ppcubecontentname"/>
  3912. <out:text/>&amp;crnfrm=PDF&amp;LA=<out:value-of select="$productLocale"/>
  3913. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  3914. <out:text/>&amp;BACK=<out:value-of select="$encodedPPBack"/><out:text/>
  3915. </out:variable>
  3916. <xsl:call-template name="renderAction">
  3917. <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
  3918. <xsl:with-param name="icon" select="'action_run_16.gif'"/>
  3919. <xsl:with-param name="tooltip" select="'IDS_ACT_RUN_PDF'"/>
  3920. <xsl:with-param name="onclick" select="'none'"/>
  3921. </xsl:call-template>
  3922. </out:otherwise>
  3923. </out:choose>
  3924. </out:if>
  3925. </out:if>
  3926. <xsl:if test="@mode and @mode='main'">
  3927. <!-- Run options ============= -->
  3928. <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 ))">
  3929. <out:variable name="run_target">
  3930. <out:choose>
  3931. <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' '))">
  3932. <out:value-of select="'runWithOptions/report.xts'"/>
  3933. </out:when>
  3934. <out:when test="$class = 'agentDefinitionView'">
  3935. <out:value-of select="'runWithOptions/agentDefinition.xts'"/>
  3936. </out:when>
  3937. <out:when test="$class = 'dataMovementTaskAlias'">
  3938. <out:value-of select="'runWithOptions/dataMovementTask.xts'" />
  3939. </out:when>
  3940. <out:when test="$class = 'queryServiceTask'">
  3941. <out:value-of select="'runWithOptions/generic.xts'" />
  3942. </out:when>
  3943. <out:otherwise>
  3944. <out:value-of select="concat('runWithOptions/', $class, '.xts')"/>
  3945. </out:otherwise>
  3946. </out:choose>
  3947. </out:variable>
  3948. <xsl:call-template name="renderAction">
  3949. <xsl:with-param name="icon" select="'action_run_16.gif'"/>
  3950. <xsl:with-param name="tooltip" select="'IDS_ACT_RUN'"/>
  3951. <xsl:with-param name="morphlet" select="'{$run_target}'"/>
  3952. <xsl:with-param name="flippingIcon" select="true()"/>
  3953. </xsl:call-template>
  3954. </out:if>
  3955. </xsl:if>
  3956. <!-- Edit - with Studios ============= -->
  3957. <out:if test="not($isDangling) and $canRead and $ui-object/action[contains(@name,'edit')]">
  3958. <out:variable name="reportPath">
  3959. <out:choose>
  3960. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:searchPath"/></out:when>
  3961. <out:otherwise><out:value-of select="$obj-path"/></out:otherwise>
  3962. </out:choose>
  3963. </out:variable>
  3964. <out:choose>
  3965. <out:when test="$ui-object/action[@name = 'edit'] and $class='powerPlay8Report' and contains($effectiveUserCapabilities, ' userCanUsePPS ') and $canExecute">
  3966. <out:variable name="ppdesignmode">
  3967. <out:choose>
  3968. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:options/cm:powerPlay8OptionData[cm:name='data']/cm:value"/></out:when>
  3969. <out:otherwise><out:value-of select="cm:options/cm:powerPlay8OptionData[cm:name='data']/cm:value"/></out:otherwise>
  3970. </out:choose>
  3971. </out:variable>
  3972. <out:choose>
  3973. <out:when test="string($ppdesignmode)!='previewWithNoData'">
  3974. <xsl:call-template name="renderAction">
  3975. <xsl:with-param name="icon" select="'action_edit_with_pp8.gif'"/>
  3976. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX8'"/>
  3977. <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}');
  3978. </xsl:with-param>
  3979. </xsl:call-template>
  3980. </out:when>
  3981. <out:otherwise>
  3982. <xsl:call-template name="renderAction">
  3983. <xsl:with-param name="icon" select="'action_edit_with_pp8.gif'"/>
  3984. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX8'"/>
  3985. <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}');
  3986. </xsl:with-param>
  3987. </xsl:call-template>
  3988. </out:otherwise>
  3989. </out:choose>
  3990. </out:when>
  3991. <out:when test="$ui-object/action[@name = 'edit'] and ($class='powerPlayReport' or $class='powerPlayCube') and $canExecute">
  3992. <out:variable name="ppdesignmode">
  3993. <out:choose>
  3994. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:options/cm:powerPlayOptionData[cm:name='data']/cm:value"/></out:when>
  3995. <out:otherwise><out:value-of select="cm:options/cm:powerPlayOptionData[cm:name='data']/cm:value"/></out:otherwise>
  3996. </out:choose>
  3997. </out:variable>
  3998. <out:variable name="ppcubecontentname">
  3999. <out:choose>
  4000. <out:when test="$obj-class = 'shortcut'"><out:value-of select="cm:target/*/cm:cubeContentName"/></out:when>
  4001. <out:otherwise><out:value-of select="cm:cubeContentName"/></out:otherwise>
  4002. </out:choose>
  4003. </out:variable>
  4004. <out:choose>
  4005. <out:when test="string($class)='powerPlayCube'">
  4006. <out:variable name="ppURL">
  4007. <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
  4008. <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&amp;crnccn=<out:value-of select="$ppcubecontentname"/>
  4009. <out:text/>&amp;LA=<out:value-of select="$productLocale"/>
  4010. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  4011. <out:text/>&amp;BACK=<out:value-of select="$encodedPPBack"/><out:text/>
  4012. </out:variable>
  4013. <xsl:call-template name="renderAction">
  4014. <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
  4015. <xsl:with-param name="icon" select="'action_edit_with_PP.gif'"/>
  4016. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX'"/>
  4017. <xsl:with-param name="onclick" select="'none'"/>
  4018. </xsl:call-template>
  4019. </out:when>
  4020. <out:when test="string($ppdesignmode)!='previewWithNoData'">
  4021. <out:variable name="ppURL">
  4022. <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
  4023. <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&amp;crnccn=<out:value-of select="$ppcubecontentname"/>
  4024. <out:text/>&amp;crnfrm=HTML&amp;crngnd=false&amp;LA=<out:value-of select="$productLocale"/>
  4025. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  4026. <out:text/>&amp;BACK=<out:value-of select="$encodedPPBack"/><out:text/>
  4027. </out:variable>
  4028. <xsl:call-template name="renderAction">
  4029. <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
  4030. <xsl:with-param name="icon" select="'action_edit_with_PP.gif'"/>
  4031. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX'"/>
  4032. <xsl:with-param name="onclick" select="'none'"/>
  4033. </xsl:call-template>
  4034. </out:when>
  4035. <out:otherwise>
  4036. <out:variable name="ppURL">
  4037. <out:value-of select="$ppgateway"/><out:text/>?crnobj=<out:text/>
  4038. <out:value-of select="xtsext:urlencode(string($reportPath))"/><out:text/>&amp;crnccn=<out:value-of select="$ppcubecontentname"/>
  4039. <out:text/>&amp;crnfrm=HTML&amp;crngnd=true&amp;LA=<out:value-of select="$productLocale"/>
  4040. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  4041. <out:text/>&amp;BACK=<out:value-of select="$encodedPPBack"/><out:text/>
  4042. </out:variable>
  4043. <xsl:call-template name="renderAction">
  4044. <xsl:with-param name="href">{xtsext:protect(string($ppURL),'none','s7url','s7url')}</xsl:with-param>
  4045. <xsl:with-param name="icon" select="'action_edit_with_PP_design.gif'"/>
  4046. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPPWX'"/>
  4047. <xsl:with-param name="onclick" select="'none'"/>
  4048. </xsl:call-template>
  4049. </out:otherwise>
  4050. </out:choose>
  4051. </out:when>
  4052. <out:when test="$ui-object/action[@name = 'edit'] and contains($effectiveUserCapabilities, ' userCanUseANS ') and $class = 'analysis' and $canExecute">
  4053. <xsl:call-template name="renderAction">
  4054. <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>
  4055. <xsl:with-param name="icon" select="'action_edit_with_PS.gif'"/>
  4056. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WPS'"/>
  4057. </xsl:call-template>
  4058. </out:when>
  4059. <out:when test="$ui-object/action[@name = 'edit'] and $userCanUseAGS and $class = 'agentDefinition' and $canTraverse and $canRead">
  4060. <xsl:call-template name="renderAction">
  4061. <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>
  4062. <xsl:with-param name="icon" select="'action_edit_with_AS.gif'"/>
  4063. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WAG'"/>
  4064. </xsl:call-template>
  4065. </out:when>
  4066. <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') )) ) ">
  4067. <!--*
  4068. * The powerPlay8Reports and interactiveReports are only supported for 'pro' profile.
  4069. * The reports and reportTemplates are available for bua and pro profiles
  4070. * -->
  4071. <out:variable name="RS_entries">
  4072. <!-- Report Studio -->
  4073. <out:if test="$ui-object/action[@name = 'edit']">
  4074. <out:if test="key('session-param','rsuiprofile')='pro' or key('session-param','rsuiprofile')='all'">
  4075. <entry uiprofile="pro">
  4076. <icon>action_edit_with_RS.gif</icon>
  4077. <tooltip><xts:string id="IDS_ACT_EDIT_WRS"/></tooltip>
  4078. <uiprofile>Professional</uiprofile>
  4079. </entry>
  4080. </out:if>
  4081. </out:if>
  4082. <!-- Cognos Workspace Advanced (aka CWA or CBIA) -->
  4083. <out:if test="$ui-object/action[@name = 'edit_cbia']">
  4084. <out:if test="key('session-param','rsuiprofile')='bua' or key('session-param','rsuiprofile')='all'">
  4085. <out:if test="$class='report' or $class='reportTemplate'">
  4086. <entry uiprofile="bua">
  4087. <icon>action_edit_with_RS_BUA.gif</icon>
  4088. <tooltip><xts:string id="IDS_ACT_EDIT_WBUA"/></tooltip>
  4089. <uiprofile>BUA_standalone</uiprofile>
  4090. </entry>
  4091. </out:if>
  4092. </out:if>
  4093. </out:if>
  4094. </out:variable>
  4095. <out:for-each select="$RS_entries/entry">
  4096. <out:variable name="RS_launchTool">
  4097. <out:choose>
  4098. <out:when test="$class='powerPlay8Report'">ReportStudioPPReport</out:when>
  4099. <out:otherwise>ReportStudio</out:otherwise>
  4100. </out:choose>
  4101. </out:variable>
  4102. <out:variable name="RS_Icon" select="icon"/>
  4103. <out:variable name="RS_Tooltip" select="tooltip"/>
  4104. <out:variable name="RS_UIProfile" select="uiprofile"/>
  4105. <xsl:call-template name="renderAction">
  4106. <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>
  4107. <xsl:with-param name="icon" select="'{$RS_Icon}'"/>
  4108. <xsl:with-param name="customTooltip" select="'$RS_Tooltip'"/>
  4109. </xsl:call-template>
  4110. </out:for-each>
  4111. </out:when>
  4112. <out:when test="contains($effectiveUserCapabilities, ' userCanUseQS ') and $class = 'query' and $canExecute">
  4113. <xsl:call-template name="renderAction">
  4114. <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>
  4115. <xsl:with-param name="icon" select="'action_edit_with_QS.gif'"/>
  4116. <xsl:with-param name="tooltip" select="'IDS_ACT_EDIT_WQS'"/>
  4117. </xsl:call-template>
  4118. </out:when>
  4119. </out:choose>
  4120. </out:if>
  4121. <!-- Custom View ============= -->
  4122. <out:if test="not($isDangling) and $ui-object/action[@name = 'customview'] and not(cm:nid)">
  4123. <out:choose>
  4124. <out:when test="$class = 'powerPlay8Report' and ($canRead or $canExecute) ">
  4125. <xsl:call-template name="renderAction">
  4126. <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
  4127. <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM_PP8'"/>
  4128. <xsl:with-param name="morphlet" select="'new_general.xts'"/>
  4129. <xsl:with-param name="newclass" select="'powerPlay8ReportView'"/>
  4130. </xsl:call-template>
  4131. </out:when>
  4132. <out:when test="$class = 'dataMovementTask' and ($canRead or $canExecute) ">
  4133. <xsl:call-template name="renderAction">
  4134. <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
  4135. <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM_DMT'"/>
  4136. <xsl:with-param name="morphlet" select="'new_general.xts'"/>
  4137. <xsl:with-param name="newclass" select="'dataMovementTaskAlias'"/>
  4138. </xsl:call-template>
  4139. </out:when>
  4140. <out:when test="$class != 'agentDefinition' and ($canRead or $canExecute) ">
  4141. <xsl:call-template name="renderAction">
  4142. <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
  4143. <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM'"/>
  4144. <xsl:with-param name="morphlet" select="'new_general.xts'"/>
  4145. <xsl:with-param name="newclass" select="'reportView'"/>
  4146. </xsl:call-template>
  4147. </out:when>
  4148. <out:when test="$class = 'agentDefinition' and $canRead and $canTraverse">
  4149. <xsl:call-template name="renderAction">
  4150. <xsl:with-param name="icon" select="'action_new_custom_view.gif'"/>
  4151. <xsl:with-param name="tooltip" select="'IDS_ACT_CUSTOM_AGENT'"/>
  4152. <xsl:with-param name="morphlet" select="'new_general.xts'"/>
  4153. <xsl:with-param name="newclass" select="'agentDefinitionView'"/>
  4154. </xsl:call-template>
  4155. </out:when>
  4156. </out:choose>
  4157. </out:if>
  4158. </xsl:if>
  4159. <xsl:if test="not(@mode and @mode = 'main')">
  4160. <xsl:variable name="usePropertiesGeneral">properties_general.xts</xsl:variable>
  4161. <xsl:variable name="usePropertiesPermissions">properties_privileges.xts</xsl:variable>
  4162. <!-- Properties ============= -->
  4163. <out:if test="$supportPropertiesAction">
  4164. <xsl:call-template name="renderAction">
  4165. <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>
  4166. <xsl:with-param name="icon" select="'action_properties.gif'"/>
  4167. <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
  4168. </xsl:call-template>
  4169. </out:if>
  4170. <out:if test="$supportPermissionsAction">
  4171. <xsl:call-template name="renderAction">
  4172. <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>
  4173. <xsl:with-param name="icon" select="'action_properties.gif'"/>
  4174. <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
  4175. </xsl:call-template>
  4176. </out:if>
  4177. <out:if test="$supportDeleteAction">
  4178. <out:variable name="msg">
  4179. <xts:string id="IDS_TOOLS_DIRECTORY_DELETE_NAMESPACE"><xts:param name="defaultName"><out:value-of select="$obj-name"/></xts:param></xts:string>
  4180. </out:variable>
  4181. <xsl:call-template name="renderAction">
  4182. <xsl:with-param name="onclick">doDeleteOne('{xtsext:javascriptencode(string($obj-path))}','{xtsext:javascriptencode(string($msg))}')</xsl:with-param>
  4183. <xsl:with-param name="icon" select="'action_delete.gif'"/>
  4184. <xsl:with-param name="tooltip" select="'IDS_DELETE'"/>
  4185. </xsl:call-template>
  4186. </out:if>
  4187. <out:if test="$supportActivateAction and $class='contentManagerService'">
  4188. <xsl:call-template name="renderAction">
  4189. <xsl:with-param name="onclick">doActivate('{xtsext:javascriptencode(string($obj-path))}')</xsl:with-param>
  4190. <xsl:with-param name="icon" select="'action_activate.gif'"/>
  4191. <xsl:with-param name="tooltip" select="'IDS_ACTION_ACTIVATE'"/>
  4192. </xsl:call-template>
  4193. </out:if>
  4194. </xsl:if>
  4195. <xsl:if test="@mode and @mode = 'tools'">
  4196. <!-- Job action properties -->
  4197. <out:if test="$supportJobPropertiesAction and $canExecute and $ui-object/action[@name = 'job']">
  4198. <xsl:call-template name="renderAction">
  4199. <xsl:with-param name="icon" select="'action_properties.gif'"/>
  4200. <xsl:with-param name="tooltip" select="'IDS_PROPERTIES'"/>
  4201. <xsl:with-param name="morphlet" select="'properties_job.xts'"/>
  4202. </xsl:call-template>
  4203. </out:if>
  4204. <out:if test="$supportCreateProfileAction and $class='account' and $canWrite">
  4205. <xsl:call-template name="renderAction">
  4206. <xsl:with-param name="icon" select="'action_create_user_profile.gif'"/>
  4207. <xsl:with-param name="tooltip" select="'IDS_ACTION_CREATE_PROFILE'"/>
  4208. <xsl:with-param name="onclick">
  4209. var form = document.cfrmEntryAdmin;<xsl:text/>
  4210. form.ifrmcmd.value='createUserProfile';<xsl:text/>
  4211. form.m_class.value='account';<xsl:text/>
  4212. form.m_obj.value='{$js-encoded-path}';<xsl:text/>
  4213. form.backURL.value="{$back-url}";<xsl:text/>
  4214. form.m.value = 'portal/submit.xts';<xsl:text/>
  4215. form.submit();<xsl:text/>
  4216. </xsl:with-param>
  4217. </xsl:call-template>
  4218. </out:if>
  4219. <out:if test="$supportEditDataSet and $class='dataSet' and $canWrite">
  4220. <xsl:call-template name="renderAction">
  4221. <xsl:with-param name="icon" select="'action_edit_dataset.gif'"/>
  4222. <xsl:with-param name="tooltip" select="'IDS_LOB_DATA_EDIT'"/>
  4223. <xsl:with-param name="href">{$gateway}?b_action=xts.run&amp;m={$app}/personal_data.xts&amp;action=edit&amp;dataSetStoreID={xtsext:urlencode($obj-id)}&amp;dataSetName={xtsext:urlencode($dataSetName)}&amp;backURL={xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata')}</xsl:with-param>
  4224. </xsl:call-template>
  4225. </out:if>
  4226. </xsl:if>
  4227. <xsl:if test="@mode and (@mode = 'tools' or @mode='main')">
  4228. <xsl:if test="@mode != 'main'">
  4229. <!-- Run options ============= -->
  4230. <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 ))">
  4231. <out:variable name="run_target">
  4232. <out:choose>
  4233. <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' '))">
  4234. <out:value-of select="'runWithOptions/report.xts'"/>
  4235. </out:when>
  4236. <out:when test="$class = 'agentDefinitionView'">
  4237. <out:value-of select="'runWithOptions/agentDefinition.xts'"/>
  4238. </out:when>
  4239. <out:when test="$class = 'dataMovementTaskAlias'">
  4240. <out:value-of select="'runWithOptions/dataMovementTask.xts'" />
  4241. </out:when>
  4242. <out:when test="$class = 'exportDeployment' or $class = 'importDeployment'">
  4243. <out:value-of select="'runWithOptions/deployment.xts'"/>
  4244. </out:when>
  4245. <out:when test="$class = 'queryServiceTask'">
  4246. <out:value-of select="'runWithOptions/generic.xts'" />
  4247. </out:when>
  4248. <out:otherwise>
  4249. <out:value-of select="concat('runWithOptions/', $class, '.xts')"/>
  4250. </out:otherwise>
  4251. </out:choose>
  4252. </out:variable>
  4253. <xsl:call-template name="renderAction">
  4254. <xsl:with-param name="icon" select="'action_run_16.gif'"/>
  4255. <xsl:with-param name="tooltip" select="'IDS_ACT_RUN'"/>
  4256. <xsl:with-param name="morphlet" select="'{$run_target}'"/>
  4257. </xsl:call-template>
  4258. </out:if>
  4259. </xsl:if>
  4260. <!-- Schedule -->
  4261. <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)">
  4262. <out:variable name="run_target">
  4263. <out:choose>
  4264. <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', $class)">
  4265. <out:value-of select="'schedule/report.xts'"/>
  4266. </out:when>
  4267. <out:when test="contains(' exportDeployment importDeployment ', $class)">
  4268. <out:value-of select="'schedule/deployment.xts'"/>
  4269. </out:when>
  4270. <out:when test="contains(' agentDefinition agentDefinitionView ', $class)">
  4271. <out:value-of select="'schedule/agentDefinition.xts'"/>
  4272. </out:when>
  4273. <out:when test=" $class = 'dataMovementTaskAlias' ">
  4274. <out:value-of select="'schedule/dataMovementTask.xts'" />
  4275. </out:when>
  4276. <out:when test=" $class = 'queryServiceTask' ">
  4277. <out:value-of select="'schedule/generic.xts'" />
  4278. </out:when>
  4279. <out:otherwise>
  4280. <out:value-of select="concat('schedule/', $class, '.xts')"/>
  4281. </out:otherwise>
  4282. </out:choose>
  4283. </out:variable>
  4284. <xsl:call-template name="renderAction">
  4285. <xsl:with-param name="icon" select="'action_schedule.gif'"/>
  4286. <xsl:with-param name="tooltip" select="'IDS_ACT_SCHEDULE'"/>
  4287. <xsl:with-param name="morphlet" select="'{$run_target}'"/>
  4288. </xsl:call-template>
  4289. </out:if>
  4290. <out:if test="$ui-object/action[@name = 'shortcut' and @visible = 'main'] and not(cm:nid) and not($obj-class = 'shortcut')">
  4291. <xsl:call-template name="renderAction">
  4292. <xsl:with-param name="icon" select="'action_new_ref.gif'"/>
  4293. <xsl:with-param name="tooltip" select="'IDS_ACT_SHORTCUT_TIP'"/>
  4294. <xsl:with-param name="morphlet" select="'new_general.xts'"/>
  4295. <xsl:with-param name="newclass" select="'shortcut'"/>
  4296. </xsl:call-template>
  4297. </out:if>
  4298. </xsl:if>
  4299. <xsl:if test="@mode and @mode = 'tools'">
  4300. <!-- Test connection -->
  4301. <out:if test="$supportTestConnection = 'true' and ($canRead) and $canTraverse and $ui-object/action[@name = 'test']">
  4302. <xsl:call-template name="renderAction">
  4303. <xsl:with-param name="icon" select="'action_test_connection.gif'"/>
  4304. <xsl:with-param name="tooltip" select="'IDS_ACTION_TEST_CONNECTION_TIP'"/>
  4305. <xsl:with-param name="morphlet" select="'test_connection.xts'"/>
  4306. </xsl:call-template>
  4307. </out:if>
  4308. <!-- runOnce -->
  4309. <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']">
  4310. <out:variable name="run_target">
  4311. <out:choose>
  4312. <out:when test=" $class = 'dataMovementTaskAlias' ">runWithOptions/dataMovementTask.xts</out:when>
  4313. <out:when test=" $class = 'queryServiceTask' ">runWithOptions/generic.xts</out:when>
  4314. <out:when test=" $class = 'importDeployment' or $class = 'exportDeployment' ">runWithOptions/deployment.xts</out:when>
  4315. <out:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $class, ' '))">
  4316. <out:value-of select="'runWithOptions/report_advanced.xts'"/>
  4317. </out:when>
  4318. <out:otherwise>
  4319. <out:value-of select="concat('runWithOptions/', $class, '.xts')"/>
  4320. </out:otherwise>
  4321. </out:choose>
  4322. </out:variable>
  4323. <xsl:call-template name="renderAction">
  4324. <xsl:with-param name="icon" select="'action_run_once.gif'"/>
  4325. <xsl:with-param name="tooltip" select="'IDS_ACT_RUN_ONCE'"/>
  4326. <xsl:with-param name="morphlet" select="'{$run_target}'"/>
  4327. </xsl:call-template>
  4328. </out:if>
  4329. <!-- View Run History -->
  4330. <out:if test="$supportViewRunHistory = 'true' and $canRead and $canTraverse and $ui-object/action[@name = 'run_history']">
  4331. <xsl:call-template name="renderAction">
  4332. <xsl:with-param name="icon" select="'action_view_run_history.gif'"/>
  4333. <xsl:with-param name="tooltip" select="'IDS_IMG_VIEW_HISTORY_ALT'"/>
  4334. <xsl:with-param name="morphlet" select="'history/view.xts'"/>
  4335. </xsl:call-template>
  4336. </out:if>
  4337. <!-- view history details -->
  4338. <out:if test="$supportViewRunHistoryDetails = 'true'">
  4339. <out:variable name="js-encoded-history-path">
  4340. <out:value-of select="xtsext:javascriptencode(string($history-path))"/>
  4341. </out:variable>
  4342. <out:variable name="runHistoryDetail">
  4343. <xsl:choose>
  4344. <xsl:when test="@monitorServiceResponse = 'true'">
  4345. <xsl:value-of select="'history/view_executing_details.xts'"/>
  4346. </xsl:when>
  4347. <xsl:otherwise>
  4348. <out:choose>
  4349. <out:when test="$class = 'exportDeployment' or $class = 'importDeployment'">
  4350. <xsl:value-of select="'history/deployment_details.xts'"/>
  4351. </out:when>
  4352. <out:when test="$class = 'dataMovementTask' or $class = 'dataMovementTaskAlias'">
  4353. <xsl:value-of select="'history/dataMovement_details.xts'"/>
  4354. </out:when>
  4355. <out:otherwise>
  4356. <out:value-of select="'history/view_details.xts'"/>
  4357. </out:otherwise>
  4358. </out:choose>
  4359. </xsl:otherwise>
  4360. </xsl:choose>
  4361. </out:variable>
  4362. <out:variable name="tooltip">
  4363. <out:choose>
  4364. <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>
  4365. <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>
  4366. </out:choose>
  4367. </out:variable>
  4368. <xsl:call-template name="renderAction">
  4369. <xsl:with-param name="icon" select="'action_view_run_history_details.gif'"/>
  4370. <xsl:with-param name="customTooltip" select="'$tooltip'"/>
  4371. <xsl:with-param name="onclick">
  4372. var form = document.<xsl:value-of select="@viewOutputForm"/>;<xsl:text/>
  4373. <xsl:choose>
  4374. <xsl:when test="@maintain = 'true'">
  4375. form.ps_nav_op.value = 'maintain';<xsl:text/>
  4376. form.m_obj.value = '{$js-encoded-history-path}';<xsl:text/>
  4377. form.m_name.value = '{$js-encoded-name}';<xsl:text/>
  4378. form.m_class.value = '{$class}';<xsl:text/>
  4379. form.m.value = 'portal/{$runHistoryDetail}';<xsl:text/>
  4380. <xsl:if test="@monitorServiceResponse = 'true'">
  4381. form.eventID.value = '{xtsext:javascriptencode(string($eventID))}';<xsl:text/>
  4382. </xsl:if>
  4383. form.submit();<xsl:text/>
  4384. </xsl:when>
  4385. <xsl:otherwise>
  4386. actions('{$js-encoded-name}', '{$class}', '{$js-encoded-history-path}', '{$runHistoryDetail}');
  4387. </xsl:otherwise>
  4388. </xsl:choose>
  4389. </xsl:with-param>
  4390. </xsl:call-template>
  4391. </out:if>
  4392. </xsl:if>
  4393. <xsl:if test="@mode and @mode = 'portlets'">
  4394. <!-- Preview Portlet -->
  4395. <out:if test="$supportPreviewPortlet = 'true' and $canRead">
  4396. <xsl:call-template name="renderAction">
  4397. <xsl:with-param name="icon" select="'action_preview_portlet.gif'"/>
  4398. <xsl:with-param name="tooltip" select="'IDS_ACT_VIEW_PORTLET'"/>
  4399. <xsl:with-param name="onclick">
  4400. <out:text/>window.open('{$gateway}?b_action=xts.run&amp;m={$app}/cc.xts&amp;<out:text/>
  4401. <out:text/>m_portlet=/connection/portlet:path:{xtsext:protect(concat('storeID(%22', $obj-id, '%22)'),'url','storeID','getdata')}<out:text/>
  4402. <out:text/>&amp;rui=hh&amp;m_pagemode=preview','','');<out:text/>
  4403. </xsl:with-param>
  4404. </xsl:call-template>
  4405. </out:if>
  4406. </xsl:if>
  4407. <xsl:if test="@mode and (@mode = 'tools' or @mode = 'view_versions')">
  4408. <!-- Output versions -->
  4409. <out:if test="$supportViewOutputsAction = 'true' and $canRead and $canTraverse and $ui-object/action[@name = 'previous_versions']">
  4410. <out:variable name="js-encoded-reportVersion-path">
  4411. <out:value-of select="xtsext:javascriptencode(string($reportVersion-path))"/>
  4412. </out:variable>
  4413. <out:variable name="js-encoded-runHistoryRequestedTime">
  4414. <out:value-of select="xtsext:javascriptencode(string($runHistoryRequestedTime))"/>
  4415. </out:variable>
  4416. <xsl:call-template name="renderAction">
  4417. <xsl:with-param name="onclick">
  4418. var form = document.<xsl:value-of select="@viewOutputForm"/>;<xsl:text/>
  4419. form.reportVersionPath.value = '{$js-encoded-reportVersion-path}';<xsl:text/>
  4420. form.runHistoryRequestedTime.value = '{$js-encoded-runHistoryRequestedTime}';<xsl:text/>
  4421. <xsl:choose>
  4422. <xsl:when test="@stackUp = 'true'">
  4423. form.ps_nav_op.value = 'push';<xsl:text/>
  4424. form.m_obj.value = '{$js-encoded-path}';<xsl:text/>
  4425. form.m_name.value = '{$js-encoded-name}';<xsl:text/>
  4426. form.m.value = 'portal/{$versions_target}';<xsl:text/>
  4427. form.submit();<xsl:text/>
  4428. </xsl:when>
  4429. <xsl:otherwise>
  4430. actions('{$js-encoded-name}', '{$class}', '{$js-encoded-path}', '{$versions_target}');
  4431. </xsl:otherwise>
  4432. </xsl:choose>
  4433. </xsl:with-param>
  4434. <xsl:with-param name="icon" select="'action_view_report_output.gif'"/>
  4435. <xsl:with-param name="tooltip" select="'IDS_VIEW_OUTPUTS'"/>
  4436. </xsl:call-template>
  4437. </out:if>
  4438. </xsl:if>
  4439. <out:if test="$supportViewHotListAction = 'true' and $canTraverse">
  4440. <xsl:call-template name="renderAction">
  4441. <xsl:with-param name="icon" select="'action_view_AS_hotlist.gif'"/>
  4442. <xsl:with-param name="tooltip" select="'IDS_VIEW_AGS_HOTLIST_TIP'"/>
  4443. <xsl:with-param name="onclick">
  4444. <xsl:text>javascript:window.open(</xsl:text>
  4445. <xsl:text>"{$gateway}?b_action=cognosViewer&amp;ui.action=view&amp;ui.object={xtsext:javascriptencode( xtsext:protect( xtsext:urlencode(string($agsEventList-path)), 'url','searchPath','getdata'))}&amp;cv.header=false&amp;cv.toolbar=false&amp;ui.name={xtsext:javascriptencode(xtsext:protect(xtsext:urlencode(string(cm:parent/*/cm:defaultName)),'url','userData','getdata'))}&amp;ui.format={$output_format}{$rv-lang}&amp;ui.cafcontextid={$cafContextIDAGS}&amp;ui.backURL=" + sEncodedBackURL</xsl:text>
  4446. <xsl:text>, "", "menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480");</xsl:text>
  4447. </xsl:with-param>
  4448. </xsl:call-template>
  4449. </out:if>
  4450. <xsl:if test="@mode and @mode = 'tools'">
  4451. <out:if test="$supportPortletControlAction = 'true' and $class='portlet' and $canWrite and $canRead">
  4452. <!-- toggle the canCustomize property of the portlet -->
  4453. <out:variable name="canCustomize">
  4454. <out:choose>
  4455. <out:when test="cm:canCustomize='false'"><out:value-of select="'true'"/></out:when>
  4456. <out:otherwise><out:value-of select="'false'"/></out:otherwise>
  4457. </out:choose>
  4458. </out:variable>
  4459. <out:variable name="action_icon">
  4460. <out:choose>
  4461. <out:when test="cm:canCustomize='false'"><out:value-of select="'locked.gif'"/></out:when>
  4462. <out:otherwise><out:value-of select="'unlocked.gif'"/></out:otherwise>
  4463. </out:choose>
  4464. </out:variable>
  4465. <out:variable name="tooltip">
  4466. <out:choose>
  4467. <out:when test="cm:canCustomize = 'false'"><xts:string id="IDS_ACT_PORTLET_CONTROL_CUSTOMIZATION_UNLOCK"/></out:when>
  4468. <out:otherwise><xts:string id="IDS_ACT_PORTLET_CONTROL_CUSTOMIZATION_LOCK"/></out:otherwise>
  4469. </out:choose>
  4470. </out:variable>
  4471. <xsl:call-template name="renderAction">
  4472. <xsl:with-param name="icon" select="'{$action_icon}'"/>
  4473. <xsl:with-param name="customTooltip" select="'$tooltip'"/>
  4474. <xsl:with-param name="onclick">
  4475. var form = document.cfrmEntryAdmin;<xsl:text/>
  4476. form.ifrmcmd.value='save';<xsl:text/>
  4477. form.m_class.value='portlet';<xsl:text/>
  4478. form.m_obj.value="{$js-encoded-path}";<xsl:text/>
  4479. form.backURL.value="{$back-url}";<xsl:text/>
  4480. form.m_p_canCustomize.value='{$canCustomize}';<xsl:text/>
  4481. form.m.value = 'portal/submit.xts';<xsl:text/>
  4482. form.submit();<xsl:text/>
  4483. </xsl:with-param>
  4484. </xsl:call-template>
  4485. </out:if>
  4486. </xsl:if>
  4487. <!-- Render custom actions for the object currently in context if there are any -->
  4488. <!-- Define references to the context object that we care about -->
  4489. <out:variable name="obj" select="."/>
  4490. <out:variable name="target" select="./cm:target/*/*"/>
  4491. <out:for-each select="$ui-object/action[@type = 'custom']">
  4492. <!-- 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 -->
  4493. <out:variable name="qs">
  4494. <out:if test="objProperties/property">
  4495. <!-- Make an attempt to generate a well-formed http GET request given the specified url which may or may not be a cgi command -->
  4496. <out:choose>
  4497. <out:when test="contains(string(url), '=')">&amp;</out:when> <!-- cgi command with some existing query values -->
  4498. <out:when test="contains(string(url), '?')"></out:when> <!-- cgi command without query values -->
  4499. <out:otherwise>?</out:otherwise> <!-- some url! make sure there is a ? at the end before adding our query values -->
  4500. </out:choose>
  4501. <out:variable name="encoding">
  4502. <out:choose>
  4503. <out:when test="objProperties/@encode"><out:value-of select="objProperties/@encode"/></out:when>
  4504. <out:otherwise>utf-8</out:otherwise>
  4505. </out:choose>
  4506. </out:variable>
  4507. <!-- Build the query values -->
  4508. <out:for-each select="objProperties/property">
  4509. <out:if test="position() != 1">&amp;</out:if>
  4510. <out:value-of select="."/>=<xsl:text/>
  4511. <out:choose>
  4512. <!-- If this is a shortcut then use the properties of the object it points to -->
  4513. <out:when test="$obj-class = 'shortcut'">
  4514. <out:value-of select="xtsext:protect(xtsext:urlencode(string($target[local-name()= string(current())]), string($encoding)),'url',concat('NAME',string(.)),'getdata')"/>
  4515. </out:when>
  4516. <out:otherwise>
  4517. <out:value-of select="xtsext:protect(xtsext:urlencode(string($obj/*[local-name()= string(current())]), string($encoding)),'url',concat('NAME',string(.)),'getdata')"/>
  4518. </out:otherwise>
  4519. </out:choose>
  4520. </out:for-each>
  4521. </out:if>
  4522. </out:variable>
  4523. <xsl:call-template name="renderAction">
  4524. <xsl:with-param name="icon">{icon}</xsl:with-param>
  4525. <xsl:with-param name="customTooltip">tooltip[lang($productLocale)]</xsl:with-param>
  4526. <xsl:with-param name="onclick">none</xsl:with-param>
  4527. <xsl:with-param name="href">{url}{$qs}</xsl:with-param>
  4528. </xsl:call-template>
  4529. </out:for-each>
  4530. <out:variable name="objNameDisplay">
  4531. <out:value-of select="xtsext:enforceBTD($obj-name, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  4532. </out:variable>
  4533. <xsl:choose>
  4534. <xsl:when test="@mode and (@mode = 'main' or @mode='mysub')">
  4535. <!-- Actions -->
  4536. <td class="objectOptions" nowrap="nowrap">
  4537. <out:choose>
  4538. <out:when test="cm:nid or cm:nbid">
  4539. <out:choose>
  4540. <!-- NewsItem -->
  4541. <out:when test="cm:nid">
  4542. <out:choose>
  4543. <out:when test="$upfShortCut != '' or cm:upfProviderType = ''">
  4544. <!-- build the url -->
  4545. <out:variable name="daurl">
  4546. <out:value-of select="$s7gateway"/>?xmlcmd=&lt;GetPage>&lt;Template>ni<out:value-of select="$upfShortCut"/>_actions.utml&lt;/Template>&lt;/GetPage><out:text/>
  4547. <out:text/>&amp;id=<out:value-of select="cm:nid"/>
  4548. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  4549. <out:text/>&amp;LA=<out:value-of select="$productLocale"/>
  4550. <out:text/>&amp;back=<out:value-of select="$encoded-s7-back-url"/>
  4551. </out:variable>
  4552. <a href="{'{xtsext:protect(string($daurl),&quot;none&quot;,&quot;s7url&quot;,&quot;s7url&quot;)}'}">
  4553. <out:attribute name="title">
  4554. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4555. </out:attribute>
  4556. <out:attribute name="aria-label">
  4557. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4558. </out:attribute>
  4559. <xts:string id="IDS_ACT_MORE"/>
  4560. </a>
  4561. </out:when>
  4562. <out:otherwise>
  4563. <!-- build the url -->
  4564. <out:variable name="daurl">
  4565. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/><out:value-of select="'/upf_actions.xts'"/>
  4566. <out:text/>&amp;id=<out:value-of select="cm:nid"/>&amp;provider=<out:value-of select="cm:upfProviderType"/>
  4567. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  4568. <out:text/>&amp;LA=<out:value-of select="$productLocale"/>
  4569. <out:text/>&amp;back=<out:value-of select="xtsext:protect(string($encoded-s7-back-url),'none','s7url','s7url')"/>
  4570. </out:variable>
  4571. <a href="{'{$daurl}'}">
  4572. <out:attribute name="title">
  4573. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4574. </out:attribute>
  4575. <out:attribute name="aria-label">
  4576. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4577. </out:attribute>
  4578. <xts:string id="IDS_ACT_MORE"/>
  4579. </a>
  4580. </out:otherwise>
  4581. </out:choose>
  4582. </out:when>
  4583. <!-- NewsBox -->
  4584. <out:otherwise>
  4585. <!-- build the url -->
  4586. <out:variable name="daurl">
  4587. <out:value-of select="$s7gateway"/>?xmlcmd=&lt;GetPage>&lt;Template>nb<out:value-of select="$upfShortCut"/>_actions.utml&lt;/Template>&lt;/GetPage><out:text/>
  4588. <out:text/>&amp;isnewsbox=Y&amp;id=<out:value-of select="cm:nbsid"/>
  4589. <out:text/>&amp;LO=<out:value-of select="$contentLocale"/>
  4590. <out:text/>&amp;LA=<out:value-of select="$productLocale"/>
  4591. <out:text/>&amp;back=<out:value-of select="$encoded-s7-back-url"/>
  4592. </out:variable>
  4593. <a href="{'{xtsext:protect(string($daurl),&quot;none&quot;,&quot;s7url&quot;,&quot;s7url&quot;)}'}">
  4594. <out:attribute name="title">
  4595. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4596. </out:attribute>
  4597. <out:attribute name="aria-label">
  4598. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4599. </out:attribute>
  4600. <xts:string id="IDS_ACT_MORE"/>
  4601. </a>
  4602. </out:otherwise>
  4603. </out:choose>
  4604. </out:when>
  4605. <out:when test="starts-with(string($class),'powerPlay')">
  4606. <out:variable name="ppurl">
  4607. <out:value-of select="$gateway"/>?b_action=xts.run&amp;m=<out:value-of select="$app"/><out:value-of select="'/actions.xts'"/>
  4608. <out:text/>&amp;m_name=<out:value-of select="xtsext:protect(xtsext:urlencode(string($obj-name)),'url','userData','getdata')"/>
  4609. <out:text/>&amp;m_class=<out:value-of select="$obj-class"/>
  4610. <out:text/>&amp;ppBACK=<out:value-of select="xtsext:protect(string($encodedPPBack),'url','url','getdata')"/>
  4611. <out:text/>&amp;backURL=<out:value-of select="$encoded-back-url"/>
  4612. <out:text/>&amp;m_obj=<out:value-of select="xtsext:protect(xtsext:urlencode(string($obj-path)),'url','searchPath','getdata')"/>
  4613. <out:text/>&amp;m_path=<out:value-of select="xtsext:protect(xtsext:urlencode(string($m_path)),'url','searchPath','getdata')"/>
  4614. </out:variable>
  4615. <a href="{'{$ppurl}'}">
  4616. <out:attribute name="title">
  4617. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4618. </out:attribute>
  4619. <out:attribute name="aria-label">
  4620. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4621. </out:attribute>
  4622. <xts:string id="IDS_ACT_MORE"/>
  4623. </a>
  4624. </out:when>
  4625. <!-- CRN object -->
  4626. <out:otherwise>
  4627. <a href="#">
  4628. <!-- For shortcuts we always use the current object's class, name, and path to launch the "Actions" dialog -->
  4629. <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>
  4630. <out:attribute name="title">
  4631. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4632. </out:attribute>
  4633. <out:attribute name="aria-label">
  4634. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4635. </out:attribute>
  4636. <xts:string id="IDS_ACT_MORE"/>
  4637. </a>
  4638. </out:otherwise>
  4639. </out:choose>
  4640. </td>
  4641. </xsl:when>
  4642. <xsl:otherwise>
  4643. <xsl:variable name="useActions">actions.xts</xsl:variable>
  4644. <!-- Actions -->
  4645. <out:if test="$supportAllActionsAction">
  4646. <td class="objectOptions" nowrap="nowrap">
  4647. <a href="#">
  4648. <!-- For shortcuts we always use the current object's class, name, and path to launch the "Actions" dialog -->
  4649. <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>
  4650. <out:attribute name="title">
  4651. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4652. </out:attribute>
  4653. <out:attribute name="aria-label">
  4654. <xts:string id="IDS_ACT_MORE_ACTIONS"><xts:param name="objectName"><out:value-of select="$objNameDisplay"/></xts:param></xts:string>
  4655. </out:attribute>
  4656. <xts:string id="IDS_ACT_MORE"/>
  4657. </a>
  4658. </td>
  4659. </out:if>
  4660. </xsl:otherwise>
  4661. </xsl:choose>
  4662. </tr>
  4663. </table>
  4664. </out:template>
  4665. </xsl:template>
  4666. <!--
  4667. Template - mt:renderAction:
  4668. This template renders the hyperlinked action images for an individual entry.
  4669. Operation:
  4670. Outputs the hyperlinked action images for an entry.
  4671. -->
  4672. <xsl:template name="renderAction">
  4673. <xsl:param name="onclick" select="''"/>
  4674. <xsl:param name="href" select="''"/>
  4675. <xsl:param name="icon"/>
  4676. <xsl:param name="flippingIcon" select="false()"/>
  4677. <xsl:param name="tooltip"/>
  4678. <xsl:param name="customTooltip"/>
  4679. <xsl:param name="morphlet" select="''"/>
  4680. <xsl:param name="newclass" select="''"/>
  4681. <td>
  4682. <a>
  4683. <xsl:attribute name="href">
  4684. <xsl:choose>
  4685. <xsl:when test="$href != ''"><xsl:value-of select="$href"/></xsl:when>
  4686. <xsl:otherwise>#</xsl:otherwise>
  4687. </xsl:choose>
  4688. </xsl:attribute>
  4689. <xsl:if test="$onclick != 'none'">
  4690. <xsl:attribute name="onclick">
  4691. <xsl:choose>
  4692. <xsl:when test="$onclick != ''"><xsl:value-of select="$onclick"/></xsl:when>
  4693. <xsl:otherwise>actions('{$js-encoded-name}', '{$class}', '{$js-encoded-path}', '<xsl:value-of select="$morphlet"/>', '<xsl:value-of select="$newclass"/>');</xsl:otherwise>
  4694. </xsl:choose>
  4695. </xsl:attribute>
  4696. </xsl:if>
  4697. <img height="16" width="16" border="0">
  4698. <xsl:attribute name="src">{$image_root}<xsl:value-of select="$icon"/></xsl:attribute>
  4699. <out:attribute name="alt">
  4700. <!-- It is unlikely that we would want to show a tooltip AND a custom tooltip together, but heck it can be done! -->
  4701. <xsl:if test="$tooltip != ''">
  4702. <xts:string id="{$tooltip}"/>
  4703. </xsl:if>
  4704. <xsl:if test="$customTooltip != ''">
  4705. <out:value-of select="{$customTooltip}"/>
  4706. </xsl:if>
  4707. <out:value-of select="' - '"/>
  4708. <out:value-of select="xtsext:enforceBTD($toolTipName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  4709. </out:attribute>
  4710. <xsl:if test="$flippingIcon">
  4711. <out:attribute name="class">
  4712. <out:value-of select="'flippingImages'" />
  4713. </out:attribute>
  4714. </xsl:if>
  4715. </img>
  4716. </a>
  4717. </td>
  4718. </xsl:template>
  4719. <!--
  4720. Define contexts to be used when copying/moving data. This allows you to copy/move data between tools with compatable contexts.
  4721. Context is determined by the objectClass of the container object.
  4722. 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
  4723. not be able to paste any objects there.
  4724. -->
  4725. <xsl:template name="mt:contentcontext">
  4726. <out:variable name="containerobjcls">
  4727. <out:choose>
  4728. <out:when test="/root/cmContent/cm:queryResponse/cm:queryReply[2]/*/cm:objectClass">
  4729. <out:value-of select="/root/cmContent/cm:queryResponse/cm:queryReply[2]/*/cm:objectClass"/>
  4730. </out:when>
  4731. <out:when test="/root/path/cm:queryResponse/*/cm:objectClass">
  4732. <out:value-of select="/root/path/cm:queryResponse/*/cm:objectClass"/>
  4733. </out:when>
  4734. <out:when test="/root/content/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass">
  4735. <out:value-of select="/root/content/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass"/>
  4736. </out:when>
  4737. <out:when test="/root/navContent/*[local-name()='searchResponse']/*[local-name()='scopeInfo']/*[local-name()='type']">
  4738. <out:value-of select="/root/navContent/*[local-name()='searchResponse']/*[local-name()='scopeInfo']/*[local-name()='type']"/>
  4739. </out:when>
  4740. <out:otherwise>
  4741. <out:text>unknown</out:text>
  4742. </out:otherwise>
  4743. </out:choose>
  4744. </out:variable>
  4745. <out:choose>
  4746. <out:when test="$containerobjcls = 'content' or $containerobjcls = 'package' or $containerobjcls = 'folder'">
  4747. <out:text>content</out:text>
  4748. </out:when>
  4749. <out:when test="$containerobjcls = 'dataSourceConnection'">
  4750. <out:text>datasourcecon</out:text>
  4751. </out:when>
  4752. <out:when test="$containerobjcls = 'dataSource'">
  4753. <out:text>datasrc</out:text>
  4754. </out:when>
  4755. <out:when test="$containerobjcls = 'namespace' or $containerobjcls = 'namespaceFolder'">
  4756. <out:text>directory</out:text>
  4757. </out:when>
  4758. <out:when test="$containerobjcls = 'account'">
  4759. <out:text>user</out:text>
  4760. </out:when>
  4761. <out:when test="$containerobjcls = 'adminFolder'">
  4762. <out:text>admin</out:text>
  4763. </out:when>
  4764. <out:when test="$containerobjcls = 'portletFolder'">
  4765. <out:text>portletprods</out:text>
  4766. </out:when>
  4767. <out:when test="$containerobjcls = 'portletProducer'">
  4768. <out:text>portlets</out:text>
  4769. </out:when>
  4770. <out:when test="$containerobjcls = 'portalSkinFolder'">
  4771. <out:text>styles</out:text>
  4772. </out:when>
  4773. <out:when test="$containerobjcls = 'configuration' or $containerobjcls = 'configurationFolder'">
  4774. <out:text>configObj</out:text>
  4775. </out:when>
  4776. <out:when test="$containerobjcls = 'subscriptionFolder'">
  4777. <out:text>subscription</out:text>
  4778. </out:when>
  4779. <out:otherwise>
  4780. <!-- Unknown context - Copy/Cut/Paste buttons will be disabled. -->
  4781. <out:text>unknown</out:text>
  4782. </out:otherwise>
  4783. </out:choose>
  4784. </xsl:template>
  4785. <xsl:template match="*">
  4786. <xsl:copy>
  4787. <xsl:copy-of select="@*"/>
  4788. <xsl:apply-templates/>
  4789. </xsl:copy>
  4790. </xsl:template>
  4791. </xsl:stylesheet>