123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
- <?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).
- -->
- <!--
- Renders the contents of the "Public Folders/My Folders" tab.
- -->
- <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:out="dummy-uri"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- exclude-result-prefixes="xsl cm pf pm mt mf xts xtsext cf cp out lyt">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:variable name="mname" select="'subscriptions/subscriptions.xts'"/>
- <pf:variables/>
- <cp:flyoutControl/>
- <mf:variables stateParams="m_subfldr m_section m_pagerfrom m_pagerto m_pg_e rui backURL m_path search m_pagerfromsearch m_pagertosearch m_pg_esearch m_searchsection m_searchcontext stext sscope smethod sfield sstatus stype stype_is smodified sshortcuts stime m_isRule"/>
- <xsl:variable name="cmd-form" select="'cform'"/>
- <xsl:variable name="edit-form" select="'pform'"/>
- <!-- for alert tab -->
- <xsl:variable name="alert-path" select="/root/cmContent/cm:queryResponse/cm:queryReply/*"/>
- <!-- for rule tab -->
- <xsl:variable name="rule-path" select="/root/cmContent/cm:queryResponse/cm:queryReply[3]/*"/>
- <xsl:variable name="current-fldr" select="/root/cmContent/cm:queryResponse/cm:queryReply[2]/*"/>
- <xsl:variable name="start-at-path" select="/root/cmContent/cm:queryResponse/cm:queryReply[1]/*/cm:searchPath"/>
-
- <xsl:variable name="isSearch" select="/root/search"/>
- <xsl:variable name="isSearchExp" select="/root/search/expression"/>
- <xsl:variable name="isSearchExpEmpty" select="/root/search/emptySearchExpression"/>
- <xsl:variable name="canTraverse">
- <xsl:choose>
- <xsl:when test="$isSearchExp"><xsl:value-of select="contains(string($rule-path/cm:permissions), 'traverse')"/></xsl:when>
- <xsl:when test="key('env-param', 'm_isRule')"><xsl:value-of select="contains(string($current-fldr/cm:permissions), 'traverse')"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="canWrite">
- <xsl:choose>
- <xsl:when test="$isSearchExp"><xsl:value-of select="contains(string($rule-path/cm:permissions), 'write')"/></xsl:when>
- <xsl:when test="key('env-param', 'm_isRule')"><xsl:value-of select="contains(string($current-fldr/cm:permissions), 'write')"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="objectType">
- <class name="shortcutRSSTask">
- <typeName><xts:string id="IDS_MYSUB_TYPE_NI"/></typeName>
- </class>
- <class name="humanTask">
- <typeName><xts:string id="IDS_PROP_SETTINGS_CATEGORY_NOTIFICATION"/></typeName>
- </class>
- <class name="memo">
- <typeName><xts:string id="IDS_MYSUB_TYPE_TEXT"/></typeName>
- </class>
- </xsl:variable>
- <mt:actions mode="mysub"/>
- <pf:gen-action/>
- <pf:gen-icon/>
- <pf:gen-url/>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <html lang="{$productLocale}" encodeDocType="false">
- <head>
- <pf:meta expires="false"/>
- <title>
- <xts:string id="IDS_MYSUB_MYSUBSCRIPTIONS"/>
- </title>
- <mt:stylesheet/>
- <mf:head/>
- <xsl:choose>
- <xsl:when test="key('env-param', 'm_isRule')">
- <pf:help context="HID_RULE_PROPERTIES"/>
- </xsl:when>
- <xsl:otherwise>
- <pf:help context=""/>
- </xsl:otherwise>
- </xsl:choose>
- <pf:launch/>
- </head>
- <mt:page region="IDS_MYSUB_MYSUBSCRIPTIONS">
- <xsl:call-template name="render-header"/>
-
- <xsl:if test="$isSearch">
- <xsl:call-template name="search-panel"/>
- </xsl:if>
-
- <form name="pform" method="post" action="{$gateway}" style="margin:0px">
- <xsl:choose>
- <xsl:when test="$isSearch">
- <xsl:choose>
- <xsl:when test="$isSearchExp"><xsl:call-template name="render-search"/></xsl:when>
- <xsl:when test="$isSearchExpEmpty"><mt:objectNoneFound id="IDS_EMPTY_QUERY"/></xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="render-body"/>
- </xsl:otherwise>
- </xsl:choose>
-
- <mf:edit-vars/>
- </form>
-
- <form name="cform" method="post" action="{$gateway}">
- <mf:cmd-vars/>
- </form>
- </mt:page>
- </html>
- </xsl:template>
- <xsl:template name="render-header">
- <mt:h1 mode="subscriptions" id="headerBackA11Y">
- <mt:title>
- <xts:string id="IDS_MYSUB_MYSUBSCRIPTIONS"/>
- </mt:title>
- </mt:h1>
- <mt:h3>
- <mt:tabs>
- <xsl:variable name="tabs">
- <tab>
- <xsl:if test="not(key('env-param', 'm_isRule')) and not($isSearch)">
- <xsl:attribute name="selected">true</xsl:attribute>
- </xsl:if>
- <!-- Render the link -->
- <a class="tabAnchor" >
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>
- <xsl:value-of select="$request-url-params"/>
- <xsl:if test="key('env-param', 'skin')">&skin=<xsl:value-of select="key('env-param','skin')"/></xsl:if>
- <xsl:if test="key('env-param', 'backURL')">&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
- </xsl:attribute>
- <xts:string id="IDS_MYSUB_ALERTS"/>
- </a>
- </tab>
- <tab>
- <xsl:if test="key('env-param', 'm_isRule') or $isSearch">
- <xsl:attribute name="selected">true</xsl:attribute>
- </xsl:if>
- <!-- Render the link -->
- <a class="tabAnchor" >
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>
- <xsl:text/>&m_subfldr=<xsl:value-of select="cm:storeID"/><xsl:text>&m_isRule</xsl:text>
- <xsl:value-of select="$request-url-params"/>
- <xsl:if test="key('env-param', 'skin')">&skin=<xsl:value-of select="key('env-param','skin')"/></xsl:if>
- <xsl:if test="key('env-param', 'backURL')">&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
- </xsl:attribute>
- <xts:string id="IDS_MYSUB_SUBSCRIPTIONS"/>
- </a>
- </tab>
- </xsl:variable>
- <xsl:call-template name="renderTabs">
- <xsl:with-param name="tabs" select="$tabs"/>
- <xsl:with-param name="scroll" select="false()"/>
- </xsl:call-template>
- </mt:tabs>
- </mt:h3>
- <mt:h4>
- <mt:path>
- <xsl:choose>
- <xsl:when test="$isSearch">
- <cf:do-the-path-link>
- <cf:param name="familytree">$current-fldr/cm:ancestors</cf:param>
- <cf:param name="familymember">$current-fldr/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="lastIsLink">true</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:text/>&m_subfldr=<xsl:value-of select="cm:storeID"/>&m_isRule<xsl:text/>
- <xsl:value-of select="$request-url-params"/>
- <xsl:if test="key('env-param', 'backURL')">&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="cm:title">
- <xsl:value-of select="cm:title"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$current-fldr/cm:defaultName"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </cf:param>
- </cf:do-the-path-link>
-  - 
- <span class="bold"><xts:string id="IDS_SEARCH"/></span>
- </xsl:when>
- <xsl:when test="key('env-param', 'm_isRule')">
- <cf:do-the-path-link>
- <cf:param name="familytree">$current-fldr/cm:ancestors</cf:param>
- <cf:param name="familymember">$current-fldr/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:text/>&m_subfldr=<xsl:value-of select="cm:storeID"/>&m_isRule<xsl:text/>
- <xsl:value-of select="$request-url-params"/>
- <xsl:if test="key('env-param', 'backURL')">&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key('env-param', 'backURL') ) ),'url','url','getdata')"/></xsl:if>
- </xsl:attribute>
- <xsl:value-of select="cm:title"/>
- </a>
- </cf:param>
- </cf:do-the-path-link>
- </xsl:when>
- </xsl:choose>
- </mt:path>
- <mt:toolbar>
- <xsl:if test="key('env-param', 'm_isRule') and not($isSearch)">
- <mt:tool-group hideDivider="true">
- <xsl:choose>
- <xsl:when test="$canWrite='true'"><mt:tool name="new" new-class="subscriptionFolder"/></xsl:when>
- <xsl:otherwise><mt:tool name="new" new-class="subscriptionFolder" disable="true"/></xsl:otherwise>
- </xsl:choose>
- </mt:tool-group>
- <mt:tool-group>
- <xsl:call-template name="cutandpaste"/>
- </mt:tool-group>
- </xsl:if>
- <xsl:if test="$isSearch">
- <mt:tool-group hideDivider="true">
- <xsl:call-template name="cutandpaste"/>
- </mt:tool-group>
- </xsl:if>
- <xsl:if test="key('env-param', 'm_isRule') and not($isSearch)">
- <mt:tool-group>
- <xsl:if test="$hasCondSubscriptionsCapability">
- <mt:tool name="enable_sched"/>
- <mt:tool name="disable_sched"/>
- </xsl:if>
- <mt:tool name="properties"/>
- <mt:tool name="search"/>
- </mt:tool-group>
- </xsl:if>
- <xsl:if test="not(key('env-param', 'm_isRule')) and not($isSearch)">
- <mt:tool-group hideDivider="true">
- <mt:tool name="removeMeAlert"/>
- </mt:tool-group>
- </xsl:if>
- </mt:toolbar>
- </mt:h4>
- </xsl:template>
- <xsl:template name="cutandpaste">
- <xsl:choose>
- <xsl:when test="$canTraverse='true' and $canWrite='true'">
- <mt:tool name="cut"/>
- <mt:tool name="paste"/>
- <mt:tool name="delete"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool name="cut" disable="true"/>
- <mt:tool name="paste" disable="true"/>
- <mt:tool name="delete" disable="true"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="render-body">
- <!-- Build warning on Rule tab is user doesn't have capability -->
- <xsl:if test="$isSearch or key('env-param', 'm_isRule')">
- <xsl:variable name="warning">
- <xsl:if test="not($hasCondSubscriptionsCapability)"><xts:string id="IDS_MYSUB_RULE_WARN"/></xsl:if>
- </xsl:variable>
- <xsl:if test="$warning != ''">
- <div>
- <table cellspacing="0" cellpadding="0" class="messageText">
- <tr>
- <td valign="bottom">
- <img style="margin-right:5px;" src="{$image_root}state_warning.gif" title="$warning" alt="$warning"/>
- </td>
- <td valign="middle"> <xsl:value-of select="$warning"/></td>
- </tr>
- </table>
- </div>
- </xsl:if>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="key('env-param', 'm_isRule')">
- <cf:main-pager-section width="100%" virtualPage="true" noEntriesMsgID="IDS_NO_ITEMS_FOUND">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">$rule-path</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader>
- <cp:columnHeader toggleName="checkbox_" form="pform" width="16" noLabel="true" id="checkbox_0"/>
- <cp:columnHeader width="20"/>
- <cp:columnHeader width="150">
- <xsl:text/><xts:string id="IDS_NAME"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="100%">
- <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/> <xts:string id="IDS_MYSUB_RPT_NAME"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="70">
- <xsl:text/><xts:string id="IDS_PERS_TAB_PERSONAL_TYPE_HEADER"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="70">
- <xsl:text/><xts:string id="IDS_HEADING_STATUS"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="120">
- <xsl:text/><xts:string id="IDS_HEADING_ACTIONS"/><xsl:text/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:common-render-variables>
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </cp:common-render-variables>
- <cp:columnContent>
- <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" name="checkbox_{position()}_{./cm:objectClass}" id="checkbox_{position()}_{./cm:objectClass}">
- <xsl:attribute name="value"><xsl:value-of select="string(concat('storeID("', normalize-space(./cm:storeID), '")'))"/></xsl:attribute>
- <xsl:if test="key('env-param',concat('checkbox_' , position()))">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </input>
- <label for="checkbox_{position()}_{./cm:objectClass}" style="position: absolute;margin-left: -9999px; margin-top: -9999px;"><xsl:value-of select="cm:defaultName"/></label>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="class" select="$class"/>
- <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="cm:hidden"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </cp:columnContent>
- <cp:columnContent>
- <!-- 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>
- <xsl:variable name="rpt_path" select="./cm:periodicalProducer/*"/>
- <xsl:if test="$rpt_path">
- <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
- <xsl:attribute name="alt">
- <xsl:variable name="object-start-at-path">
- <xsl:if test="starts-with($rpt_path/cm:searchPath, '~') or starts-with($rpt_path/cm:searchPath,key('session-param', 'e_hp'))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
- </xsl:if>
- <xsl:if test="starts-with($rpt_path/cm:searchPath,'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:if>
- </xsl:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree">$rpt_path/cm:ancestors</cf:param>
- <cf:param name="familymember">$rpt_path/cm:defaultName</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </xsl:attribute>
- </img><xsl:text> </xsl:text><xsl:value-of select="$rpt_path/cm:defaultName"/><xsl:text/>
- </xsl:if>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:if test="cm:objectClass = 'reportDataServiceAgentDefinition'">
- <xsl:for-each select="/root/cmContent/cm:queryResponse/cm:queryReply[4]/*">
- <xsl:variable name="objectClass" select="."/>
- <xsl:value-of select="$objectType/class[@name= $objectClass]/typeName"/>
- <xsl:if test="position()!=last()">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:if test="cm:objectClass = 'reportDataServiceAgentDefinition'">
- <xsl:choose>
- <xsl:when test="cm:active = 'true'"><xts:string id="IDS_SCHED_STATUS_ENABLED"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_SCHED_STATUS_DISABLED"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </cp:columnContent>
- <cp:columnContent>
- <nobr>
- <xsl:call-template name="action-properties">
- <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:when>
- <xsl:otherwise> <!-- render alert tab-->
- <cf:main-pager-section width="100%" virtualPage="true" noEntriesMsgID="IDS_NO_ITEMS_FOUND">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">$alert-path</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader>
- <cp:columnHeader toggleName="checkbox_" form="pform" width="16" noLabel="true" id="checkbox_0" />
- <cp:columnHeader width="20"/>
- <cp:columnHeader width="100%">
- <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/><xsl:text> </xsl:text><xts:string id="IDS_MYSUB_RPT_NAME"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="120">
- <xsl:text/><xts:string id="IDS_RT_HELP_DESC"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="120">
- <xsl:text/><xts:string id="IDS_PERS_TAB_PERSONAL_TYPE_HEADER"/><xsl:text/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:common-render-variables>
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </cp:common-render-variables>
- <cp:columnContent>
- <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" name="checkbox_{position()}_{./cm:objectClass}" id="checkbox_{position()}_{./cm:objectClass}" aria-label="{$checkboxLabel}">
- <xsl:attribute name="value"><xsl:value-of select="string(concat('storeID("', normalize-space(./cm:storeID), '")'))"/></xsl:attribute>
- <xsl:if test="key('env-param',concat('checkbox_' , position()))">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </input>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="class" select="$class"/>
- <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>
- <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
- <xsl:attribute name="alt">
- <xsl:variable name="object-start-at-path">
- <xsl:if test="starts-with(cm:searchPath, '~') or starts-with(cm:searchPath,key('session-param', 'e_hp'))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
- </xsl:if>
- <xsl:if test="starts-with(cm:searchPath,'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:if>
- </xsl:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree">cm:ancestors</cf:param>
- <cf:param name="familymember">cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$object-start-at-path"/></cf:param>
- </cf:do-the-path-link>
- </xsl:attribute>
- </img><xsl:text> </xsl:text><xsl:value-of select="cm:defaultName"/><xsl:text/>
- </cp:columnContent>
- <cp:columnContent>
- <xts:string id="IDS_MYSUB_DESC_TEXT"/>
- </cp:columnContent>
- <cp:columnContent>
- <xts:string id="IDS_MYSUB_TYPE_TEXT"/>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="render-search">
- <cf:main-pager-section width="100%" virtualPage="true" name="search" noEntriesMsgID="IDS_NO_ITEMS_FOUND">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">$rule-path</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader>
- <xsl:if test = "not(@noSelection)">
- <cp:columnHeader width="16" toggleName="checkbox_" noLabel="true" id="checkbox_0"/>
- </xsl:if>
- <cp:columnHeader width="20"/>
- <cp:columnHeader width="100%">
- <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/><xsl:text> </xsl:text>
- <xsl:text/><xts:string id="IDS_NAME"/><xsl:text/>
- </cp:columnHeader>
- <cp:columnHeader width="150">
- <xsl:text/><xts:string id="IDS_HEADING_ACTIONS"/><xsl:text/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:common-render-variables>
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </cp:common-render-variables>
- <xsl:if test = "not(@noSelection)">
- <cp:columnContent valign="top">
- <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" name="checkbox_{position()}" aria-label="{$checkboxLabel}">
- <xsl:attribute name="value"><xsl:value-of select="concat('storeID("', normalize-space(./cm:storeID), '")')"/></xsl:attribute>
- <xsl:if test="key('env-param',concat('checkbox_' , position()))">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </input>
- </cp:columnContent>
- </xsl:if>
- <cp:columnContent valign="top" style="padding-top:6px;">
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="class" select="$class"/>
- <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 valign="top">
- <div>
- <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif" style="margin-right:4px;">
- <xsl:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">cm:ancestors</cf:param>
- <cf:param name="familymember">cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </xsl:attribute>
- </img>
- <mf:entry-name/>
- </div>
- <div style="padding-left:24px; padding-top:2px;padding-bottom:2px;">
- <xsl:text/><xts:string id="IDS_SEARCH_LAST_MODIFIED_TEXT"/><xsl:text/>
- <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </div>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <nobr>
- <xsl:call-template name="action-properties">
- <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="search-panel">
- <mt:search>
- <mt:scopes>
- <mt:scope>fb</mt:scope>
- <mt:scope>fo</mt:scope>
- <mt:scope>s</mt:scope>
- </mt:scopes>
- <mt:close-params>
- <param>backURL</param>
- <param>m_subfldr</param>
- <param>m_section</param>
- </mt:close-params>
- <mt:stypes>
- <mt:stype name="subscriptionFolder"><xts:string id="IDS_OBJ_SUBSCRIPTION_FOLDER"/></mt:stype>
- <mt:stype name="reportDataServiceAgentDefinition"><xts:string id="IDS_OBJ_SUBSCRIPTION"/></mt:stype>
- </mt:stypes>
- </mt:search>
- </xsl:template>
-
- <cp:tabControl/>
- </xsl:stylesheet>
|