123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2015
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns: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:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- 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:rss="http://developer.cognos.com/schemas/xts/rss/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:out="dummy-uri"
- xmlns:cps="http://developer.cognos.com/schemas/cps/asm/objects/1/"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:mvc="http://developer.cognos.com/schemas/xts/mvc"
- exclude-result-prefixes="xsl cps cm pf pm mt mf xts xtsext cf cp rss out bus xts SOAP-ENV mvc">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
-
-
- <!-- Global vars -->
- <!-- ================================================= -->
- <mf:variables stateParams="mvc-sfolder m_ts m_folder m_folder2 m_nbid m_nbid2 m_section m_pagerfrom m_pagerto m_pg_e m_tab rui m_page backURL m_portlet" mode="main"/>
- <pf:variables/>
- <pf:documentFormats/>
- <mf:main-variables/>
- <rss:variables/>
- <mf:TabRenderingTemplates/>
- <cp:flyoutControl/>
- <xsl:variable name="cmd-form" select="'cform'"/>
- <xsl:variable name="edit-form" select="'pform'"/>
- <!-- Container security -->
- <xsl:variable name="canTraverseFolder" select="contains(string($rootReply/*/cm:permissions), 'traverse')"/>
- <xsl:variable name="canWriteFolder" select="contains(string($rootReply/*/cm:permissions), 'write')"/>
-
- <!-- For paths pointing to the personal folder space ONLY, we hide the first part of the path (i.e. /directory/namespace/...). We show My Folders instead. -->
- <xsl:variable name="start-at-path">
- <xsl:if test="$isMFNav">
- <xsl:value-of select="key('session-param', 'e_mrootpath')"/>
- </xsl:if>
- <xsl:if test="$isPFNav and $defaultContentRoot != '/content' and not($showingUPF)">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:if>
- </xsl:variable>
-
-
-
-
- <!-- start the output -->
- <!-- ================================================= -->
- <xsl:template match="/root">
-
- <xsl:variable name="oTitle">
- <xsl:choose>
- <xsl:when test="$pageName != ''">
- <xsl:value-of select="$pageName"/>
- </xsl:when>
- <xsl:when test="$pageNotFound != ''">
- <xts:string id="IDS_PAGE_UNAVAILABLE"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="invalidContent" select="not(count($rootReply/*)=0 or (count($rootReply/*)=1 and ($rootReply/*/cm:ancestors/cm:ancestorInfo[cm:objectClass='content'] or $rootReply/*/cm:ancestors/cm:ancestorInfo[cm:objectClass='directory'] or $rootReply/*[cm:objectClass='content'])))"/>
- <xsl:variable name="thisURL" select="concat($gateway,'?b_action=xts.run&m=portal/cc.xts')"/>
- <!-- Note: DOCTYPE is handled by mt:page -->
- <html lang="{$productLocale}" encodeDocType="false">
- <!-- MVC - Content Reference -->
- <xsl:if test="$isMFNav and $mvc-N-enabled">
- <mvc:remotePersonalRCRCreation/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$invalidContent">
- <head>
- <meta http-equiv="refresh">
- <xsl:attribute name="content">0; URL=<xsl:value-of select="$thisURL"/></xsl:attribute>
- </meta>
- </head>
- <body/>
- </xsl:when>
- <xsl:otherwise>
- <head>
- <pf:meta expires="false"/>
- <title>
- <xsl:value-of select="$oTitle"/> -
- <xsl:choose>
- <xsl:when test="$displayMode = 'viewer'"><xts:string id="REPORT_VIEWER_WINDOW_TITLE"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PORTAL"/></xsl:otherwise>
- </xsl:choose>
- </title>
- <mt:stylesheet/>
- <mf:head/>
- <pf:help context=""/>
- <pf:launch/>
- <xsl:if test="$pageType = 'PFMF'">
- <!-- link for Active Bookmarks (RSS) in FireFox -->
- <rss:link/>
- </xsl:if>
- </head>
- <!-- HTML body -->
- <mt:page mode="main" region="IDS_PORTAL">
-
-
-
- <!-- Render the top headers. -->
- <xsl:call-template name="render-header"/>
-
- <xsl:variable name="isHomeCommand" select="key('env-param', 'gohome')"/>
-
- <xsl:variable name="invalidHomeHandler">
- <script>
- alert("<xts:string id="IDS_PAGE_INVALID_HOME" encode="javascript"/>");
- var url = "<xsl:value-of select="xtsext:javascriptencode($gateway)"/>?<xsl:value-of select="xtsext:javascriptencode($baseCCQS)"/>";
- location.href = url;
- </script>
- </xsl:variable>
-
- <xsl:choose>
- <!-- Render standard PF/MF tabs -->
- <xsl:when test="$pageType = 'PFMF'">
- <form name="pform" method="post" action="{$gateway}" style="margin:0px">
- <mf:edit-vars/>
-
- <xsl:choose>
- <!-- MVC - Content Reference -->
- <xsl:when test="$mvc-N-enabled and $mvc-remoteNav">
- <xsl:call-template name="mvcNavigateRemoteContent"/>
- </xsl:when>
-
- <!-- Handle Zero access or deleted folder scenarios (this is when the user has none of the 5 security permissions) or the folder no longer exists -->
- <xsl:when test="not($rootReply/*) and not($showingUPF)">
- <xsl:choose>
- <xsl:when test="$isHomeCommand">
- <xsl:copy-of select="$invalidHomeHandler"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:containerNoAccess/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
-
- <!-- detailed view -->
- <xsl:when test="$defaultNavigationView = 'newspaper'">
- <xsl:choose>
- <xsl:when test="not($childReply/*[cm:usage != 'subObject']) and not($showingUPF)">
- <mt:objectNoneFound/>
- </xsl:when>
-
- <xsl:otherwise>
- <!-- Define all necessary variables that we will need to render detailed view here so they will have a global scope -->
- <xsl:variable name="columns" select="number(key('session-param', 'columnsPerPage'))"/>
- <!-- Column width in percent of the total row width with 1% spacers. -->
- <xsl:variable name="width">
- <xsl:choose>
- <xsl:when test="$columns = '2'">49</xsl:when>
- <xsl:when test="$columns = '3'">32</xsl:when>
- <xsl:when test="$columns = '4'">24</xsl:when>
- <xsl:when test="$columns = '5'">19</xsl:when>
- <xsl:otherwise>49</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <p/>
-
- <!-- Render the Entries -->
- <!-- Show CM data if the user can traverse the container -->
- <xsl:choose>
- <xsl:when test="$canTraverseFolder and count($childReply/*[cm:usage != 'subObject']) > 0">
- <xsl:for-each select="$childReply/*[cm:usage != 'subObject']">
- <xsl:call-template name="render-detail">
- <xsl:with-param name="columns" select="$columns"/>
- <xsl:with-param name="width" select="$width"/>
- </xsl:call-template>
- </xsl:for-each>
- <rss:button/>
- </xsl:when>
- <xsl:when test="count($childReply/*[cm:usage != 'subObject']) = 0 and ($isRootFolder) ">
- <mt:objectNoneFound/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="not($showingUPF)">
- <mt:objectNoneFound id="IDS_NO_TRAVERSE_CONTAINER"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- <!-- Show UPF content -->
- <xsl:if test="$showingUPF">
- <!-- Insert some space between UPF and CC -->
- <xsl:if test="$rootReply/*">
- <div style="padding-top:50px;"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="upfContent/cm:queryResponse/cm:queryReply[2]/*[cm:usage != 'subObject']">
- <xsl:for-each select="upfContent/cm:queryResponse/cm:queryReply[2]/*[cm:usage != 'subObject']">
- <xsl:call-template name="render-detail">
- <xsl:with-param name="columns" select="$columns"/>
- <xsl:with-param name="width" select="$width"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <mt:objectNoneFound/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
-
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
-
-
-
- <!-- list view -->
- <xsl:otherwise>
- <xsl:if test="$isRootFolder or not($showingUPF)">
- <xsl:choose>
- <xsl:when test="$canTraverseFolder">
- <xsl:call-template name="renderCMContentInList"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:objectNoneFound id="IDS_NO_TRAVERSE_CONTAINER"/>
- </xsl:otherwise>
- </xsl:choose>
- <p/>
- </xsl:if>
-
- <!-- Show UPF content -->
- <xsl:choose>
- <xsl:when test="count(upfContent/cm:queryResponse/cm:queryReply[2]/*[cm:usage != 'subObject']) > 0">
- <xsl:call-template name="renderUPFContentInList"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$showingUPF">
- <mt:objectNoneFound/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:otherwise>
- </xsl:choose>
- </form>
- </xsl:when>
-
-
-
-
-
-
-
- <!-- No pages in portal -->
- <xsl:when test="$pageID = '' and count($portalPages/*) = 0">
- <mt:errorMessage>
- <xts:string id="IDS_PAGE_NO_PAGES"/>
- <br/>
- <br/>
- <xsl:variable name="action">
- <a href="javascript:pageCmd('add')">
- <xts:string id="IDS_PAGE_ADD_PAGES"/>
- </a>
- </xsl:variable>
- <xsl:if test="$canWriteToAccount">
- <xts:string id="IDS_PAGE_ACTION">
- <xts:param name="pageAction">
- <xsl:copy-of select="$action"/>
- </xts:param>
- </xts:string>
- </xsl:if>
- </mt:errorMessage>
-
- <xsl:if test="$isHomeCommand and key('env-param', 'm_tabPath')">
- <xsl:copy-of select="$invalidHomeHandler"/>
- </xsl:if>
-
- </xsl:when>
-
-
- <!-- Page Not found -->
- <xsl:when test="($pageNotFound or ($pageDisabled and not($pageCanWrite)) or not($pageCanRead)) and $pageID != 'portlet'">
- <mt:errorMessage>
- <xts:string id="IDS_PAGE_UNAVAILABLE_DESC"/>
- <xsl:variable name="action">
- <a href="javascript:pageCmd('remove')">
- <xts:string id="IDS_PAGE_MENU_REMOVE_PAGE"/>
- </a>
- </xsl:variable>
-
- <br/>
-
- <!-- Add a "remove portal tab" when in protal tab mode -->
- <xsl:if test="$isPersonalPortalPage and $canWriteToAccount and $displayMode = 'portal'">
- <xts:string id="IDS_PAGE_ACTION">
- <xts:param name="pageAction">
- <xsl:copy-of select="$action"/>
- </xts:param>
- </xts:string>
- </xsl:if>
-
- <xsl:if test="$isHomeCommand and $pageNotFound and key('env-param', 'm_tabPath')">
- <xsl:copy-of select="$invalidHomeHandler"/>
- </xsl:if>
- </mt:errorMessage>
- </xsl:when>
-
- <!-- Render the page -->
- <xsl:otherwise>
- <xsl:value-of select="/root/assembler/*[1]/cps:pageletMarkup/cps:markupString" disable-output-escaping="yes"/>
- </xsl:otherwise>
- </xsl:choose>
-
- <form name="cform" method="post" action="{$gateway}">
- <mf:cmd-vars/>
- </form>
- <!-- End of HTML body -->
- </mt:page>
- </xsl:otherwise>
- </xsl:choose>
- </html>
- </xsl:template>
-
-
- <!-- common templates. -->
- <mt:actions mode="main"/>
- <pf:gen-action/>
- <pf:gen-icon/>
- <pf:gen-url/>
- <pf:utilities/>
-
- <!-- MVC - Content Reference -->
- <mvc:instance-vars/>
- <xsl:template name="mvcNavigateRemoteContent">
- <xsl:variable name="hasAccess" select="contains($rootReply/*/cm:permissions, 'traverse') and contains($rootReply/*/cm:permissions, 'read')"/>
- <xsl:choose>
- <xsl:when test="$hasAccess">
- <xsl:variable name="fragment-params">
- <xsl:variable name="mvc-sfolder">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='mvc-sfolder']">
- <xsl:value-of select="/root/env/param[@name='mvc-sfolder']"/>
- </xsl:when>
- <xsl:when test="$rootReply/*/cm:specification/*[local-name()='specification']/*[local-name()='param'][@name='startingFolder']">
- <xsl:value-of select="$rootReply/*/cm:specification/*[local-name()='specification']/*[local-name()='param'][@name='startingFolder']"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$rcr-id = $cookied-rcr-id"></xsl:when>
- <xsl:when test="$mvc-sfolder">&containerId=<xsl:value-of select="xtsext:urlencode($mvc-sfolder)"/></xsl:when>
- <xsl:when test="$mvc-remotePFNav">&containerId=systemDefault</xsl:when>
- <xsl:when test="$mvc-remoteMFNav">&containerId=userDefault</xsl:when>
- </xsl:choose>
- </xsl:variable>
- <mvc:instance id="'navigator'" fragment-params="$fragment-params"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:containerNoAccess/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="renderCMContentInList">
- <mf:long-description-scripts/>
-
- <cf:main-pager-section width="100%" virtualPage="true">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">$childReply/*[cm:usage != 'subObject']</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader session-name="s_cc">
- <cp:columnHeader width="16" toggleName="checkbox_" noLabel="true" id="checkbox_0"/>
- <cp:columnHeader width="20"/>
- <cp:columnHeader sort="n" width="100%" wrap="true" id="columnHeaderName">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/>&m_s_cc=<xsl:choose><xsl:when test="key('session-param', 's_cc') = 'na' ">nd</xsl:when><xsl:when test="key('session-param', 's_cc') = 'nd' "/><xsl:otherwise>na</xsl:otherwise></xsl:choose>
- </cp:sortHref>
- <xts:string id="IDS_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader width="200" sort="d" id="columnHeaderModified">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/>&m_s_cc=<xsl:choose><xsl:when test="key('session-param', 's_cc') = 'da' ">dd</xsl:when><xsl:when test="key('session-param', 's_cc') = 'dd' "/><xsl:otherwise>da</xsl:otherwise></xsl:choose>
- </cp:sortHref>
- <xts:string id="IDS_MODIFIED"/>
- </cp:columnHeader>
- <cp:columnHeader width="100" wrap="false">
- <cp:columnCondition><xsl:value-of select="/root/session/param[@name='e_showTenantInfo']='true'"/></cp:columnCondition>
- <xts:string id="IDS_OBJ_TENANT"/>
- </cp:columnHeader>
- <cp:columnHeader width="170">
- <xts:string id="IDS_HEADING_ACTIONS"/>
- </cp:columnHeader>
- </cp:tableHeader>
-
- <cp:tableContent>
- <cp:common-render-variables>
- <!-- Common variables used in rendering icons, actions .. etc. -->
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </cp:common-render-variables>
- <cp:columnContent>
- <xsl:if test="$defaultNavigationView = 'detail'"><xsl:attribute name="valign">top</xsl:attribute></xsl:if>
- <xsl:variable name="checkboxLabel"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><xsl:value-of select="cm:defaultName"/></xts:param></xts:string></xsl:variable>
- <input type="checkbox" value="{xtsext:urlencode(string(cm:searchPathID))}" name="checkbox_{position()}" id="checkbox_{position()}" aria-label="{$checkboxLabel}">
- <xsl:if test="key('env-param',concat('checkbox_' , position()))">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </input>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:if test="$defaultNavigationView = 'detail'"><xsl:attribute name="valign">top</xsl:attribute></xsl:if>
-
- <xsl:call-template name="gen-icon">
- <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="canRead" select="$canRead"/>
- <xsl:with-param name="canWrite" select="$canWrite"/>
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="action" select="$action"/>
- <xsl:with-param name="executionFormat" select="$executionFormat"/>
- <xsl:with-param name="hiddenObject" select="$hiddenObject"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </cp:columnContent>
- <cp:columnContent width="100%" wrap="true">
- <xsl:if test="$defaultNavigationView = 'detail'"><xsl:attribute name="valign">top</xsl:attribute></xsl:if>
-
- <!-- Logic to figure out if an entry is to be hyperlinked and if it is what the URL should be -->
- <mf:entry-name/>
- <mf:long-description/>
- </cp:columnContent>
- <cp:columnContent width="200">
- <xsl:if test="$defaultNavigationView = 'detail'"><xsl:attribute name="valign">top</xsl:attribute></xsl:if>
-
- <nobr>
- <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
- <xsl:variable name="modifTime">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($modifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </nobr>
- </cp:columnContent>
- <cp:columnContent width="100">
- <cp:columnCondition><xsl:value-of select="/root/session/param[@name='e_showTenantInfo']='true'"/></cp:columnCondition>
- <xsl:value-of select="xtsext:enforceBTD(cm:tenantName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </cp:columnContent>
- <cp:columnContent width="170">
- <xsl:if test="$defaultNavigationView = 'detail'"><xsl:attribute name="valign">top</xsl:attribute></xsl:if>
- <nobr>
- <xsl:call-template name="action-properties">
- <xsl:with-param name="supportRunOptionsAction" select="true()"/>
- <xsl:with-param name="supportScheduleAction" select="true()"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canWrite" select="$canWrite"/>
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <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="output_format" select="$output_format"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </nobr>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- <cf:param name="pagerSummary"><xts:string id="IDS_MAINPAGER_SUMMARY"/></cf:param>
- </cf:main-pager-section>
- <rss:button/>
- </xsl:template>
-
-
- <!-- UPF in list mode -->
- <xsl:template name="renderUPFContentInList">
- <cf:main-pager-section width="100%" virtualPage="false" name="upf">
- <cf:param name="target">concat($app,'/',$mname)</cf:param>
- <cf:param name="item-path">upfContent/cm:queryResponse/cm:queryReply[2]/*[cm:usage != 'subObject']</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableContent>
- <cp:common-render-variables>
- <!-- Common variables used in rendering icons, actions .. etc. -->
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </cp:common-render-variables>
- <cp:columnContent>
- <img src="{$webcontent}/images/space.gif" alt="" width="16" height="1"/>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canWrite" select="$canWrite"/>
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="hiddenObject" select="$hiddenObject"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </cp:columnContent>
- <cp:columnContent width="100%">
- <!-- Logic to figure out if an entry is to be hyperlinked and if it is what the URL should be -->
- <mf:entry-name/>
- </cp:columnContent>
- <cp:columnContent width="200">
- <nobr>
- <xsl:value-of select="cm:updateDate"/>
- </nobr>
- </cp:columnContent>
- <cp:columnContent width="170">
- <nobr>
- <xsl:call-template name="action-properties">
- <xsl:with-param name="supportRunOptionsAction" select="true()"/>
- <xsl:with-param name="supportScheduleAction" select="true()"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canWrite" select="$canWrite"/>
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </nobr>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:template>
-
-
-
-
- <xsl:template name="render-detail">
- <xsl:param name="columns"/>
- <xsl:param name="width"/>
- <mt:detailedEntryView>
- <!-- Common variables used in rendering icons, actions .. etc. -->
- <mt:object-variables>
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </mt:object-variables>
- <!-- Logic to figure out if an entry is to be hyperlinked and if it is what the URL should be -->
- <mt:object-name>
- <mf:entry-name/>
- </mt:object-name>
- </mt:detailedEntryView>
- </xsl:template>
-
-
- <xsl:template name="render-header">
- <mt:h1 mode="main" id="headerBackA11Y">
- <mt:title>
- <xsl:choose>
- <xsl:when test="$displayMode = 'viewer'">
- <xsl:choose>
- <xsl:when test="$pageName != ''">
- <xsl:value-of select="$pageName"/>
- </xsl:when>
- <xsl:when test="$pageNotFound != ''">
- <xts:string id="IDS_PAGE_UNAVAILABLE"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PORTAL"/>
- </xsl:otherwise>
- </xsl:choose>
- </mt:title>
- </mt:h1>
-
- <!-- only render these headers when in portal mode -->
- <xsl:if test="$displayMode = 'portal'">
- <mt:h3 mode="main">
- <mt:tabs/>
- </mt:h3>
- <mt:h4>
- <mt:path>
- <div id="breadcrumbContainer" tabindex="0" aria-labelledby="pathInfo">
- <span id="pathInfo" style="position: absolute;margin-top: -9999px; ">Current Path</span>
- <xsl:choose>
- <xsl:when test="$mvc-N-enabled and $mvc-remoteNav">
- <!-- Breadcrumb is computed by remote fragment -->
- </xsl:when>
- <xsl:when test="$pageType = 'PFMF'">
- <!-- the path can be either a crn path or a path to a upfront object. -->
- <!-- If we are browsing an upfront object we do not make the requests for crn data -->
- <!-- the results below will work out as either one or the other (crn queries or upfront queries) will have data-->
- <!-- not both -->
- <cf:do-the-path-link>
- <cf:param name="familytree">$rootReply/*/cm:ancestors | upfContent/cm:queryResponse/cm:queryReply[1]/*/cm:ancestors</cf:param>
- <cf:param name="familymember">concat($rootReply/*/cm:defaultName, upfContent/cm:queryResponse/cm:queryReply[1]/*/cm:defaultName)</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="anchorpath">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="key('env-param','m')"/>
- <xsl:choose>
- <xsl:when test="cm:searchID">
- <xsl:text/>&m_nbid=<xsl:value-of select="cm:searchID"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>&m_folder=<xsl:value-of select="cm:storeID"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$m_nbid2 != ''">
- <xsl:text/>&m_nbid2=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string($m_nbid2)),'url','','getdata')"/>
- </xsl:if>
- <xsl:if test="$m_folder2 != ''">
- <xsl:text/>&m_folder2=<xsl:value-of select="$m_folder2"/>
- </xsl:if>
- <xsl:value-of select="$request-url-params"/>
- </xsl:attribute>
- <xsl:variable name="cmTitle">
- <xsl:value-of select="cm:title"/>
- </xsl:variable>
- <xsl:if test="$isBidiEnabled = 'true'">
- <xsl:attribute name="dir">
- <xsl:value-of select="xtsext:getBTD($cmTitle, $baseTextDirection, $productLocale)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:value-of select="$cmTitle"/>
- </a>
- </cf:param>
- <cf:param name="kbA11y">true</cf:param>
- </cf:do-the-path-link>
- </xsl:when>
- </xsl:choose>
- </div>
- </mt:path>
-
- <mt:toolbar>
- <xsl:if test="not($mvc-N-enabled and $mvc-remoteNav)">
- <mt:tool-group hideDivider="true">
- <xsl:if test="$pageType = 'PFMF'">
- <mt:tool name="list"/>
- <mt:tool name="detail"/>
- </xsl:if>
- <xsl:if test="$pageType = 'custom'">
- <mt:tool name="new" new-class="pagelet"/>
- <xsl:if test="$canAddPageToPortal">
- <mt:tool name="add_page"/>
- </xsl:if>
- </xsl:if>
- </mt:tool-group>
-
- <xsl:if test="$pageType = 'custom' and not($pageNotFound) and $pageCanWrite and $pageCanRead">
- <mt:tool-group>
- <mt:tool name="edit_pagelet"/>
- </mt:tool-group>
- </xsl:if>
-
- <xsl:if test="$pageType = 'PFMF'">
- <mt:tool-group>
- <xsl:if test="$current-class = 'folder' or $current-class = 'package' or $current-class = 'content' ">
- <mt:tool name="new" new-class="folder"/>
- <xsl:if test="$userCanUseSelfServicePackageWizard">
- <mt:tool name="new" new-class="self-service-package"/>
- </xsl:if>
- <xsl:if test="$userCanUseMetricsManagerAdministration">
- <xsl:choose>
- <xsl:when test="$canTraverseFolder and $canWriteFolder">
- <mt:tool name="new" new-class="metricsPackage"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool name="new" new-class="metricsPackage" disable="true"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:if test="$userCanUseDashboardViewer and $userCanUseAdvancedDashboardFeatures">
- <mt:tool name="new" new-class="dashboard"/>
- </xsl:if>
- <mt:tool name="new" new-class="jobDefinition"/>
-
- <xsl:if test="$userCanUseMetricsManagerAdministration">
- <mt:tool name="new" new-class="metricsIntegrationTaskGroup"/>
- </xsl:if>
-
- <xsl:if test="not(key('system-param', 'disableURLObjectCreation') = 'true')">
- <mt:tool name="new" new-class="URL"/>
- </xsl:if>
- <mt:tool name="new" new-class="pagelet"/>
- <xsl:if test="$mvc-N-enabled">
- <xsl:choose>
- <xsl:when test="$isMFNav">
- <mt:tool name="new" new-class="launchable" class-subType="application/vnd.ibm.cognos.instance" context="Personal"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool name="new" new-class="launchable" class-subType="application/vnd.ibm.cognos.instance"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:if>
- </mt:tool-group>
-
- <xsl:if test="$defaultNavigationView = 'newspaper' and not(not($isRootFolder) and $showingUPF)">
- <mt:tool-group>
- <mt:tool name="selectall"/>
- <mt:tool name="deselectall"/>
- </mt:tool-group>
- </xsl:if>
-
- <mt:tool-group>
- <xsl:choose>
- <xsl:when test="$canTraverseFolder and $canWriteFolder">
- <mt:tool name="cut" mode="main"/>
- <mt:tool name="copy" mode="main"/>
- <mt:tool name="paste"/>
- <mt:tool name="delete"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool name="cut" mode="main" disable="true"/>
- <mt:tool name="copy" mode="main"/>
- <mt:tool name="paste" disable="true"/>
- <mt:tool name="delete" disable="true"/>
- </xsl:otherwise>
- </xsl:choose>
- </mt:tool-group>
-
- <mt:tool-group>
- <mt:tool name="properties"/>
- <mt:tool name="order"/>
- </mt:tool-group>
- </xsl:if>
- </xsl:if>
- </mt:toolbar>
- </mt:h4>
- </xsl:if>
-
- <xsl:if test="$displayMode = 'viewer' and $pageID != 'portlet'">
- <mt:h4>
- <mt:toolbar>
- <xsl:if test="$pageType = 'custom'">
- <mt:tool-group hideDivider="true">
- <mt:tool name="refreshUsingGet"/>
- </mt:tool-group>
- <xsl:choose>
- <xsl:when test="$canAddPageToPortal">
- <mt:tool-group>
- <mt:tool name="add_page"/>
- </mt:tool-group>
- </xsl:when>
- <!-- We typically should check for page level access here but we can cheat a bit and
- show a disabled icon when the page is already in the user's portal. -->
- <xsl:when test="$isPersonalPortalPage">
- <mt:tool-group>
- <mt:tool name="add_page" disable="true"/>
- </mt:tool-group>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$canEditPage">
- <mt:tool-group>
- <mt:tool name="edit_pagelet"/>
- </mt:tool-group>
- </xsl:if>
- </xsl:if>
- </mt:toolbar>
- </mt:h4>
- </xsl:if>
- </xsl:template>
-
-
- <cp:tabControl/>
- </xsl:stylesheet>
|