123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?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).
- -->
- <!--
- Renders the search view.
- -->
- <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:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/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:cs="http://developer.cognos.com/schemas/cs"
- xmlns:out="http://www.w3.org/1999/XSL/Transform"
- xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:rss="http://developer.cognos.com/schemas/xts/rss/"
- 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 cm cml pf mt mf xts xtsext cf cp out bus utml dp lyt pm rss mvc">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pm:permissions/>
- <pf:documentFormats/>
- <pf:variables/>
- <mf:variables stateParams="mvc-sfolder m_tab m_ts m_folder m_folder2 m_nbid m_nbid2 search m_searchsection m_searchcontext stext sscope smethod sfield sstatus stype stype_is smodified sshortcuts stime m_section rui backURL" mode="main"/>
- <mf:main-variables/>
- <rss:variables/>
- <xsl:variable name="js-encoded-path" select="xtsext:javascriptencode( string( $m_path ) )"/><!-- Required -->
- <xsl:variable name="cmd-form" select="'cform'"/> <!-- Required -->
- <xsl:variable name="edit-form" select="'pform'"/><!-- Required -->
- <!-- 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="concat(key('session-param', 'e_hp'), '/folder')"/>
- </xsl:if>
- <xsl:if test="$isPFNav">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:if>
- </xsl:variable>
- <cp:flyoutControl/>
- <mt:common-variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <!-- Note: DOCTYPE is handled by mt:page -->
- <html lang="{$productLocale}" encodeDocType="false">
- <head>
- <pf:meta/><!-- Standard meta tags -->
- <title><xts:string id="IDS_PORTAL"/></title>
- <mt:stylesheet/><!-- add the theme style sheet -->
- <mf:head/><!-- Common framework logic for Cognos Central main view -->
- <pf:help context="HID_SEARCH"/><!-- Help system -->
- <pf:launch/><!-- adds functions to launch the studios.... -->
- <!-- link for Active Bookmarks (RSS) in FireFox -->
- <rss:link/>
- </head>
- <!-- HTML body -->
- <mt:page mode="main" region="IDS_SEARCH_BANNER_TEXT">
- <xsl:call-template name="render-header"/><!-- Render the top headers. -->
- <xsl:call-template name="search-panel"/><!-- Insert search control panel -->
- <form action="{$gateway}" method="post" name="pform" style="margin:0px">
- <xsl:choose>
- <xsl:when test="$mvc-N-enabled and $mvc-remoteNav">
- <!-- MVC - Content Reference -->
- <xsl:call-template name="mvcSearchRemoteContent"/>
- </xsl:when>
- <xsl:otherwise>
- <div id="wsrp_rewrite_div_result_busy_container" style="height:0px;display:none;"/>
- <pg:busyIndicator/>
- <div id="wsrp_rewrite_div_results">
- <table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation" >
- <tr>
- <!-- result content section -->
- <td valign="top" width="100%">
- <lyt:layout style="1" joinSection="yes">
- <lyt:section width="100%">
- <xsl:choose>
- <xsl:when test="/root/search/indexSearchNotAllowed">
- <mt:errorMessage>
- <xts:string id="IDS_SEARCH_NO_INDEX_CAPABILITY"/>
- </mt:errorMessage>
- </xsl:when>
- <xsl:when test="/root/search/emptySearchExpression">
- <mt:objectNoneFound id="IDS_EMPTY_QUERY"/>
- </xsl:when>
- <xsl:when test="/root/search/navSearchSpec or string(/root/search/expression) != ''">
- <!-- basic search -->
- <pg:pager-basicSearch/>
- </xsl:when>
- </xsl:choose>
- <rss:button/>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- </table>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- <mf:edit-vars/>
- </form>
- <form name="cform" method="post" action="{$gateway}" style="margin:0px">
- <mf:cmd-vars/>
- </form>
- <!-- End of HTML body -->
- </mt:page>
- <pg:common-script/>
- <pg:common-popup-script/>
- </html>
- </xsl:template>
-
- <!-- Insert 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="mvcSearchRemoteContent">
- <xsl:variable name="fragment-params">
- <xsl:for-each select="/root/env/param[@name='mvc-sfolder' or @name='sscope' or @name='sfield' or @name='smethod' or @name='smodified' or @name='stext' or @name='stype']">
- <xsl:text/>&<xsl:value-of select="@name"/>=<xsl:value-of select="xtsext:urlencode(string(.))"/>
- </xsl:for-each>
- </xsl:variable>
- <mvc:instance id="'search'" fragment-params="$fragment-params"/>
- </xsl:template>
- <pg:commonSupportTemplates/>
- <xsl:template name="render-header">
- <mt:h1 mode="mainSearch">
- <mt:title><xts:string id="IDS_SEARCH_BANNER_TEXT"/></mt:title>
- </mt:h1>
- <mt:h4>
- <mt:toolbar>
- <!-- Show the toolbar when we have data to display -->
- <xsl:choose>
- <xsl:when test="count(/root/navContent/nav:searchResponse/nav:content/*) > 0 or count($childReply/*) > 0">
- <mt:tool-group hideDivider="true">
- <mt:tool name="copy" mode="main"/>
- <mt:tool name="cut" mode="main"/>
- <mt:tool name="delete"/>
- </mt:tool-group>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool-group hideDivider="true">
- <xsl:choose>
- <xsl:when test="contains(string(key('session-param','edit')),'copy')"><mt:tool name="copy" mode="main" /></xsl:when>
- <xsl:otherwise><mt:tool name="copy" mode="main" disable="true"/></xsl:otherwise>
- </xsl:choose>
- <mt:tool name="cut" disable="true"/>
- <mt:tool name="delete" disable="true"/>
- </mt:tool-group>
- </xsl:otherwise>
- </xsl:choose>
- </mt:toolbar>
- </mt:h4>
- </xsl:template>
- <xsl:template name="search-panel">
- <mt:search indexSearch="false">
- <mt:scopes>
- <mt:scope>fb</mt:scope>
- <mt:scope>fo</mt:scope>
- <mt:scope customsearch="true">m</mt:scope>
- <mt:scope customsearch="true">p</mt:scope>
- </mt:scopes>
- <mt:stypes>
- <!--
- ***********************************************************************************************************************************
- NOTE: Any changes made to this list of objects should also be made in tools_directory.xts
- When adding please keep the value of the string id in alphabetical order, so the name that appears to the user.
- ***********************************************************************************************************************************
- -->
- <mt:stype name="interactiveReport"><xts:string id="IDS_OBJ_INTERACTIVEREPORT"/></mt:stype>
- <mt:stype name="analyticsPackage"><xts:string id="IDS_OBJ_AATOCPACKAGE"/></mt:stype>
- <mt:stype name="agentDefinition"><xts:string id="IDS_OBJ_AGENT"/></mt:stype>
- <mt:stype name="agentDefinitionView"><xts:string id="IDS_OBJ_AGENTVIEW"/></mt:stype>
- <mt:stype name="analysis"><xts:string id="IDS_OBJ_ANALYSIS"/></mt:stype>
- <mt:stype name="contentReference"><xts:string id="IDS_OBJ_MVC_CONTENT_REFERENCE"/></mt:stype> <!-- Not actual object type, returns Content Reference objects -->
- <mt:stype name="dataMovementTask"><xts:string id="IDS_OBJ_DATAMOVEMENTTASK"/></mt:stype>
- <mt:stype name="dataMovementTaskAlias"><xts:string id="IDS_OBJ_DATAMOVEMENTTASKALIAS"/></mt:stype>
- <mt:stype name="document"><xts:string id="IDS_OBJ_DOCUMENT"/></mt:stype>
- <mt:stype name="advisorCanvas"><xts:string id="IDS_OBJ_LAUNCHABLE_ADVISOR_CANVAS"/></mt:stype>
- <mt:stype name="advisorView"><xts:string id="IDS_OBJ_LAUNCHABLE_ADVISOR_VIEW"/></mt:stype>
- <mt:stype name="folder"><xts:string id="IDS_OBJ_FOLDER"/></mt:stype>
- <mt:stype name="cd"><xts:string id="IDS_OBJ_LAUNCHABLE_CD"/></mt:stype> <!-- Not actual object type, returns Cognos Insight objects -->
- <mt:stype name="jobDefinition"><xts:string id="IDS_OBJ_JOBDEFINITION"/></mt:stype>
- <mt:stype name="metricsExportTask"><xts:string id="IDS_OBJ_METRICSEXPORTTASK"/></mt:stype>
- <mt:stype name="metricsDataSourceETLTask"><xts:string id="IDS_OBJ_METRICSDATASOURCEETLTASK"/></mt:stype>
- <mt:stype name="metricsFileImportTask"><xts:string id="IDS_OBJ_METRICSFILEIMPORTTASK"/></mt:stype>
- <mt:stype name="metricsMaintenanceTask"><xts:string id="IDS_OBJ_METRICSMAINTENANCETASK"/></mt:stype>
- <mt:stype name="metricsPackage"><xts:string id="IDS_OBJ_METRICSPACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for metrics manager-->
- <mt:stype name="package"><xts:string id="IDS_OBJ_PACKAGE"/></mt:stype>
- <mt:stype name="pagelet"><xts:string id="IDS_OBJ_PAGELET"/></mt:stype>
- <mt:stype name="planningPackage"><xts:string id="IDS_OBJ_PLANNING_PACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for planning package-->
- <mt:stype name="planningTask"><xts:string id="IDS_OBJ_PLANNING_TASK"/></mt:stype>
- <mt:stype name="powerPlayCube"><xts:string id="IDS_OBJ_POWERPLAYCUBE"/></mt:stype>
- <mt:stype name="powerPlayReport"><xts:string id="IDS_OBJ_POWERPLAYREPORT"/></mt:stype>
- <mt:stype name="powerPlay8Report"><xts:string id="IDS_OBJ_POWERPLAY8REPORT"/></mt:stype>
- <mt:stype name="powerPlay8ReportView"><xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/></mt:stype>
- <mt:stype name="query"><xts:string id="IDS_OBJ_QUERY"/></mt:stype>
- <mt:stype name="report"><xts:string id="IDS_OBJ_REPORT"/></mt:stype>
- <mt:stype name="reportTemplate"><xts:string id="IDS_OBJ_REPORTTEMPLATE"/></mt:stype>
- <mt:stype name="reportView"><xts:string id="IDS_OBJ_REPORTVIEW"/></mt:stype>
- <mt:stype name="shortcut"><xts:string id="IDS_SHORTCUTS"/></mt:stype>
- <mt:stype name="TM1Package"><xts:string id="IDS_OBJ_TM1PACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for TM1 studio-->
- <mt:stype name="URL"><xts:string id="IDS_OBJ_URL"/></mt:stype>
- <mt:stype name="dashboard"><xts:string id="IDS_OBJ_DASHBOARD"/></mt:stype>
- </mt:stypes>
- <mt:close-params>
- <param>m_folder2</param>
- <param>m_folder</param>
- <param>m_section</param>
- <param>m_tab</param>
- <param>mvc-sfolder</param>
- </mt:close-params>
- </mt:search>
- </xsl:template>
- <cp:tabControl/>
- </xsl:stylesheet>
|