12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103 |
- <?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:out="dummy-uri"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:sos="http://developer.cognos.com/schemas/xts/logicsheets/xslt/sos/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/" exclude-result-prefixes="lyt">
-
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="sos:search-panel">
-
- <out:variable name="scope" select="string(key('env-param','sscope'))"/>
- <out:variable name="stype" select="string(key('env-param','stype'))"/>
- <out:variable name="stype_is" select="string(key('env-param','stype_is'))"/> <!-- index search search type -->
- <out:variable name="modified" select="string(key('env-param','smodified'))"/>
- <out:variable name="smethod" select="string(key('env-param','smethod'))"/>
- <out:variable name="searchMode"> <!-- {basic | index} search -->
- <out:choose>
- <out:when test="not(key('spec-item','modes')/search/contents/param[@name='index'])">
- <out:value-of select="'basic'"/> <!-- no index search for this page, fix it to basic -->
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$userCanUseIndexSearch">
- <out:choose>
- <out:when test="string(key('env-param','sfield')) = 'k' or string(key('env-param','sfield')) = ''">
- <out:value-of select="'index'"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="'basic'"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:value-of select="'basic'"/> <!-- user has no index search capability, fix it to basic -->
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="field">
- <out:choose>
- <out:when test="string(key('env-param','sfield')) != ''"><out:value-of select="string(key('env-param','sfield'))"/></out:when>
- <out:when test="$searchMode = 'index'">k</out:when>
- <out:otherwise>n</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="stext" select="string(key('env-param','stext'))"/>
-
- <script language="javascript">
- <!-- preload source for search icon animation -->
- var imgAnimatedSearch = new Image();
- imgAnimatedSearch.src = "<out:value-of select="$image_root"/>action_search_ani.gif";
-
- function doSearch()
- {
- if (document.pform["<out:value-of select="$navigationIdInput"/>"] &&
- document.pform["<out:value-of select="$navigationIdInput"/>"].value == '') {
- document.pform["<out:value-of select="$navigationIdInput"/>"].value = "<out:value-of select="xtsext:javascriptencode($navigationId)"/>";
- }
- <!-- Clear the nav search context to reset search, if any -->
- if (document.pform["m_context"]) {
- document.pform["m_context"].value = '';
- }
- if (document.pform["m_pagerfrom"]) {
- document.pform["m_pagerfrom"].value = '';
- }
- if (document.pform["m_pagerto"]) {
- document.pform["m_pagerto"].value = '';
- }
- if (document.pform["m_section"]) {
- document.pform["m_section"].value = '';
- }
- if (document.pform["m_pg_e"]) {
- document.pform["m_pg_e"].value = '';
- }
- window.setTimeout("document.pform.submit();", 1);
- document.images["imgSearch"].src = imgAnimatedSearch.src;
- }
-
- function searchKeyHandler(evt)
- {
- if (evt.keyCode==13) {
- doSearch();
- return false;
- }
- }
- var searchMode = '<out:value-of select="$searchMode"/>';
-
- <!-- +++++++++++++ Set Flyout Caption Functions ++++++++++++++ -->
-
- function setSearchMode(sfield)
- {
- <out:if test="not(key('spec-item','modes')/search/contents/param[@name='index'] and $userCanUseIndexSearch)">
- return;
- </out:if>
-
- if (sfield == 'k') {
- var kEl = document.getElementById('searchOptions_index');
- kEl.style.display = "";
- var cmEl = document.getElementById('searchOptions_basic');
- cmEl.style.display = "none";
-
- }
- else
- {
- var cmEl = document.getElementById('searchOptions_basic');
- cmEl.style.display = "";
- var kEl = document.getElementById('searchOptions_index');
- kEl.style.display = "none";
- }
- }
-
- function setFindTextIn(selected_value, caption)
- {
- var findTextInMenu_caption = document.getElementById("findTextInMenu_caption");
- if (findTextInMenu_caption) {
- findTextInMenu_caption.innerHTML = caption;
- }
- var findTextInMenuJAWS_caption = document.getElementById("sosSearchTextLabel");
- if (findTextInMenuJAWS_caption){
- findTextInMenuJAWS_caption.innerHTML = searchFieldMSG + " " + caption;
- }
-
- document.getElementById("sfield").value = selected_value;
- setSearchMode(selected_value);
- var findMenuEl = document.getElementById("findTextInMenu_spanTable");
- if (findMenuEl != null){
- findMenuEl.focus();
- }
- }
- function setSearchMethod(selected_value,caption)
- {
- var searchMethodMenu_caption = document.getElementById("searchMethodMenu_caption");
- if( searchMethodMenu_caption )
- searchMethodMenu_caption.innerHTML = caption;
- var findMethodMenuJAWS_caption = document.getElementById("sosSearchMethodLabel");
- if (findMethodMenuJAWS_caption){
- findMethodMenuJAWS_caption.innerHTML = searchMethodMSG + " " + caption;
- }
-
- var smethod = document.getElementById("smethod");
- if (smethod)
- smethod.value = selected_value;
- }
- function setSearchModified(selected_value,caption)
- {
- var searchModifiedMenu_caption = document.getElementById("searchModifiedMenu_caption");
- if( searchModifiedMenu_caption )
- searchModifiedMenu_caption.innerHTML = caption;
- var findModifiedMenuJAWS_caption = document.getElementById("sosSearchModifiedLabel");
- if (findModifiedMenuJAWS_caption){
- findModifiedMenuJAWS_caption.innerHTML = searchFieldModifiedMSG + " " + caption;
- }
-
- var smodified = document.getElementById("smodified");
- if (smodified)
- smodified.value = selected_value;
- }
- function setSearchType(selected_value,caption)
- {
- var searchTypeMenu_caption = document.getElementById("searchTypeMenu_caption");
- if( searchTypeMenu_caption )
- searchTypeMenu_caption.innerHTML = caption;
-
- var findTypeMenuJAWS_caption = document.getElementById("sosSearchTypeLabel");
- if (findTypeMenuJAWS_caption){
- findTypeMenuJAWS_caption.innerHTML = searchFieldTypeMSG + " " + caption;
- }
- var stype = document.getElementById("stype");
- if (stype)
- stype.value = selected_value;
- }
- function setSearchIndexType(selected_value,caption)
- {
- var searchTypeMenu_caption = document.getElementById("searchIndexTypeMenu_caption");
- if( searchTypeMenu_caption )
- searchTypeMenu_caption.innerHTML = caption;
- var stype = document.getElementById("stype_is");
- if (stype)
- stype.value = selected_value;
- }
- function setSearchScope(selected_value,caption)
- {
- var searchScopeMenu_caption = document.getElementById("searchScopeMenu_caption");
- if( searchScopeMenu_caption )
- searchScopeMenu_caption.innerHTML = caption;
- var findScopeMenuJAWS_caption = document.getElementById("sosSearchScopeLabel");
- if (findScopeMenuJAWS_caption){
- findScopeMenuJAWS_caption.innerHTML = searchFieldScopeMSG + " " + caption;
- }
- var sscope = document.getElementById("sscope");
- if (sscope)
- sscope.value = selected_value;
- }
- </script>
- <!-- text edit box: -->
- <dp:list dp:kbA11y="true">
- <dp:section>
- <dp:label valign="top" width="1%" nospace="true"><xts:string id="IDS_FIND_TXT_IN"/></dp:label>
- <dp:link wrap="wrap" valign="top">
-
- <input name="sfield" id="sfield" type="hidden" value="{'{$field}'}"/>
-
- <out:variable name="findTextInMenu">
- <flyout id="findTextInMenu" hasCheckbox="true">
- <label><xts:string encode="javascript" id="IDS_SEARCH_FINDTEXT_MENU"/></label>
- <items>
- <itemGroup id="findTextInMenuGroup">
- <out:if test="key('spec-item','modes')/search/contents/param[@name='index'] and $userCanUseIndexSearch">
- <item id="findTextInMenu_k">
- <out:if test="$field = 'k'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_KEYWORD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_k");setFindTextIn('k','<xts:string id="IDS_KEYWORD" encode="javascript"/>');</action>
- </item>
- </out:if>
-
- <item id="findTextInMenu_n">
- <out:if test="$field = 'n'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_NAME_FIELD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_n");setFindTextIn('n','<xts:string id="IDS_NAME_FIELD" encode="javascript"/>');</action>
- </item>
-
- <item id="findTextInMenu_d">
- <out:if test="$field = 'd'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_DESC_FIELD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_d");setFindTextIn('d','<xts:string id="IDS_DESC_FIELD" encode="javascript"/>');</action>
- </item>
-
- <item id="findTextInMenu_nd">
- <out:if test="$field = 'nd'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_NAME_DESC_FIELD"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("findTextInMenu_nd");setFindTextIn('nd','<xts:string id="IDS_NAME_DESC_FIELD" encode="javascript"/>');</action>
- </item>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
-
- <div id="findTextInMenu_span" style="margin-left:5px;z-index:10;position: relative;" >
- <table id="findTextInMenu_spanTable" cellspacing="0" cellpadding="0" style="position:relative; cursor:pointer;" tabindex="0"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'findTextInMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'findTextInMenu');" role="button" aria-haspopup="true" aria-labelledby="sosSearchTextLabel">
- <tr>
- <td nowrap="true" valign="top">
- <out:variable name="currentSortField">
- <out:choose>
- <out:when test="$field = 'k'">
- <xts:string id="IDS_KEYWORD"/>
- </out:when>
- <out:when test="$field = 'n'">
- <xts:string id="IDS_NAME_FIELD"/>
- </out:when>
- <out:when test="$field = 'd'">
- <xts:string id="IDS_DESC_FIELD"/>
- </out:when>
- <out:when test="$field = 'nd'">
- <xts:string id="IDS_NAME_DESC_FIELD"/>
- </out:when>
- </out:choose>
- </out:variable>
- <span id="sosSearchTextLabel" style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <out:variable name="searchFieldNameMSG">
- <xts:string id="IDS_FIND_TXT_IN"/>
- </out:variable>
- <script language="javascript">
- var searchFieldMSG = "<xts:string encode="javascript" id="IDS_FLYOUTMENU_DESCRIPT"><xts:param name="menuName"><out:value-of select="$searchFieldNameMSG"/></xts:param></xts:string>";
- </script>
- <xts:string id="IDS_FLYOUTMENU_DESCRIPT"><xts:param name="menuName"><out:value-of select="$searchFieldNameMSG"/></xts:param></xts:string> <out:value-of select="$currentSortField"/>
- </span>
- <a id="findTextInMenu_caption" role="presentation" class="ccOptions" style="text-decoration:underline;" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;">
- <label for="stext">
- <out:value-of select="$currentSortField"/>
- </label>
- </a>
- </td>
- <td nowrap="true" valign="top">
- <img name="findTextInMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
-
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$findTextInMenu"/>
- </out:with-param>
- <out:with-param name="controlID">findTextInMenu_span</out:with-param>
- </out:call-template>
- </dp:link>
- </dp:section>
- </dp:list>
- <dp:list dp:kbA11y="true">
- <dp:section width="100%" >
- <table border="0" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td style="padding-right:2px;">
- <input type="text" size="65" name="stext" id="stext" onkeypress="searchKeyHandler(event)">
- <out:attribute name="value">
- <out:value-of select="$stext"/>
- </out:attribute>
- <out:if test="$isBidiEnabled = 'true'">
- <out:variable name="textDirection">
- <out:value-of select="xtsext:getBTD(string($stext), $baseTextDirection, $productLocale)"/>
- </out:variable>
- <out:attribute name="dir">
- <out:value-of select="$textDirection"/>
- </out:attribute>
- <out:if test="$baseTextDirection = 'auto'">
- <out:attribute name="onfocus">
- <out:text>bidi.onfocus(this)</out:text>
- </out:attribute>
- </out:if>
- </out:if>
- </input>
- </td>
- <dp:button>
- <dp:defaultAct>doSearch();</dp:defaultAct>
- <a href="javascript:doSearch()" role="button" aria-labelledby="sosSearchButtonLabel">
- <dp:buttonText>
- <xts:string id="IDS_SEARCH_BUTTON"/>
- </dp:buttonText>
- <dp:buttonImage name="imgSearch" dp:tooltip="IDS_SEARCH_BUTTON">{$image_root}action_search.gif</dp:buttonImage>
- <span id="sosSearchButtonLabel" style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <xts:string id="IDS_SEARCH_BUTTON"/>
- </span>
- </a>
- </dp:button>
- <td>
- <span id="searchAdvancedDesc" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_SELECT_SEARCH_ADVANCED"/></span>
- <cf:dynamicExpandingSectionTop indent="no" name="b_search" title="IDS_ADV_SEARCH_OPTIONS" longDescription="searchAdvancedDesc" expanding="yes" border="no" style="cursor:pointer;"/>
- </td>
- </tr>
- <tr>
- <td width="100%" colspan="4">
- <cf:dynamicExpandingSectionBody name="b_search" title="IDS_ADV_SEARCH_OPTIONS" expanding="yes" border="no">
- <table width="100%" role="presentation">
- <!-- <dp:groupItem><img height="1" width="10" src="{'{$webcontent}'}/images/space.gif"/></dp:groupItem>-->
- <td width="100%" class="sectionBackground">
- <!-- Index search options -->
- <out:if test="key('spec-item','modes')/search/contents/param[@name='index']">
- <div id="searchOptions_index">
- <out:if test="not($field = 'k')">
- <out:attribute name="style"><out:value-of select="'display:none'"/></out:attribute>
- </out:if>
- <!-- <xsl:call-template name="generate-indexSearchOptions-block"/> -->
- <xsl:call-template name="generate-indexSearchFlyouts-block"/>
- </div>
- </out:if>
-
- <!-- Basic search options -->
- <div id="searchOptions_basic">
- <out:if test="key('spec-item','modes')/search/contents/param[@name='index']">
- <out:if test="$field = 'k'">
- <out:attribute name="style"><out:value-of select="'display:none'"/></out:attribute>
- </out:if>
- </out:if>
- <!-- <xsl:call-template name="generate-basicSearchOptions-block"/> -->
- <xsl:call-template name="generate-basicSearchFlyouts-block"/>
- </div>
- </td>
- </table>
- </cf:dynamicExpandingSectionBody>
- </td>
- </tr>
- </table>
- </dp:section>
- </dp:list>
- <out:if test=" key('env-param','stext') or key('env-param','sourceContext') ">
- <dp:list>
- <dp:section>
- <dp:text/>
- </dp:section>
- </dp:list>
- <dp:division title="IDS_SEARCH_RESULTS"/>
- </out:if>
- <!-- Standard xts command variables -->
- <!--
- <input type="hidden" name="b_action" value="xts.run"/>
- <input type="hidden" name="m" value="{'{$app}/{$mname}'}"/>
- <xsl:if test="@type = 'tools'">
- <input type="hidden" name="m_newsearch" value="false"/>
- </xsl:if>
- -->
- <!-- Search control parameters -->
- <input type="hidden" name="search" id="search">
- <out:attribute name="value"><out:value-of select=" key('env-param','search') "/></out:attribute>
- </input>
- <!-- Request UI customization parameter -->
- <!--
- <input type="hidden" name="rui">
- <out:attribute name="value"><out:value-of select=" key('env-param','rui') "/></out:attribute>
- </input>
- -->
- </xsl:template>
- <xsl:template name="generate-basicSearchFlyouts-block">
- <dp:list width="100%" dp:kbA11y="true">
- <dp:section width="100%">
- <dp:list width="50%" dp:kbA11y="true">
- <dp:section>
- <dp:label valign="top" width="1%" nospace="true"><div><xts:string id="IDS_SEARCH_METHOD"/></div></dp:label>
- <dp:link wrap="wrap" valign="top">
- <out:variable name="smethodDefault">
- <out:choose>
- <out:when test="/root/env/param[@name='queryNamespaceSearchDefaultMethodOptionSetting'] = 'true'">
- <out:variable name="option" select="/root/configProps/param[@name='cc']/property[@name='portal.namespaceSearchDefaultMethodOption']"/>
- <out:choose>
- <out:when test="$option = 'contains'">1</out:when>
- <out:when test="$option = 'starts'">2</out:when>
- <out:when test="$option = 'equals'">3</out:when>
- <out:otherwise>1</out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>1</out:otherwise>
- </out:choose>
- </out:variable>
-
- <input name="smethod" id="smethod" type="hidden">
- <out:attribute name="value">
- <out:choose>
- <out:when test="$smethod = ''"><out:value-of select="$smethodDefault"/></out:when>
- <out:otherwise><out:value-of select="$smethod"/></out:otherwise>
- </out:choose>
- </out:attribute>
- </input>
- <out:variable name="searchMethodMenu">
- <flyout id="searchMethodMenu" hasCheckbox="true">
- <label><xts:string encode="javascript" id="IDS_SEARCH_METHOD_MENU"/></label>
- <items>
- <itemGroup id="searchMethodGroup">
- <item id="searchMethod_1">
- <out:if test="$smethod = '1' or ($smethod = '' and $smethodDefault = '1')">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_CONTAINS"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchMethod_1");setSearchMethod('1','<xts:string id="IDS_CONTAINS" encode="javascript"/>');</action>
- </item>
- <item id="searchMethod_2">
- <out:if test="$smethod = '2' or ($smethod = '' and $smethodDefault = '2')">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_STARTS_WITH"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchMethod_2");setSearchMethod('2','<xts:string id="IDS_STARTS_WITH" encode="javascript"/>');</action>
- </item>
- <item id="searchMethod_3">
- <out:if test="$smethod = '3' or ($smethod = '' and $smethodDefault = '3')">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_EQUALS"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchMethod_3");setSearchMethod('3','<xts:string id="IDS_EQUALS" encode="javascript"/>');</action>
- </item>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
- <div style="margin-left:5px;z-index:9;position: relative;">
-
- <div id="searchMethodMenu_span" style="text-decoration:underline;" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" tabindex="0"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchMethodMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'searchMethodMenu');" role="button" aria-haspopup="true"
- aria-labelledby="sosSearchMethodLabel">
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr class="ccOptions" style="cursor:pointer;">
- <td nowrap="true" valign="top">
- <out:variable name="currentSortMethod">
- <out:choose>
- <out:when test="$smethod = '1' or ($smethod = '' and $smethodDefault = '1')">
- <xts:string id="IDS_CONTAINS"/>
- </out:when>
- <out:when test="$smethod = '2' or ($smethod = '' and $smethodDefault = '2')">
- <xts:string id="IDS_STARTS_WITH"/>
- </out:when>
- <out:when test="$smethod = '3' or ($smethod = '' and $smethodDefault = '3')">
- <xts:string id="IDS_EQUALS"/>
- </out:when>
- </out:choose>
- </out:variable>
- <span id="sosSearchMethodLabel" style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <out:variable name="searchMethodNameMSG">
- <xts:string id="IDS_SEARCH_METHOD"/>
- </out:variable>
- <script language="javascript">
- var searchMethodMSG = "<xts:string encode="javascript" id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchMethodNameMSG"/>
- </xts:param>
- </xts:string>";
- </script>
- <xts:string id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchMethodNameMSG"/>
- </xts:param>
- </xts:string>
- <out:value-of select="$currentSortMethod"/>
- </span>
- <span id="searchMethodMenu_caption">
- <out:value-of select="$currentSortMethod"/>
- </span>
- </td>
- <td nowrap="true" valign="top">
- <img name="searchMethodMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$searchMethodMenu"/>
- </out:with-param>
- <out:with-param name="controlID">searchMethodMenu_span</out:with-param>
- </out:call-template>
- </div>
- </dp:link>
- </dp:section>
- <out:choose>
- <out:when test="key('spec-item','modes')/search/modified">
- <dp:section>
- <dp:label valign="top" width="1%" nospace="true"><div><xts:string id="IDS_SEARCH_MODIFIED"/></div></dp:label>
- <dp:link wrap="wrap" valign="top">
-
- <input name="smodified" id="smodified" type="hidden">
- <out:attribute name="value">
- <out:choose>
- <out:when test="$modified = ''">any</out:when>
- <out:otherwise><out:value-of select="$modified"/></out:otherwise>
- </out:choose>
- </out:attribute>
- </input>
-
- <out:variable name="searchModifiedMenu">
- <flyout id="searchModifiedMenu" hasCheckbox="true">
- <label><xts:string encode="javascript" id="IDS_SEARCH_MODIFIED_MENU"/></label>
- <items>
- <itemGroup id="searchModifiedGroup">
- <item id="searchModified_a">
- <out:if test="$modified = 'any' or $modified = ''">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_ANY_DATE"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_a");setSearchModified('any','<xts:string id="IDS_ANY_DATE" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_t">
- <out:if test="$modified = '2'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_TODAY"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_t");setSearchModified('t','<xts:string id="IDS_MODIFIED_TODAY" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_l3d">
- <out:if test="$modified = 'l3d'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LAST3DAYS"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_l3d");setSearchModified('l3d','<xts:string id="IDS_MODIFIED_LAST3DAYS" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_lw">
- <out:if test="$modified = 'lw'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LASTWEEK"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_lw");setSearchModified('lw','<xts:string id="IDS_MODIFIED_LASTWEEK" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_lm">
- <out:if test="$modified = 'lm'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LASTMONTH"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_lm");setSearchModified('lm','<xts:string id="IDS_MODIFIED_LASTMONTH" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_l3m">
- <out:if test="$modified = 'l3m'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LAST3MONTH"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_l3m");setSearchModified('l3m','<xts:string id="IDS_MODIFIED_LAST3MONTH" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_l6m">
- <out:if test="$modified = 'l6m'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LAST6MONTH"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_l6m");setSearchModified('l6m','<xts:string id="IDS_MODIFIED_LAST6MONTH" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_ly">
- <out:if test="$modified = 'ly'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LASTYEAR"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_ly");setSearchModified('ly','<xts:string id="IDS_MODIFIED_LASTYEAR" encode="javascript"/>');</action>
- </item>
- <item id="searchModified_l3y">
- <out:if test="$modified = 'l3y'">
- <out:attribute name="itemSelectedState">checked</out:attribute>
- </out:if>
- <text><xts:string id="IDS_MODIFIED_LAST3YEARS"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchModified_l3y");setSearchModified('l3y','<xts:string id="IDS_MODIFIED_LAST3YEARS" encode="javascript"/>');</action>
- </item>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
-
- <div style="margin-left:5px;z-index:8;position: relative;">
- <div id="searchModifiedMenu_span" style="text-decoration:underline;" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" tabindex="0"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchModifiedMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'searchModifiedMenu');" role="button" aria-haspopup="true"
- aria-labelledby="sosSearchModifiedLabel">
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr class="ccOptions" style="cursor:pointer;">
- <td nowrap="true" valign="top">
- <out:variable name="currentModifiedField">
- <out:choose>
- <out:when test=" $modified = 'any' or $modified = ''">
- <xts:string id="IDS_ANY_DATE"/>
- </out:when>
- <out:when test=" $modified = 't' ">
- <xts:string id="IDS_MODIFIED_TODAY"/>
- </out:when>
- <out:when test=" $modified = 'l3d' ">
- <xts:string id="IDS_MODIFIED_LAST3DAYS"/>
- </out:when>
- <out:when test=" $modified = 'lw' ">
- <xts:string id="IDS_MODIFIED_LASTWEEK"/>
- </out:when>
- <out:when test=" $modified = 'lm' ">
- <xts:string id="IDS_MODIFIED_LASTMONTH"/>
- </out:when>
- <out:when test=" $modified = 'l3m' ">
- <xts:string id="IDS_MODIFIED_LAST3MONTH"/>
- </out:when>
- <out:when test=" $modified = 'l6m' ">
- <xts:string id="IDS_MODIFIED_LAST6MONTH"/>
- </out:when>
- <out:when test=" $modified = 'ly' ">
- <xts:string id="IDS_MODIFIED_LASTYEAR"/>
- </out:when>
- <out:when test=" $modified = 'l3y' ">
- <xts:string id="IDS_MODIFIED_LAST3YEARS"/>
- </out:when>
- </out:choose>
- </out:variable>
- <span id="sosSearchModifiedLabel" style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <out:variable name="searchFieldModifiedMSG">
- <xts:string id="IDS_SEARCH_MODIFIED"/>
- </out:variable>
- <script language="javascript">
- var searchFieldModifiedMSG = "<xts:string encode="javascript" id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchFieldModifiedMSG"/>
- </xts:param>
- </xts:string>";
- </script>
- <xts:string id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchFieldModifiedMSG"/>
- </xts:param>
- </xts:string>
- <out:value-of select="$currentModifiedField"/>
- </span>
- <span id="searchModifiedMenu_caption">
- <out:value-of select="$currentModifiedField"/>
- </span>
- </td>
- <td nowrap="true" valign="top">
- <img name="searchModifiedMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$searchModifiedMenu"/>
- </out:with-param>
- <out:with-param name="controlID">searchModifiedMenu_span</out:with-param>
- </out:call-template>
- </div>
- </dp:link>
- </dp:section>
- </out:when>
- <out:otherwise>
- <dp:section>
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td> </td>
- </tr>
- </table>
- </dp:section>
- </out:otherwise>
- </out:choose>
- </dp:list>
- <dp:list width="50%" dp:kbA11y="true">
- <out:if test="count(key('spec-item','modes')/search/types/param) > 1">
- <dp:section>
- <dp:label valign="top" width="1%" nospace="true"><div><xts:string id="IDS_ENTRY_TYPE"/></div></dp:label>
- <dp:link wrap="wrap" valign="top">
-
- <!-- Create flyout for type -->
-
- <out:variable name="searchTypeItems">
- <xsl:call-template name="generate-search-types-items">
- <xsl:with-param name="types" select="'key("spec-item","modes")/search/types'"/>
- <xsl:with-param name="input_name" select="'stype'"/>
- </xsl:call-template>
- </out:variable>
-
- <input name="stype" id="stype" type="hidden">
- <out:attribute name="value">
- <out:choose>
- <out:when test="$stype = ''">any</out:when>
- <out:otherwise><out:value-of select="$stype"/></out:otherwise>
- </out:choose>
- </out:attribute>
- </input>
-
- <out:variable name="searchTypeMenu">
- <flyout id="searchTypeMenu" hasCheckbox="true">
- <label><xts:string encode="javascript" id="IDS_SEARCH_TYPE_MENU"/></label>
- <items>
- <itemGroup id="searchTypeGroup">
- <out:for-each select="$searchTypeItems/item">
- <out:variable name="curVal" select="@value"/>
- <out:variable name="ck">
- <out:choose>
- <out:when test="$stype = $curVal">checked</out:when>
- <out:when test="($stype = 'any' or $stype = '') and position()=1">checked</out:when>
- </out:choose>
- </out:variable>
- <item>
- <out:if test="$ck!=''">
- <out:attribute name="itemSelectedState"><out:value-of select="$ck"/></out:attribute>
- </out:if>
- <out:copy-of select="@*[name()!='itemSelectedState' and name()!='value']"/>
- <out:copy-of select="./*"/>
- </item>
- </out:for-each>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
-
- <div style="margin-left:5px;z-index:9;position: relative;">
- <div id="searchTypeMenu_span" style="text-decoration:underline;" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" tabindex="0"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchTypeMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'searchTypeMenu');" role="button" aria-haspopup="true"
- aria-labelledby="sosSearchTypeLabel">
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr class="ccOptions" style="cursor:pointer;">
- <td nowrap="true" valign="top">
- <span id="sosSearchTypeLabel" style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <out:variable name="searchFieldTypeMSG">
- <xts:string id="IDS_ENTRY_TYPE"/>
- </out:variable>
- <script language="javascript">
- var searchFieldTypeMSG = "<xts:string encode="javascript" id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchFieldTypeMSG"/>
- </xts:param>
- </xts:string>";
- </script>
- <xts:string id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchFieldTypeMSG"/>
- </xts:param>
- </xts:string>
- <out:value-of select="$searchTypeMenu//item[string(@itemSelectedState)='checked']/*"/>
- </span>
- <span id="searchTypeMenu_caption">
- <out:value-of select="$searchTypeMenu//item[string(@itemSelectedState)='checked']/*"/>
- </span>
- </td>
- <td nowrap="true" valign="top">
- <img name="searchTypeMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$searchTypeMenu"/>
- </out:with-param>
- <out:with-param name="controlID">searchTypeMenu_span</out:with-param>
- </out:call-template>
- </div>
-
- </dp:link>
- </dp:section>
- </out:if>
- <!-- Scope: -->
- <out:if test="key('spec-item','modes')/search/scopes">
- <dp:section>
- <dp:label valign="top" width="1%" nospace="true"><div><xts:string id="IDS_SCOPE"/></div></dp:label>
- <dp:link wrap="wrap" valign="top">
-
- <!-- Create flyout for scope -->
-
- <out:variable name="searchScopeItems">
- <xsl:call-template name="generate-search-scopes-items">
- <xsl:with-param name="scopes" select="'key("spec-item","modes")/search/scopes'"/>
- </xsl:call-template>
- </out:variable>
-
- <input name="sscope" id="sscope" type="hidden">
- <out:attribute name="value">
- <out:choose>
- <out:when test="$scope = ''"><out:value-of select="$searchScopeItems/item[1]/@value"/></out:when>
- <out:otherwise><out:value-of select="$scope"/></out:otherwise>
- </out:choose>
- </out:attribute>
- </input>
-
- <out:variable name="searchScopeMenu">
- <flyout id="searchScopeMenu" hasCheckbox="true">
- <label><xts:string encode="javascript" id="IDS_SEARCH_SCOPE_MENU"/></label>
- <items>
- <itemGroup id="searchScopeGroup">
- <out:for-each select="$searchScopeItems/item">
- <out:variable name="curVal" select="@value"/>
- <out:variable name="ck">
- <out:choose>
- <out:when test="$scope = $curVal">checked</out:when>
- <out:when test="$scope = '' and position()=1">checked</out:when>
- </out:choose>
- </out:variable>
- <item>
- <out:if test="$ck!=''">
- <out:attribute name="itemSelectedState"><out:value-of select="$ck"/></out:attribute>
- </out:if>
- <out:copy-of select="@*[name()!='itemSelectedState' and name()!='value']"/>
- <out:copy-of select="./*"/>
- </item>
- </out:for-each>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
-
- <div style="margin-left:5px;z-index:8;position: relative;">
- <div id="searchScopeMenu_span" style="text-decoration:underline;" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" tabindex="0"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchScopeMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'searchScopeMenu');" role="button" aria-haspopup="true" aria-labelledby="sosSearchScopeLabel">
- <table cellspacing="0" cellpadding="0" role="presentation">
- <tr class="ccOptions" style="cursor:pointer;">
- <td nowrap="true" valign="top">
- <span id="sosSearchScopeLabel" style="position: absolute;margin-left: -9999px; margin-top: -9999px; ">
- <out:variable name="searchFieldScopeMSG">
- <xts:string id="IDS_SCOPE"/>
- </out:variable>
- <script language="javascript">
- var searchFieldScopeMSG = "<xts:string encode="javascript" id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchFieldScopeMSG"/>
- </xts:param>
- </xts:string>";
- </script>
- <xts:string id="IDS_FLYOUTMENU_DESCRIPT">
- <xts:param name="menuName">
- <out:value-of select="$searchFieldScopeMSG"/>
- </xts:param>
- </xts:string>
- <out:value-of select="$searchScopeMenu//item[string(@itemSelectedState)='checked']/*"/>
- </span>
- <span id="searchScopeMenu_caption">
- <out:value-of select="$searchScopeMenu//item[string(@itemSelectedState)='checked']/*"/>
- </span>
- </td>
- <td nowrap="true" valign="top">
- <img name="searchScopeMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$searchScopeMenu"/>
- </out:with-param>
- <out:with-param name="controlID">searchScopeMenu_span</out:with-param>
- </out:call-template>
- </div>
- </dp:link>
- </dp:section>
- </out:if>
- <out:if test="not(count(key('spec-item','modes')/search/types/param) > 1)">
- <dp:section>
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td> </td>
- </tr>
- </table>
- <out:if test="count(key('spec-item','modes')/search/types/param) > 0">
- <input name="stype" id="stype" type="hidden">
- <out:attribute name="value"><out:value-of select="key('spec-item','modes')/search/types/param/@name"/></out:attribute>
- </input>
- </out:if>
- </dp:section>
- </out:if>
- </dp:list>
- </dp:section>
- </dp:list>
- </xsl:template>
- <xsl:template name="generate-indexSearchFlyouts-block">
- <dp:list width="100%" dp:kbA11y="true">
- <dp:section width="100%">
- <!-- Method: -->
- <dp:list width="50%" dp:kbA11y="true">
- <dp:section><dp:text/></dp:section>
- <dp:section><dp:label><xts:string id="IDS_SEARCH_METHOD"/></dp:label><xts:string id="IDS_SEARCH_METHOD_FULL_KEYWORD_TEXT"/></dp:section>
- <dp:section><dp:text/></dp:section>
- </dp:list>
- <out:if test="key('spec-item','modes')/search/types_index">
- <dp:list width="50%" dp:kbA11y="true">
- <dp:section>
- <dp:label width="1%" nospace="true"><xts:string id="IDS_ENTRY_TYPE"/></dp:label>
- <dp:link wrap="wrap" valign="top">
-
- <!-- Create flyout for type -->
-
- <out:variable name="searchIndexTypeItems">
- <xsl:call-template name="generate-search-types-is-items">
- <xsl:with-param name="types" select="'key("spec-item","modes")/search/types_index'"/>
- <xsl:with-param name="input_name" select="'stype_is'"/>
- </xsl:call-template>
- </out:variable>
-
- <input name="stype_is" id="stype_is" type="hidden">
- <out:attribute name="value">
- <out:choose>
- <out:when test="$stype_is = ''">any</out:when>
- <out:otherwise><out:value-of select="$stype_is"/></out:otherwise>
- </out:choose>
- </out:attribute>
- </input>
-
- <out:variable name="searchIndexTypeMenu">
- <flyout id="searchIndexTypeMenu" hasCheckbox="true">
- <label><xts:string encode="javascript" id="IDS_SEARCH_TYPE_MENU"/></label>
- <items>
- <itemGroup id="searchIndexTypeGroup">
- <out:for-each select="$searchIndexTypeItems/item">
- <out:variable name="curVal" select="@value"/>
- <out:variable name="ck">
- <out:choose>
- <out:when test="$stype_is = $curVal">checked</out:when>
- <out:when test="($stype_is = 'any' or $stype_is = '') and position()=1">checked</out:when>
- </out:choose>
- </out:variable>
- <item>
- <out:if test="$ck!=''">
- <out:attribute name="itemSelectedState"><out:value-of select="$ck"/></out:attribute>
- </out:if>
- <out:copy-of select="@*[name()!='itemSelectedState' and name()!='value']"/>
- <out:copy-of select="./*"/>
- </item>
- </out:for-each>
- </itemGroup>
- </items>
- </flyout>
- </out:variable>
-
- <div id="searchIndexTypeMenu_span" style="margin-left:5px;z-index:9;position: relative; top: 5px">
- <table role="button" id="searchIndexTypeMenu_spanTable" cellspacing="0" cellpadding="0" style="cursor:pointer;" tabindex="0"
- onkeypress="return CCPopupMenu.dropDown(event,0,0,'searchIndexTypeMenu');"
- onclick="return CCPopupMenu.dropDown(event,0,0,'searchIndexTypeMenu');">
- <tr>
- <td nowrap="true" valign="top">
- <div class="ccOptions" style="text-decoration:underline" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" role="presentation">
- <span id="searchIndexTypeMenu_caption">
- <out:value-of select="$searchIndexTypeMenu//item[string(@itemSelectedState)='checked']/*"/>
- </span>
- </div>
- </td>
- <td nowrap="true" valign="top">
- <img name="searchIndexTypeMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
-
- <out:call-template name="renderPopup">
- <out:with-param name="flyoutXML">
- <out:copy-of select="$searchIndexTypeMenu"/>
- </out:with-param>
- <out:with-param name="controlID">searchIndexTypeMenu_span</out:with-param>
- </out:call-template>
-
- </dp:link>
- </dp:section>
- </dp:list>
- </out:if>
- </dp:section>
- </dp:list>
- </xsl:template>
- <xsl:template name="generate-search-scopes-items">
- <xsl:param name="scopes"/>
- <out:for-each select="{$scopes}/param">
- <out:variable name="curName" select="@name"/>
- <out:if test="$curName != ''">
- <item id="searchScope_{'{$curName}'}" value="{'{$curName}'}">
- <text><out:value-of select="key('search-spec-message-scope',$curName)"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchScope_<out:value-of select="xtsext:javascriptencode(string($curName))"/>");setSearchScope('<out:value-of select="xtsext:javascriptencode(string($curName))"/>','<out:value-of select="xtsext:javascriptencode(string(key('search-spec-message-scope',$curName)))"/>');</action>
- </item>
- </out:if>
- </out:for-each>
- </xsl:template>
-
- <xsl:template name="generate-search-types-items">
- <xsl:param name="types"/>
- <xsl:param name="input_name"/>
- <item id="searchType_any">
- <text><xts:string id="IDS_ANY"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchType_any");setSearchType('any','<xts:string id="IDS_ANY" encode="javascript"/>');</action>
- </item>
- <out:for-each select="{$types}/param[@name!='any']">
- <out:variable name="curName" select="@name"/>
- <out:if test="$curName != ''">
- <item id="searchType_{'{$curName}'}" value="{'{$curName}'}">
- <text><out:value-of select="key('search-spec-message-type',$curName)"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchType_<out:value-of select="xtsext:javascriptencode(string($curName))"/>");setSearchType('<out:value-of select="xtsext:javascriptencode(string($curName))"/>','<out:value-of select="xtsext:javascriptencode(string(key('search-spec-message-type',$curName)))"/>');</action>
- </item>
- </out:if>
- </out:for-each>
- </xsl:template>
- <xsl:template name="generate-search-types-is-items">
- <xsl:param name="types"/>
- <xsl:param name="input_name"/>
- <item id="searchIndexType_any">
- <text><xts:string id="IDS_ANY"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchIndexType_any");setSearchIndexType('any','<xts:string id="IDS_ANY" encode="javascript"/>');</action>
- </item>
- <out:for-each select="{$types}/param[@name!='any']">
- <out:variable name="curName" select="@name"/>
- <out:if test="$curName != ''">
- <item id="searchIndexType_{'{$curName}'}" value="{'{$curName}'}">
- <text><out:value-of select="key('search-spec-message-type',$curName)"/></text>
- <action>CCPopupMenu.activeMenu.setMenuItemChecked("searchIndexType_<out:value-of select="xtsext:javascriptencode(string($curName))"/>");setSearchIndexType('<out:value-of select="xtsext:javascriptencode(string($curName))"/>','<out:value-of select="xtsext:javascriptencode(string(key('search-spec-message-type',$curName)))"/>');</action>
- </item>
- </out:if>
- </out:for-each>
- </xsl:template>
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- </xsl:stylesheet>
|