123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (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:ui="http://developer.cognos.com/schemas/ui/presentation/markup/" xmlns:uic="http://developer.cognos.com/schemas/uic/presentation/markup/" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:admui="http://developer.cognos.com/schemas/xts/admui" xmlns:pgr="http://developer.cognos.com/schemas/uic/presentation/cogadminpager/" xmlns:cm="http://developer.cognos.com/schemas/bibus/3/" xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/" exclude-result-prefixes="ui uic xts xtsext admui nav cm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <!-- Display variables -->
- <admui:variables/>
-
- <!-- Pager variables -->
- <admui:pagerVariables pagerName="search"/>
-
- <!-- Pager templates -->
- <pgr:cogadminPagerTemplates/>
- <xsl:variable name="searchPath" select="xtsext:javascriptencode(string(key('env-param','searchPath')))"/>
- <xsl:variable name="type" select="key('env-param', 'type')"/>
- <xsl:variable name="title" select="key('env-param', 'title')"/>
-
- <ui:commonActions/>
- <xsl:template match="/root">
- <xsl:variable name="tooltip"><xts:string id="IDS_SORT_TOOLTIP"/></xsl:variable>
- <uic:fragment>
- <!-- add the reload event listener -->
- <ui:standardReloadListener/>
- <uic:fragmentHeader>
- <uic:pathControl>
- <uic:breadcrumb>
- <uic:link>
- <uic:text>
- <xsl:choose>
- <xsl:when test="key('env-param','type')='printers'"><xts:string id="IDS_ADM_PRINTERS"/></xsl:when>
- <xsl:when test="key('env-param','type')='styles'"><xts:string id="IDS_ADM_STYLES"/></xsl:when>
- <xsl:when test="key('env-param','type')='tenants'"><xts:string id="IDS_ADM_TENANTS"/></xsl:when>
- <xsl:when test="key('env-param','type')='visualizations'"><xts:string id="IDS_ADM_VISUALIZATIONS"/></xsl:when>
- </xsl:choose>
- </uic:text>
- <uic:onclick>_THIS_.parent.retrieve('searchMode=');</uic:onclick>
- </uic:link>
- </uic:breadcrumb>
- <uic:breadcrumb>
- <xts:string id="IDS_ADM_SEARCH"/>
- </uic:breadcrumb>
- </uic:pathControl>
- <uic:headerActions>
- <xsl:variable name="permissions" select="nav:getContainerResponse/nav:container/nav:permissions"/>
- <xsl:variable name="canWrite" select="contains($permissions, 'write')"/>
- <ui:groupActionMsgs/>
- <!-- 'search' required in tablename for checkboxes -->
- <xsl:choose>
- <xsl:when test="nav:searchResponse/nav:content/*">
- <div id="_THIS_search_action" style="display: ">
- <xsl:choose>
- <xsl:when test="key('env-param','type')='tenants'">
- <ui:groupAction action="deleteTenants" tablename="search"/>
- <uic:headerSeperator/>
- <ui:groupAction action="exportTenants" tablename="search"/>
- <ui:groupAction action="createContentUtilizationInfo" tablename="search"/>
- <uic:headerSeperator/>
- <ui:groupAction action="enableDisableObj" tablename="search"/>
- <ui:groupAction action="terminateSessions" tablename="search"/>
- <uic:headerSeperator/>
- <ui:groupAction action="deleteTenantUserProfile" tablename="search"/>
- </xsl:when>
- <xsl:otherwise>
- <ui:groupAction action="delete" tablename="search"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div id="_THIS_search_action_disabled">
- <ui:groupAction action="delete" disable="true"/>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </uic:headerActions>
- </uic:fragmentHeader>
- <script>
- var _THIS_s = new com.ibm.cognos.admin.xts.search(_THIS_,{
- count: <xsl:value-of select="count(nav:searchResponse/nav:content/*)"/>,
- menuModels: [{
- id: "findTextInMenu",
- items: [{
- id: "n",
- title: '<xts:string id="IDS_SEARCH_NAME_FIELD" encode="javascript"/>'
- },{
- id: "d",
- title: '<xts:string id="IDS_SEARCH_DESC_FIELD" encode="javascript"/>'
- },{
- id: "nd",
- title: '<xts:string id="IDS_SEARCH_NAME_DESC_FIELD" encode="javascript"/>'
- }],
- fieldId: "sfield",
- inputValue: '<xsl:value-of select="/root/env/param[@name='sfield']"/>',
- defaultValue: "n"
- },{
- id: "methodMenu",
- items: [{
- id: "1",
- title: '<xts:string id="IDS_SEARCH_METHOD_CONTAINS" encode="javascript"/>'
- },{
- id: "2",
- title: '<xts:string id="IDS_SEARCH_METHOD_STARTS" encode="javascript"/>'
- },{
- id: "3",
- title: '<xts:string id="IDS_SEARCH_METHOD_MATCHES" encode="javascript"/>'
- }],
- fieldId: "smethod",
- inputValue: '<xsl:value-of select="/root/env/param[@name='smethod']"/>',
- defaultValue: "1"
- },{
- id: "modifiedMenu",
- items: [{
- id:'any',
- title: '<xts:string id="IDS_FLT_ANY" encode="javascript"/>'
- },{
- id:'t',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_TODAY" encode="javascript"/>'
- },{
- id:'l3d',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_3_DAYS" encode="javascript"/>'
- },{
- id:'lw',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_LAST_WEEK" encode="javascript"/>'
- },{
- id:'lm',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_LAST_MONTH" encode="javascript"/>'
- },{
- id:'l3m',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_LAST_3_MONTHS" encode="javascript"/>'
- },{
- id:'l6m',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_LAST_6_MONTHS" encode="javascript"/>'
- },{
- id:'ly',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_LAST_12_MONTHS" encode="javascript"/>'
- },{
- id:'l3y',
- title: '<xts:string id="IDS_SEARCH_MODIFIED_LAST_36_MONTHS" encode="javascript"/>'
- }],
- fieldId: "smodified",
- inputValue: '<xsl:value-of select="/root/env/param[@name='smodified']"/>',
- defaultValue: "any"
- },{
- id: "scopeMenu",
- items: [
- <xsl:if test="$type != 'printers' and $type != 'tenants'">
- {
- id:'fb',
- title: '<xts:string id="IDS_SEARCH_SCOPE_FOLDERS_SUB" encode="javascript"/>'
- },
- </xsl:if>
- {
- id:'fo',
- title: '<xts:string id="IDS_SEARCH_SCOPE_FOLDER_ONLY" encode="javascript"/>'
- },{
- id:'any',
- title: '<xts:string id="IDS_SEARCH_SCOPE_NAMESPACE" encode="javascript"/>'
- }],
- fieldId: "sscope",
- inputValue: '<xsl:value-of select="/root/env/param[@name='sscope']"/>',
- <xsl:choose>
- <xsl:when test="$type != 'printers' and $type != 'tenants'">
- defaultValue: "fb"
- </xsl:when>
- <xsl:otherwise>
- defaultValue: "fo"
- </xsl:otherwise>
- </xsl:choose>
- },{
- id: "typeMenu",
- items: [
- <xsl:choose>
- <xsl:when test="$type = 'portlets_import'">
- {
- id:'portlet',
- title: '<xts:string id="IDS_SEARCH_TYPE_PORTLET" encode="javascript"/>'
- },{
- id:'portletProducer',
- title: '<xts:string id="IDS_SEARCH_TYPE_PORTLET_GROUP" encode="javascript"/>'
- }
- </xsl:when>
- <xsl:when test="$type = 'visualizations'">
- {
- id:'visualization',
- title: '<xts:string id="IDS_SEARCH_TYPE_VISUALIZATION" encode="javascript"/>'
- },{
- id:'catalogFolder',
- title: '<xts:string id="IDS_SEARCH_TYPE_CATALOG_FOLDER" encode="javascript"/>'
- },
- </xsl:when>
- <xsl:otherwise>
- {
- id:'contact',
- title: '<xts:string id="IDS_SEARCH_TYPE_CONTACT" encode="javascript"/>'
- },{
- id:'distributionList',
- title: '<xts:string id="IDS_SEARCH_TYPE_DISTRIBUTION" encode="javascript"/>'
- },{
- id:'namespaceFolder',
- title: '<xts:string id="IDS_SEARCH_TYPE_FOLDER" encode="javascript"/>'
- },{
- id:'namespace',
- title: '<xts:string id="IDS_SEARCH_TYPE_NAMESPACE" encode="javascript"/>'
- },
- </xsl:otherwise>
- </xsl:choose>
- {
- id:'any',
- title: '<xts:string id="IDS_FLT_ANY" encode="javascript"/>'
- }],
- fieldId: "stype",
- inputValue: '<xsl:value-of select="/root/env/param[@name='stype']"/>',
- <xsl:choose>
- <xsl:when test="$type = 'portlets_import'">
- defaultValue: "portlet"
- </xsl:when>
- <xsl:otherwise>
- defaultValue: "contact"
- </xsl:otherwise>
- </xsl:choose>
- }]
- });
- _THIS_s.initialize();
-
- </script>
- <form name="_THIS_search_form" id="_THIS_search_form" role="search" aria-labelledby="lbl_searchLabel">
- <div style="margin-left: 10px;margin-bottom: 5px;">
- <table width="100%" cellspacing="0" cellpadding="1" border="0" role="presentation" id="lbl_searchLongLabel">
- <tbody>
- <tr>
- <td width="1%" valign="top" nowrap="" class="cogstyle-fragmentHeader-titleText" style="padding-right: 3px;" id="lbl_searchLabel"><xts:string id="IDS_SEARCH_SECTION_LABEL"/></td>
- <td valign="top" class="formLink">
- <input type="hidden" name="_THIS_sfield" id="_THIS_sfield">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param', 'sfield')!=''"><xsl:value-of select="key('env-param', 'sfield')"/></xsl:when>
- <xsl:otherwise>n</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <a href="#" onclick="ui_menuShow(event, _THIS_s.menu.findTextInMenu);" style="white-space:nowrap;" class="ccOptions" role="button" aria-haspopup="true">
- <span id="_THIS_findTextInMenu_caption">
- <xsl:choose>
- <xsl:when test="key('env-param', 'sfield') = 'd'"><xts:string id="IDS_SEARCH_DESC_FIELD"/></xsl:when>
- <xsl:when test="key('env-param', 'sfield') = 'nd'"><xts:string id="IDS_SEARCH_NAME_DESC_FIELD"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_SEARCH_NAME_FIELD"/></xsl:otherwise>
- </xsl:choose>
- </span>
- <span> </span>
- <span class="frag-btn-over">
- <img width="7" height="16" border="0" align="top">
- <xsl:attribute name="src"><admui:imageURL image="dropdown_arrow_narrow.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- </img>
- </span>
- </a>
- </td>
- </tr>
- </tbody>
- </table>
-
- <table cellspacing="0" cellpadding="0" border="0" role="presentation">
- <tr>
- <td>
- <input type="text" style="margin-right: 2px" value="{key('env-param', 'stext')}" size="75" name="_THIS_stext" id="_THIS_stext" aria-labelledby="lbl_searchLabel"/>
- </td>
- <td style="padding-right: 5px;">
- <table class="commandButton" cellspacing="0" cellpadding="0" style="padding: 2px 10px 3px" onmousedown="this.className = 'commandButtonDown'" onmouseout="this.className = 'commandButton'" onmouseover="this.className = 'commandButtonOver'" role="presentation">
- <tr>
- <td id="_THIS_btnAnchor" valign="middle" nowrap="" align="center">
- <img width="55" height="1" alt=""><xsl:attribute name="src"><admui:imageURL image="space.gif" type="common"/></xsl:attribute></img>
- <a class="btnAnchor" onmouseout="window.status='';return true;" onmouseover="window.status='';return true;" href="javascript:_THIS_s.search();" role="button">
- <xts:string id="IDS_ADM_SEARCH"/>
- <img border="0" align="top" name="_THIS_searchImage" id="_THIS_searchImage" style="position: relative; top: 1px; left: 1px; padding-right: 8px;" alt=""><xsl:attribute name="src"><admui:imageURL image="action_search.gif" type="common"/></xsl:attribute></img>
- </a>
- </td>
- </tr>
- </table>
- </td>
- <td>
- <table cellspacing="0" cellpadding="0" border="0" style="padding-bottom: 5px; padding-top: 5px;" role="presentation">
- <tbody>
- <tr>
- <td valign="bottom">
- <a onmouseout="window.status='';return true;" onmouseover="window.status='';return true;" href="javascript:_THIS_s.toggleDynamicSection();" role="button">
- <span class="formLink"><xts:string id="IDS_SEARCH_ADVANCED" /></span>
- <img border="0" id="_THIS_expand">
- <xsl:if test="key('env-param', 'bshowSearchCriteria') = 'true' or key('env-param', 'bshowSearchCriteria')=''">
- <xsl:attribute name="style">display: none;</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="src"><admui:imageURL image="prompt_option_expand.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_ADM_SECTION_EXPAND" /></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_ADM_SECTION_EXPAND" /></xsl:attribute>
- </img>
- <img border="0" id="_THIS_collapse">
- <xsl:if test="not(key('env-param', 'bshowSearchCriteria')) or key('env-param', 'bshowSearchCriteria')='false' ">
- <xsl:attribute name="style">display: none;</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="src"><admui:imageURL image="prompt_option_collapse.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_ADM_SECTION_COLLAPSE" /></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_ADM_SECTION_COLLAPSE" /></xsl:attribute>
- </img>
- </a>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <!-- Search Criteria -->
- <div id="_THIS_searchCriteria">
- <xsl:if test="not (key('env-param', 'bshowSearchCriteria')) or key('env-param', 'bshowSearchCriteria') = 'false'">
- <xsl:attribute name="style">display: none;</xsl:attribute>
- </xsl:if>
- <div style="margin-left: 10px;">
- <table width="50%" cellspacing="0" cellpadding="1" border="0" role="presentation">
- <tr>
- <td width="50%" style="background-color: #e3e9f3;">
- <table role="presentation">
- <tr role="group" aria-labelledby="lbl_searchMethod">
- <td id="lbl_searchMethod" class="cogstyle-fragmentHeader-titleText searchTitle"><xts:string id="IDS_SEARCH_METHOD" /></td>
- <td>
- <input type="hidden" name="_THIS_smethod" id="_THIS_smethod">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param', 'smethod')!=''"><xsl:value-of select="key('env-param', 'smethod')"/></xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <a href="#" onclick="ui_menuShow(event, _THIS_s.menu.methodMenu);" style="white-space:nowrap;" class="ccOptions" role="button" aria-haspopup="true">
- <span id="_THIS_methodMenu_caption">
- <xsl:choose>
- <xsl:when test="key('env-param', 'smethod') = '3'"><xts:string id="IDS_SEARCH_METHOD_MATCHES"/></xsl:when>
- <xsl:when test="key('env-param', 'smethod') = '2'"><xts:string id="IDS_SEARCH_METHOD_STARTS"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_SEARCH_METHOD_CONTAINS"/></xsl:otherwise>
- </xsl:choose>
- </span>
- <span> </span>
- <span class="frag-btn-over">
- <img width="7" height="16" border="0" align="top">
- <xsl:attribute name="src"><admui:imageURL image="dropdown_arrow_narrow.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- </img>
- </span>
- </a>
- </td>
- </tr>
- <!-- ADDED HERE -->
- <tr role="group" aria-labelledby="lbl_searchModified">
- <td id="lbl_searchModified" class="cogstyle-fragmentHeader-titleText searchTitle"><xts:string id="IDS_SEARCH_MODIFIED" /></td>
- <td>
- <input type="hidden" name="_THIS_smodified" id="_THIS_smodified">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param', 'smodified')!=''"><xsl:value-of select="key('env-param', 'smodified')"/></xsl:when>
- <xsl:otherwise>any</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <a href="#" onclick="ui_menuShow(event, _THIS_s.menu.modifiedMenu);" style="white-space:nowrap;" class="ccOptions" role="button" aria-haspopup="true">
- <span id="_THIS_modifiedMenu_caption">
- <xsl:choose>
- <xsl:when test="key('env-param', 'smodified') = 't'"><xts:string id="IDS_SEARCH_MODIFIED_TODAY"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'l3d'"><xts:string id="IDS_SEARCH_MODIFIED_3_DAYS"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'lw'"><xts:string id="IDS_SEARCH_MODIFIED_LAST_WEEK"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'lm'"><xts:string id="IDS_SEARCH_MODIFIED_LAST_MONTH"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'l3m'"><xts:string id="IDS_SEARCH_MODIFIED_LAST_3_MONTHS"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'l6m'"><xts:string id="IDS_SEARCH_MODIFIED_LAST_6_MONTHS"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'ly'"><xts:string id="IDS_SEARCH_MODIFIED_LAST_12_MONTHS"/></xsl:when>
- <xsl:when test="key('env-param', 'smodified') = 'l3y'"><xts:string id="IDS_SEARCH_MODIFIED_LAST_36_MONTHS"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_FLT_ANY" /></xsl:otherwise>
- </xsl:choose>
- </span>
- <span> </span>
- <span class="frag-btn-over">
- <img width="7" height="16" border="0" align="top">
- <xsl:attribute name="src"><admui:imageURL image="dropdown_arrow_narrow.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- </img>
- </span>
- </a>
- </td>
- </tr>
- </table>
- </td>
- <td width="50%" style="background-color: #e3e9f3;">
- <table role="presentation">
- <xsl:if test="$type != 'printers' and $type != 'styles' and $type != 'portlets_import' and $type != 'tenants'">
- <tr role="group" aria-labelledby="lbl_searchType">
- <td id="lbl_searchType" class="cogstyle-fragmentHeader-titleText searchTitle"><xts:string id="IDS_SEARCH_TYPE" /></td>
- <td>
- <input type="hidden" name="_THIS_stype" id="_THIS_stype">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param', 'stype')!=''"><xsl:value-of select="key('env-param', 'stype')"/></xsl:when>
- <xsl:otherwise>any</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <a href="#" onclick="ui_menuShow(event, _THIS_s.menu.typeMenu);" style="white-space:nowrap;" class="ccOptions" role="button" aria-haspopup="true">
- <span id="_THIS_typeMenu_caption">
- <xsl:choose>
- <xsl:when test="$type = 'portlets_import'">
- <xsl:choose>
- <xsl:when test="key('env-param', 'stype') = 'portlet'"><xts:string id="IDS_SEARCH_TYPE_PORTLET"/></xsl:when>
- <xsl:when test="key('env-param', 'stype') = 'portletProducer'"><xts:string id="IDS_SEARCH_TYPE_PORTLET_GROUP"/></xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$type = 'visualizations'">
- <xsl:choose>
- <xsl:when test="key('env-param', 'stype') = 'visualization'"><xts:string id="IDS_SEARCH_TYPE_VISUALIZATION"/></xsl:when>
- <xsl:when test="key('env-param', 'stype') = 'catalogFolder'"><xts:string id="IDS_SEARCH_TYPE_CATALOG_FOLDER"/></xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="key('env-param', 'stype') = 'contact'"><xts:string id="IDS_SEARCH_TYPE_CONTACT"/></xsl:when>
- <xsl:when test="key('env-param', 'stype') = 'distributionList'"><xts:string id="IDS_SEARCH_TYPE_DISTRIBUTION"/></xsl:when>
- <xsl:when test="key('env-param', 'stype') = 'namespaceFolder'"><xts:string id="IDS_SEARCH_TYPE_FOLDER"/></xsl:when>
- <xsl:when test="key('env-param', 'stype') = 'namespace'"><xts:string id="IDS_SEARCH_TYPE_NAMESPACE"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_FLT_ANY" /></xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </span>
- <span> </span>
- <span class="frag-btn-over">
- <img width="7" height="16" border="0" align="top">
- <xsl:attribute name="src"><admui:imageURL image="dropdown_arrow_narrow.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- </img>
- </span>
- </a>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="$type != 'styles'and $type != 'portlets_import' and $type != 'visualizations'">
- <tr role="group" aria-labelledby="lbl_searchScope">
- <td id="lbl_searchScope" class="cogstyle-fragmentHeader-titleText searchTitle"><xts:string id="IDS_SEARCH_SCOPE" /></td>
- <td>
- <input type="hidden" name="_THIS_sscope" id="_THIS_sscope">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="string(key('env-param', 'sscope'))!=''"><xsl:value-of select="key('env-param', 'sscope')"/></xsl:when>
- <xsl:when test="$type != 'printers' and $type != 'tenants'">fb</xsl:when>
- <xsl:otherwise>fo</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <a href="#" onclick="ui_menuShow(event, _THIS_s.menu.scopeMenu);" style="white-space:nowrap;" class="ccOptions" role="button" aria-haspopup="true">
- <span id="_THIS_scopeMenu_caption">
- <xsl:choose>
- <xsl:when test="key('env-param', 'sscope') = 'any'"><xts:string id="IDS_SEARCH_SCOPE_NAMESPACE"/></xsl:when>
- <xsl:when test="key('env-param', 'sscope') = 'fo'"><xts:string id="IDS_SEARCH_SCOPE_FOLDER_ONLY"/></xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$type != 'printers' and $type != 'tenants'"><xts:string id="IDS_SEARCH_SCOPE_FOLDERS_SUB"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_SEARCH_SCOPE_FOLDER_ONLY"/></xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </span>
- <span> </span>
- <span class="frag-btn-over">
- <img width="7" height="16" border="0" align="top">
- <xsl:attribute name="src"><admui:imageURL image="dropdown_arrow_narrow.gif" type="skin"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_SEARCH_GO_TO_OPTIONS" /></xsl:attribute>
- </img>
- </span>
- </a>
- </td>
- </tr>
- </xsl:if>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- <xsl:choose>
- <!-- if the query is not specific enough, show the warning-->
- <xsl:when test="key('env-param', 'bshowNotSpecific') = 'true'">
- <p id="_THIS_notSpecific" style="color:666699; padding-top:50px; text-align:center">
- <xts:string id="IDS_SEARCH_NORESULTS" />
- </p>
- </xsl:when>
- <!-- show the query content, even it might be empty-->
- <xsl:when test="key('env-param', 'bshowNotSpecific') = 'false'">
- <div id="_THIS_mainContent">
- <uic:table width="100%">
- <uic:features>
- <uic:name>search</uic:name>
- <uic:scrollable/>
- <uic:type>checkbox</uic:type>
- <ui:tableFeatures/>
- <uic:aria-label><xts:string id="IDS_SEARCH_RESULTS_SUMMARY" encode="html"/></uic:aria-label>
- </uic:features>
- <xsl:call-template name="pgr:cogadminPager">
- <xsl:with-param name="pagerName" select="$pagerName"/>
- <xsl:with-param name="pageStart" select="nav:searchResponse/nav:content/@start"/>
- <xsl:with-param name="pageEnd" select="nav:searchResponse/nav:content/@end"/>
- <xsl:with-param name="pageMax" select="nav:searchResponse/nav:content/@max"/>
- <xsl:with-param name="pageMore" select="nav:searchResponse/nav:content/@more"/>
- <xsl:with-param name="linesPerPage" select="$linesPerPage"/>
- </xsl:call-template>
- <uic:header>
- <uic:row>
- <uic:column nowrap="nowrap" />
- <uic:column width="100%" nowrap="nowrap" sort="defaultName" iconTooltip="{$tooltip}">
- <uic:text>
- ...><span style="margin-left: 3px;"><xts:string id="IDS_HEADING_NAME"/></span>
- </uic:text>
- </uic:column>
- </uic:row>
- </uic:header>
- <uic:body>
- <xsl:apply-templates select="nav:searchResponse/nav:content/*"/>
- </uic:body>
- <uic:footer displayLastUpdate="true" />
- </uic:table>
- </div>
- </xsl:when>
- <!-- show nothing at all at the very initial display-->
- <xsl:otherwise/>
- </xsl:choose>
- </uic:fragment>
- </xsl:template>
-
- <xsl:template match="nav:item | nav:container">
- <xsl:variable name="value">
- <xsl:choose>
- <xsl:when test="$type='tenants'">
- <xsl:value-of select="nav:tenantID"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="nav:searchPath"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <uic:row value="{$value}" label="{xtsext:htmlencode(string(nav:name))}">
- <xsl:if test="$productLocale != $contentLocale">
- <xsl:attribute name="lang"><xsl:value-of select="$contentLocale"/></xsl:attribute>
- </xsl:if>
- <uic:column nowrap="nowrap">
- <uic:icon>
- <uic:src>
- <admui:imageURL type="nav">
- <admui:image><xsl:value-of select="nav:imgURL"/></admui:image>
- </admui:imageURL>
- </uic:src>
- <uic:tooltip>
- <xsl:value-of select="nav:screenTip"/>
- </uic:tooltip>
- </uic:icon>
- </uic:column>
- <uic:column nowrap="nowrap" scope="row" abbr="{xtsext:htmlencode(nav:name)}">
- <table cellspacing="0" cellpadding="0" border="0">
- <tr><td>
- <uic:icon>
- <uic:src><admui:imageURL image="path.gif" type="skin"/></uic:src>
- <uic:tooltip><xsl:value-of select="nav:fullName"/></uic:tooltip>
- </uic:icon>
- </td>
- <td>
-
- <uic:text>
- <xsl:choose>
- <xsl:when test="(nav:type = 'catalogFolder') and contains(string(nav:permissions), 'traverse')">
- <uic:link>
- <uic:text>
- <xsl:value-of select="nav:name"/><xsl:text/>
- </uic:text>
- <uic:href>#</uic:href>
- <uic:onclick>_THIS_.parent.retrieve('searchMode=&visualization_path=<xsl:value-of select="xtsext:javascriptencode(nav:id)"/>');</uic:onclick>
- </uic:link>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="nav:name"/>
- </xsl:otherwise>
- </xsl:choose>
- </uic:text>
-
- <!-- Render the disabled icon if this entry is disabled -->
- <xsl:if test="nav:icon/nav:name = 'disabled'">
- <uic:icon height="16" width="16" valign="middle">
- <uic:src>
- <admui:imageURL type="nav">
- <admui:image><xsl:value-of select="nav:icon/nav:imgURL"/></admui:image>
- </admui:imageURL>
- </uic:src>
- <uic:tooltip>
- <xsl:value-of select="nav:icon/nav:alt"/>
- </uic:tooltip>
- </uic:icon>
- </xsl:if>
- <xsl:variable name="permissions" select="nav:permissions"/>
- <xsl:variable name="isTenantObj" select="boolean(key('env-param','type')='tenants')"/>
- <xsl:variable name="isVisualizationObj" select="boolean(key('env-param','type')='visualizations')"/>
- <xsl:call-template name="ui:menuActions">
- <xsl:with-param name="obj-class" select="nav:type"/>
- <xsl:with-param name="obj-id" select="nav:internalId"/>
- <xsl:with-param name="obj-name" select="nav:name"/>
- <xsl:with-param name="obj-disabled" select="boolean(nav:icon/nav:name = 'disabled')"/>
- <xsl:with-param name="tenant-id" select="nav:tenantID"/>
- <xsl:with-param name="obj-path" select="nav:internalId"/>
- <xsl:with-param name="supportSetProperties" select="true()"/>
- <xsl:with-param name="supportMoreActions" select="not($isTenantObj) and not($isVisualizationObj)"/>
- <xsl:with-param name="supportExportTenant" select="true()"/>
- <xsl:with-param name="supportCreateContentUtilizationInfo" select="$isTenantObj"/>
- <xsl:with-param name="supportImpersonateTenant" select="$isTenantObj"/>
- <xsl:with-param name="supportTerminateSessions" select="$isTenantObj"/>
- <xsl:with-param name="supportEnableDisableObj" select="$isTenantObj"/>
- <xsl:with-param name="supportDelete" select="$isTenantObj or $isVisualizationObj"/>
- <xsl:with-param name="supportUserProfileActions" select="$isTenantObj"/>
- <xsl:with-param name="canRead" select="contains($permissions, 'read')"/>
- <xsl:with-param name="canWrite" select="contains($permissions, 'write')"/>
- <xsl:with-param name="canExecute" select="contains($permissions, 'execute')"/>
- <xsl:with-param name="canTraverse" select="contains($permissions, 'traverse')"/>
- <xsl:with-param name="canSetPolicy" select="contains($permissions, 'setPolicy')"/>
- </xsl:call-template>
- </td>
- </tr>
- </table>
- </uic:column>
- </uic:row>
- </xsl:template>
- </xsl:stylesheet>
|