123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:out="dummy-uri"
- xmlns:wl="http://developer.cognos.com/schemas/xts/logicsheets/welcome/wl"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:skinCache="com.cognos.portal.skin.SkinCache">
-
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
-
-
- <!-- Default welcome screen layout/rendering -->
- <xsl:template match="wl:welcome">
- <!-- In lite mode we skip rendering the header and footer -->
- <out:variable name="liteMode" select="/root/env/param[@name='basewelcome']"/>
- <div>
- <out:attribute name="style">
- <out:text>text-align:center;</out:text>
- <out:if test="not(/root/env/param[@name='basewelcome'])">height:100%</out:if>
- </out:attribute>
- <div id="welcomePageBorder">
- <!-- Header -->
- <div class="welcomeTop">
- <div class="welcomeFixedBarTop"></div>
- <div class="welcomeTopPanelBodyWrapper">
- <div class="welcomeTopPanelBody">
- <out:if test="not($liteMode)">
- <table border="0" cellpadding="0" cellspacing="0" width="100%" class="" role="presentation" style="position: absolute; bottom: 0; margin-bottom: 35px;">
- <tr>
- <td role="presentation">
- <div class="welcomeHeaderIcon"></div>
- </td>
- </tr>
- <tr>
- <out:call-template name="renderCompanyLogo"/>
- <!-- <td role="presentation" valign="top" align="right">
- <out:call-template name="renderHeaderOptions"/>
- </td>
- -->
- <!-- <td role="presentation" id="ibmLogo"></td> -->
- </tr>
- </table>
- </out:if>
-
- <out:if test="$liteMode">
- <out:call-template name="renderHeaderOptions"/>
- </out:if>
- </div>
- </div>
- </div>
-
- <!-- The main course -->
- <div class="welcomeContent">
- <div class="welcomeBottomBody">
- <table border="0" cellpadding="0" cellspacing="0" width="100%" class="welcomeMiddlePanel" role="presentation">
- <tr>
- <td role="presentation">
- <div style="float: right; margin: 0px 30px;"><out:call-template name="renderHeaderOptions"/></div>
- </td>
- </tr>
- <tr>
- <td>
- <out:call-template name="renderTools"/>
- </td>
- </tr>
- <tr>
- <td role="presentation">
- <!-- Footer options -->
- <table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
- <tr>
- <td role="presentation" align="left" width="100%">
- <out:call-template name="renderWelcomeScreenVisibilityControl"/>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="welcomeFixedBarBottom"></div>
- </div>
- </div>
- </xsl:template>
-
-
- <!-- Welcome page parts -->
- <xsl:template match="wl:common-templates">
- <!--
- ========================================================================================
- Build the tools inventory one by one. Start with the built-in ones then the custom ones.
- ========================================================================================
- -->
- <out:variable name="tools">
-
- <!-- Home -->
- <tool name="Home">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_GO_HOME"/></heading>
- <action>launchWelcomeTool('home')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>home_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_VIEW_GO_HOME"/>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">goHomeID</xsl:with-param>
- </xsl:call-template>
- </tool>
-
- <!-- My Dashboard -->
- <out:variable name="hasFavorites" select="/root/favorites/dashboard/*[local-name()='flyout']"/>
- <!-- only show my dashboard link if there are favorites -->
- <out:if test="$userCanUseDashboardViewer and $hasFavorites">
- <tool name="MyDashboard">
- <xsl:call-template name="buildFavoritesMarkUp">
- <xsl:with-param name="tool">
- <id>dashboard</id>
- <heading><xts:string id="IDS_WELCOME_DASHBOARD"/></heading>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_dashboard_app_32.gif</out:attribute>
- </xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- Portal -->
- <tool name="ViewCognosContent">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_VIEW_BI"/></heading>
- <action>launchWelcomeTool('cc')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_connection_app_32.gif</out:attribute>
- <body>
- <out:variable name="ccLnk">
- <xts:string id="IDS_PORTAL"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_VIEW_BI_DESC">
- <xts:param name="ccLink"><out:value-of select="$ccLnk"/></xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">viewCCID</xsl:with-param>
- </xsl:call-template>
- </tool>
-
- <!-- Portal -->
- <out:if test="not(contains($ui_black_list, 'CRN_HEADER_PERSONAL_myinbox')) and $userCanUseMyInbox">
- <tool name="MyInbox">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_MYINBOX"/></heading>
- <action>launchWelcomeTool('mi')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_my_inbox_app_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_MYINBOX_DESC">
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">myInboxID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <out:if test="$userCanUseMyDataSets">
- <tool name="MyDataset">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_MYDATASET"/></heading>
- <action>launchWelcomeTool('pd')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_my_datasets_app_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_MYDATASET_DESC">
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">myDatasetID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
- <!-- Cognos Administration -->
- <out:if test="$userCanUseAdminConsole">
- <tool name="Administration">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_ADMINISTER_CONTENT"/></heading>
- <action>launchWelcomeTool('ac')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_administration_app_32.gif</out:attribute>
- <body>
- <out:variable name="adminLnk">
- <xts:string id="IDS_TOOLS_CA"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_COGNOS_ADMINISTRATION">
- <xts:param name="adminLink"><out:value-of select="$adminLnk"/></xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">adminID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
- <!-- IBM Cognos Dashboard -->
- <out:choose>
- <out:when test="$userCanUseDashboardViewer and $userCanUseAdvancedDashboardFeatures">
- <tool name="IBMCognosDashboard">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_IBM_COGNOS_DASHBOARD"/></heading>
- <action>launchWelcomeTool('IBMCognosDashboard')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_dashboard_app_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_IBM_COGNOS_DASHBOARD_DESC"/>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">dbViewerID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:when>
- <!-- both consumer and interact use term 'view my workspaces' -->
- <out:when test="$userCanUseDashboardViewer">
- <tool name="IBMCognosDashboard">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_IBM_COGNOS_DASHBOARD_VIEW"/></heading>
- <action>launchWelcomeTool('IBMCognosDashboard')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_dashboard_app_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_IBM_COGNOS_DASHBOARD_VIEW_DESC"/>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">dbViewerID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:when>
- </out:choose>
- <out:if test="($userCanUseRS or $userCanUseFullRS) and $rsBIAProfile">
- <tool name="ReportStudioBUA">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_IBM_COGNOS_EXPLORER"/></heading>
- <action>launchWelcomeTool('rsbua')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>report_studio_bua_app_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_IBM_COGNOS_EXPLORER_DESC"/>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">rsID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
- <out:if test="$userCanUseCI">
- <tool name="CognosInsight">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_IBM_COGNOS_INSIGHT"/></heading>
- <action>launchWelcomeTool('ci')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>cognos_insight_app_32.gif</out:attribute>
- <body>
- <xts:string id="IDS_WELCOME_IBM_COGNOS_INSIGHT_DESC"/>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">ciID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
- <!-- Contributor -->
- <out:if test="$userCanUsePlanningContributor">
- <tool name="Planning">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_PLANNING"/></heading>
- <action>launchWelcomeTool('pc')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>contributor_app_32.gif</out:attribute>
- <body>
- <out:variable name="planningLnk">
- <xts:string id="IDS_TOOLS_CONTRIBUTOR"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_VIEW_PLANNING">
- <xts:param name="planningLink">
- <out:value-of select="$planningLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">planID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- Controller -->
- <out:if test="$userCanUseControllerStudio">
- <tool name="Controller">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_CONTROLLER"/></heading>
- <action>cognosLaunch('ui.gateway', sGateway, 'ui.tool', 'Controller')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>controller_app_32.gif</out:attribute>
- <body>
- <out:variable name="controllerLnk">
- <xts:string id="IDS_TOOLS_CONTROLLER"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_VIEW_CONTROLLER">
- <xts:param name="controllerLink">
- <out:value-of select="$controllerLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">controllerID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- CMM -->
- <out:if test="$userCanUseMetricsManager">
- <tool name="MetricsManager">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_MONITOR_PERFORMANCE"/></heading>
- <action>launchWelcomeTool('cmm')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>metric_studio_app_32.gif</out:attribute>
- <body>
- <out:variable name="cmmLnk">
- <xts:string id="IDS_TOOL_CMM"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_VIEW_CMM">
- <xts:param name="cmmLink">
- <out:value-of select="$cmmLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">cmmID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- Adaptive Analytics -->
- <out:if test="$userCanUseAdaptiveAnalyticsAdministration">
- <tool name="AdaptiveAnalytics">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_ANALYTICS_DATA"/></heading>
- <action>launchWelcomeTool('aa')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>adaptive_analytics_app_32.gif</out:attribute>
- <body>
- <out:variable name="analyticsLnk">
- <xts:string id="IDS_TOOLS_ANALYTICS"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_VIEW_ANALYTICS">
- <xts:param name="analyticsLink">
- <out:value-of select="$analyticsLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">aaID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- query Studio -->
- <out:if test="$userCanUseFullQS">
- <tool name="QueryStudio">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_QUERY_DATA"/></heading>
- <action>launchWelcomeTool('qs')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>query_studio_app_32.gif</out:attribute>
- <body>
- <out:variable name="qryLnk">
- <xts:string id="IDS_TOOLS_QUERY"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_CREATE_NEW_QUERY">
- <xts:param name="queryLink">
- <out:value-of select="$qryLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">qsID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- Analysis Studio -->
- <out:if test="$userCanUseANS">
- <tool name="AnalysisStudio">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_ANALYSE_DATA"/></heading>
- <action>launchWelcomeTool('as')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>analysis_studio_app_32.gif</out:attribute>
- <body>
- <out:variable name="ppLnk">
- <xts:string id="IDS_TOOLS_ANALYSIS"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_CREATE_NEW_ANALYSIS">
- <xts:param name="analysisLink">
- <out:value-of select="$ppLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">analysisID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- Powerplay -->
- <out:if test="$userCanUsePPS">
- <tool name="PowerplayStudio">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_ANALYSE_DATA_POWERPLAY"/></heading>
- <action>launchWelcomeTool('pp')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>powerplay_studio_app_32.gif</out:attribute>
- <body>
- <out:variable name="pp2Lnk">
- <xts:string id="IDS_TOOLS_POWERPLAY"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_CREATE_NEW_POWERPLAY">
- <xts:param name="powerplayLink">
- <out:value-of select="$pp2Lnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">ppsID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
- <!-- Report studio -->
- <out:if test="$userCanUseFullRS">
- <tool name="ReportStudioPro">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_CREATE_NEW"/></heading>
- <action>launchWelcomeTool('rspro')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>report_studio_app_32.gif</out:attribute>
- <body>
- <out:variable name="rptLnk">
- <xts:string id="IDS_TOOLS_REPORT"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_CREATE_NEW_REPORT">
- <xts:param name="reportLink">
- <out:value-of select="$rptLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">fullRSID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- agent studio -->
- <out:if test="$userCanUseAGS">
- <tool name="EventStudio">
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><xts:string id="IDS_WELCOME_CREATE_AGT"/></heading>
- <action>launchWelcomeTool('es')</action>
- <out:attribute name="src"><out:value-of select="$brand_images"/>event_studio_app_32.gif</out:attribute>
- <body>
- <out:variable name="agsLnk">
- <xts:string id="IDS_TOOLS_AGENT"/>
- </out:variable>
- <xts:string id="IDS_WELCOME_CREATE_NEW_AGENT">
- <xts:param name="agentLink">
- <out:value-of select="$agsLnk"/>
- </xts:param>
- </xts:string>
- </body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">agsID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
- <!-- Lotus Connections Activities -->
- <out:if test="$userCanLaunchCollaborationTools and ($hasLCHomepage or $hasLCActivities)">
- <tool name="LotusConnectionsActions">
- <out:variable name="lcAction">
- <out:choose>
- <out:when test="$hasLCHomepage">launchWelcomeTool('lch')</out:when>
- <out:otherwise>launchWelcomeTool('lca')</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="lcHeading">
- <out:choose>
- <out:when test="$hasLCHomepage"><xts:string id="IDS_WELCOME_LOTUSCONNECTIONS"/></out:when>
- <out:otherwise><xts:string id="IDS_WELCOME_LOTUSCONNECTIONS_ACTIVITIES"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="lcBody">
- <out:choose>
- <out:when test="$hasLCHomepage"><xts:string id="IDS_WELCOME_LOTUSCONNECTIONS_DESC"/></out:when>
- <out:otherwise><xts:string id="IDS_WELCOME_LOTUSCONNECTIONS_ACTIVITIES_DESC"/></out:otherwise>
- </out:choose>
- </out:variable>
- <xsl:call-template name="buildActionMarkUp">
- <xsl:with-param name="tool">
- <heading><out:value-of select="$lcHeading"/></heading>
- <action out-var="$lcAction"/>
- <out:attribute name="src"><out:value-of select="$brand_images"/>lotusconnections_32.gif</out:attribute>
- <body><out:value-of select="$lcBody"/></body>
- </xsl:with-param>
- <xsl:with-param name="ariaID">lotusConnectionsID</xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:if>
-
- <!-- custom tools -->
- <out:for-each select="/root/welcome/tool[@type='custom' and (not(@group) or @group = '')]">
- <tool>
- <out:attribute name="name"><out:value-of select="@name"/></out:attribute>
- <out:attribute name="show"><out:value-of select="@show"/></out:attribute>
- <xsl:call-template name="buildCustomActionMarkUp">
- <xsl:with-param name="tool">
- <heading><out:copy-of select="./heading[@xml:lang = string($productLocale)]"/></heading>
- <body><out:copy-of select="./body[@xml:lang = string($productLocale)]"/></body>
- </xsl:with-param>
- </xsl:call-template>
- </tool>
- </out:for-each>
-
- </out:variable>
-
-
-
-
-
-
-
-
- <!--
- ========================================================================================
- Output templates to build markup for the bits and pieces that appear on the screen
- ========================================================================================
- -->
-
- <!-- logo -->
- <out:template name="renderCompanyLogo">
- <out:variable name="smuCustomWelcomeTitle">
- <out:variable name="customWelcomePageTitle">/uiSkin/branding/welcomePage/value[@name='cognos.connection.welcomepage']</out:variable>
- <out:value-of disable-output-escaping="yes" select="skinCache:getSkinPropertyStatic(key('session-param', 'skin'), string($customWelcomePageTitle), string(/root/cookies/cookie[@name='cam_passport']))"/>
- </out:variable>
- <out:choose>
- <out:when test="$smuCustomWelcomeTitle != ''">
- <td role="presentation" class="welcomeHeaderTitle" onclick="debug(event)">
- <out:copy-of select="$smuCustomWelcomeTitle"/>
- </td>
- </out:when>
- <out:otherwise>
- <td role="presentation" class="welcomeHeaderTitle" onclick="debug(event)">
- <xts:string id="IDS_COGNOS_REPORTS"/>
- </td>
- </out:otherwise>
- </out:choose>
- </out:template>
-
-
- <!-- Header Options -->
- <out:template name="renderHeaderOptions">
- <table border="0" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <!-- User Name -->
- <out:if test=" $is-named = '1' ">
- <td role="presentation">
- <div class="welcomeUserNameContainer">
- <out:choose>
- <out:when test="key('session-param', 'e_showTenantInfo') = 'true' and key('session-param', 'e_tenantDisplayName') != ''">
- <xts:string id="IDS_USERINFO_WITHTENANT">
- <xts:param name="userName"><out:value-of select="key('session-param', 'e_user')"/></xts:param>
- <xts:param name="tenantName"><out:value-of select="key('session-param', 'e_tenantDisplayName')"/></xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_USERINFO">
- <xts:param name="userName"><out:value-of select="key('session-param', 'e_user')"/></xts:param>
- </xts:string>
- </out:otherwise>
- </out:choose>
- </div>
- </td>
- </out:if>
-
- <!-- Logon -->
- <td role="presentation" class="welcomeAuthentication">
- <out:if test="$is-secure = '1'">
- <out:if test="not(contains($ui_black_list, 'CC_HEADER_MENU_logon')) and key('session-param', 'show_logon') = 'true'">
- <out:choose>
- <out:when test="$is-named='1'">
- <a onclick="delCookie('cc_state');"
- href="{'{$gateway}?b_action=xts.run&m=portal/main.xts&startwel=yes&h_CAM_action=logon&m_reload='}">
- <out:if test="$anchorTarget != ''">
- <out:attribute name="target">
- <out:value-of select="$anchorTarget"/>
- </out:attribute>
- </out:if>
- <xts:string id="IDS_TOOLS_LOGON"/>
- </a>
- </out:when>
- <out:otherwise>
- <a onclick="delCookie('cc_state')" href="{'{$gateway}?b_action=xts.run&m=portal/main.xts&startwel=yes&h_CAM_action=logon&m_reload='}">
- <out:if test="$anchorTarget != ''">
- <out:attribute name="target">
- <out:value-of select="$anchorTarget"/>
- </out:attribute>
- </out:if>
- <xts:string id="IDS_TOOLS_LOGON"/>
- </a>
- </out:otherwise>
- </out:choose>
- </out:if>
-
- <!-- Logoff -->
- <out:if test="$is-named = '1' and not(contains($ui_black_list, 'CC_HEADER_MENU_logoff'))">
- <out:if test="not(contains($ui_black_list, 'CC_HEADER_MENU_logon')) and key('session-param', 'show_logon') = 'true'">
- <span> | </span>
- </out:if>
- <a onclick="delCookie('cc_state');" href="{'{$gateway}'}?b_action=xts.run&m={'{$app}'}/logoff.xts&h_CAM_action=logoff">
- <out:if test="$anchorTarget != ''">
- <out:attribute name="target">
- <out:value-of select="$anchorTarget"/>
- </out:attribute>
- </out:if>
- <xts:string id="IDS_TOOLS_LOGOFF"/>
- </a>
- </out:if>
- </out:if>
- </td>
- </tr>
- </table>
- </out:template>
-
-
-
- <!-- Tools -->
- <out:template name="renderTools">
-
- <!-- First: sort the tools into groups -->
- <!-- Portal -->
- <out:variable name="portalGroup">
- <out:for-each select="/root/welcome/tool[@group = 'portal']">
- <out:variable name="userAllowedToSeeThisTool">
- <out:call-template name="isVisible">
- <out:with-param name="visibility" select="@show"/>
- </out:call-template>
- </out:variable>
- <out:variable name="currentToolName" select="@name"/>
- <out:if test="$userAllowedToSeeThisTool = 'true'">
- <out:copy-of select="$tools/tool[@name = $currentToolName]/*"/>
- </out:if>
- </out:for-each>
- </out:variable>
-
- <!-- Admin -->
- <out:variable name="adminGroup">
- <out:for-each select="/root/welcome/tool[@group = 'admin']">
- <out:variable name="userAllowedToSeeThisTool">
- <out:call-template name="isVisible">
- <out:with-param name="visibility" select="@show"/>
- </out:call-template>
- </out:variable>
- <out:variable name="currentToolName" select="@name"/>
- <out:if test="$userAllowedToSeeThisTool = 'true'">
- <out:copy-of select="$tools/tool[@name = $currentToolName]/*"/>
- </out:if>
- </out:for-each>
- </out:variable>
-
- <!-- CPM -->
- <out:variable name="appGroup">
- <out:for-each select="/root/welcome/tool[@group = 'app']">
- <out:variable name="userAllowedToSeeThisTool">
- <out:call-template name="isVisible">
- <out:with-param name="visibility" select="@show"/>
- </out:call-template>
- </out:variable>
- <out:variable name="currentToolName" select="@name"/>
- <out:if test="$userAllowedToSeeThisTool = 'true'">
- <out:copy-of select="$tools/tool[@name = $currentToolName]/*"/>
- </out:if>
- </out:for-each>
- </out:variable>
-
- <!-- Custom tools that don't belong in any of the built in groups -->
- <out:variable name="noNameGroup">
- <out:for-each select="/root/welcome/tool[@group = '' or not(@group)]">
- <out:variable name="userAllowedToSeeThisTool">
- <out:call-template name="isVisible">
- <out:with-param name="visibility" select="@show"/>
- </out:call-template>
- </out:variable>
- <out:variable name="currentToolName" select="@name"/>
- <out:if test="$userAllowedToSeeThisTool = 'true'">
- <out:copy-of select="$tools/tool[@name = $currentToolName]/*"/>
- </out:if>
- </out:for-each>
- </out:variable>
-
- <table border="0" width="100%" cellpadding="222" cellspacing="0" role="presentation">
- <tr>
- <!-- Portal Stuff - there are always items to show here. -->
- <!-- This can be empty if the welcome.xml is from blaring or older and there are
- no group attributes -->
- <out:if test="$portalGroup/*">
- <td valign="top" width="50%" class="welcomeToolGroupContainer">
- <div>
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation" colspan="2">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation"><div class="welcomeToolGroupHeaderLeft"/></td>
- <td role="presentation" class="welcomeToolGroupHeaderContainer"><xts:string id="IDS_WELCOME_GROUP_MY_CONTENT"/></td>
- <td role="presentation"><div class="welcomeToolGroupHeaderRight"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td valign="top" colspan="1" class="welcomeToolGroupBody"><out:copy-of select="$portalGroup"/></td>
- <td valign="top" align="right"><div /></td>
- </tr>
- </table>
- </div>
- </td>
- </out:if>
- <!-- App Stuff -->
- <out:if test="$appGroup/*">
- <td valign="top" width="50%" class="welcomeToolGroupContainer" rowspan="33">
- <div>
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation" colspan="2">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation"><div class="welcomeToolGroupHeaderLeft"/></td>
- <td role="presentation" class="welcomeToolGroupHeaderContainer"><xts:string id="IDS_WELCOME_GROUP_MY_ACTIONS"/></td>
- <td role="presentation"><div class="welcomeToolGroupHeaderRight"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td valign="top" colspan="1" class="welcomeToolGroupBody"><out:copy-of select="$appGroup"/></td>
- <td valign="top" align="right"><div /></td>
- </tr>
- </table>
- </div>
- </td>
- </out:if>
- </tr>
-
- <tr>
- <!-- Admin Stuff -->
- <out:if test="$adminGroup/*">
- <td valign="top" width="50%" class="welcomeToolGroupContainer">
- <div class="welcomeToolGroupContainerBorderTop">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation" colspan="2">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation"><div class="welcomeToolGroupHeaderLeft borderBottom"/></td>
- <td role="presentation" class="welcomeToolGroupHeaderContainer borderBottom"><xts:string id="IDS_WELCOME_GROUP_ADMINISTRATION"/></td>
- <td role="presentation"><div class="welcomeToolGroupHeaderRight borderBottom"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td valign="top" colspan="1" class="welcomeToolGroupBody"><out:copy-of select="$adminGroup"/></td>
- <td valign="top" align="right"><div /></td>
- </tr>
- </table>
- </div>
- </td>
- </out:if>
- </tr>
-
- <out:if test="$noNameGroup/*">
- <tr>
- <td valign="top" width="50%" class="welcomeToolGroupContainer">
- <div class="welcomeToolGroupContainerBorderTop">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation" colspan="2">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td role="presentation"><div class="welcomeToolGroupHeaderLeft"/></td>
- <td role="presentation" class="welcomeToolGroupHeaderContainer"></td>
- <td role="presentation"><div class="welcomeToolGroupHeaderRight"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td valign="top" colspan="1" class="welcomeToolGroupBody"><out:copy-of select="$noNameGroup"/></td>
- <td valign="top" align="right"><div /></td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </out:if>
- </table>
- </out:template>
-
-
-
- <!-- Show/Hide welcome screen -->
- <out:template name="renderWelcomeScreenVisibilityControl">
- <div class="welcomeHideShowContainer">
- <script language="javascript">
- function showWelcomeClicked()
- {
- var sBackURL = "<out:value-of select="$gateway"/>?b_action=xts.run&m=portal/welcome/welcome.xts";
- <out:if test="/root/env/param[@name='basewelcome']">
- sBackURL += "&basewelcome=yes";
- </out:if>
- <out:if test="/root/env/param[@name='wtarget']">
- sBackURL += "&wtarget=" + "<out:value-of select="xtsext:javascriptencode(/root/env/param[@name='wtarget'])"/>";
- </out:if>
- var showWelcomePage = 'true';
- <out:if test="not(string(/root/user/param[@name='showWelcomePage']) = 'false')">
- showWelcomePage = 'false';
- </out:if>
-
- document.updateOptionsForm.m_po_showWelcomePage.value = showWelcomePage;
- document.updateOptionsForm.backURL.value = sBackURL;
- document.updateOptionsForm.submit();
- }
- </script>
- <form name="welcomdisform" style="margin:0px">
- <table class="welcomeHideShowNormal" role="checkbox" border="0" cellpadding="0" cellspacing="0" tabindex="0"
- aria-labelledby="labelForHideWelcome"
- onmouseover="this.className='welcomeHideShowOver';" onfocus="this.className='welcomeHideShowOver'"
- onmouseout="this.className='welcomeHideShowNormal'" onblur="this.className='welcomeHideShowNormal'"
- onclick="showWelcomeClicked()"
- onkeypress="if(event.keyCode==9) return true; if(event.keyCode==13 || event.charCode==32 || event.keyCode==32) showWelcomeClicked(); return false;"
- >
- <out:choose>
- <out:when test="not(string(/root/user/param[@name='showWelcomePage']) = 'false')">
- <out:attribute name="aria-checked">true</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="aria-checked">false</out:attribute>
- </out:otherwise>
- </out:choose>
- <tr>
- <td role="presentation">
- <input id="m_p_do_not_show_welcome" name="m_p_do_not_show_welcome" type="checkbox" tabindex="-1" aria-labelledby="labelForHideWelcome">
- <out:if test="not(string(/root/user/param[@name='showWelcomePage']) = 'false')">
- <out:attribute name="checked">yes</out:attribute>
- </out:if>
- </input>
- </td>
- <td id="labelForHideWelcome" role="presentation" class="welcomeHideShowText">
- <xts:string id="IDS_WELCOME_SHOW_PAGE"/>
- </td>
- </tr>
- </table>
- </form>
- <form name="updateOptionsForm" method="post" action="{'{$gateway}'}" style="margin:0px">
- <input name="b_action" type="hidden" value="xts.run"/>
- <input name="m" type="hidden" value="portal/submit.xts"/>
- <input name="m_obj" type="hidden" value="~"/>
- <input name="m_class" type="hidden" value="account"/>
- <input name="ifrmcmd" type="hidden" value="save"/>
- <input name="m_po_showWelcomePage" value="" type="hidden"/>
- <input name="backURL" value="" type="hidden"/>
- <!-- Insert a cafcontextid if it is needed -->
- <out:if test="xtsext:cafaction('get_extendedcontextid', '') = 'true'">
- <input type="hidden" name="ui.cafcontextid">
- <out:attribute name="value">
- <out:value-of select="xtsext:cafaction(concat('get_contextid_settemplatename_mainframeworkxsl_setcomponent_ps_setpassportid_', $passport), '')"/>
- </out:attribute>
- </input>
- </out:if>
- </form>
- </div>
- </out:template>
-
- <!--
- Helper template:
- Evaluates a "show" attribute on a customized UI element to determine if the element can be shown
- Takes a string value (@show) and returns a boolean.
- -->
- <out:template name="isVisible">
- <out:param name="visibility"/>
- <out:value-of select="(string($visibility) = '') or
- (contains( concat(' ', $visibility, ' '), 'Administrators') and $isAdminUser) or
- (contains(concat(' ', $visibility, ' ') , 'QSUsers') and $userCanUseFullQS) or
- (contains(concat(' ', $visibility, ' ') , 'RSUsers') and $userCanUseFullRS) or
- (contains(concat(' ', $visibility, ' ') , 'Consumers') and $is-named='1') or
- (contains(concat(' ', $visibility, ' ') , 'Anonymous') and $is-named='0') or
- (key('system-param', 'ui_groups')/group[contains(concat(' ', $visibility, ' '), concat(' ', @id, ' ')) and
- contains( key('session-param', 'uig'), concat(' ', @id, ' '))])"/>
- </out:template>
- </xsl:template>
-
-
- <!-- Builds ready to go HTML markup for one action (tool). -->
- <xsl:template name="buildActionMarkUp">
- <xsl:param name="tool"/>
- <xsl:param name="ariaID"/>
- <xsl:variable name="actionID">
- <xsl:value-of select="$ariaID"/>
- </xsl:variable>
- <div class="welcomeToolContainerNormal" tabindex="0"
- onmouseover="this.className='welcomeToolContainerOver'"
- onfocus="this.className='welcomeToolContainerOver'"
- onmouseout="this.className='welcomeToolContainerNormal'"
- onblur="this.className='welcomeToolContainerNormal'"
- id="{$actionID}_link"
- role="link">
- <out:attribute name="aria-labelledby">
- <xsl:value-of select="$actionID"/>
- </out:attribute>
- <out:attribute name="title">
- <xsl:copy-of select="$tool/body"/>
- </out:attribute>
- <xsl:if test="$tool/action">
- <xsl:variable name="out-var" select="$tool/action/@out-var"/>
- <out:attribute name="onclick">
- <xsl:choose>
- <xsl:when test="$out-var!=''"><out:value-of select="{$out-var}"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$tool/action"/></xsl:otherwise>
- </xsl:choose>
- </out:attribute>
- <out:attribute name="onkeypress"><out:text>if(event.keyCode==9) return true; else if (event.keyCode==13 || event.charCode==32 || event.keyCode==32) </out:text>
- <xsl:choose>
- <xsl:when test="$out-var!=''"><out:value-of select="{$out-var}"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$tool/action"/></xsl:otherwise>
- </xsl:choose>
- </out:attribute>
- </xsl:if>
- <span style="position:absolute; margin-left: -9999px; margin-top: -9999px">
- <out:attribute name="id">
- <xsl:value-of select="$actionID"/>
- </out:attribute>
- <xsl:copy-of select="$tool/body"/>
- </span>
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr role="presentation">
- <td role="presentation" class="welcomeToolIconContainer" >
- <img role="presentation">
- <out:attribute name="alt"><xsl:copy-of select="$tool/heading"/></out:attribute>
- <xsl:copy-of select="$tool/out:attribute"/>
- </img>
- </td>
- <td role="presentation" class="welcomeToolHeadingContainer" ><xsl:copy-of select="$tool/heading/child::node()"/></td>
- </tr>
- </table>
- </div>
- </xsl:template>
-
-
- <!-- Builds ready to go HTML markup for custom welcome tools -->
- <xsl:template name="buildCustomActionMarkUp">
- <xsl:param name="tool"/>
- <div class="welcomeToolContainer">
- <div class="welcomeToolHeading">
- <xsl:copy-of select="$tool/heading"/>
- </div>
- <div class="welcomeToolDescription">
- <xsl:copy-of select="$tool/body"/>
- </div>
- </div>
- </xsl:template>
-
- <xsl:template name="buildFavoritesMarkUp">
- <xsl:param name="tool"/>
- <out:variable name="favs" select="/root/favorites"/>
- <out:variable name="flyout" select="$favs/*[local-name()='{$tool/id}']/*[local-name()='flyout']"/>
- <out:variable name="keyAction">
- <out:choose>
- <out:when test="$flyout">
- <out:text>javascript:toggleDynamicSection_<xsl:value-of select="$tool/id"/>('expand_<xsl:value-of select="$tool/id"/>')</out:text>
- </out:when>
- <out:otherwise>
- <out:value-of select="$favs/*[local-name()='{$tool/id}']/*[local-name()='action']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="altText" select="$favs/*[local-name()='{$tool/id}']/*[local-name()='title']"/>
- <div class="welcomeToolContainerNormal" tabindex="0"
- onmouseover="this.className='welcomeToolContainerOver'"
- onfocus="this.className='welcomeToolContainerOver'"
- onmouseout="this.className='welcomeToolContainerNormal'"
- onblur="this.className='welcomeToolContainerNormal'"
- id="dashboard_link"
- aria-labelledby="favouritesToolContainerID"
- title="{'{$altText}'}"
- onclick="{'{$keyAction}'}"
- onkeypress="if(event.keyCode==9) return true; else if (event.keyCode==13 || event.charCode==32 || event.keyCode==32){'{$keyAction}'}"
- role="link">
- <out:if test="$flyout">
- <out:attribute name="aria-describedby">favoritesClosedStatus</out:attribute>
- <span style="position:absolute; margin-left: -9999px; margin-top: -9999px" id="favoritesOpenStatus"><xts:string id="IDS_WELCOME_FAVORITES_DIALOG_DESCRIPTION_OPEN"/></span>
- <span style="position:absolute; margin-left: -9999px; margin-top: -9999px" id="favoritesClosedStatus"><xts:string id="IDS_WELCOME_FAVORITES_DIALOG_DESCRIPTION_CLOSED"/></span>
- </out:if>
- <span style="position:absolute; margin-left: -9999px; margin-top: -9999px" id="favouritesToolContainerID">
- <out:value-of select="$altText"/>
- </span>
- <out:if test="$favs/*[local-name()='{$tool/id}']/*[local-name()='script']">
- <script language="javascript">
- <out:value-of select="$favs/*[local-name()='{$tool/id}']/*[local-name()='script']"/>
- </script>
- </out:if>
- <div>
- <table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr role="presentation">
- <td role="presentation" class="welcomeToolIconContainer" >
- <img role="presentation">
- <out:attribute name="alt"><xsl:copy-of select="$tool/heading"/></out:attribute>
- <xsl:copy-of select="$tool/out:attribute"/>
- </img>
- </td>
- <td role="presentation" class="welcomeToolHeadingContainer" ><xsl:copy-of select="$tool/heading/child::node()"/><out:if test="$flyout">  <img id="img_{$tool/id}" src="{'{$skin_images}'}popup_expand.gif" role="presentation"><out:attribute name="alt"><xts:string id="IDS_SECTION_EXPAND"/></out:attribute></img></out:if></td>
- </tr>
- </table>
- </div>
- </div>
- <!-- Generate the fly-out only as there are always favorites -->
- <!-- ability to create workspace if have advanced dashboard features capability -->
- <out:variable name="createWksp" select="$flyout/*[local-name()='entries']/*[local-name()='item'][@createWksp='true']"/>
- <!-- Variable contains the html structure for the title in the favorites flyout -->
- <out:variable name="topRegion">
- <div class="favoritesTopContainer" aria-labelledby="faveTitle" role="presentation">
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="faveTitle"><out:value-of select="$flyout/caption"/></span>
- <table border="0" cellpadding="0" cellspacing="0" id="favClose" tabindex="-1" role="presentation">
- <tr class="favoritesAlignText">
- <td role="presentation">
- <img>
- <out:attribute name="alt"></out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>favorites.gif</out:attribute>
- </img>
- </td>
- <td role="presentation" class="favoritesTopContainerText">
- <out:value-of select="$flyout/caption"/>
- </td>
- <td role="presentation" width="100%" >
- <img align="right" class="favoritesCloseIcon" tabindex="0" role="button">
- <out:attribute name="onclick">
- <out:text>javascript:hide_<xsl:value-of select="$tool/id"/>()</out:text>
- </out:attribute>
- <out:attribute name="onkeypress">
- <out:text>if(event.keyCode==9) return true; else if (event.keyCode==13 || event.charCode==32 || event.keyCode==32 || event.keyCode==27) </out:text>
- <out:text>javascript:hide_<xsl:value-of select="$tool/id"/>()</out:text>
- </out:attribute>
- <out:attribute name="alt"><xts:string id="IDS_CLOSE"/></out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>popup_close_28.png</out:attribute>
- </img>
- </td>
- </tr>
- </table>
- </div>
- </out:variable>
- <!-- Variable contains the html structure for the favorites entries inside a scrollable region in the favorites flyout -->
- <out:variable name="scrollRegion">
- <div id="favoritesScrollContainer" class="favoritesScrollContainer" tabindex="0" role="list" aria-labelledby="favoritesScrollLabel">
- <out:attribute name="onkeypress">favourites_onkeypress(event);</out:attribute>
- <span id="favoritesScrollLabel" style="position:absolute; margin-left: -9999px; margin-top: -9999px"><xts:string id="IDS_WELCOME_FAVORITES_LIST_DESCRIPTION"/></span>
- <out:for-each select="$flyout/*[local-name()='entries']/*[local-name()='item' and not(@createWksp='true')]">
- <out:variable name="atLast" select="position()=last()"/>
- <out:variable name="action" select="./action"/>
- <out:variable name="image" select="./image"/>
- <out:variable name="pos" select="position()"/>
- <div class="favoritesEntry" onmouseout="this.className='favoritesEntry'" tabIndex="-1" role="listitem">
- <out:attribute name="onmouseover">updateFavRow(this, <out:value-of select="$pos"/>);</out:attribute>
- <out:attribute name="id">favoritesEntry<out:value-of select="$pos"/></out:attribute>
- <out:if test="$action">
- <out:attribute name="onclick"><out:value-of select="$action"/>;hide_<xsl:value-of select="$tool/id"/>();</out:attribute>
- </out:if>
- <out:if test="./altText">
- <out:attribute name="alt"><out:value-of select="./altText"/></out:attribute>
- <out:attribute name="title"><out:value-of select="./altText"/></out:attribute>
- </out:if>
- <out:if test="./ariaText">
- <out:attribute name="aria-labelledby">dashOpenLabel_<out:value-of select="$pos"/></out:attribute>
- <span id="dashOpenLabel_{'{$pos}'}" style="position:absolute; margin-left: -9999px; margin-top: -9999px"><out:value-of select="./ariaText"/></span>
- </out:if>
- <table role="presentation">
- <tr class="favoritesAlignText">
- <td role="presentation">
- <img>
- <out:attribute name="alt"></out:attribute>
- <out:attribute name="src"><out:value-of select="$image"/></out:attribute>
- </img>
- </td>
- <td role="presentation" class="favoritesItemNormal">
- <div>
- <out:attribute name="id">favEntry<out:value-of select="$pos"/></out:attribute>
- <out:value-of select="string(./name)"/>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </out:for-each>
- </div>
- </out:variable>
-
- <!-- Declare the favourites flyout area -->
- <div id="expand_{$tool/id}" class="hidden" role="dialog" aria-labelledby="faveTitle">
- <out:attribute name="onclick">
- <out:choose>
- <out:when test="$browser = 'ie'">event.cancelBubble='true';</out:when>
- <out:otherwise>event.stopPropagation();</out:otherwise>
- </out:choose>
- </out:attribute>
- <script language="javascript">
- //images used for the expanding section
- var imgUp_<xsl:value-of select="$tool/id"/> = new Image();
- var imgDown_<xsl:value-of select="$tool/id"/> = new Image();
- imgUp_<xsl:value-of select="$tool/id"/>.src = '<out:value-of select="xtsext:javascriptencode($skin_images)"/>popup_collapse.gif';
- imgUp_<xsl:value-of select="$tool/id"/>.alt = '<xts:string id="IDS_SECTION_COLLAPSE" encode="javascript"/>';
- imgDown_<xsl:value-of select="$tool/id"/>.src = '<out:value-of select="xtsext:javascriptencode($skin_images)"/>popup_expand.gif';
- imgDown_<xsl:value-of select="$tool/id"/>.alt = '<xts:string id="IDS_SECTION_EXPAND" encode="javascript"/>';
- // Register to hide dialog when the user clicks anywhere on the document
- if (document.addEventListener) {
- document.addEventListener("click", hide_<xsl:value-of select="$tool/id"/>, false);
- } else if (document.attachEvent) {
- document.attachEvent("onclick", hide_<xsl:value-of select="$tool/id"/>);
- }
- function hide_<xsl:value-of select="$tool/id"/>()
- {
- obj = document.getElementById('expand_<xsl:value-of select="$tool/id"/>');
- obj.className = "hidden";
- var imgName = document.getElementById('img_<xsl:value-of select="$tool/id"/>');
- imgName.src = imgDown_<xsl:value-of select="$tool/id"/>.src;
- imgName.alt = imgDown_<xsl:value-of select="$tool/id"/>.alt;
- imgName.title = imgDown_<xsl:value-of select="$tool/id"/>.alt;
- var linkEl = document.getElementById("<xsl:value-of select="$tool/id"/>_link");
- linkEl.setAttribute("aria-describedby","favoritesClosedStatus");
- linkEl.focus();
- }
-
- function createDashboardKeypress_<xsl:value-of select="$tool/id"/>(event)
- {
- //tab key
- if (event.keyCode == 9 && event.shiftKey == false){
- var closeEl = document.getElementById("favClose");
- closeEl.focus();
- }
- //esc key
- else if (event.keyCode==27 || event.charCode==32)
- {
- hide_<xsl:value-of select="$tool/id"/>();
- }
- else if (event.keyCode==13 || event.charCode==32){
- <out:value-of select="$createWksp/action"/>;
- }
- return true;
- }
-
- function show_<xsl:value-of select="$tool/id"/>(wasDelayed)
- {
- if (wasDelayed) {
- obj = document.getElementById('expand_<xsl:value-of select="$tool/id"/>');
- obj.className = "welcomeFavorites";
-
- // Set focus to the scroll container
- favScrollArea = document.getElementById('favoritesScrollContainer');
- favScrollArea.focus();
-
- var imgName = document.getElementById('img_<xsl:value-of select="$tool/id"/>');
- imgName.src = imgUp_<xsl:value-of select="$tool/id"/>.src;
- imgName.alt = imgUp_<xsl:value-of select="$tool/id"/>.alt;
- imgName.title = imgUp_<xsl:value-of select="$tool/id"/>.alt;
- var favLink = document.getElementById("<xsl:value-of select="$tool/id"/>_link");
- favLink.setAttribute("aria-describedby","favoritesOpenStatus");
- } else {
- <!-- delay 'show' a bit to ensure it gets executed after 'hide' in some instances -->
- setTimeout('show_<xsl:value-of select="$tool/id"/>("wasDelayed")', 10);
- }
- }
- function toggleDynamicSection_<xsl:value-of select="$tool/id"/>(name)
- {
- if(document.getElementById(name).className == 'hidden')
- {
- show_<xsl:value-of select="$tool/id"/>("");
- }
- else
- {
- hide_<xsl:value-of select="$tool/id"/>();
- }
- }
-
- var curfav = null;
- var Favorites_Entry = "favoritesEntry";
- var Favorites_Entry_Over = "favoritesEntryOver";
-
- function favourites_onkeypress(evt) {
- evt = evt != null ? evt : window.event;
- var e = evt.srcElement ? evt.srcElement : evt.target;
-
- // Enter: Act on the current menu
- if (evt.keyCode == 13) {
- if (curfav == null) {
- curfav = 1;
- }
-
- curElem = document.getElementById(Favorites_Entry + curfav);
- curElem.onclick();
- }
- // Esc Key: Close menu
- else if (evt.keyCode == 27) {
- if (curfav != null) {
- curElem = document.getElementById(Favorites_Entry + curfav).className = Favorites_Entry;
- curfav = null;
- }
- hide_<xsl:value-of select="$tool/id"/>();
- }
- // Up Arrow
- else if (evt.keyCode == 38) {
- if (curfav != null) {
- document.getElementById(Favorites_Entry + curfav).className = Favorites_Entry;
- if (curfav > 1) {
- curfav--;
- }
- else{
- curfav = document.getElementById(Favorites_Entry + "1").parentNode.childNodes.length - 1;
- }
- newElem = document.getElementById(Favorites_Entry + curfav)
- newElem.className = Favorites_Entry_Over;
- newElem.focus();
- }
- }
- // Down arrow
- else if (evt.keyCode == 40) {
- if (curfav != null) {
- var itemList = document.getElementById(Favorites_Entry + "1").parentNode.childNodes.length - 1;
- oldElem = document.getElementById(Favorites_Entry + curfav);
- if (oldElem == null){
- curfav = 1;
- oldElem = document.getElementById(Favorites_Entry);
- }
- oldElem.className = Favorites_Entry;
- if (itemList > curfav) {
- curfav++;
- }
- else {
- curfav = 1;
- }
- }
- else {
- curfav = 1;
- }
- newElem = document.getElementById(Favorites_Entry + curfav)
- newElem.className = Favorites_Entry_Over;
- newElem.focus();
- }
-
- evt.cancelBubble = true;
- if (evt.stopPropagation) evt.stopPropagation();
- }
-
-
-
- function updateFavRow(elem, rowNum) {
- if (curfav != null) {
- document.getElementById(Favorites_Entry + curfav).className = Favorites_Entry;
- }
-
- elem.className = Favorites_Entry_Over;
- curfav=rowNum;
- }
- </script>
- <div>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
- <tr class="favoritesTopInsideRow">
- <td role="presentation" class="favoritesTopInsideImage"><out:copy-of select="$topRegion"/></td>
- </tr>
- </table>
- </div>
- <out:copy-of select="$scrollRegion"/>
- </div>
- </xsl:template>
-
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|