123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2015
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!-- Load predefined actions map ============================================================== -->
- <xts:block id="getActions" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_actions.xslt"/>
- </xts:block>
- <!-- CM content request ==================================================================== -->
- <xts:block id="getContent" processor="XSLT" type="exec" mode="interpret" dependency="formlogic_init">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- exclude-result-prefixes="cml send cm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search><xsl:value-of select="key('env-param','m_obj')"/></cm:search>
- <cm:properties>
- <!-- If custom actions exist for this object then retrieve the following additional properties in case they are required by the custom actions -->
- <xsl:if test="/root/system/param[@name='base-object-actions']/actions/object[@class=/root/env/param[@name='m_class']]/action[@type='custom']">
- <cm:property name="usage"/>
- <cm:property name="disabled"/>
- </xsl:if>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="metadataModelPackage"/>
- <cm:property name="effectiveUserCapabilities"/>
- <cm:property name="uri"/>
- <cm:property name="base"/>
- <cm:property name="searchPath"/>
- <cm:property name="parent"/>
- <cm:property name="hasChildren"/>
- <cm:property name="modificationTime"/>
- <cm:property name="target"/><!-- shortcut objects -->
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="mostRecentEventList"/>
- <cm:property name="gateway"/>
- <cm:property name="options"/>
- <cm:property name="cubeContentName"/>
- <cm:property name="hasPrompts"/>
- <cm:property name="userInterfaces"/>
- <cm:property name="registration"/>
- <cm:property name="storeID"/>
- <cm:property name="allowNotification"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionPrompt"/>
- <xsl:if test="key('env-param','m_class')='contentManagerService'">
- <cm:property name="startAsActive"/>
- <cm:property name="runningState"/>
- </xsl:if>
- <xsl:if test="key('env-param','m_class')='portlet'">
- <cm:property name="canCustomize"/>
- </xsl:if>
- <cm:property name="documentType"/>
- <xsl:if test="key('env-param','m_class')='launchable'">
- <cm:property name="launchableType"/>
- </xsl:if>
- </cm:properties>
- <cm:options schemaInfo="true">
- <cm:refProps>
- <cm:refProp refPropName="parent">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:refProp>
- <!-- Get target info for shortcut objects -->
- <cm:refProp refPropName="target">
- <cm:properties>
- <cml:prop-shortcut-target/>
- <cm:property name="gateway"/>
- <cm:property name="documentType"/>
- <cm:property name="permissions"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="mostRecentEventList"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionPrompt"/>
- <cm:property name="launchableType"/>
- <cm:property name="userInterfaces"/>
- <cm:property name="allowNotification"/>
- </cm:properties>
- </cm:refProp>
- <!-- Get base info for reportView objects -->
- <cm:refProp refPropName="base">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="permissions"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="mostRecentEventList"/>
- </cm:properties>
- </cm:refProp>
- <!-- package for report objects -->
- <cm:refProp refPropName="metadataModelPackage">
- <cm:properties>
- <cm:property name="effectiveUserCapabilities"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- <xsl:if test="key('env-param', 'm_class')='dataSource'">
- <!-- For CMM: get the datasource connectionstring to verify some conditions.-->
- <xts:append>
- <theDataSourceConnection>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:requests>
- <cm:query>
- <cm:search><xsl:value-of select="key('env-param','m_obj')"/>/*</cm:search>
- <cm:properties>
- <!-- include the cml variables -->
- <cm:property name="connectionString"/>
- <!-- If we are doing search then request ancestors too -->
- <xsl:if test="/root/search/expression">
- <cm:property name="ancestors"/>
- </xsl:if>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </theDataSourceConnection>
- </xts:append>
- <!-- check the LWM packages -->
- <xts:append>
- <xts:transform src="transforms/fm/fm-params.xslt" processor="XSLT">
- <send:request provider="metadataService" faultBlock="ignoreFault">
- <md1:updateMetadata xmlns:md1="http://developer.cognos.com/schemas/metadataService/1">
- <request>
- <xts:transform name="XMLEncode">
- <mdprovider type="transientAction" action="execute" seq="1">
- <transaction saved="false" seq="1">
- <action seq="1" type="IsLWM">
- <inputparams>
- <param seq="1" type="i18nstring">
- <value><xsl:value-of select="key('env-param','m_name')"/></value>
- </param>
- </inputparams>
- <domchanges/>
- <result success="t">
- <outputparams/>
- </result>
- </action>
- </transaction>
- </mdprovider>
- </xts:transform>
- </request>
- </md1:updateMetadata>
- </send:request>
- </xts:transform>
- </xts:append>
- </xsl:if>
- <!-- for account object we need to get the permissions on the namespace -->
- <xsl:if test="key('env-param','m_class')='account'">
- <xts:append>
- <namespacePermissions>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*/*[local-name()='ancestors']/*[local-name()='ancestorInfo' and ./*[local-name()='objectClass']='namespace']/*[local-name()='searchPath']/node()"/>
- </cm:search>
- <cm:properties>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </namespacePermissions>
- </xts:append>
- </xsl:if>
- <!-- for dispatcher object we need to see if a report service or batch report service is installed -->
- <xsl:if test="key('env-param', 'm_class')='dispatcher'">
- <xts:append>
- <theDispatcher>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:requests>
- <cm:query>
- <cm:search><xsl:value-of select="key('env-param','m_obj')"/>/installedComponent[@componentID='reportService' or @componentID='batchReportService']</cm:search>
- <cm:properties>
- <cm:property name="componentID"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </theDispatcher>
- </xts:append>
- </xsl:if>
- <xsl:if test="/root/env/param[@name='m_class']='package' or /root/env/param[@name='m_class']='metricsPackage'">
- <xts:append>
- <packageConfiguration>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search><xsl:value-of select="key('env-param','m_obj')"/>/packageConfiguration</cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </packageConfiguration>
- </xts:append>
- </xsl:if>
- <xsl:if test="/root/env/param[@name='m_class']='package'">
- <xts:append>
- <modelInfo>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search><xsl:value-of select="key('env-param','m_obj')"/>/model[last()]</cm:search>
- <cm:properties>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </modelInfo>
- <xts:transform src="transforms/fm/fm-params.xslt" processor="XSLT">
- <send:request provider="metadataService" testBlock="testCanEditPackageResponse" faultBlock="ignoreFault">
- <md1:updateMetadata xmlns:md1="http://developer.cognos.com/schemas/metadataService/1">
- <request>
- <xts:transform name="XMLEncode">
- <mdprovider type="transientAction" action="execute">
- <transaction saved="false" seq="1">
- <action seq="1" type="CanEditPackageFromPortal">
- <inputparams>
- <param seq="1" type="i18nstring">
- <value><xsl:value-of select="key('env-param','m_obj')"/></value>
- </param>
- </inputparams>
- <domchanges/>
- <result success="t">
- <outputparams>
- <param seq="0" type="i18nstring">
- <value/>
- </param>
- </outputparams>
- </result>
- </action>
- </transaction>
- </mdprovider>
- </xts:transform>
- </request>
- </md1:updateMetadata>
- </send:request>
- </xts:transform>
- </xts:append>
- </xsl:if>
-
- <xts:append>
- <generalConfigSettings>
- <xts:function name="getConfiguration">
- <xts:param name="portal.launchBusinessInsightChromeless"/>
- </xts:function>
- </generalConfigSettings>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="testCanEditPackageResponse" type="test">
- <md1:updateMetadataResponse xmlns:md1="http://developer.cognos.com/schemas/metadataService/1">
- <metadata><response><status mode="ro" primary="true" success="true"/><outputparams><param seq="1" type="i18nstring">/metadataUIService?pid=importWizard&amp;packageLocation=/content/package[@name=&apos;MyNewPackage&apos;]</param></outputparams></response></metadata>
- </md1:updateMetadataResponse>
- </xts:block>
- <xts:block id="ignoreFault" type="fault">
- <error>safe to ignore</error>
- </xts:block>
- <!--
- Update the m_path variable if it is not defined or is blank or if we are dealing with a portlet.
- -->
- <xts:block id="getPath" type="exec" mode="interpret" processor="XSLT" condition=".[not(/root/env/param[@name='m_path']) or /root/env/param[@name='m_path']='' or /root/env/param[@name='m_class']='portlet']" mandatory="false" dependency="getContent">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:update select="/root/env/param[@name='m_path']">
- <xsl:element name="param">
- <xsl:attribute name="name"><xsl:value-of select="'m_path'"/></xsl:attribute>
- <xsl:value-of select="/root/cm:queryResponse/*/cm:ancestors/*[position()=last()]/cm:searchPath"/>
- </xsl:element>
- </xts:update>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- Get Content2 retrieves the output any output or schedule for the object or shortcut.
- -->
- <xts:block id="getContent2" dependency="getPath" processor="XSLT" type="exec" mode="interpret">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="runnables" match="/root/system/param[@name='ui_objects']/object[@runnable='T']" use="@class"/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:variable name="passedClass">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_class'] and /root/env/param[@name='m_class']!='shortcut'"><xsl:value-of select="/root/env/param[@name='m_class']"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/cm:queryResponse/*/cm:target/*/cm:objectClass"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="target-obj">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_obj'] and /root/env/param[@name='m_class'] != 'shortcut'"><xsl:value-of select="/root/env/param[@name='m_obj']"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/cm:queryResponse/*/cm:target/*/cm:searchPath"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- This request is intended to determine if a schedule currently exists for a report, query or job -->
- <xsl:if test="key('runnables', $passedClass)">
- <xts:append>
- <childObjects>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <cm:query>
- <cm:search><xsl:value-of select="$target-obj"/>/schedule</cm:search>
- <cm:properties>
- <cm:property name="taskID"/>
- <cm:property name="active"/>
- </cm:properties>
- </cm:query>
- <cm:query>
- <cm:search><xsl:value-of select="$target-obj"/>/*[@objectClass='history']</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- </cm:properties>
- </cm:query>
- <cm:query>
- <cm:search><xsl:value-of select="$target-obj"/>/*[@objectClass='reportCache']</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </childObjects>
- </xts:append>
- </xsl:if>
- <xsl:if test="($passedClass='agentDefinition' or $passedClass='agentDefinitionView' or $passedClass='report' or $passedClass='reportView' or $passedClass='query' or $passedClass='analysis' or $passedClass='analysisView')">
- <xts:append>
- <send:request provider="deliveryService" faultBlock="ignoreFault" >
- <dls:queryNotification xmlns:dls="http://developer.cognos.com/schemas/deliveryService/1"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <objectPath xsi:type="bus:searchPathSingleObject">
- <xsl:value-of select="$target-obj"/>
- </objectPath>
- </dls:queryNotification>
- </send:request>
- <userEmail>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <cm:query>
- <cm:search>~</cm:search>
- <cm:properties>
- <cm:property name="email"/>
- <cm:property name="notificationEMail"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </userEmail>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="missingObject" mode="output" processor="XSLT" type="exec" dependency="getContent getPath getContent2 formlogic_init getActions" mimeType="text/html" condition=".[not(/root/*[local-name()='queryResponse']/*)]" mandatory="false" path="/portal/missing_object.xml">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- </xts:block>
- <xts:block id="format" mode="output" processor="XSLT" type="exec" dependency="getContent getPath getContent2 formlogic_init getActions" mimeType="text/html" condition=".[/root/*[local-name()='queryResponse']/*]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:dls="http://developer.cognos.com/schemas/deliveryService/1"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xsl cm pf pm lyt dp df cf cp utml xts xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" />
-
- <!-- Global variables ======================== -->
- <pf:variables/>
- <pf:documentFormats/>
- <xsl:variable name="mname" select="'actions.xts'"/>
- <!-- These vars are required by global templates that generate an icon and a url for a CM entry -->
- <xsl:variable name="back-url" select="string(key('env-param', 'backURL'))"/>
- <xsl:variable name="cmd-form" select="'pform'"/>
- <xsl:variable name="edit-form" select="'pform'"/>
- <pm:permissions origin="/root/cm:queryResponse/*/"/>
- <!-- Object reference -->
- <xsl:variable name="hasChildren"><xsl:value-of select="/root/cm:queryResponse/*/cm:hasChildren"/></xsl:variable>
- <xsl:variable name="obj-ref" select="/root/cm:queryResponse/*"/>
- <xsl:variable name="obj-class"><xsl:value-of select="/root/cm:queryResponse/*/cm:objectClass"/></xsl:variable>
- <xsl:variable name="effectiveUserCapabilities">
- <xsl:call-template name="calEffectiveObjectCapabilities">
- <xsl:with-param name="capabilities" select="/root/cm:queryResponse/*/cm:effectiveUserCapabilities | /root/cm:queryResponse/*/*/*/cm:effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="hasRegistration" select="/root/cm:queryResponse/*/cm:registration != ''"/>
- <xsl:variable name="obj-path"><xsl:value-of select="/root/cm:queryResponse/*/cm:ancestors/*[position()=last()]/cm:searchPath"/></xsl:variable>
- <xsl:variable name="obj-id"><xsl:value-of select="/root/cm:queryResponse/*/cm:storeID"/></xsl:variable>
- <xsl:variable name="sys-ui-obj" select="key('ui-object', /root/cm:queryResponse/*/cm:objectClass)"/>
- <xsl:variable name="sys-ui-tobj" select="key('ui-object', /root/cm:queryResponse/*/cm:target/*/cm:objectClass)"/>
- <xsl:variable name="target-obj-ref" select="/root/cm:queryResponse/*/cm:target/*"/>
- <xsl:variable name="target-obj-class"><xsl:value-of select="/root/cm:queryResponse/*/cm:target/*/cm:objectClass"/></xsl:variable>
- <xsl:variable name="target-name" select="/root/cm:queryResponse/*/cm:target/*/cm:defaultName"/>
- <xsl:variable name="obj-name" select="/root/cm:queryResponse/*/cm:defaultName"/>
- <xsl:variable name="ui-obj-act" select="key('ui-object-actions', /root/cm:queryResponse/*/cm:objectClass)"/>
- <xsl:variable name="ui-tobj-act" select="key('ui-object-actions', /root/cm:queryResponse/*/cm:target/*/cm:objectClass)"/>
- <xsl:variable name="parent-obj-class" select="/root/cm:queryResponse/*/cm:parent/*/cm:objectClass"/>
- <xsl:variable name="parent-searchPath" select="/root/cm:queryResponse/*/cm:parent/*/cm:searchPath"/>
- <xsl:variable name="userInterfaces" select="/root/cm:queryResponse/*/cm:userInterfaces/cm:uiComponentEnum"/>
- <xsl:variable name="targetUserInterfaces" select="$target-obj-ref/cm:userInterfaces/cm:uiComponentEnum"/>
- <!-- permissions for the object -->
- <!--
- The following variables (currentCanRead / currentCanWrite) contain the permissions for shortcuts, when necessary.
- Otherwise, they can be seen as duplicates to the canRead and canWrite variables; this makes condition coding simpler.
- -->
- <xsl:variable name="currentCanRead" select="$canReadShort='true'"/>
- <xsl:variable name="currentCanWrite" select="$canWriteShort='true'"/>
- <xsl:variable name="canWriteOnParent" select="contains(/root/cm:queryResponse/*/cm:parent/*/cm:permissions,'write')"/>
- <xsl:variable name="canReadOnParent" select="contains(/root/cm:queryResponse/*/cm:parent/*/cm:permissions,'read')"/>
- <xsl:variable name="is3rdPartyNSEntry" select="starts-with(/root/cm:queryResponse/*/cm:searchPath,'CAMID(') and not(starts-with(/root/cm:queryResponse/*/cm:searchPath,'CAMID(":')) and not(starts-with(/root/cm:queryResponse/*/cm:searchPath, concat(/root/session/param[@name='e_hp'],'/folder')))"/>
- <xsl:variable name="history">
- <xsl:value-of select="/root/childObjects/cm:queryResponse/cm:queryReply[2]/cm:history/*"/>
- </xsl:variable>
- <!-- An entry is considered "dangling" if it is:
- - a shortcut to a none existent object
- - a custom view of a none existent report or query
- - a shortcut to a custom view of a none existent report or query
- -->
- <xsl:variable name="isDangling" select="($obj-ref/cm:objectClass = 'shortcut' and ($obj-ref/cm:target/*/cm:objectClass = 'nil' or $obj-ref/cm:target/*/cm:base/*/cm:objectClass = 'nil' or ($obj-ref/cm:target/*/cm:base and not($obj-ref/cm:target/*/cm:base/*/cm:objectClass)))) or (($obj-ref/cm:objectClass = 'reportView' or $obj-ref/cm:objectClass = 'agentDefinitionView' or $obj-ref/cm:objectClass='powerPlay8ReportView') and ($obj-ref/cm:base/*/cm:objectClass = 'nil' or not($obj-ref/cm:base/*/cm:objectClass)))"/>
- <xsl:variable name="sys-ui-target-icon">
- <xsl:choose>
- <xsl:when test="not($sys-ui-tobj)"><xsl:value-of select="$sys-ui-obj/@icon"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$sys-ui-tobj/@icon"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="ui-target-obj-act">
- <xsl:choose>
- <xsl:when test="not($ui-tobj-act) or $obj-class = 'drillPath'">
- <xsl:for-each select="$ui-obj-act/action">
- <xsl:value-of select="concat(@name,' ')"/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$ui-tobj-act/action">
- <xsl:value-of select="concat(@name,' ')"/>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="ui-obj-act-exclude">
- <xsl:choose>
- <xsl:when test="$ui-tobj-act">
- <xsl:value-of select="concat(' ', $ui-tobj-act/@exclude, ' ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat(' ', $ui-obj-act/@exclude, ' ')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="target-search-path">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-obj-ref/cm:searchPath"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:searchPath"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="target-store-id">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-obj-ref/cm:storeID"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:storeID"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="tClass">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-obj-class"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-class"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="launchableType">
- <xsl:choose>
- <xsl:when test="$obj-class = 'shortcut' "><xsl:value-of select="$target-obj-ref/cm:launchableType"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:launchableType"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="defaultName">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-name"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="url-encoded-path" select="xtsext:protect(xtsext:urlencode(string($target-search-path)),'url','searchPath','getdata')"/>
- <xsl:variable name="pp-url-encoded-path" select="xtsext:urlencode(string($target-search-path))"/>
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_ACTIONS_TITLE">
- <xts:param name="objectName">
- <span lang="{$contentLocale}"><xsl:value-of select="xtsext:enforceBTD(key('env-param', 'm_name'), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <xsl:variable name="uri">
- <xsl:if test="$tClass='URL'">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-obj-ref/cm:uri"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:uri"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <!-- This format should be used for document objects only -->
- <xsl:variable name="formatDoc">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$documentFormats/format[@name = $target-obj-ref/cm:documentType]/@name"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$documentFormats/format[@name = $obj-ref/cm:documentType]/@name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- re:WO 1918 don't display bad formats, for previous versions even if the current format is bad there could be other versions that are valid so we need to display the link-->
- <xsl:variable name="hasPrevVersion">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)">
- <xsl:choose>
- <xsl:when test="$target-obj-class='powerPlay8Report' or $target-obj-class='powerPlay8ReportView'">
- <xsl:value-of select="$target-obj-ref/cm:defaultOutputFormat/cm:powerPlay8OutputFormatEnum"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$target-obj-ref/cm:defaultOutputFormat/cm:string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$obj-class='powerPlay8Report' or $obj-class='powerPlay8ReportView'">
- <xsl:value-of select="$obj-ref/cm:defaultOutputFormat/cm:powerPlay8OutputFormatEnum"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$obj-ref/cm:defaultOutputFormat/cm:string"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="documentType">
- <xsl:choose>
- <xsl:when test="$obj-class = 'shortcut' "><xsl:value-of select="$target-obj-ref/cm:documentType"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:documentType"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="ppreportgateway">
- <xsl:if test="starts-with(string($obj-class),'powerPlay') or ($obj-class='shortcut' and starts-with(string($target-obj-class),'powerPlay'))">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-obj-ref/cm:gateway"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:gateway"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="ppcubecontentname">
- <xsl:if test="starts-with(string($obj-class),'powerPlay') or ($obj-class='shortcut' and starts-with(string($target-obj-class),'powerPlay'))">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling)"><xsl:value-of select="$target-obj-ref/cm:cubeContentName"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-ref/cm:cubeContentName"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="ppreportprompt">
- <xsl:if test="starts-with(string($obj-class),'powerPlay') or ($obj-class='shortcut' and starts-with(string($target-obj-class),'powerPlay'))">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling) and string($target-obj-ref/cm:hasPrompts) = 'true'">
- <xsl:value-of select="$target-obj-ref/cm:hasPrompts"/>
- </xsl:when>
- <xsl:otherwise><xsl:if test="$obj-ref/cm:hasPrompts = 'true'">
- <xsl:value-of select="$obj-ref/cm:hasPrompts"/></xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="pp8reportprompt">
- <xsl:if test="starts-with(string($obj-class),'powerPlay8') or ($obj-class='shortcut' and starts-with(string($target-obj-class),'powerPlay8'))">
- <xsl:choose>
- <xsl:when test="$obj-class='shortcut' and not($isDangling) and /root/*[local-name()='queryResponse']/*/*[local-name()='target']/*/*[local-name()='options']/*/*[name='prompt']">
- <xsl:value-of select="/root/*[local-name()='queryResponse']/*/*[local-name()='target']/*/*[local-name()='options']/*/*[name='prompt']/value"/>
- </xsl:when>
- <xsl:when test="/root/*[local-name()='queryResponse']/*[local-name()='powerPlay8Report']/*[local-name()='options']/*/*[name='prompt']">
- <xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='powerPlay8Report']/*[local-name()='options']/*/*[name='prompt']/value"/>
- </xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="ppBACK">
- <xsl:choose>
- <xsl:when test="key('env-param','ppBACK')">
- <xsl:value-of select="key('env-param','ppBACK')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','backURL')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="notifyStatus" select="/root/queryNotificationResponse /result/details/*[substring-after(@xsi:type,':')='asynchDetailAgentNotificationStatus']"/>
- <xsl:variable name="userHasEmail" select="/root/userEmail/cm:queryResponse/cm:queryReply/cm:account/cm:email!='' or /root/userEmail/cm:queryResponse/cm:queryReply/cm:account/cm:notificationEMail!=''"/>
- <xsl:variable name="url-encoded-id"><pf:idToSearchPathForURL source="/root/cm:queryResponse/*/cm:storeID"/></xsl:variable>
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test=" /root/cm:queryResponse/*/cm:objectClass = 'shortcut' "><xsl:value-of select="/root/cm:queryResponse/*/cm:target/*/cm:objectClass[1]"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/cm:queryResponse/*/cm:objectClass"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="action">
- <xsl:call-template name="gen-action">
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="object" select="/root/cm:queryResponse/*"/>
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="targetUserInterfaces" select="$targetUserInterfaces"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="actionString">
- <xsl:call-template name="gen-action-string">
- <xsl:with-param name="action" select="$action"/>
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="targetUserInterfaces" select="$targetUserInterfaces"/>
- <xsl:with-param name="documentType" select="$documentType"/>
- <xsl:with-param name="launchableType" select="$launchableType"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="defaultMorphlet"><pf:getDefaultMorphletForObject objectClass="$class"/></xsl:variable>
- <xsl:variable name="fromSchedulingTool" select="key('env-param','from_schedule_tool') = 'true'"/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
- <dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/><!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <script language="javascript">
- function doUnregister()
- {
- if (confirm("<xts:string id="IDS_CONF_UNREGISTER" encode="javascript"/>"))
- action("dialog_action_result.xts", "unregister");
- }
- function doDelete()
- {
- if ( confirm("<xts:string id="IDS_CONF_DELETE_SINGLE" encode="javascript"/>") )
- action("submit.xts", "delete");
- }
- function doClearCache()
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_CLEAR_CACHE" encode="javascript"/>") )
- {
- <xsl:if test="$target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- document.pform.m_obj.value=document.pform.m_obj.value+'/reportCache';
- </xsl:if>
- action("submit.xts", "delete");
- }
- }
- function doRemoveSchedule()
- {
- if ( confirm("<xts:string id="IDS_CONF_SCHED_REMOVE" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "remove");
- }
- }
- function enableRDSADschedule()
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_ENABLE_SCHED_RDSAD" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts","enable");
- }
- }
- function disableRDSADschedule()
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_DISABLE_SCHED_RDSAD" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts","disable");
- }
- }
- function doModifyPackageConfiguration()
- {
- document.pform.m_obj.value = "<xsl:value-of select="xtsext:javascriptencode(string(/root/packageConfiguration/*/*/cm:searchPath))"/>";
- document.pform.m_class.value = "<xsl:value-of select="xtsext:javascriptencode(string(/root/packageConfiguration/*/*/cm:objectClass))"/>";
- document.pform.ps_nav_op.value = "maintain";
- document.pform.m.value = "<xsl:value-of select="$app"/>/" + "properties_packageconfiguration.xts";
- document.pform.submit();
- }
- function doRemovePackageConfiguration()
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_DELETE_PACKAGECONFIGURATION" encode="javascript"/>") )
- {
- <xsl:if test="string(/root/packageConfiguration/*/*/cm:searchPath)!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string(/root/packageConfiguration/*/*/cm:searchPath))"/>';
- </xsl:if>
- action('submit.xts', 'delete');
- }
- }
- function doResetAccount()
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_RESET_ACCOUNT" encode="javascript"/>") )
- {
- action('submit.xts', 'deleteAccount');
- }
- }
- function doActivate()
- {
- if ( confirm("<xts:string id="IDS_ACTION_CONFIRM_ACTIVATE" encode="javascript"/>"))
- {
- action("dialog_action_result.xts", "activate");
- }
- }
- function doAddNotification(rpt)
- {
- if (rpt)
- {
- var msg;
- if ("<xsl:value-of select="xtsext:javascriptencode(/root/userEmail/cm:queryResponse/cm:queryReply/cm:account/cm:notificationEMail)"/>" != "")
- msg = "<xts:string id="IDS_ACT_CONF_ADD_ALERT" encode="javascript"><xts:param name="email"><xsl:value-of select="xtsext:javascriptencode(/root/userEmail/cm:queryResponse/cm:queryReply/cm:account/cm:notificationEMail)"/></xts:param></xts:string>";
- else
- msg = "<xts:string id="IDS_ACT_CONF_ADD_ALERT" encode="javascript"><xts:param name="email"><xsl:value-of select="xtsext:javascriptencode(/root/userEmail/cm:queryResponse/cm:queryReply/cm:account/cm:email)"/></xts:param></xts:string>";
- if ( confirm(msg) )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "addNotification");
- }
- }
- else
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_ADD_NOTIFICATION" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "addNotification");
- }
- }
- }
- function doRemoveNotification(rpt)
- {
- if (rpt)
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_REMOVE_ALERT" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "removeNotification");
- }
- }
- else
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_REMOVE_NOTIFICATION" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "removeNotification");
- }
- }
- }
- function doRemoveAllNotifications(rpt)
- {
- if (rpt)
- {
- if ( confirm("<xts:string id="IDS_ACT_CONF_REMOVE_ALL_ALERT" encode="javascript"/>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "removeAllNotifications");
- }
- }
- else
- {
- <xsl:variable name="notifyBox"><xts:string id="IDS_ACT_REMOVE_ALL_NOTIFICATIONS"/></xsl:variable>
- if ( confirm("<xts:string id="IDS_ACT_CONF_REMOVE_ALL_NOTIFICATION" encode="javascript"><xts:param name="removeNotifiyBox"><xsl:value-of select="$notifyBox"/></xts:param></xts:string>") )
- {
- <xsl:if test="$obj-class='shortcut' and $target-search-path!=''">
- document.pform.m_obj.value = '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>';
- </xsl:if>
- action("submit.xts", "removeAllNotifications");
- }
- }
- }
- function addPageToPortalView()
- {
- document.pform.m_obj.value = "~";
- document.pform.m_class.value = "account";
- document.pform.sharedPagesChanged.value = "add";
- document.pform.m_selectedPage.value = "<xsl:value-of select="xtsext:javascriptencode(string($target-store-id))"/>";
- action("submit.xts", "save");
- }
- function actionMove()
- {
- <xsl:variable name="useObj">
- <xsl:choose>
- <xsl:when test="$obj-class!='contact' and ($obj-class='configuration' or $obj-class='content' or $obj-class='package' or $obj-class='namespace' or contains($obj-class,'older'))"><xsl:value-of select="key('env-param','m_obj')"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$obj-path"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="usePth">
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_path'))=''">
- <xsl:value-of select="$obj-path"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','m_path')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- Dynamically create the form elements that select.xts use before doing the move. -->
- setFormInputElement('so.select','<xsl:value-of select="xtsext:javascriptencode($obj-class)"/>.container<xsl:if test="$fromSchedulingTool and $obj-class = 'jobDefinition'">.admin</xsl:if>');
- setFormInputElement('so.editOp','move');
- setFormInputElement('so.defaultEditOpObject','<xsl:value-of select="xtsext:javascriptencode($useObj)"/>');
- <xsl:if test="string($parent-searchPath)!=''">
- setFormInputElement('so.defaultObject','<xsl:value-of select="xtsext:javascriptencode($parent-searchPath)"/>');
- </xsl:if>
- setFormInputElement('so.defaultLocation','<xsl:value-of select="xtsext:javascriptencode($usePth)"/>');
- setFormInputElement('so.return.m','<xsl:value-of select="xtsext:javascriptencode($app)"/>/<xsl:value-of select="xtsext:javascriptencode($mname)"/>');
- <!-- The following three items are required so that pressing OK on select a dialogue causes the move to execute -->
- document.pform.ifrmcmd.value = "move";
- document.pform.ps_nav_op.value = "maintain";
- <!-- -->
- document.pform.m.value = "<xsl:value-of select="xtsext:javascriptencode($app)"/>/select/select.xts";
- document.pform.submit();
- }
- function action(sTarget, sAction, sNewClass)
- {
- if (sAction != null && sAction != "" )
- document.pform.ifrmcmd.value = sAction;
- if ( sNewClass != null && sNewClass != "" )
- document.pform.m_new_class.value = sNewClass;
- submitAction(sTarget);
- }
- function submitAction(sTemplate)
- {
- document.pform.ps_nav_op.value = "push";
- document.pform.m.value = "<xsl:value-of select="$app"/>/" + sTemplate;
- document.pform.submit();
- }
- function init()
- {
- // We modify these before launcing certain actions so we must make sure they are empty on load
- document.pform.ifrmcmd.value = "";
- document.pform.m_smt_imm.value = "";
- if (document.pform.m_deploymentWizardPage)
- document.pform.m_deploymentWizardPage.value = "";
- if (document.pform.m_new_class)
- document.pform.m_new_class.value = "";
- }
- <xsl:if test="$obj-class='shortcut'">
- function targObj()
- {
- document.pform.sc_target_obj.value = "<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>";
- document.pform.sc_target_name.value = "<xsl:value-of select="xtsext:javascriptencode(string($target-name))"/>";
- document.pform.sc_target_class.value = "<xsl:value-of select="xtsext:javascriptencode(string($target-obj-class))"/>";
- }
- </xsl:if>
- function closeActions()
- {
- <!--
- // Return to source.
- // Append an extra flag sf (suppress focus) to prevent the portal window from poping in fornt of the RS window.
- // This happens when the portal is in search view b/c we give the search field focus on page load.
- -->
- var sReturnURL = "<xsl:value-of select="xtsext:javascriptencode(string($back-url))"/>";
- document.location.href = (sReturnURL.indexOf('javascript:') == 0 || sReturnURL.indexOf('?') == -1) ? sReturnURL : (sReturnURL + "&sf=");
- }
- </script>
- <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"></script>
- <pf:help context=""/> <!-- Help system -->
- <pf:launch/> <!-- adds functions to launch Studios.... -->
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <div id="maincontent" role="main" tabindex="-1" style="position:absolute; margin-left: -9999px; margin-top:-9999px" >
- <xsl:attribute name="aria-label"><xts:string id="IDS_SECTION508_CONTENT" encode="html" /></xsl:attribute>
- </div>
- <xsl:if test="$obj-class = 'importDeployment' or $obj-class = 'exportDeployment'">
- <utml:input name="m_deploymentWizardPage" type="hidden"/>
- </xsl:if>
- <xsl:if test="$obj-class = 'agentDefinition' and ($obj-ref/cm:allowNotification = 'true' or $obj-ref/cm:target/*/cm:allowNotification = 'true')">
- <utml:input name="m_agent_allowNotification" type="hidden" value="true"/>
- </xsl:if>
- <!-- target class type when creating new objects... -->
- <utml:input name="m_new_class" type="hidden" value=""/>
- <utml:input name="ifrmcmd" type="hidden" value="" utml:update="false"/>
- <xsl:if test="key('env-param','m_path')=''">
- <input name="m_path" type="hidden">
- <xsl:attribute name="value"><xsl:value-of select="string($obj-path)"/></xsl:attribute>
- </input>
- </xsl:if>
- <utml:input name="m_smt_imm" type="hidden" value=""/> <!-- the variable for stop/stop now actions -->
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <utml:input name="sc_target_obj" type="hidden" value=""/> <!-- the variable contains the target object -->
- <utml:input name="sc_target_name" type="hidden" value=""/> <!-- the variable contains the target object -->
- <utml:input name="sc_target_class" type="hidden" value=""/> <!-- the variable contains the target object -->
- </xsl:if>
- <input name="m_obj_search_path" type="hidden">
- <xsl:attribute name="value"><xsl:value-of select="$obj-ref/cm:searchPath"/></xsl:attribute>
- </input>
- <xsl:if test="$tClass='pagelet' and $canExecute and key('session-param', 'write') = 'true'">
- <utml:input name="sharedPagesChanged" type="hidden" value=""/>
- <utml:input name="m_selectedPage" type="hidden" value=""/>
- </xsl:if>
- <!-- dialog header -->
- <dp:header>
- <!-- header titles-->
- <dp:title showName="false"><xsl:copy-of select="$browserTitle"/></dp:title>
- </dp:header>
- <!-- body contents - list of actions for an object -->
- <lyt:layout style="1" title="IDS_ACT_AVAILABLE">
- <!--
- ##################################################################################
- S E C T I O N 1 - Properties
- ##################################################################################
- -->
- <lyt:section>
- <!--
- ============================================================================
- Action: Properties
- Requires: read or write or execute access.
- ============================================================================
- -->
- <xsl:variable name="targetMorphlet">
- <xsl:choose>
- <xsl:when test="$obj-class='modelView'">properties_privileges.xts</xsl:when>
- <xsl:otherwise>properties_general.xts</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_properties.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_PROPERTIES_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('{$targetMorphlet}')"><xts:string id="IDS_PROPERTIES"/></a></xsl:with-param>
- </xsl:call-template>
- <!--
- ============================================================================
- Action: Set as active by default
- Requires: setDefaultActive, admin capability, write access and not already the default active.
- ============================================================================
- -->
- <xsl:if test="$isAdminUser and $canWrite and contains($ui-target-obj-act,'set_default_active')and /root/cm:queryResponse/*/cm:startAsActive!='true'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_set_default_service.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_SET_DEFAULT_ACTIVE_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:href>
- <xsl:text/>javascript:document.pform.ifrmcmd.value='set_default_active';<xsl:text/>
- </utml:href>
- <utml:target>
- <xsl:value-of select="$app"/>/dialog_action_result.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_ACT_SET_DEFAULT_ACTIVE"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: portlet customization lock/unlock
- ============================================================================
- -->
- <xsl:if test="$canWrite and $canRead and contains($ui-target-obj-act,'portletControl')">
- <xsl:variable name="iconName">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/*/*[local-name()='canCustomize']='false'"><xsl:value-of select="'locked.gif'"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'unlocked.gif'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="propertyValue">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/*/*[local-name()='canCustomize']='false'"><xsl:value-of select="'true'"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="actionTitle">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/*/*[local-name()='canCustomize']='false'"><xts:string id="IDS_ACT_PORTLET_CONTROL_CUSTOMIZATION_UNLOCK"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_ACT_PORTLET_CONTROL_CUSTOMIZATION_LOCK"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="$iconName"/>
- <xsl:with-param name="icon-alt"><xsl:value-of select="$actionTitle"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="submit" utml:formName="pform">
- <utml:href>
- <xsl:text/>javascript:document.pform.ifrmcmd.value='save';<xsl:text/>
- <xsl:text/>document.pform.ps_nav_op.value = 'submit';<xsl:text/>
- <xsl:text/>document.pform.m_p_canCustomize.value = '<xsl:value-of select="$propertyValue"/>';<xsl:text/>
- <xsl:text/>document.pform.m.value = 'portal/submit.xts';<xsl:text/>
- </utml:href>
- <xsl:value-of select="$actionTitle"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </lyt:section>
- <!--
- ##################################################################################
- S E C T I O N 2 - Object-specific Actions
- ##################################################################################
- -->
- <lyt:section title="IDS_ACT_AVAILABLE_OBJ_SPEC">
- <!-- Store objects actions in a variable -->
- <xsl:variable name="actions">
- <!--
- ============================================================================
- Action: View contents
- Requires: 'read' access.
- ============================================================================
- -->
- <xsl:if test="$canTraverse">
- <!-- Abstract the value of previous backURL from current backURL.
- It is used when nevigate back to config tab UI. -->
- <xsl:variable name="pre-back-url">
- <xsl:choose>
- <xsl:when test="contains($back-url, '&backURL=')">
- <xsl:choose>
- <xsl:when test="contains(substring-after($back-url, '&backURL='), '&')">
- <xsl:value-of select="substring-before(substring-after($back-url, '&backURL='), '&')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-after($back-url, '&backURL=')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="''"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="pre-tool-tab">
- <xsl:choose>
- <xsl:when test="contains($back-url, '&tool_tab=')">
- <xsl:choose>
- <xsl:when test="contains(substring-after($back-url,'&tool_tab='), '&')">
- <xsl:value-of select="substring-before(substring-after($back-url, '&tool_tab='), '&')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-after($back-url, '&tool_tab=')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="''"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- Content folders -->
- <xsl:choose>
- <!-- Disabled for Titan
- <xsl:when test="$tClass='folder'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_FOLDER"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_folder=<xsl:value-of select="$target-store-id"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_FOLDER_CONTENT"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- -->
- <!-- Configuration folders folders -->
- <xsl:when test="$tClass='configurationFolder'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_FOLDER"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_service_config.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_FOLDER_CONTENT"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <!-- Namespace folders -->
- <xsl:when test="$tClass='namespaceFolder'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_FOLDER"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_directory.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/>&tool_tab=<xsl:value-of select="$pre-tool-tab"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_FOLDER_CONTENT"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <!-- Deployment folders -->
- <xsl:when test="$tClass='adminFolder'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_FOLDER"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_cs_administration.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_FOLDER_CONTENT"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$tClass='subscriptionFolder'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_FOLDER"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/subscriptions/subscriptions.xts&m_subfldr=<xsl:value-of select="$target-store-id"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_FOLDER_CONTENT"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <!-- Packages -->
- <xsl:when test="$tClass='package'">
- <xsl:choose>
- <xsl:when test="($userInterfaces = 'metricStudio' or $userInterfaces = '') and string(key('env-param','from_tool'))!='true'">
- <!-- view content -->
- <!-- Disabled for Titan
- <xsl:if test="$canTraverse and ($ui-obj-act/userInterface[@name='metricStudio']/action[@name = 'traverse'] or $ui-tobj-act/userInterface[@name='metricStudio']/action[@name = 'traverse'])">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_METRICSPACKAGE_CONTENT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_folder=<xsl:value-of select="$target-store-id"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_METRICSPACKAGE_CONTENT"/>
- </a>
- </xsl:with-param>
- <xsl:with-param name="icon-name" select="'action_view_metrics_package.gif'"/>
- </xsl:call-template>
- </xsl:if>
- -->
- <!-- open with Metric Studio -->
- <xsl:if test="contains($effectiveUserCapabilities, ' userCanUseMetricsManager ') and $canExecute and $canRead and ($ui-obj-act/userInterface[@name='metricStudio']/action[@name = 'launchcmm'] or $ui-tobj-act/userInterface[@name='metricStudio']/action[@name = 'launchcmm'])">
- <xsl:variable name="folder-location">
- <xsl:value-of select="key('env-param','m_location')"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_OPEN_METRICS_MANAGER"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunch('ui.gateway', '<xsl:value-of select="xtsext:javascriptencode($gateway)"/>', 'ui.tool', 'MetricStudio', 'ui.backURL', '<xsl:value-of select="xtsext:javascriptencode($back-url)"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>', 'ui.folder', '<xsl:value-of select="xtsext:javascriptencode(string($folder-location))"/>', 'ui.action', 'edit');</xsl:attribute>
- <xts:string id="IDS_ACT_OPEN_METRICS_MANAGER"/>
- </a>
- </xsl:with-param>
- <xsl:with-param name="icon-name" select="'action_edit_with_cmm.gif'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:when test="($userInterfaces = 'planningContributor') and string(key('env-param','from_tool'))!='true'">
- <!-- view planning package content -->
- <!-- Disabled for titan
- <xsl:if test="$canTraverse and ($ui-obj-act/userInterface[@name='planningContributor']/action[@name = 'traverse'] or $ui-tobj-act/userInterface[@name='planningContributor']/action[@name = 'traverse'])">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_PLANNINGPACKAGE_CONTENT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_folder=<xsl:value-of select="$target-store-id"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_PLANNINGPACKAGE_CONTENT"/>
- </a>
- </xsl:with-param>
- <xsl:with-param name="icon-name" select="'action_view_planning_package.gif'"/>
- </xsl:call-template>
- </xsl:if>
- -->
- <!-- open with Contributor -->
- <xsl:if test="contains($effectiveUserCapabilities, ' userCanUsePlanningContributor ') and $canExecute and ($ui-obj-act/userInterface[@name='planningContributor']/action[@name = 'launchContributor'] or $ui-tobj-act/userInterface[@name='planningContributor']/action[@name = 'launchContributor'])">
- <xsl:variable name="folder-location">
- <xsl:value-of select="key('env-param','m_location')"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_OPEN_CONTRIBUTOR"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunch('ui.gateway', '<xsl:value-of select="xtsext:javascriptencode($gateway)"/>', 'ui.tool', 'Contributor', 'ui.backURL', '<xsl:value-of select="xtsext:javascriptencode($back-url)"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>', 'ui.folder', '<xsl:value-of select="xtsext:javascriptencode(string($folder-location))"/>', 'ui.appname', '', 'ui.action', 'new');</xsl:attribute>
- <xts:string id="IDS_ACT_OPEN_CONTRIBUTOR"/>
- </a>
- </xsl:with-param>
- <xsl:with-param name="icon-name" select="'action_edit_with_contributor.gif'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:when test="($userInterfaces = 'adaptiveAnalytics') and string(key('env-param','from_tool'))!='true'">
- <!-- view planning package content -->
- <xsl:if test="$canTraverse and ($ui-obj-act/userInterface[@name='adaptiveAnalytics']/action[@name = 'traverse'] or $ui-tobj-act/userInterface[@name='adaptiveAnalytics']/action[@name = 'traverse'])">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_ANALYTICS"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_folder=<xsl:value-of select="$target-store-id"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_ANALYTICS"/>
- </a>
- </xsl:with-param>
- <xsl:with-param name="icon-name" select="'action_view_analytic_package.gif'"/>
- </xsl:call-template>
- </xsl:if>
- <!-- open with analytic TOC -->
- <xsl:if test="contains($effectiveUserCapabilities, ' userCanUseAdaptiveAnalytics ') and $canExecute and ($ui-obj-act/userInterface[@name='adaptiveAnalytics']/action[@name = 'launchAnalyticsTOC'] or $ui-tobj-act/userInterface[@name='adaptiveAnalytics']/action[@name = 'launchAnalyticsTOC'])">
- <xsl:variable name="folder-location">
- <xsl:value-of select="key('env-param','m_location')"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_OPEN_ANALYTICS"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480','ui.gateway', '<xsl:value-of select="xtsext:javascriptencode($gateway)"/>', 'ui.tool', 'AnalyticsTOC', 'ui.backURL', '<xsl:value-of select="xtsext:javascriptencode($back-url)"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>', 'ui.folder', '<xsl:value-of select="xtsext:javascriptencode(string($folder-location))"/>', 'ui.appname', '');</xsl:attribute>
- <xts:string id="IDS_ACT_OPEN_ANALYTICS"/>
- </a>
- </xsl:with-param>
- <xsl:with-param name="icon-name" select="'action_analytic.gif'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="string(key('env-param','from_tool'))='true'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name">
- <xsl:value-of select="'icon_drill_through.gif'"/>
- </xsl:with-param>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_PACKAGE"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc_drillthrough.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_PACKAGE_DRILL_THRU"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$tClass = 'package' and string(key('env-param','from_tool')) != 'true'">
- <xsl:choose>
- <xsl:when test="/root/packageConfiguration/*/*/cm:searchPath">
- <xsl:if test="$currentCanWrite and $canTraverse and $isAdminUser">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_package_configuration.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_MODIFY_PACKAGECONFIGURATION"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:doModifyPackageConfiguration()"><xts:string id="IDS_ACT_MODIFY_PACKAGECONFIGURATION"/></a>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_remove_package_configuration.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_DELETE_PACKAGECONFIGURATION"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:doRemovePackageConfiguration()"><xts:string id="IDS_ACT_DELETE_PACKAGECONFIGURATION"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$isAdminUser">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_package_configuration.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_NEW_PACKAGECONFIGURATION"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:action('new_packageconfiguration.xts','','packageConfiguration')"><xts:string id="IDS_ACT_NEW_PACKAGECONFIGURATION"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:when>
- <!-- Dispatchers -->
- <xsl:when test="$tClass='dispatcher'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_VIEW_SERVICES_TIP"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_service_config.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/></xsl:attribute>
- <xts:string id="IDS_VIEW_SERVICES"/><xsl:text/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <!-- Namespace -->
- <xsl:when test="$tClass='namespace'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_NAMESPACE"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_directory.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/>&tool_tab=<xsl:value-of select="$pre-tool-tab"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_NAMESPACE_CONTENT"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <!-- Datasources -->
- <xsl:when test="$tClass='dataSource'">
- <xsl:variable name="dataConnectionString">
- <xsl:value-of select="/root/*[local-name()='theDataSourceConnection']/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='dataSourceConnection']/*[local-name()='connectionString']"/>
- </xsl:variable>
- <xsl:variable name="connectionString" select="contains($dataConnectionString, ';LOCAL;OL;DBInfo_Type=MS;') or contains($dataConnectionString, ';LOCAL;D2;') or contains($dataConnectionString, ';LOCAL;OR;')"/>
- <xsl:variable name="canCreateMetricPackage" select="$userCanUseMetricsManagerAdministration = 'true' and $connectionString"/>
- <xsl:variable name="storeId">
- <xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='dataSource']/*[local-name()='storeID']"/>
- </xsl:variable>
- <xsl:variable name="isLWM" select="/root/theFMDataSource/*[local-name()='response']/*[local-name() = 'outputparams']/*[local-name() = 'param']/."/>
- <xsl:variable name="canCreateLWMPackage" select="$isLWM='1' and $userCanUseSelfServicePackageWizard"/>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_data_source_connection.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_CONNECTIONS_TIP"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_directory.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/>&tool_tab=<xsl:value-of select="$pre-tool-tab"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_CONNECTIONS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:if test="$canCreateLWMPackage">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_package.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_CREATE_PACKAGE_TIP"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/new_package.xts&m_dataSourceName=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(key('env-param', 'm_name'))),'url','url','getdata')"/>&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/></xsl:attribute>
- <xts:string id="IDS_ACT_CREATE_PACKAGE"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="$canCreateMetricPackage">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_metrics_package.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_CREATE_METRIC_PACKAGE_TIP"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=mms.run&pid=new_mpwizard_start&ui.backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>&datasourceId=<xsl:value-of select="$storeId"/></xsl:attribute>
- <xts:string id="IDS_ACT_CREATE_METRIC_PACKAGE"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <!-- DataSource Connections-->
- <xsl:when test="$tClass='dataSourceConnection'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_signon.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_SIGNONS_TIP"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_directory.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/>&tool_tab=<xsl:value-of select="$pre-tool-tab"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_SIGNONS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <!-- portlets -->
- <xsl:when test="$tClass='portletProducer'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_portlets.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_VIEW_PORTLETS_TIP"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/legacy_tools/tools_portaladmin.xts&m_path=<xsl:value-of select="$url-encoded-path"/>&backURL=<xsl:value-of select="$pre-back-url"/></xsl:attribute>
- <xts:string id="IDS_ACT_VIEW_PORTLETS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <!-- URL -->
- <xsl:if test="$tClass='URL' and $canRead">
- <xsl:if test="xtsext:cafaction('issafeurl_null', normalize-space($uri)) = 'true'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_OPEN_URL"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="{$uri}"><xts:string id="IDS_ACT_OPEN_URL"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- <!-- Dashboard -->
- <xsl:if test="$tClass='dashboard' and $userCanUseDashboardViewer and $canRead and $canTraverse">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'icon_dashboard.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_OPEN_DASHBOARD_ALT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">
- <xsl:choose>
- <xsl:when test="string(/root/generalConfigSettings/configuration/property[@name='portal.launchBusinessInsightChromeless']) = 'true'">
- <xsl:variable name="winProp">menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes</xsl:variable>
- <xsl:text/>javascript:cognosLaunchInWindow('_blank', '<xsl:value-of select="$winProp"/>', 'ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'edit', 'ui.id', '<xsl:value-of select="$target-store-id"/>');closeActions();<xsl:text/>
- </xsl:when>
- <xsl:otherwise><xsl:text/>javascript:directLaunch('ui.gateway', sGateway, 'ui.tool', 'DashboardConsole', 'ui.action', 'edit', 'ui.id', '<xsl:value-of select="xtsext:javascriptencode($target-store-id)"/>','ui.backURL',sBackURL,'ui.errURL',sBackURL, 'ui.encoding', '<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='encoding']))"/>');<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:attribute>
- <xts:string id="IDS_ACT_OPEN_DASHBOARD"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
-
- <!-- Launchable (MVC, midmarket, etc...) -->
- <xsl:if test="$tClass = 'launchable'">
- <xsl:choose>
- <!-- MVC - Content Reference -->
- <xsl:when test="$launchableType ='application/vnd.ibm.cognos.instance'">
- <xsl:if test="$mvc-N-enabled">
- <xsl:if test="($ui-obj-act/launchableType[@name=$launchableType]/action[@name = 'traverse'] or $ui-tobj-act/launchableType[@name=$launchableType]/action[@name = 'traverse']) and $canTraverse and $canRead">
- <xsl:variable name="isPFContext" select="$obj-path = '/content' or starts-with($target-search-path, '/content')"/>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'icon_cognos_content.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_MVC_VIEW_REMOTE_CONTENTS"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_folder=<xsl:value-of select="$target-store-id"/>
- <xsl:text/>&m_tab=<xsl:text/>
- <xsl:choose>
- <xsl:when test="$isPFContext"><xsl:value-of select="key('session-param','prootid')"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="key('session-param','mrootid')"/></xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xts:string id="IDS_ACT_MVC_VIEW_REMOTE_CONTENTS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- </xsl:when>
-
- <!-- other launchables -->
- <xsl:when test="$launchableType ='application/vnd.ibm.cognos.ev' and $canRead and $userCanUseEV">
- <xsl:variable name="java-encoded-path">
- <xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_analyzer.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_ADVISOR"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#" onclick="cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', '{xtsext:javascriptencode($gateway)}', 'ui.tool','EVStudio','ui.backURL',sBackURL,'ui.object','{$java-encoded-path}','ui.action','edit');closeActions();">
- <xts:string id="IDS_ACT_EDIT_ADVISOR"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$launchableType ='application/vnd.ibm.cognos.ev.canvas' and $canRead and $userCanUseEV">
- <xsl:variable name="java-encoded-path">
- <xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_analyzer.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_ADVISOR"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#" onclick="cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.mode', 'canvas','ui.gateway', '{xtsext:javascriptencode($gateway)}', 'ui.tool','EVStudio','ui.backURL',sBackURL,'ui.object','{$java-encoded-path}','ui.action','edit');closeActions();">
- <xts:string id="IDS_ACT_EDIT_ADVISOR"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$launchableType ='application/vnd.ibm.cognos.cd' and $canRead and $canExecute and $userCanUseCI">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_cd.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_OPEN_CD"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#" onclick="cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.id', '{$target-store-id}', 'ui.gateway', '{xtsext:javascriptencode($gateway)}', 'ui.tool','cd','ui.backURL',sBackURL,'ui.action','edit');closeActions();">
- <xts:string id="IDS_ACT_OPEN_CD"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <!-- Pagelet -->
- <xsl:if test="$tClass='pagelet' and $canExecute">
- <xsl:variable name="dashboardURI">
- <xsl:value-of select="$gateway"/>?b_action=dashboard&pathinfo=/cm&path=storeID(%22<xsl:value-of select="xtsext:protect($target-store-id,'none','cmid','getdata')"/>%22)&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>
- <xsl:if test="not(/root/system/param[@name='ui_hide']/CRN_HEADER_TITLE)">
- <xsl:text>&frag-header=true</xsl:text>
- </xsl:if>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'icon_page.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_PREVIEW_PAGE"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="{$dashboardURI}" onclick="closeActions()">
- <xts:string id="IDS_ACT_PREVIEW_PAGE"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:if test="key('session-param', 'write')= 'true'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_add_page_to_portal.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href">javascript:addPageToPortalView()</xsl:attribute>
- <xts:string id="IDS_ACT_ADD_PAGE_TO_PORTAL_VIEW"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- <!-- PowerPlay Cube -->
- <xsl:if test="$tClass='powerPlayCube' and $canExecute and $canRead">
- <xsl:variable name="ppURL">
- <xsl:value-of select="$ppreportgateway"/>
- <xsl:text/>?crnobj=<xsl:value-of select="$pp-url-encoded-path"/>&crnccn=<xsl:value-of select="xtsext:urlencode(string($ppcubecontentname))"/>
- <xsl:text/>&LA=<xsl:value-of select="$productLocale"/>
- <xsl:text/>&LO=<xsl:value-of select="$contentLocale"/>
- <xsl:text/>&BACK=<xsl:value-of select="xtsext:urlencode(string($ppBACK))"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_PP.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WPPWX"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="xtsext:protect(string($ppURL),'none','s7url','s7url')"/></xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WPPWX"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: View
- Requires: Output to view, read permission.
- ============================================================================
- -->
- <xsl:if test="string(key('env-param','from_tool')) != 'true' and ($output_format != '' or $tClass = 'document') and ($canRead and $canTraverse) ">
- <!-- ===============================
- = Added for RTC Task 4127.
- = This variable constructs the consumable format list to add to the cognosViewer defaultOutput call.
- ===============================
- -->
- <xsl:variable name="viewerOutputFormatsList">
- <xsl:if test="$output_format != '' and not(contains($supportedFormats,concat(' ',$output_format,' ')))">
- <xsl:text>,'','','</xsl:text><xsl:value-of select="normalize-space($supportedFormats)"/><xsl:text>'</xsl:text>
- </xsl:if>
- </xsl:variable>
- <!-- ===============================
- = Added for RTC Task 4127.
- = This variable is required so that the generated url does not show the non-consumable format in the ui.format parameter.
- ===============================
- -->
- <xsl:variable name="uiOutputFormat">
- <xsl:if test="$viewerOutputFormatsList=''">
- <xsl:value-of select="$output_format"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="readableFormat">
- <xsl:choose>
- <xsl:when test="$tClass = 'document'">
- <xsl:value-of select="$documentFormats/format[@name = $formatDoc]/readableFormat"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$formatNameLookUp/formats/format[@id = $output_format]"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name">
- <xsl:value-of select="'icon_'"/>
- <xsl:choose>
- <xsl:when test="$viewerOutputFormatsList=''">
- <xsl:value-of select="/root/system/param[@name='ui_graphics']/param[@name='output_format']/format[@name=$output_format]/@icon"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- ===============================
- = Added for RTC Task 4127.
- = Generate the report icon when there is a consumable output format list.
- ===============================
- -->
- <xsl:value-of select="$consumableOutputFormatIcon"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$tClass = 'reportView'">
- <xsl:value-of select="/root/system/param[@name='ui_graphics']/param[@name='reportview_suffix']"/>
- </xsl:if>
- <xsl:if test="$tClass = 'agentDefinitionView'">
- <xsl:value-of select="/root/system/param[@name='ui_graphics']/param[@name='agentview_suffix']"/>
- </xsl:if>
- <xsl:if test="$tClass = 'document'">
- <xsl:value-of select="/root/system/param[@name='ui_objects']/object[@class = 'document']/@icon"/><xsl:text/><xsl:value-of select="/root/system/param[@name='ui_graphics']/param[@name='document_format']/format[@name = $formatDoc]/@icon"/>
- </xsl:if>
- <xsl:value-of select="'.gif'"/>
- </xsl:with-param>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="$tClass = 'document'">
- <xsl:choose>
- <xsl:when test="$formatDoc != ''">
- <xts:string id="IDS_ACT_DOCUMENT_VIEW"><xts:param name="format"><xsl:value-of select="$readableFormat"/></xts:param></xts:string>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_ACT_DEFAULT_DOCUMENT_VIEW"/></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_ACT_VIEW_REPORT"/></xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <!-- <xsl:variable name="storeid">storeID("<xsl:value-of select="$obj-ref/cm:storeID"/>")</xsl:variable> -->
- <xsl:variable name="storeid">storeID("<xsl:value-of select="$target-store-id"/>")</xsl:variable>
- <xsl:choose>
- <xsl:when test="$tClass = 'document'">
- <xsl:variable name="defaultOutputPath"><xsl:value-of select="$storeid"/>/documentVersion[last()]/documentContent[last()]</xsl:variable>
- <a>
- <xsl:attribute name="onclick">javascript:if ( checkB4Download('<xsl:value-of select="xtsext:javascriptencode(string($obj-name))"/>') ){alert('<xsl:value-of select="xtsext:javascriptencode($download_specialCharacters)"/>');}</xsl:attribute>
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=xts.run&m=portal/download.xts<xsl:text/>
- <xsl:if test="$formatDoc != ''">
- <xsl:text/>&format=<xsl:value-of select="xtsext:urlencode($formatDoc)"/><xsl:text/>
- </xsl:if>
- <xsl:text/>&m_download_obj=<xsl:text/>
- <xsl:value-of select="xtsext:protect(xtsext:urlencode(string($defaultOutputPath)),'url','searchPath','getdata')"/>
- <xsl:text/>&m_name=<xsl:text/>
- <xsl:value-of select="xtsext:protect(xtsext:urlencode(string($obj-name)),'url','userData','getdata')"/>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$formatDoc != ''">
- <xts:string id="IDS_ACT_DOCUMENT_VIEW"><xts:param name="format"><xsl:value-of select="$readableFormat"/></xts:param></xts:string>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_ACT_DEFAULT_DOCUMENT_VIEW"/></xsl:otherwise>
- </xsl:choose>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=cognosViewer<xsl:text/>
- <xsl:text/>&ui.action=view<xsl:text/>
- <xsl:text/>&ui.object=<xsl:value-of select="xtsext:protect(xtsext:urlencode( concat( 'defaultOutput(' , $storeid, $viewerOutputFormatsList, ')' ) ),'url','searchPath','getdata')"/>
- <xsl:text/>&ui.name=<xsl:value-of select="xtsext:javascriptencode(xtsext:protect(xtsext:urlencode(string($defaultName)),'url','userData','getdata'))"/>
- <xsl:text/>&ui.backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>
- <xsl:text/>&ui.format=<xsl:value-of select="xtsext:urlencode($uiOutputFormat)"/>
- <xsl:if test="key('system-param', 'useReportLocaleInRVUI') = 'true'">
- <xsl:text/>&lang=<xsl:value-of select="$contentLocale"/>
- </xsl:if>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="$viewerOutputFormatsList=''">
- <xts:string id="IDS_ACT_VIEW"><xts:param name="format"><xsl:value-of select="$readableFormat"/></xts:param></xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_ACT_VIEW_MOST_RECENT"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: View Event Studio hotlist with cognos viewer (for agent objects)
- Requires: read and traverse access.
- ============================================================================
- -->
- <xsl:if test="($tClass='agentDefinition' or $tClass='agentDefinitionView') and ( ($target-obj-ref/cm:mostRecentEventList and not($target-obj-ref/cm:mostRecentEventList/@nil)) or ($obj-ref/cm:mostRecentEventList and not($obj-ref/cm:mostRecentEventList/@nil))) and $canRead and $canTraverse">
- <xsl:variable name="encoded-back-url">
- <xsl:value-of select="xtsext:javascriptencode(xtsext:protect(xtsext:urlencode(string($back-url)),'url','url','getdata'))"/>
- </xsl:variable>
- <xsl:variable name="rv-lang">
- <xsl:if test="key('system-param', 'useReportLocaleInRVUI') = 'true'">
- <xsl:text/>&lang=<xsl:value-of select="$contentLocale"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="eventList">
- <xsl:choose>
- <xsl:when test="$obj-ref/cm:mostRecentEventList and not($obj-ref/cm:mostRecentEventList/@nil)">
- <xsl:value-of select="$obj-ref/cm:mostRecentEventList"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$target-obj-ref/cm:mostRecentEventList"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_AS_hotlist.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_HOTLIST_AGS_TT"/><xsl:value-of select="$defaultName"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=cognosViewer<xsl:text/>
- <xsl:text/>&ui.action=view<xsl:text/>
- <xsl:text/>&ui.object=<xsl:value-of select="xtsext:javascriptencode( xtsext:protect( xtsext:urlencode($eventList), 'url','searchPath','getdata'))"/>
- <xsl:text/>&ui.name=<xsl:value-of select="xtsext:javascriptencode(xtsext:protect(xtsext:urlencode(string($defaultName)),'url','userData','getdata'))"/>
- <xsl:text/>&ui.backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/>
- <xsl:text>&cv.toolbar=false</xsl:text>
- <xsl:value-of select="$rv-lang"/>
- <xsl:text/>&ui.cafcontextid=<xsl:value-of select="$cafContextIDAGS"/>
- </xsl:attribute>
- <xts:string id="IDS_ACT_HOTLIST_AGS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Previous versions
- Requires: read permissions, saved outputs always show if the user has the capability to view archived content
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'previous_versions')) and contains($ui-target-obj-act,'previous_versions') and ($hasPrevVersion != '' or $tClass = 'document' or $hasCanViewContentInRepositoryCapability) and ($canRead and $canTraverse) ">
- <xsl:choose>
- <xsl:when test="$tClass = 'document'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_report_output.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_IMG_VIEW_DOCUMENT_ALT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/>/<xsl:text/>
- <xsl:choose>
- <xsl:when test="key('system-param', 'versions')/target">
- <xsl:value-of select="key('system-param', 'versions')/target"/></xsl:when>
- <xsl:otherwise>outputs.xts</xsl:otherwise>
- </xsl:choose>
- </utml:target>
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <xsl:attribute name="onclick">javascript:targObj()</xsl:attribute>
- </xsl:if>
- <xts:string id="IDS_ACT_VIEW_DOCUMENT_EX"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_report_output.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_IMG_VIEW_RPT_ALT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/>/<xsl:text/>
- <xsl:choose>
- <xsl:when test="key('system-param', 'versions')/target">
- <xsl:value-of select="key('system-param', 'versions')/target"/></xsl:when>
- <xsl:otherwise>outputs.xts</xsl:otherwise>
- </xsl:choose>
- </utml:target>
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <xsl:attribute name="onclick">javascript:targObj()</xsl:attribute>
- </xsl:if>
- <xts:string id="IDS_ACT_VIEW_EX"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'view_my_permissions.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_VIEW_MY_PERMISSIONS_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('view_permissions.xts')"><xts:string id="IDS_VIEW_MY_PERMISSIONS"/></a></xsl:with-param>
- </xsl:call-template>
- <xsl:if test="contains(' package content folder ', concat(' ', /root/env/param[@name='m_class'], ' '))">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'view_my_capabilities.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_VIEW_MY_CAPABILITIES_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('view_capabilities.xts')"><xts:string id="IDS_VIEW_MY_CAPABILITIES"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:variable name="canReadModel" select="contains(/root/modelInfo/cm:queryResponse/*/cm:permissions, 'read')"/>
- <xsl:variable name="isInMyFolders" select="count(/root/cm:queryResponse/*/cm:ancestors/cm:ancestorInfo[cm:objectClass='account'])=1"/>
- <xsl:if test="$obj-class='package' and not($userInterfaces = 'adaptiveAnalytics') and $canSetPolicy and $canReadModel and not($isInMyFolders)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_data_sources.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_VIEW_PACKAGE_DATA_SOURCES_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('view_packagedatasources.xts')"><xts:string id="IDS_VIEW_PACKAGE_DATA_SOURCES"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:variable name="PackageEditURI" select="/root/theFMDataSource/response/outputparams/param[@seq='1']"/>
- <xsl:if test="$obj-class='package' and $PackageEditURI != '' and $userCanUseSelfServicePackageWizard">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_package.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_PACKAGE_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="{concat($gateway, $PackageEditURI)}&backURL={xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')}">
- <xts:string id="IDS_ACT_EDIT_PACKAGE"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:variable name="userIsAllowedRunWithOptions" select="$userCanUseRWO or not(contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $tClass, ' ')))"/>
- <!--
- ============================================================================
- Action: Run
- Requires: run_once .
- ============================================================================
- -->
- <xsl:if test="contains($ui-target-obj-act,'run_once') and not(contains($ui-obj-act/@exclude, 'run_once')) and $userIsAllowedRunWithOptions and $canExecute and not($isDangling) and ((not(contains(' jobDefinition agentDefinition agentDefinitionView ', concat(' ', $tClass, ' ')))) or ($canRead and $canTraverse)) and $fromSchedulingTool">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_run_once.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_RUN_ONCE"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/>
- <xsl:variable name="rwoFolder" select="'/runWithOptions/'"/>
- <xsl:choose>
- <xsl:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $tClass, ' '))">
- <xsl:value-of select="concat($rwoFolder,'report_advanced.xts')"/>
- </xsl:when>
- <xsl:when test="$tClass = 'agentDefinitionView'">
- <xsl:value-of select="concat($rwoFolder,'agentDefinition.xts')"/>
- </xsl:when>
- <xsl:when test=" $tClass = 'dataMovementTaskAlias' ">
- <xsl:value-of select="concat($rwoFolder,'dataMovementTask.xts')"/>
- </xsl:when>
- <xsl:when test=" $tClass = 'importDeployment' or $tClass = 'exportDeployment' ">
- <xsl:value-of select="concat($rwoFolder,'deployment.xts')"/>
- </xsl:when>
- <xsl:when test=" $tClass = 'queryServiceTask' ">
- <xsl:value-of select="concat($rwoFolder,'generic.xts')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($rwoFolder,$tClass, '.xts')"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:target>
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <xsl:attribute name="onclick">javascript:targObj()</xsl:attribute>
- </xsl:if>
- <xts:string id="IDS_ACT_SCHEDULE_RUN_ONCE"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Run
- Requires: run_options and 'execute' access.
- ============================================================================
- -->
- <xsl:if test="contains($ui-target-obj-act,'run_options') and not(contains($ui-obj-act/@exclude, 'run_options')) and $userIsAllowedRunWithOptions and $canExecute and not($isDangling) and ((not(contains(' jobDefinition agentDefinition agentDefinitionView ', concat(' ', $tClass, ' ')))) or ($canRead and $canTraverse)) and not($fromSchedulingTool)">
- <xsl:choose>
- <xsl:when test="not(starts-with(string($tClass),'powerPlayReport'))">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_run_16.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_RUN"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/>
- <xsl:variable name="rwoFolder" select="'/runWithOptions/'"/>
- <xsl:choose>
- <xsl:when test="contains(' report query interactiveReport reportView analysis powerPlay8Report powerPlay8ReportView ', concat(' ', $tClass, ' '))">
- <xsl:value-of select="concat($rwoFolder,'report.xts')"/>
- </xsl:when>
- <xsl:when test="$tClass = 'agentDefinitionView'">
- <xsl:value-of select="concat($rwoFolder,'agentDefinition.xts')"/>
- </xsl:when>
- <xsl:when test="$tClass = 'dataMovementTaskAlias'">
- <xsl:value-of select="concat($rwoFolder,'dataMovementTask.xts')"/>
- </xsl:when>
- <xsl:when test=" $tClass = 'importDeployment' or $tClass = 'exportDeployment' ">
- <xsl:value-of select="concat($rwoFolder,'deployment.xts')"/>
- </xsl:when>
- <xsl:when test="$tClass = 'queryServiceTask'">
- <xsl:value-of select="concat($rwoFolder,'generic.xts')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($rwoFolder,$tClass,'.xts')"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:target>
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <xsl:attribute name="onclick">javascript:targObj()</xsl:attribute>
- </xsl:if>
- <xts:string id="IDS_ACT_RUN_EX"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="string($tClass) = 'powerPlayReport'"> <!-- pp 7, not for powerPlayCube -->
- <xsl:if test="$canRead">
- <xsl:choose>
- <xsl:when test="$ppreportprompt='true'">
- <xsl:variable name="ppURLPdf">
- <xsl:value-of select="$ppreportgateway"/>
- <xsl:text/>?crnobj=<xsl:value-of select="$pp-url-encoded-path"/><xsl:text/>
- <xsl:text/>&crnccn=<xsl:value-of select="xtsext:urlencode(string($ppcubecontentname))"/>&crnfrm=PDF&crnp=false<xsl:text/>
- <xsl:text/>&LA=<xsl:value-of select="$productLocale"/><xsl:text/>
- <xsl:text/>&LO=<xsl:value-of select="$contentLocale"/><xsl:text/>
- <xsl:text/>&BACK=<xsl:value-of select="xtsext:urlencode(string($ppBACK))"/><xsl:text/>
- </xsl:variable>
- <xsl:variable name="ppURLPdfPrompt">
- <xsl:value-of select="$ppreportgateway"/>
- <xsl:text/>?crnobj=<xsl:value-of select="$pp-url-encoded-path"/><xsl:text/>
- <xsl:text/>&crnccn=<xsl:value-of select="xtsext:urlencode(string($ppcubecontentname))"/>&crnfrm=PDF&crnp=true<xsl:text/>
- <xsl:text/>&LA=<xsl:value-of select="$productLocale"/><xsl:text/>
- <xsl:text/>&LO=<xsl:value-of select="$contentLocale"/><xsl:text/>
- <xsl:text/>&BACK=<xsl:value-of select="xtsext:urlencode(string($ppBACK))"/><xsl:text/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_run_16.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_RUN_PDF"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="xtsext:protect(string($ppURLPdf),'none','s7url','s7url')"/></xsl:attribute>
- <xts:string id="IDS_ACT_RUN_PDF_EX"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_run_prompt.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_RUN_PDF_PROMPT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="xtsext:protect(string($ppURLPdfPrompt),'none','s7url','s7url')"/></xsl:attribute>
- <xts:string id="IDS_ACT_RUN_PDF_PROMPT_EX"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="ppURL">
- <xsl:value-of select="$ppreportgateway"/>
- <xsl:text/>?crnobj=<xsl:value-of select="$pp-url-encoded-path"/><xsl:text/>
- <xsl:text/>&crnccn=<xsl:value-of select="xtsext:urlencode(string($ppcubecontentname))"/>&crnfrm=PDF<xsl:text/>
- <xsl:text/>&LA=<xsl:value-of select="$productLocale"/><xsl:text/>
- <xsl:text/>&LO=<xsl:value-of select="$contentLocale"/><xsl:text/>
- <xsl:text/>&BACK=<xsl:value-of select="xtsext:urlencode(string($ppBACK))"/><xsl:text/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_run_16.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_RUN_PDF"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="xtsext:protect(string($ppURL),'none','s7url','s7url')"/></xsl:attribute>
- <xts:string id="IDS_ACT_RUN_PDF_EX"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="ppURLPPWX">
- <xsl:value-of select="$ppreportgateway"/>
- <xsl:text/>?crnobj=<xsl:value-of select="$pp-url-encoded-path"/><xsl:text/>
- <xsl:text/>&crnccn=<xsl:value-of select="xtsext:urlencode(string($ppcubecontentname))"/>&crnfrm=HTML&crngnd=false<xsl:text/>
- <xsl:text/>&LA=<xsl:value-of select="$productLocale"/><xsl:text/>
- <xsl:text/>&LO=<xsl:value-of select="$contentLocale"/><xsl:text/>
- <xsl:text/>&BACK=<xsl:value-of select="xtsext:urlencode(string($ppBACK))"/><xsl:text/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_PP.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WPPWX"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="xtsext:protect(string($ppURLPPWX),'none','s7url','s7url')"/></xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WPPWX"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:variable name="ppURLPPWXDsg">
- <xsl:value-of select="$ppreportgateway"/>
- <xsl:text/>?crnobj=<xsl:value-of select="$pp-url-encoded-path"/><xsl:text/>
- <xsl:text/>&crnccn=<xsl:value-of select="xtsext:urlencode(string($ppcubecontentname))"/>&crnfrm=HTML&crngnd=true<xsl:text/>
- <xsl:text/>&LA=<xsl:value-of select="$productLocale"/><xsl:text/>
- <xsl:text/>&LO=<xsl:value-of select="$contentLocale"/><xsl:text/>
- <xsl:text/>&BACK=<xsl:value-of select="xtsext:urlencode(string($ppBACK))"/><xsl:text/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_PP_design.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WPPWX_DESIGN"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="xtsext:protect(string($ppURLPPWXDsg),'none','s7url','s7url')"/></xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WPPWX_DESIGN"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <!--
- ============================================================================
- Action: Edit with Query Studio (for query objects only)
- Requires: edit, 'write' and execute access.
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'edit')) and contains($effectiveUserCapabilities, ' userCanUseQS ') and $tClass='query' and $canRead and $canExecute and contains($ui-target-obj-act,'edit')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_QS.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WQS"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunch('ui.gateway', '<xsl:value-of select="xtsext:javascriptencode($gateway)"/>', 'ui.tool', 'QueryStudio', 'ui.backURL', '<xsl:value-of select="xtsext:javascriptencode($back-url)"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>', 'ui.action', 'edit');</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WQS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Edit with Event Studio (for agent objects)
- Requires: edit and 'write' access.
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'edit')) and $userCanUseAGS and $tClass='agentDefinition' and $canRead and $canTraverse and contains($ui-target-obj-act,'edit')">
- <xsl:variable name="java-encoded-path">
- <xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_AS.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WAG"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', '<xsl:value-of select="xtsext:javascriptencode($gateway)"/>', 'ui.tool', 'EventStudio', 'ui.backURL', sBackURL, 'ui.object', '<xsl:value-of select="$java-encoded-path"/>', 'ui.action', 'edit');closeActions();</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WAG"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Edit with Analysis Studio (for analysis objects and powerPlayReport objects)
- Requires: edit and 'write' access.
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'edit')) and contains($effectiveUserCapabilities, ' userCanUseANS ') and $tClass='analysis' and $canRead and $canExecute and contains($ui-target-obj-act,'edit')">
- <xsl:variable name="AS_launchTool">AnalysisStudio</xsl:variable>
- <xsl:variable name="sq">'</xsl:variable>
- <xsl:variable name="apos">'</xsl:variable>
- <xsl:variable name="mod-path">
- <xsl:value-of select="xtsext:replace(string($target-search-path),$sq,$apos)"/>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_PS.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WPS"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=yes,location=no,resizable=yes,width=650,height=480', 'ui.gateway', sGateway, 'ui.tool', '<xsl:value-of select="$AS_launchTool"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($mod-path))"/>', 'ui.action', 'edit');closeActions();</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WPS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
-
- <!--
- ============================================================================
- Action: Edit with RS (for report type objects or powerPlayReport objects)
- Requires: edit and 'write' access.
- ============================================================================
- -->
-
- <xsl:if test="not(contains(ui-obj-act-exclude, 'edit ') and contains(ui-obj-act-exclude, 'edit_cbia ')) and contains($effectiveUserCapabilities, ' userCanUseRS ') and ( $tClass='report' or $tClass='interactiveReport' or $tClass='query' or $tClass='analysis' or $tClass='reportTemplate') and $canRead and contains($ui-target-obj-act,'edit')">
-
- <xsl:variable name="RS_launchTool">ReportStudio</xsl:variable>
- <xsl:if test="not(contains($ui-obj-act-exclude, 'edit ')) and contains($ui-target-obj-act,'edit ')">
- <xsl:if test="$rsPROProfile">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_RS.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WRS"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=no,location=no,resizable=yes,width=700,height=500', 'ui.gateway', sGateway, 'ui.tool', '<xsl:value-of select="$RS_launchTool"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>', 'ui.action', 'edit', 'ui.profile', 'Professional');closeActions();</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WRS"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- <!-- RTC 124044 Cognos Connection - Disable the action that allows a user to open a PP8 report with BIA. but want code left so easily
- available to test: Allow PowerPlay and PowerPlay 8 :<xsl:if test="$rsBIAProfile and ($tClass='report' or $tClass='reportTemplate' or $tClass='powerPlayReport' or $tClass='powerPlay8Report')"> -->
-
- <xsl:if test="not(contains($ui-obj-act-exclude, 'edit_cbia')) and contains($ui-target-obj-act,'edit_cbia')">
- <xsl:if test="$rsBIAProfile and ($tClass='report' or $tClass='reportTemplate')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_RS_BUA.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WBUA"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunchInWindow('_blank', 'menubar=no,toolbar=no,status=no,location=no,resizable=yes,width=700,height=500', 'ui.gateway', sGateway, 'ui.tool', '<xsl:value-of select="$RS_launchTool"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode(string($target-search-path))"/>', 'ui.action', 'edit', 'ui.profile', 'BUA_standalone');closeActions();</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WBUA"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- </xsl:if>
- <!--
- ============================================================================
- Action: Edit with PowerPlayStudio pp8
- Requires: edit and 'write' access.
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'edit')) and contains($effectiveUserCapabilities, ' userCanUsePPS ') and $tClass='powerPlay8Report' and $canRead and $canExecute and contains($ui-target-obj-act,'edit')">
- <!-- open not in design mode-->
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_pp8.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WPPWX8"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'PowerplayStudio', 'ui.backURL', '<xsl:value-of select="xtsext:javascriptencode(string($ppBACK))"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode( string( $target-search-path ) )"/>', 'ui.crnp', 'false', 'ui.crnfrm', 'HTML', 'ui.crngnd', 'false', 'ui.action', 'edit','ui.la', '<xsl:value-of select="xtsext:javascriptencode($productLocale)"/>', 'ui.lo', '<xsl:value-of select="xtsext:javascriptencode($contentLocale)"/>');</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WPPWX8"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- <!-- open in design mode -->
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_with_pp8_design.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_WPPWX8_DESIGN"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'PowerplayStudio', 'ui.backURL', '<xsl:value-of select="xtsext:javascriptencode(string($ppBACK))"/>', 'ui.object', '<xsl:value-of select="xtsext:javascriptencode( string( $target-search-path ) )"/>', 'ui.crnp', 'false', 'ui.crnfrm', 'HTML', 'ui.crngnd', 'true', 'ui.action', 'edit','ui.la', '<xsl:value-of select="xtsext:javascriptencode($productLocale)"/>', 'ui.lo', '<xsl:value-of select="xtsext:javascriptencode($contentLocale)"/>');</xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_WPPWX8_DESIGN"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Schedule
- Requires:
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'schedule')) and $userCanUseSched and (($canRead and $canTraverse and $canExecute) or ($canRead and /root/childObjects/cm:queryResponse/cm:queryReply[1]/cm:schedule != '')) and contains($ui-target-obj-act,'schedule')">
- <xsl:if test="not($isDangling)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name">
- <xsl:choose>
- <xsl:when test="not($canWrite)">
- <xsl:value-of select=" 'action_schedule.gif' "/>
- </xsl:when>
- <xsl:when test="/root/childObjects/cm:queryResponse/cm:queryReply[1]/cm:schedule != ''">
- <xsl:value-of select=" 'action_edit_schedule.gif' "/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select=" 'action_new_schedule.gif' "/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="not($canWrite) or not($canExecute)">
- <xts:string id="IDS_ACT_VIEW_SCHEDULE"/>
- </xsl:when>
- <xsl:when test="/root/childObjects/cm:queryResponse/cm:queryReply[1]/cm:schedule != ''">
- <xts:string id="IDS_ACT_MODIFY_SCHEDULE_ALT"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_ACT_NEW_SCHEDULE_ALT"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/>
- <xsl:choose>
- <xsl:when test="contains('jobDefinition agentDefinition dataMovementTask indexUpdateTask migrationTask contentTask metricsDataSourceETLTask metricsExportTask metricsFileImportTask metricsMaintenanceTask dataMovmentTask planningMacroTask planningTask ', $obj-class)">
- <xsl:value-of select="concat('/schedule/', $obj-class, '.xts')"/>
- </xsl:when>
- <xsl:when test="$obj-class = 'agentDefinitionView'">
- <xsl:value-of select="'/schedule/agentDefinition.xts'"/>
- </xsl:when>
- <xsl:when test="$obj-class = 'dataMovementTaskAlias'">
- <xsl:value-of select="'/schedule/dataMovementTask.xts'"/>
- </xsl:when>
- <xsl:when test="$obj-class = 'exportDeployment' or $obj-class = 'importDeployment'">
- <xsl:value-of select="'/schedule/deployment.xts'"/>
- </xsl:when>
- <xsl:when test="$obj-class = 'queryServiceTask'">
- <xsl:value-of select="'/schedule/generic.xts'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'/schedule/report.xts'"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:target>
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <xsl:attribute name="onclick">javascript:targObj()</xsl:attribute>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="not($canWrite) or not($canExecute)">
- <xts:string id="IDS_ACT_VIEW_SCHEDULE"/>
- </xsl:when>
- <xsl:when test="/root/childObjects/cm:queryResponse/cm:queryReply[1]/cm:schedule != ''">
- <xts:string id="IDS_ACT_MODIFY_SCHEDULE"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_ACT_NEW_SCHEDULE"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="$canWrite and /root/childObjects/cm:queryResponse/cm:queryReply[1]/cm:schedule != '' ">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_remove_schedule.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_REMOVE_SCHEDULE_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doRemoveSchedule()"><xts:string id="IDS_ACT_REMOVE_SCHEDULE"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- <!--
- =================================================================================
- Action: Enable/Disable Schedule for reportDataServiceAgentDefinition (conditional subscription)
- Requires: write, traverse, hasCondSubscriptionsCapability
- =================================================================================
- -->
- <xsl:if test="$tClass='reportDataServiceAgentDefinition' and $hasCondSubscriptionsCapability and $canWrite and $canTraverse">
- <xsl:choose>
- <xsl:when test="string(/root/childObjects/cm:queryResponse/cm:queryReply[1]/cm:schedule/cm:active) = 'true'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_disable_schedule.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_DISABLE_SCHEDULE_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:disableRDSADschedule()"><xts:string id="IDS_ACT_DISABLE_SCHEDULE_RDSAD"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_enable_schedule.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ENABLE_SCHEDULE_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:enableRDSADschedule()"><xts:string id="IDS_ACT_ENABLE_SCHEDULE_RDSAD"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <!--
- ============================================================================
- Action: Run History
- Requires: read permissions, history
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'run_history')) and $canRead and contains($ui-target-obj-act,'run_history') and $history != ''">
- <xsl:variable name="runHistoryPage" select="'/history/view.xts'"/>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_view_run_history.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_IMG_VIEW_HISTORY_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/><xsl:value-of select="$runHistoryPage"/><xsl:text/>
- </utml:target>
- <xsl:if test="$obj-class='shortcut' and not($isDangling)">
- <xsl:attribute name="onclick">javascript:targObj()</xsl:attribute>
- </xsl:if>
- <xts:string id="IDS_ACT_VIEW_RUN_HISTORY"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Clear the Cache
- Requires: read permissions, available report cache
- ============================================================================
- -->
- <xsl:variable name="reportCache">
- <xsl:value-of select="/root/childObjects/cm:queryResponse/cm:queryReply[3]/cm:reportCache/*"/>
- </xsl:variable>
- <xsl:if test="$reportCache != ''">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_clear_cache.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_IMG_CLEAR_CACHE_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:doClearCache()">
- <xts:string id="IDS_ACT_CLEAR_CACHE"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Add/Remove Notification for agentDefinition and agentDefinitionView
- Requires: allowNotification set to true, user has email address
- ============================================================================
- -->
- <xsl:if test="contains($ui-target-obj-act,'add_notification') and $userHasEmail">
- <xsl:choose>
- <xsl:when test="$notifyStatus='off' and ($obj-ref/cm:allowNotification = 'true' or $obj-ref/cm:target/*/cm:allowNotification = 'true')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_add_to_list.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_IMG_ADD_NOTIFICATION_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doAddNotification()"><xts:string id="IDS_ACT_ADD_NOTIFICATION"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$notifyStatus='on'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_remove_from_list.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_IMG_REMOVE_NOTIFICATION_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doRemoveNotification()"><xts:string id="IDS_ACT_REMOVE_NOTIFICATION"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <!--
- ============================================================================
- Action: Remove All Notifications for agentDefinition and agentDefinitionView
- Requires: allowNotification set to true, user has email address
- ============================================================================
- -->
- <xsl:if test="contains($ui-target-obj-act,'remove_all_notifications') and $canSetPolicy and $userHasEmail">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_remove_all_from_list.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_REMOVE_ALL_NOTIFICATIONS"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doRemoveAllNotifications()"><xts:string id="IDS_ACT_REMOVE_ALL_NOTIFICATIONS"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Add/Remove Alert for report, query, analysis, and reportViews
- Requires: allowNotification set to true, user has email address
- ============================================================================
- -->
- <xsl:if test="contains($ui-target-obj-act,'add_alert') and $userHasEmail">
- <xsl:choose>
- <xsl:when test="$notifyStatus='off' and ($obj-ref/cm:allowNotification = 'true' or $obj-ref/cm:target/*/cm:allowNotification = 'true')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_add_to_list.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_ADD_ALERT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doAddNotification(true)"><xts:string id="IDS_ACT_ADD_ALERT"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$notifyStatus='on'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_remove_from_list.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_REMOVE_ALERT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doRemoveNotification(true)"><xts:string id="IDS_ACT_REMOVE_ALERT"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <!--
- ============================================================================
- Action: Remove All Alerts to new versions for report, query, analysis, and reportViews
- Requires: allowNotification set to true, user is authenticated
- ============================================================================
- -->
- <xsl:if test="$notifyStatus !='' and contains($ui-target-obj-act,'remove_all_alerts') and $canSetPolicy and $userHasEmail">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_remove_all_from_list.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_REMOVE_ALL_ALERT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doRemoveAllNotifications(true)"><xts:string id="IDS_ACT_REMOVE_ALL_ALERT"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Unregister
- Requires: unregister and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$canWrite and contains($ui-target-obj-act,'unregister')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_unregister.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACTION_UNREGISTER_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doUnregister()"><xts:string id="IDS_ACTION_UNREGISTER"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Activate
- Requires: activate, admin capability, and a standby running state
- ============================================================================
- -->
- <xsl:if test="$isAdminUser and contains($ui-target-obj-act,'activate') and /root/cm:queryResponse/*/cm:runningState='standby'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_activate.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACTION_ACTIVATE_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doActivate()"><xts:string id="IDS_ACTION_ACTIVATE"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:variable name="stoppable" select="not(key('env-param', 'm_class')='monitorService')"/>
- <!--
- ============================================================================
- Action: Start
- Requires: start and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$stoppable and $canWrite and contains($ui-target-obj-act,'start')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_start.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACTION_START_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:href>
- <xsl:text/>javascript:document.pform.ifrmcmd.value='start';<xsl:text/>
- <xsl:text/>document.pform.m_smt_imm.value='false';<xsl:text/>
- </utml:href>
- <utml:target>
- <xsl:value-of select="$app"/>/dialog_action_result.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_ACTION_START"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Stop Immediately
- Requires: stop_imm and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$stoppable and $canWrite and contains($ui-target-obj-act,'stop_imm')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_stop.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACTION_STOP_IMMEDIATELY_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:href>
- <xsl:text/>javascript:document.pform.ifrmcmd.value='stop';<xsl:text/>
- <xsl:text/>document.pform.m_smt_imm.value='true';<xsl:text/>
- </utml:href>
- <utml:target>
- <xsl:value-of select="$app"/>/dialog_action_result.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_ACTION_STOP_IMMEDIATELY_ACTION"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Stop after queue processed
- Requires: stop_queue and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$stoppable and $canWrite and contains($ui-target-obj-act,'stop_queue')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_stop_after_queue_processed.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACTION_STOP_QUEUE_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:href>
- <xsl:text/>javascript:document.pform.ifrmcmd.value='stop';<xsl:text/>
- <xsl:text/>document.pform.m_smt_imm.value='false';<xsl:text/>
- </utml:href>
- <utml:target>
- <xsl:value-of select="$app"/>/dialog_action_result.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_ACTION_STOP_QUEUE_ACTION"/>
- </utml:a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Refresh data source connections
- Requires: refrech_connection and 'write' access.
- ============================================================================
- -->
- <!-- only display this link after checking to see if there is a report server or batch report server -->
- <xsl:variable name="componentIdPath" select="/root/*[local-name()='theDispatcher']/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='installedComponent']/*[local-name()='componentID']"/>
- <xsl:if test="$canWrite and contains($ui-target-obj-act,'refresh_connection') and ($componentIdPath[cm:value='reportService'] != '' or $componentIdPath[cm:value='batchReportService'] != '')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_refresh_server_connection.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACTION_REFRESH_CONNECTIONS_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:action('submit.xts','refreshConnections');">
- <xts:string id="IDS_ACTION_REFRESH_CONNECTIONS_ACTION"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Test (dispatchers, connections, or services)
- Requires: test and 'read' access.
- ============================================================================
- -->
- <xsl:if test="$canRead and contains($ui-target-obj-act,'test')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name">
- <xsl:choose>
- <xsl:when test="$tClass='dataSourceConnection'">
- <xsl:value-of select="'action_test_connection.gif'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'action_test.gif'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="$tClass='dataSourceConnection'">
- <xts:string id="IDS_ACTION_TEST_CONNECTION_TIP"/>
- </xsl:when>
- <xsl:when test="$tClass='dispatcher'">
- <xts:string id="IDS_ACTION_TEST_DISPATCHER_TIP"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_ACTION_TEST"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <xsl:choose>
- <xsl:when test="$tClass='dataSourceConnection'">
- <utml:a utml:op="maintain" utml:formName="pform">
- <utml:target>
- <xsl:value-of select="$app"/>/test_connection.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_PROP_CONN_TEST_CONNECTION"/>
- </utml:a>
- </xsl:when>
- <xsl:otherwise>
- <utml:a utml:op="stack-up" utml:formName="pform">
- <utml:href>
- <xsl:text/>javascript:document.pform.ifrmcmd.value='test';<xsl:text/>
- </utml:href>
- <utml:target>
- <xsl:value-of select="$app"/>/dialog_action_result.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_ACTION_TEST"/>
- </utml:a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Set Members
- Requires: set_members and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$canWrite and $canRead and contains($ui-target-obj-act,'set_members')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_set_members.gif'"/>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="$tClass='group'">
- <xts:string id="IDS_IMG_SET_GROUP_MEMBERS_ALT"/>
- </xsl:when>
- <xsl:when test="$tClass='role'">
- <xts:string id="IDS_IMG_SET_ROLE_MEMBERS_ALT"/>
- </xsl:when>
- <xsl:when test="$tClass='distributionList'">
- <xts:string id="IDS_IMG_SET_DL_MEMBERS_ALT"/>
- </xsl:when>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:submitAction('properties_members.xts')"><xts:string id="IDS_ACT_SET_MEMBERS"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Set Preferences
- Requires: set_preferences and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$obj-ref/cm:modificationTime != '' and $canWrite and $canRead and contains($ui-target-obj-act,'set_preferences')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_set_preferences.gif'"/>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="$tClass='account'">
- <xts:string id="IDS_ACT_SET_PREFERENCES_ACCOUNT"/>
- </xsl:when>
- <xsl:when test="$tClass='contact'">
- <xts:string id="IDS_ACT_SET_PREFERENCES_CONTACT"/>
- </xsl:when>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:submitAction('properties_preferences.xts')"><xts:string id="IDS_ACT_SET_PREFERENCES"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Set Personal Properties
- Requires: set_personal and 'write' access.
- ============================================================================
- -->
- <xsl:if test="$canWrite and $canRead and contains($ui-target-obj-act,'set_personal') and (/root/env/param[@name='m_obj'] != 'CAMID("::Anonymous")')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_set_personal_properties.gif'"/>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="$obj-class='account'">
- <xts:string id="IDS_ACT_SET_PERSONAL_ACCOUNT"/>
- </xsl:when>
- <xsl:when test="$obj-class='contact'">
- <xts:string id="IDS_ACT_SET_PERSONAL_CONTACT"/>
- </xsl:when>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:submitAction('properties_personal.xts')"><xts:string id="IDS_ACT_SET_PERSONAL"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Set Portal Tabs
- Requires: set_personal and 'write' access and a non empty modification time (user has already logged in once).
- ============================================================================
- -->
- <xsl:if test="$obj-class != 'contact' and $canWrite and $canRead and contains($ui-target-obj-act,'set_personal') and (/root/env/param[@name='m_obj'] != 'CAMID("::Anonymous")') and ($obj-ref/cm:modificationTime != '')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_set_portal_pages.gif'"/>
- <xsl:with-param name="icon-alt">
- <xsl:choose>
- <xsl:when test="$obj-class='account'">
- <xts:string id="IDS_ACT_SET_PORTAL_TABS_ACCOUNT"/>
- </xsl:when>
- </xsl:choose>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:submitAction('properties_mypages.xts')"><xts:string id="IDS_ACT_SET_PORTAL_TABS"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Reset User
- Requires: reset_user, write on the namesapace in which the account is contained
- and a non empty modification time (user has already logged in once).
- ============================================================================
- -->
- <xsl:if test="$obj-ref/cm:modificationTime != '' and contains($ui-target-obj-act,'reset_user') and contains(/root/*[local-name()='namespacePermissions']/*[local-name()='queryResponse']/*/*[local-name()='permissions'], 'write')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_delete_user_profile.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_RESET_ACCOUNT_ALT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:doResetAccount();"><xts:string id="IDS_ACT_RESET_ACCOUNT"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Migrate User
- Requires: migrate_user, a non empty modification time (user has already logged in once).
- and write on the namesapace in which the account is contained
- ============================================================================
- -->
- <xsl:if test="$obj-ref/cm:modificationTime != '' and contains($ui-target-obj-act,'migrate_user') and contains(/root/*[local-name()='namespacePermissions']/*[local-name()='queryResponse']/*/*[local-name()='permissions'], 'write')">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_copy_user_profile.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACT_MIGRATE_ACCOUNT_ALT"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:submitAction('migrate_user_account.xts');"><xts:string id="IDS_ACT_MIGRATE_ACCOUNT"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Create User Profile
- Requires: create_user_profile, an empty modification time (user has never logged in).
- and write access
- ============================================================================
- -->
- <xsl:if test="$obj-ref/cm:modificationTime = '' and contains($ui-target-obj-act, 'create_user_profile') and $canWrite">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_create_user_profile.gif'"/>
- <xsl:with-param name="icon-alt">
- <xts:string id="IDS_ACTION_CREATE_PROFILE"/>
- </xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="javascript:action('submit.xts','createUserProfile')"><xts:string id="IDS_ACTION_CREATE_PROFILE"/></a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Preview this style
- Requires: read access.
- ============================================================================
- -->
- <xsl:if test="$tClass='portalSkin' and $canRead">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_preview_style.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_PREVIEW_STYLE_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('preview_style.xts')"><xts:string id="IDS_ACT_PREVIEW_STYLE"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Preview this portlet
- Requires: read access.
- ============================================================================
- -->
- <xsl:if test="$tClass='portlet' and contains($ui-target-obj-act,'preview') and $canRead and $canExecute and $canReadOnParent">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_preview_portlet.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_PREVIEW_PORTLET_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a target="_blank">
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_portlet=/connection/portlet:<xsl:value-of select="$target-store-id"/>&rui=hh</xsl:attribute>
- <xts:string id="IDS_ACT_PREVIEW_PORTLET"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Modify Registration (portlet producer)
- Requires: read and write access.
- ============================================================================
- -->
- <xsl:if test="$tClass='portletProducer' and contains($ui-target-obj-act,'registration') and $hasRegistration and $canRead and $canWrite">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_set_registration.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_SET_REGISTRATION_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_portlet=/admin/portlet:registration&rui=hh&m_pagemode=view&wsrp-urlType=blockingAction&cps-portlet=PORTLETID&producer=/connection/<xsl:value-of select="$target-store-id"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/></xsl:attribute>
- <xts:string id="IDS_ACT_SET_REGISTRATION"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Edit the producer (portlet producer)
- Requires: read and write access.
- ============================================================================
- -->
- <xsl:if test="$tClass='portletProducer' and contains($ui-target-obj-act,'edit_producer') and $canRead and $canWrite and $canExecute">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_edit_producer.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_EDIT_PRODUCER_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_portlet=/admin/portlet:binding&rui=hh&m_pagemode=view&wsrp-urlType=blockingAction&cps-portlet=PORTLETID&producer=/connection/<xsl:value-of select="$target-store-id"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/></xsl:attribute>
- <xts:string id="IDS_ACT_EDIT_PRODUCER"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: New Portlet (portlet producer)
- Requires: read, traverse and write access.
- ============================================================================
- -->
- <xsl:if test="$tClass='portletProducer' and contains($ui-target-obj-act,'new_portlet') and $hasRegistration and $canRead and $canWrite and $canTraverse">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_add_portlet_frm_producer.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_ADD_PORTLET_ALT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/cc.xts&m_portlet=/admin/portlet:newportlet&rui=hh&m_pagemode=view&wsrp-urlType=blockingAction&cps-portlet=PORTLETID&producer=/connection/<xsl:value-of select="$target-store-id"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode($back-url),'url','url','getdata')"/></xsl:attribute>
- <xts:string id="IDS_ACT_ADD_PORTLET"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Custom Actions ...
- ============================================================================
- -->
- <!-- Base object actions -->
- <xsl:for-each select="$ui-obj-act/action[@type = 'custom']">
- <xsl:variable name="qs">
- <xsl:if test="objProperties/property">
- <xsl:choose>
- <xsl:when test="contains(string(url), '=')">&</xsl:when>
- <xsl:when test="contains(string(url), '?')"></xsl:when>
- <xsl:otherwise>?</xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="encoding">
- <xsl:choose>
- <xsl:when test="objProperties/@encode"><xsl:value-of select="objProperties/@encode"/></xsl:when>
- <xsl:otherwise>utf-8</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="objProperties/property">
- <xsl:if test="position() != 1">&</xsl:if>
- <xsl:value-of select="."/>=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(/root/cm:queryResponse/*/*[local-name()= string(current())]), string($encoding)),'url',concat('NAME', string(.)),'getdata')"/>
- </xsl:for-each>
- </xsl:if>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name"><xsl:value-of select="icon"/></xsl:with-param>
- <xsl:with-param name="icon-alt"><xsl:value-of select="tooltip[lang($productLocale)]"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="{url}{$qs}"><xsl:value-of select="label[lang($productLocale)]"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- <!-- Target object actions -->
- <xsl:if test="$obj-class != 'drillPath'">
- <xsl:for-each select="$ui-tobj-act/action[@type = 'custom']">
- <xsl:variable name="qs">
- <xsl:if test="objProperties/property">
- <xsl:choose>
- <xsl:when test="contains(string(url), '=')">&</xsl:when>
- <xsl:when test="contains(string(url), '?')"></xsl:when>
- <xsl:otherwise>?</xsl:otherwise>
- </xsl:choose>
- <xsl:variable name="encoding">
- <xsl:choose>
- <xsl:when test="objProperties/@encode"><xsl:value-of select="objProperties/@encode"/></xsl:when>
- <xsl:otherwise>utf-8</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:for-each select="objProperties/property">
- <xsl:if test="position() != 1">&</xsl:if>
- <xsl:value-of select="."/>=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(/root/cm:queryResponse/*/cm:target/*/*[local-name()= string(current())]), string($encoding)),'url',concat('NAME', string(.)),'getdata')"/>
- </xsl:for-each>
- </xsl:if>
- </xsl:variable>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name"><xsl:value-of select="icon"/></xsl:with-param>
- <xsl:with-param name="icon-alt"><xsl:value-of select="tooltip[lang($productLocale)]"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="{url}{$qs}"><xsl:value-of select="label[lang($productLocale)]"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:if>
- </xsl:variable>
- <!-- Store output for edit actions in a variable -->
- <xsl:variable name="edit-actions">
- <!--
- ##################################################################################
- S E C T I O N 3 - Edit Actions
- ##################################################################################
- -->
- <!--
- ============================================================================
- Action: Move
- Requires: move, 'read' & 'write' access on the object, and 'write' on the parent.
- NOTE:
- **** Edit actions are always against the current object (ui-obj-act and not ui-target-obj-act as in
- **** the case of a 'shortcut' class).
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'move')) and $currentCanRead and $currentCanWrite and $canWriteOnParent and not($is3rdPartyNSEntry)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_move.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_MOVE_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:actionMove()"><xts:string id="IDS_ACT_MOVE"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ================================================================================================================
- Action: Copy
- Requires: from Ojbect Model : On object r,t On Parent t (On Target w t ) for /content objects. Spoke w/Daniel and /portal objects need w on producer
- ================================================================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'copy')) and $currentCanRead and not($is3rdPartyNSEntry) and not(not($canWriteOnParent) and (/root/env/param[@name='m_class']='portlet'))">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_copy.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_COPY_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('save_as.xts','copy','{$obj-class}')"><xts:string id="IDS_ACT_COPY"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: New shortcut
- Requires: shortcut
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'shortcut')) and $ui-obj-act/action[@name = 'shortcut'] and $parent-obj-class!='adminFolder'">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_ref.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_SHORTCUT_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:action('new_general.xts','','shortcut')"><xts:string id="IDS_ACT_SHORTCUT"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--
- ============================================================================
- Action: Custom view
- Requires: customview and 'read' & 'execute' access.
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'customview')) and contains($ui-target-obj-act,'customview')">
- <xsl:choose>
- <xsl:when test="$tClass='powerPlay8Report' and ($canRead or $canExecute)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_CUSTOM_PP8"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <xsl:if test="$obj-class!='shortcut'">
- <a href="javascript:action('new_general.xts','','powerPlay8ReportView')"><xts:string id="IDS_ACT_CUSTOM_PP8_EX"/></a>
- </xsl:if>
- <xsl:if test="$obj-class='shortcut'">
- <a onclick="javascript:targObj()" href="javascript:action('new_general.xts','','powerPlay8ReportView')"><xts:string id="IDS_ACT_CUSTOM_PP8_EX"/></a>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$tClass='dataMovementTask' and ($canRead or $canExecute)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_CUSTOM_DMT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <xsl:if test="$obj-class!='shortcut'">
- <a href="javascript:action('new_general.xts','','dataMovementTaskAlias')"><xts:string id="IDS_ACT_CUSTOM_DMT_EX"/></a>
- </xsl:if>
- <xsl:if test="$obj-class='shortcut'">
- <a onclick="javascript:targObj()" href="javascript:action('new_general.xts','','dataMovementTaskAlias')"><xts:string id="IDS_ACT_CUSTOM_DMT_EX"/></a>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="not(starts-with(string($tClass),'agentDef')) and ($canRead or $canExecute)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_CUSTOM"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <xsl:if test="$obj-class!='shortcut'">
- <a href="javascript:action('new_general.xts','','reportView')"><xts:string id="IDS_ACT_CUSTOM_EX"/></a>
- </xsl:if>
- <xsl:if test="$obj-class='shortcut'">
- <a onclick="javascript:targObj()" href="javascript:action('new_general.xts','','reportView')"><xts:string id="IDS_ACT_CUSTOM_EX"/></a>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="starts-with(string($tClass),'agentDef') and $canRead and $canTraverse">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_new_custom_view.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_CUSTOM_AGENT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <xsl:if test="$obj-class!='shortcut'">
- <a href="javascript:action('new_general.xts','','agentDefinitionView')"><xts:string id="IDS_ACT_CUSTOM_AGENT_EX"/></a>
- </xsl:if>
- <xsl:if test="$obj-class='shortcut'">
- <a onclick="javascript:targObj()" href="javascript:action('new_general.xts','','agentDefinitionView')"><xts:string id="IDS_ACT_CUSTOM_AGENT_EX"/></a>
- </xsl:if>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- <!--
- ============================================================================
- Action: Bookmark This Item
- Requires: read or write or execute access.
- ============================================================================
- -->
- <xsl:variable name="getURLForBookmark">
- <xsl:for-each select="/root/cm:queryResponse/*">
- <!-- Call gen-url to get the default action URL -->
- <xsl:call-template name="gen-url">
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="targetUserInterfaces" select="$targetUserInterfaces"/>
- <xsl:with-param name="action" select="$action"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- <xsl:with-param name="isContainer" select="key('ui-object', string($class))/@container = 'T'"/>
- <xsl:with-param name="canWrite" select="$canWrite"/>
- <xsl:with-param name="morphlet" select="$defaultMorphlet"/>
- <xsl:with-param name="url-encoded-id" select="$url-encoded-id"/>
- <xsl:with-param name="canReadParent" select="contains(/root/cm:queryResponse/*/cm:parent/*/cm:permissions, 'read')"/>
- <xsl:with-param name="hasChildren" select="cm:hasChildren = 'true'"/>
- <xsl:with-param name="genURLForBookmark" select="true()"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:variable>
- <xsl:if test="string($getURLForBookmark) != '' and $browser = 'ie'"> <!-- Only display this action if there is a default url to bookmark, and we are using IE -->
- <xsl:choose>
- <xsl:when test="$tClass = 'launchable' and $launchableType ='application/vnd.ibm.cognos.cd'">
- <!-- MVC - No bookmarking for MVC Content Reference! -->
- </xsl:when>
- <xsl:when test="$tClass = 'launchable' and $launchableType ='application/vnd.ibm.cognos.instance'">
- <!-- MVC - No bookmarking for MVC Content Reference! -->
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_add_bookmark.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_ADD_BOOKMARK_TT"/></xsl:with-param>
- <xsl:with-param name="link-anchor">
- <a href="#">
- <xsl:attribute name="onclick">window.external.AddFavorite('<xsl:value-of select="xtsext:javascriptencode($getURLForBookmark)"/>','<xts:string id="IDS_BOOKMARK_NAME_FORMAT" encode="javascript"><xts:param name="action"><xsl:value-of select="xtsext:javascriptencode($actionString)"/></xts:param><xts:param name="objName"><xsl:value-of select="xtsext:javascriptencode($obj-name)"/></xts:param></xts:string>')</xsl:attribute>
- <xts:string id="IDS_ACT_ADD_BOOKMARK"/>
- </a>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <!--
- ============================================================================
- Action: Delete
- Requires: delete and ('write' or 'setPolicy' access on the object) and 'write' on the parent, and if it's a configuration folder, it must not contain contents.
- ============================================================================
- -->
- <xsl:if test="not(contains($ui-obj-act/@exclude, 'delete')) and (($currentCanWrite or $canSetPolicy) and $canWriteOnParent) and not($obj-class = 'configurationFolder' and $hasChildren = 'true') and not($is3rdPartyNSEntry)">
- <xsl:call-template name="render-action">
- <xsl:with-param name="icon-name" select="'action_delete.gif'"/>
- <xsl:with-param name="icon-alt"><xts:string id="IDS_ACT_DELETE_TIP"/></xsl:with-param>
- <xsl:with-param name="link-anchor"><a href="javascript:doDelete()"><xts:string id="IDS_ACT_DELETE"/></a></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:variable>
- <xsl:if test=" $currentCanRead or $currentCanWrite or $canExecute or $actions != '' or $edit-actions != '' ">
- <xsl:if test="$actions != ''">
- <dp:division/>
- <xsl:copy-of select="$actions"/>
- </xsl:if>
- <xsl:if test="$edit-actions != ''">
- <dp:division/>
- <xsl:copy-of select="$edit-actions"/>
- </xsl:if>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- <dp:footer>
- <df:button df:id="IDS_CANCEL" df:style="back-url"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <!--
- This template renders the redundant code for each action item.
- Parameters:
- icon-name The portion of the image's URL that comes after $image_root.
- icon-alt The string (not the id) that appears as the images tooltip.
- link-anchor The code that actually renders the hyperlink (<a> or <utml:a>).
- -->
- <xsl:template name="render-action">
- <xsl:param name="icon-name" select="concat('icon_',$sys-ui-target-icon,'.gif')"/>
- <xsl:param name="icon-alt"/>
- <xsl:param name="link-anchor"/>
- <xsl:copy-of select="$link-anchor//script"/>
- <dp:list>
- <dp:section>
- <dp:label/>
- <dp:text>
- <xsl:for-each select="$link-anchor/*[local-name() != 'script']">
- <span>
- <img border="0" vspace="2" height="16" width="16">
- <xsl:attribute name="src"><xsl:value-of select="concat($image_root, $icon-name)"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="normalize-space($icon-alt)"/></xsl:attribute>
- <xsl:attribute name="title"><xsl:value-of select="normalize-space($icon-alt)"/></xsl:attribute>
- </img>
- </span>
- </xsl:for-each>
- </dp:text>
- <xsl:for-each select="$link-anchor/*[local-name() != 'script']">
- <xsl:copy>
- <xsl:copy-of select="./*|@*"/>
- <xsl:value-of select="text()"/>
- </xsl:copy>
- </xsl:for-each>
- </dp:section>
- </dp:list>
- </xsl:template>
- <!-- Variables needed for pf:gen-url -->
- <xsl:variable name="location" select="''"/>
- <xsl:variable name="request-url-params">
- <xsl:if test="/root/env/param[@name='rui']">
- <xsl:text/>&rui=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='rui'])),'url','rui','getdata')"/>
- </xsl:if>
- </xsl:variable>
- <!-- Back URLs will be stripped from the final URL, so these variables may be blank. -->
- <xsl:variable name="encodedPPBack" select="''"/>
- <xsl:variable name="encodedPP8Back" select="''"/>
- <xsl:variable name="javascript-encodedPP8Back" select="''"/>
- <xsl:variable name="encoded-back-url" select="''"/>
- <xsl:variable name="encoded-s7-back-url" select="''"/>
- <pf:gen-action/>
- <pf:gen-action-string/>
- <pf:gen-url/>
- </xsl:stylesheet>
- </xts:block>
- <!-- Debug -->
- <xts:block id="debug" type="exec" dependency="format missingObject" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html" >
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" doctype-system="" doctype-public=""/>
- <dbg:templates/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|