<%-- 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. --%> <%-- Compute site title. Search order for site title: 1. bannerTitleText in theme policy 2. localized string loaded from resource bundle bannerTitleResourceBundle and bannerTitleResourceKey in theme policy 3. localized string specified in theme configuration --%> <c:set var="renderBannerTitle" value="${portalThemePolicyMap.renderBannerTitle}"/> <c:set var="siteTitle" value="${portalThemePolicyMap.bannerTitleText}"/> <c:if test="${empty siteTitle && !empty portalThemePolicyMap.bannerTitleTextResourceBundle && !empty portalThemePolicyMap.bannerTitleTextResourceKey}"> <fmt-rt:setBundle basename="${portalThemePolicyMap.bannerTitleTextResourceBundle}" var="themePolicyBundle"/> <c:set var="siteTitle"><fmt-rt:message key="${portalThemePolicyMap.bannerTitleTextResourceKey}" bundle="${themePolicyBundle}" /></c:set> <%-- The following is an override of the policy for backward compatibility when the default site title keys are used --%> <c:if test="${themeConfig.hideBannerTitleWhenDefaultSiteTitleIsUsed}"> <c:set var="renderBannerTitle" value="false"/> </c:if> </c:if> <c:if test="${empty siteTitle}"> <fmt-rt:setBundle basename="${themeConfig.defaultSiteTitleResourceBundle}" var="defaultTitleBundle"/> <c:set var="siteTitle"><fmt-rt:message key="${themeConfig.defaultSiteTitleResourceKey}" bundle="${defaultTitleBundle}"/></c:set> <%-- The following is an override of the policy for backward compatibility when the default site title keys are used --%> <c:if test="${themeConfig.hideBannerTitleWhenDefaultSiteTitleIsUsed}"> <c:set var="renderBannerTitle" value="false"/> </c:if> </c:if> <c:set var="selectedNodeTitle" value="<%=getSelectedNodeTitle(request, response)%>" /> <title><c:out value="${siteTitle} - ${selectedNodeTitle}"/></title>