<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved. NOTE: See notes in Default.jsp for information regarding editing theme JSP fragments. --%> <%@ taglib uri="/WEB-INF/tld/SearchMenuControl.tld" prefix="searchmenu" %> <c:set var="setPrefs"><portal-fmt:text bundle="com.ibm.lotus.search.taglib.ScopeSearchWidget" key="setPrefs"/></c:set> <c:set var="viewHelp"><portal-fmt:text bundle="com.ibm.lotus.search.taglib.ScopeSearchWidget" key="viewHelp"/></c:set> <c:set var="showResults"><portal-fmt:text bundle="com.ibm.lotus.search.taglib.ScopeSearchWidget" key="showResults"/></c:set> <%-- <script type="text/javascript"> if (typeof djConfig == "undefined" ) { djConfig = {locale: '<%=userLocale%>'.replace(/_/, '-').replace(/iw/, 'he')}; //fix locale compatibility issues in Dojo } //<![CDATA[ if (typeof dojo== "undefined") { document.writeln('<scr'+'ipt src="' + '<portal-logic:urlFindInTheme file="./dojo/portal_dojo/dojo/dojo.js"/>' + '"></scr'+'ipt>'); } if (typeof dijit == "undefined") { document.writeln('<scr'+'ipt src="' + '<portal-logic:urlFindInTheme file="./dojo/portal_dojo/dijit/dijit.js"/>' + '"></scr'+'ipt>'); } //]]> </script> --%> <script type="text/javascript"> dojo.require('ibm.portal.portlet.portlet'); dojo.require('ibm.portal.xml.xpath'); dojo.require('ibm.portal.xml.xslt'); dojo.require("ibm.portal.search.widgets.ScopeSearchWidget"); var portalThemeScopeSearchWidgetResourceBundle = <searchmenu:resourceBundle bundleName='com.ibm.lotus.search.taglib.ScopeSearchWidget'/>; </script> <%--This hidden image solves a problem with image refreshing in Firefox, which causes the search menu icon to disappear--%> <img border="0" style="display: none" alt="" src="<portal-logic:urlFindInTheme file="icons/scope_search_menu.gif"/>"/> <div id="themeSearchBoxContainer" class="wptheme-searchBoxContainer"> <portal-navigation:urlGeneration contentNode="ibm.portal.Search Center" layoutNode="ibm.portal.Search Center Portlet Window" portletParameterType="action"> <portal-navigation:urlParam name="javax.portlet.action" value="newQuery" type="action"/> <div dojoType="ibm.portal.search.widgets.ScopeSearchWidget" searchIcon="'<portal-logic:urlFindInTheme file="icons/scope_search_submit.gif"/>'" searchMenuIcon="'<portal-logic:urlFindInTheme file="icons/scope_search_menu.gif"/>'" submitUrl="<%wpsURL.write(out);%>" resourceBundle="portalThemeScopeSearchWidgetResourceBundle" sourceContentNode="<searchmenu:currentContentNode/>" searchFeedUrl="'<searchmenu:generateSearchFeedUrl/>'" timeStamp="<searchmenu:scopesLastUpdateTime/>"> </div> </portal-navigation:urlGeneration> </div> <script type="text/javascript"> function initSearchLinks () { var themeScopeSearchWidget = dijit.byId("ibm_portal_search_widgets_ScopeSearchWidget_0"); if (themeScopeSearchWidget == null) { dojo.parser.parse("themeSearchBoxContainer"); themeScopeSearchWidget = dijit.byId("ibm_portal_search_widgets_ScopeSearchWidget_0"); } <portal-navigation:urlGeneration contentNode="ibm.portal.Search Center" layoutNode="ibm.portal.Search Center Portlet Window" portletMode="edit"> themeScopeSearchWidget.addSearchLink({ label: '<c:out value='${setPrefs}' escapeXml='true' />', link: '<%wpsURL.write(out);%>', icon: '<portal-logic:urlFindInTheme file="icons/scope_search_preferences.gif"/>' }); </portal-navigation:urlGeneration> <portal-navigation:urlGeneration contentNode="ibm.portal.Search Center" layoutNode="ibm.portal.Search Center Portlet Window" portletWindowState="solo" portletMode="help" newWindow="true"> themeScopeSearchWidget.addSearchLink({ label: '<c:out value='${viewHelp}' escapeXml='true' />', link: '<%wpsURL.write(out);%>', newWindow: true, icon: '<portal-logic:urlFindInTheme file="icons/scope_search_help.gif"/>' }); </portal-navigation:urlGeneration> <portal-navigation:urlGeneration contentNode="ibm.portal.Search Center" layoutNode="ibm.portal.Search Center Portlet Window" portletParameterType="render"> themeScopeSearchWidget.addSearchLink({ label: '<c:out value='${showResults}' escapeXml='true' />', link: '<%wpsURL.write(out);%>', icon: '<portal-logic:urlFindInTheme file="icons/scope_search_return.gif"/>' }); </portal-navigation:urlGeneration> } dojo.addOnLoad(initSearchLinks); </script>