| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735 | <?xml version="1.0" encoding="UTF-8"?><!--    Licensed Materials - Property of IBM    IBM Cognos Products: ps    (C) Copyright IBM Corp. 2005, 2015    US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.--><!--   Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.   Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).--><xsl:stylesheet version="1.0" 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 	xmlns:aet="http://developer.cognos.com/schemas/xts/portal/addEntries/logicsheets/add_entries_templates/"	xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"  	 	xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"	xmlns:xts="http://developer.cognos.com/schemas/xts/" 	 	xmlns:pf="http://developer.cognos.com/schemas/xts/pf" 	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:cm="http://developer.cognos.com/schemas/xts-cm/1/" 	xmlns:out="dummy-uri"	exclude-result-prefixes="xsl aet dp df xts pf cf cp cm">	<xsl:output method="xml" encoding="UTF-8" indent="no"/>	<xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>	<!-- 	This stylesheet (add_entries_templates.xsl) consists of the following templates:		aet:refProps		aet:pagerQueryVars		aet:properties		aet:variables		aet:searchOptionsBasic		aet:searchOptionsIndex		aet:searchFooter		aet:searchFooterIndex	-->		<!-- create any refProps that were asked for -->	<xsl:template match="aet:refProps">		<out:if test="count(/root/*[local-name()='requestParams']/*[local-name()='param' and @name='refProp'])>0">			<cm:refProps>			<out:for-each select="/root/*[local-name()='requestParams']/*[local-name()='param' and @name='refProp']/*[local-name()='refProp']">				<cm:refProp refPropName="{'{./@name}'}">					<cm:properties>						<out:for-each select="*[local-name()='property']">							<cm:property name="{'{./@name}'}"/>						</out:for-each>					</cm:properties>				</cm:refProp>			</out:for-each>		</cm:refProps>		</out:if>		</xsl:template>																	<!-- standard set of variables used by both the navigate and search dialogs -->	<xsl:template match="aet:pagerQueryVars">		<out:variable name="userPrefs" select="/root/*[local-name()='session']/*[local-name()='param']"/>		<out:variable name="userPrefsDefault" select="/root/*[local-name()='system']/*[local-name()='param'][@name='defaultPortalPreferences']"/>		<out:variable name="maxObjects">			<out:choose>				<out:when test="string(/root/env/param[@name = 'm_pagertonavpager']) !='' and string(/root/env/param[@name = 'm_pagerfromnavpager']) !=''"><out:value-of select="(/root/env/param[@name = 'm_pagertonavpager'] - /root/env/param[@name = 'm_pagerfromnavpager']) + 1"/></out:when>								<out:when test="$userPrefs[@name='linesPerPage']!=''">					<out:value-of select="$userPrefs[@name='linesPerPage']"/>				</out:when>				<out:otherwise>					<out:value-of select="$userPrefsDefault/pref[@name='lines']"/>				</out:otherwise>			</out:choose>		</out:variable>		<out:variable name="skipObjects">			<out:choose>				<out:when test="/root/env/param[@name =  'm_pagerfromnavpager'] and /root/env/param[@name =  'm_pagerfromnavpager']!=''">					<out:value-of select="(/root/env/param[@name = 'm_pagerfromnavpager'])-1"/>				</out:when>								<out:when test="key('env-param','m_navpagersection')!=''">					<out:choose>						<out:when test="key('env-param','m_navpagersection')!='-1'">							<out:value-of select="((key('env-param','m_navpagersection')) -1)"/>						</out:when>						<out:otherwise>							<out:value-of select="($maxObjects) * -1"/>						</out:otherwise>					</out:choose>				</out:when>				<out:otherwise>0</out:otherwise>			</out:choose>		</out:variable>					</xsl:template>	<!-- the list of properties to query for in the navigate, search and type add entry dialogs -->	<xsl:template match="aet:properties">		<cm:property name="defaultName"/>		<cm:property name="hidden"/>		<cm:property name="searchPath"/>		<cm:property name="permissions"/>		<cm:property name="position"/>																	<cm:property name="searchPathForURL"/>		<cm:property name="storeID"/>		<cm:property name="ancestors"/>		<cm:property name="hasChildren"/>		<cm:property name="base"/>		<out:for-each select="/root/*[local-name()='requestParams']/*[local-name()='param' and @name='returnProperties']/*[local-name()='property']">			<out:if test="@name!='base' and @name != 'ancestors' and @name != 'objectClass' and @name != 'position' and @name != 'defaultName' and @name != 'searchPath' and @name != 'ancestors' and @name != 'permissions' and @name != 'searchPathForURL' and @name != 'storeID'">				<cm:property name="{'{@name}'}"/>			</out:if>		</out:for-each>		</xsl:template>		<!-- variables used in the navigate, search and type dialogs -->	<xsl:template match="aet:variables">		<out:variable name="classFilter">			<out:variable name="classes" select="/root/*[local-name()='searchSets']/*[local-name()='searchSet']/*[local-name()='name' and text()=key('request-param','addEntriesUI')]/..//*[local-name()='classes' and not(contains(@exclude,'classFilter'))]/*[local-name()='class' and not(contains(@exclude,'classFilter'))]"/>			<out:choose>				<!-- used when adding steps to a job -->								<out:when test="count($classes) > 0">					<out:variable name="apos" select='"'"'/>					<xsl:text>[</xsl:text>					<out:variable name="distinctObjectClasses" select="$classes[not(*[local-name()='name'] = preceding-sibling::*[local-name()='class' and not(contains(@exclude,'classFilter'))]/*[local-name()='name'])]"/>					<out:for-each select="$distinctObjectClasses">						<out:if test="position() > 1"><xsl:text> or </xsl:text></out:if>						<out:variable name="permissions" select=".//*[local-name()='permission'  and not(contains(@exclude,'classFilter'))]"/>						<out:if test="count($permissions) > 0">							<out:value-of select="'('"/>						</out:if>						<out:value-of select="concat('@objectClass=',$apos,*[local-name()='name'],$apos)"/>						<out:for-each select="$permissions">							<out:value-of select="concat(' and permission("',text(),'")')"/>						</out:for-each>						<out:if test="count($permissions) > 0">							<out:value-of select="')'"/>						</out:if>					</out:for-each>					<!-- only add the account objectClass if the show users checkbox is checked or it's specified on ae:variables -->					<out:if test="key('env-param','addentries_showusers')='true' or '{@account}'='true'">						<xsl:text> or @objectClass='account'</xsl:text>					</out:if>					<xsl:text>]</xsl:text>				</out:when>			</out:choose>		</out:variable>						<out:variable name="selectable-classes">			<out:variable name="classes" select="/root/*[local-name()='searchSets']/*[local-name()='searchSet']/*[local-name()='name' and text()=key('request-param','addEntriesUI')]/..//*[local-name()='classes' and not(contains(@exclude,'selectable'))]/*[local-name()='class' and not(contains(@exclude,'selectable'))]"/>			<out:choose>								<out:when test="count($classes) > 0">					<out:variable name="apos" select='"'"'/>					<xsl:text>[</xsl:text>					<out:variable name="distinctObjectClasses" select="$classes[not(*[local-name()='name'] = preceding-sibling::*[local-name()='class' and not(contains(@exclude,'selectable'))]/*[local-name()='name'])]"/>					<out:for-each select="$distinctObjectClasses">						<out:variable name="permissions" select=".//*[local-name()='permission' and not(contains(@exclude,'selectable'))]"/>						<out:if test="position() > 1"><xsl:text> or </xsl:text></out:if>						<out:if test="count($permissions) > 0">							<xsl:text>(</xsl:text>						</out:if>						<out:value-of select="concat('@objectClass=',$apos,*[local-name()='name'],$apos)"/>						<out:for-each select="$permissions">							<out:value-of select="concat(' and permission("',text(),'")')"/>						</out:for-each>						<out:if test="count($permissions) > 0">							<xsl:text>)</xsl:text>						</out:if>					</out:for-each>					<xsl:text>]</xsl:text>				</out:when>			</out:choose>		</out:variable>			<out:variable name="folder-classes">			<out:choose>				<out:when test="key('request-param','addEntriesUI')='runnables'"><xsl:value-of select="' adminFolder content package folder '"/></out:when>				<out:when test="key('request-param','addEntriesUI')='mypages'"><xsl:value-of select="' adminFolder content package folder '"/></out:when>				<out:when test="key('request-param','addEntriesUI')='portlet'"><xsl:value-of select="' portletProducer '"/></out:when>													<out:when test="key('request-param','addEntriesUI')='links'"><xsl:value-of select="' content package folder '"/></out:when>								<out:when test="key('request-param','addEntriesUI')='packagesAndLocations' or key('request-param','addEntriesUI')='indexUpdateLocations'"><xsl:value-of select="' content directory package folder '"/></out:when>				<out:when test="key('request-param','addEntriesUI')='packagesAndFolders'"><xsl:value-of select="' content package folder '"/></out:when>				<out:when test="key('request-param','addEntriesUI')='publicFoldersPackagesAndFolders'"><xsl:value-of select="' content package folder '"/></out:when>				<out:when test="key('request-param','addEntriesUI')='deploymentObjects'"><xsl:value-of select="' content package folder directory namespace namespaceFolder catalog catalogFolder '"/></out:when>				<out:otherwise><xsl:value-of select="' namespace namespaceFolder '"/></out:otherwise>			</out:choose>		</out:variable>		</xsl:template>		<!-- HTML that will appear in the search options popup dialog -->	<xsl:template match="aet:searchOptionsBasic">		<out:variable name="method" select="key('env-param','search_method')"/>		<out:variable name="modified" select="key('env-param','search_modified')"/>		<out:variable name="type" select="key('env-param','search_type')"/>		<out:variable name="scope" select="key('env-param','search_scope')"/>		<out:variable name="smethodDefault">			<out:choose>				<out:when test="key('business-rules','queryNamespaceSearchDefaultMethodOptionSetting') = 'true'">					<out:variable name="option" select="/root/configProps/param[@name='cc']/property[@name='portal.namespaceSearchDefaultMethodOption']"/>					<out:choose>						<out:when test="$option = 'contains'">contains</out:when>						<out:when test="$option = 'starts'">starts</out:when>						<out:when test="$option = 'equals'">equals</out:when>						<out:otherwise>contains</out:otherwise>					</out:choose>				</out:when>				<out:otherwise>contains</out:otherwise>			</out:choose>		</out:variable>				<dp:list width="100%">			<dp:section width="100%">        <dp:list width="50%">					<dp:section role="group" aria-labelledby="lbl_searchMethod">						<dp:label id="lbl_searchMethod" valign="top" width="1%" nospace="true"><xts:string id="IDS_SEARCH_METHOD"/></dp:label>						<dp:link wrap="wrap" valign="top">							<input name="search_method" id="search_method" type="hidden">								<out:attribute name="value">									<out:choose>										<out:when test="$method = ''"><out:value-of select="$smethodDefault"/></out:when>										<out:otherwise><out:value-of select="$method"/></out:otherwise>									</out:choose>								</out:attribute>							</input>							<out:variable name="searchMethodMenu">								<flyout id="searchMethodMenu">									<items>										<itemGroup id="searchMethodGroup">												<item id="searchMethod_contains">													<out:if test="$method = 'contains' or  ($method = '' and $smethodDefault = 'contains')">														<out:attribute name="itemSelectedState">checked</out:attribute>													</out:if>													<text><xts:string id="IDS_ADDENTRIES_SEARCH_METHOD2"/></text>													<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchMethod_contains");setSearchMethod('contains','<xts:string id="IDS_CONTAINS"  encode="javascript"/>');</action>												</item>												<item id="searchMethod_starts">													<out:if test="$method = 'starts' or  ($method = '' and $smethodDefault = 'starts')">														<out:attribute name="itemSelectedState">checked</out:attribute>													</out:if>													<text><xts:string id="IDS_ADDENTRIES_SEARCH_METHOD1"/></text>													<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchMethod_starts");setSearchMethod('starts','<xts:string id="IDS_STARTS_WITH"  encode="javascript"/>');</action>												</item>												<item id="searchMethod_equals">													<out:if test="$method = 'equals' or  ($method = '' and $smethodDefault = 'equals')">														<out:attribute name="itemSelectedState">checked</out:attribute>													</out:if>													<text><xts:string id="IDS_ADDENTRIES_SEARCH_METHOD3"/></text>													<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchMethod_equals");setSearchMethod('equals','<xts:string id="IDS_EQUALS" encode="javascript"/>');</action>												</item>										</itemGroup>									</items>								</flyout>									</out:variable>							<div id="searchMethodMenu_span" style="margin-left:5px;z-index:9;position: relative;">								<a href="#" onclick="return CCPopupMenu.dropDown(event,0,0,'searchMethodMenu');" role="button" aria-haspopup="true">									<div style="white-space: nowrap;">										<span id="searchMethodMenu_caption" style="vertical-align: top;">											<out:choose>												<out:when test="$method = 'contains' or  ($method = '' and $smethodDefault = 'contains')">													<xts:string id="IDS_ADDENTRIES_SEARCH_METHOD2"/>												</out:when>												<out:when test="$method = 'starts' or  ($method = '' and $smethodDefault = 'starts')">													<xts:string id="IDS_ADDENTRIES_SEARCH_METHOD1"/>												</out:when>												<out:when test="$method = 'equals' or  ($method = '' and $smethodDefault = 'equals')">													<xts:string id="IDS_ADDENTRIES_SEARCH_METHOD3"/>												</out:when>											</out:choose>										</span>										<span style="vertical-align: middle;">											<img name="searchMethodMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt="" border="0"/>										</span>									</div>								</a>							</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>						</dp:link>					</dp:section>					<xsl:choose>						<xsl:when test="not(@modified) or @modified != 'no'">							<dp:section role="group" aria-labelledby="lbl_searchModified">								<dp:label id="lbl_searchModified" valign="top" width="1%" nospace="true"><xts:string id="IDS_SEARCH_MODIFIED"/></dp:label>								<dp:link wrap="wrap" valign="top">																		<input name="search_modified" id="search_modified" 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">											<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 id="searchModifiedMenu_span" style="margin-left:5px;z-index:8;position: relative;">										<a href="#" onclick="return CCPopupMenu.dropDown(event,0,0,'searchModifiedMenu');" role="button" aria-haspopup="true">											<div style="white-space: nowrap;">												<span id="searchModifiedMenu_caption" style="vertical-align: top;">													<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>												</span>												<span style="vertical-align: middle;">													<img name="searchModifiedMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt="" border="0"/>												</span>											</div>										</a>									</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>								</dp:link>							</dp:section>						</xsl:when>						<xsl:otherwise>							<dp:section>								<table cellpadding="0" cellspacing="0">									<tr>										<td> </td>									</tr>								</table>							</dp:section>						</xsl:otherwise>					</xsl:choose>				</dp:list>				<dp:list width="50%">					<out:if test="key('request-param','addEntriesUI')!='mypages' and key('request-param','addEntriesUI')!='portlet'">						<dp:section role="group" aria-labelledby="lbl_searchType">							<dp:label id="lbl_searchType" valign="top" width="1%" nospace="true"><xts:string id="IDS_ADDENTRIES_SEARCH_DIALOG_TYPE"/></dp:label>							<dp:link wrap="wrap" valign="top">								<!-- Create flyout for type -->									<out:variable name="searchTypeMenu">									<flyout id="searchTypeMenu">																				<items>											<itemGroup id="searchTypeGroup">												<item id="searchtype_all">													<out:if test="$type = 'all' or $type = '' or not($type)">														<out:attribute name="itemSelectedState">checked</out:attribute>													</out:if>													<text><xts:string id="IDS_ADDENTRIES_SEARCH_FILTER_ALL"/></text>													<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchtype_all");setSearchType('all','<xts:string id="IDS_ADDENTRIES_SEARCH_FILTER_ALL" encode="javascript"/>');</action>												</item>												<out:variable name="searchSet" select="/root/*[local-name()='searchSets']/*[local-name()='searchSet']/*[local-name()='name' and text()=key('request-param','addEntriesUI')]"/>												<out:choose>													<out:when test="$searchSet != ''">														<out:for-each select="$searchSet/..//*[local-name()='item']">															<out:variable name="searchType" select="*[local-name()='itemType']"/>															<item>																<out:attribute name="id"><out:value-of select="concat('searchtype_',$searchType)"/></out:attribute>																<out:if test="$type = $searchType or ($type='' and @default='true')">																	<out:attribute name="itemSelectedState">checked</out:attribute>																</out:if>																<out:variable name="label" select="*[local-name()='idsString']"/>																<text><out:value-of select="$label"/></text>																<action>CCPopupMenu.activeMenu.setMenuItemChecked("<out:value-of select="concat('searchtype_',$searchType)"/>");setSearchType('<out:value-of select="$searchType"/>','<out:value-of select="$label"/>');</action>															</item>														</out:for-each>													</out:when>												</out:choose>											</itemGroup>										</items>									</flyout>										</out:variable>																<input name="search_type" id="search_type" type="hidden">									<out:attribute name="value">										<out:choose>											<out:when test="$type = ''"><out:value-of select="substring-after($searchTypeMenu//item[@itemSelectedState='checked']/@id,'searchtype_')"/></out:when>											<out:otherwise><out:value-of select="$type"/></out:otherwise>										</out:choose>									</out:attribute>								</input>																							<div id="searchTypeMenu_span" style="margin-left:5px;z-index:9;position: relative;">									<a href="#" onclick="return CCPopupMenu.dropDown(event,0,0,'searchTypeMenu');" role="button" aria-haspopup="true">										<div style="white-space: nowrap;">											<span id="searchTypeMenu_caption" style="vertical-align: top;">												<out:value-of select="string($searchTypeMenu//item[@itemSelectedState='checked']/text)"/>											</span>											<span style="vertical-align: middle;">												<img name="searchTypeMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt="" border="0"/>											</span>										</div>									</a>								</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>															</dp:link>						</dp:section>					</out:if>					<!-- Scope: -->					<dp:section role="group" aria-labelledby="lbl_searchScope">						<dp:label id="lbl_searchScope" valign="top" width="1%" nospace="true"><xts:string id="IDS_SCOPE"/></dp:label>						<dp:link wrap="wrap" valign="top">							<!-- Create flyout for scope -->							<input name="search_scope" id="search_scope" type="hidden">								<out:attribute name="value">									<out:choose>										<out:when test="$scope = ''">descendant</out:when>										<out:otherwise><out:value-of select="$scope"/></out:otherwise>									</out:choose>								</out:attribute>							</input>							<out:variable name="searchScopeMenu">								<flyout id="searchScopeMenu">									<items>										<itemGroup id="searchScopeGroup">											<item id="searchscope_descendant">												<out:if test="$scope = 'descendant' or $scope=''">													<out:attribute name="itemSelectedState">checked</out:attribute>												</out:if>												<text><xts:string id="IDS_ADDENTRIES_SEARCH_SCOPE1"/></text>												<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchscope_descendant");setSearchScope('descendant','<xts:string id="IDS_ADDENTRIES_SEARCH_SCOPE1" encode="javascript"/>');</action>											</item>											<item id="searchscope_child">												<out:if test="$scope = 'child'">													<out:attribute name="itemSelectedState">checked</out:attribute>												</out:if>												<text><xts:string id="IDS_ADDENTRIES_SEARCH_SCOPE2"/></text>												<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchscope_child");setSearchScope('child','<xts:string id="IDS_ADDENTRIES_SEARCH_SCOPE2" encode="javascript"/>');</action>											</item>											<out:choose>												<out:when test="key('request-param','addEntriesUI')='runnables' or key('request-param','addEntriesUI')='links' or key('request-param','addEntriesUI')='mypages'">													<item id="searchscope_proot">														<out:if test="$scope = 'proot'">															<out:attribute name="itemSelectedState">checked</out:attribute>														</out:if>														<text><out:value-of select="key('session-param', 'e_proot')"/></text>														<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchscope_proot");setSearchScope('proot','<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_proot')))"/>');</action>													</item>													<item id="searchscope_mroot">														<out:if test="$scope='mroot'">															<out:attribute name="itemSelectedState">checked</out:attribute>														</out:if>														<text><out:value-of select="key('session-param', 'e_mroot')"/></text>														<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchscope_mroot");setSearchScope('mroot','<out:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_mroot')))"/>');</action>													</item>												</out:when>												<out:when test="contains(' recipients humanTask recipients_distribution members groupMembers privileges deploymentObjects ',concat(' ',key('request-param','addEntriesUI'),' '))">													<item id="searchscope_any">														<out:if test="$scope = 'any'">															<out:attribute name="itemSelectedState">checked</out:attribute>														</out:if>														<text><xts:string id="IDS_FILTER_CURRENT_NAMESPACE"/></text>														<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchscope_any");setSearchScope('any','<xts:string id="IDS_FILTER_CURRENT_NAMESPACE"  encode="javascript"/>');</action>													</item>												</out:when>											</out:choose>												<out:if test="key('request-param','addEntriesUI')='runnables'">													<item id="searchscope_admin">														<out:if test="$scope = 'admin'">															<out:attribute name="itemSelectedState">checked</out:attribute>														</out:if>														<text><xts:string id="IDS_ADDENTRIES_SEARCH_ADMINISTRATION"/></text>														<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchscope_admin");setSearchScope('admin','<xts:string id="IDS_ADDENTRIES_SEARCH_ADMINISTRATION"  encode="javascript"/>');</action>													</item>											</out:if>											</itemGroup>									</items>								</flyout>							</out:variable>														<div id="searchScopeMenu_span" style="margin-left:5px;z-index:8;position: relative;">								<a href="#" onclick="return CCPopupMenu.dropDown(event,0,0,'searchScopeMenu');" role="button" aria-haspopup="true">									<div style="white-space: nowrap;">										<span id="searchScopeMenu_caption" style="vertical-align: top;">											<out:value-of select="$searchScopeMenu//item[string(@itemSelectedState)='checked']/*"/>										</span>										<span style="vertical-align: middle;">											<img name="searchScopeMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt="" border="0"/>										</span>									</div>								</a>							</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>													</dp:link>					</dp:section>					<out:if test="not(key('request-param','addEntriesUI')!='mypages' and key('request-param','addEntriesUI')!='portlet')">						<dp:section>							<table cellpadding="0" cellspacing="0">								<tr>									<td> </td>								</tr>							</table>						</dp:section>					</out:if>				</dp:list>			</dp:section>		</dp:list>	</xsl:template>	<!-- HTML that will appear in the search options popup dialog -->	<xsl:template match="aet:searchOptionsIndex">		<out:variable name="type" select="key('env-param','search_type_index')"/>		<dp:list width="100%">			<dp:section width="100%">				<dp:list width="50%">					<dp:section><dp:text/></dp:section>					<dp:section><dp:label><xts:string id="IDS_ADDENTRIES_SEARCH_DIALOG_METHOD"/></dp:label><xts:string id="IDS_ADDENTRIES_SEARCH_INDEX_METHOD1"/></dp:section>					<dp:section><dp:text/></dp:section>				</dp:list>				<!-- type search options -->				<out:if test="key('request-param','addEntriesUI')!='mypages' and key('request-param','addEntriesUI')!='portlet'">					<dp:list width="50%">						<dp:section role="group" aria-labelledby="lbl_searchType">							<dp:label id="lbl_searchType" valign="top" nospace="true"><xts:string id="IDS_ADDENTRIES_SEARCH_DIALOG_TYPE"/></dp:label>							<dp:link wrap="wrap" valign="top">										<out:variable name="searchIndexTypeMenu">									<flyout id="searchIndexTypeMenu">										<items>											<itemGroup id="searchIndexTypeGroup">												<item id="searchindextype_all">													<out:if test="$type = 'all'">														<out:attribute name="itemSelectedState">checked</out:attribute>													</out:if>													<text><xts:string id="IDS_ADDENTRIES_SEARCH_FILTER_ALL"/></text>													<action>CCPopupMenu.activeMenu.setMenuItemChecked("searchindextype_all");setSearchIndexType('all','<xts:string id="IDS_ADDENTRIES_SEARCH_FILTER_ALL" encode="javascript"/>');</action>												</item>												<out:variable name="searchSet" select="/root/*[local-name()='searchSets']/*[local-name()='searchSet']/*[local-name()='name' and text()=key('request-param','addEntriesUI')]"/>												<out:if test="$searchSet != ''">													<out:for-each select="$searchSet/..//*[local-name()='item' and @isIndexed='true']">														<out:variable name="searchType" select="*[local-name()='itemType']"/>														<item>															<out:attribute name="id"><out:value-of select="concat('searchindextype_',$searchType)"/></out:attribute>															<out:if test="$type = $searchType or ($type='' and @default='true')">																<out:attribute name="itemSelectedState">checked</out:attribute>															</out:if>															<out:variable name="label" select="*[local-name()='idsString']"/>															<text><out:value-of select="$label"/></text>															<action>CCPopupMenu.activeMenu.setMenuItemChecked("<out:value-of select="concat('searchindextype_',$searchType)"/>");setSearchIndexType('<out:value-of select="$searchType"/>','<out:value-of select="$label"/>');</action>														</item>													</out:for-each>												</out:if>											</itemGroup>										</items>																													</flyout>								</out:variable>								<input name="search_type_index" id="search_type_index" type="hidden">									<out:attribute name="value">										<out:choose>											<out:when test="$type = ''"><out:value-of select="substring-after($searchIndexTypeMenu//item[@itemSelectedState='checked']/@id,'searchindextype_')"/></out:when>											<out:otherwise><out:value-of select="$type"/></out:otherwise>										</out:choose>									</out:attribute>								</input>																							<div id="searchIndexTypeMenu_span" style="margin-left:5px;z-index:9;position: relative">									<a href="#" onclick="return CCPopupMenu.dropDown(event,0,0,'searchIndexTypeMenu');" role="button" aria-haspopup="true">										<div style="white-space: nowrap;">											<span id="searchIndexTypeMenu_caption" style="vertical-align: top;">												<out:value-of select="string($searchIndexTypeMenu//item[@itemSelectedState='checked']/text)"/>											</span>											<span style="vertical-align: middle;">												<img name="searchIndexTypeMenu_imgFlyControl" src="{'{$skin_shared_images}'}dropdown_arrow.gif" title="" alt="" border="0"/>											</span>										</div>									</a>								</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>	<!-- footer that will appear in the search options popup dialog -->	<xsl:template match="aet:searchFooter">		<dp:simpleFooter>		<!--	<df:button df:id="IDS_OK" df:style="href" df:href="javascript:searchOptionsDialogBasic.hide(); javascript:updateSearchOptions();"/>			<df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:searchOptionsDialogBasic.hide(); javascript:cancelSetSearchOptions();"/>	-->			<df:button df:id="IDS_OK" df:style="href" df:href="javascript:searchOptionsDialogBasic.hide();"/>			<df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:searchOptionsDialogBasic.hide();"/>			</dp:simpleFooter>	</xsl:template>	<!-- footer that will appear in the search options popup dialog -->	<xsl:template match="aet:searchFooterIndex">		<dp:simpleFooter>			<df:button df:id="IDS_OK" df:style="href" df:href="javascript:searchOptionsDialogIndex.hide(); javascript:updateIndexSearchOptions();"/>			<df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:searchOptionsDialogIndex.hide(); javascript:cancelSetIndexSearchOptions();"/>			</dp:simpleFooter>	</xsl:template>		<!-- The main engine -->	<xsl:template match="*">		<xsl:copy>			<xsl:copy-of select="@*"/>			<xsl:apply-templates/>		</xsl:copy>	</xsl:template></xsl:stylesheet>
 |