%-- The contents of this file are subject to the license and copyright detailed in the LICENSE and NOTICE files at the root of the source tree and available online at http://www.dspace.org/license/ --%> <%-- - Default navigation bar --%> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="/WEB-INF/dspace-tags.tld" prefix="dspace" %> <%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="org.dspace.content.Community" %> <%@ page import="org.dspace.eperson.EPerson" %> <%@ page import="org.dspace.core.ConfigurationManager" %> <%@ page import="org.dspace.browse.BrowseIndex" %> <%@ page import="org.dspace.browse.BrowseInfo" %> <%@ page import="java.util.Map" %> <% // Is anyone logged in? EPerson user = (EPerson) request.getAttribute("dspace.current.user"); // Is the logged in user an admin Boolean admin = (Boolean)request.getAttribute("is.admin"); boolean isAdmin = (admin == null ? false : admin.booleanValue()); // Get the current page, minus query string String currentPage = UIUtil.getOriginalURL(request); int c = currentPage.indexOf( '?' ); if( c > -1 ) { currentPage = currentPage.substring( 0, c ); } // E-mail may have to be truncated String navbarEmail = null; if (user != null) { navbarEmail = user.getEmail(); if (navbarEmail.length() > 18) { navbarEmail = navbarEmail.substring(0, 17) + "..."; } } // get the browse indices BrowseIndex[] bis = BrowseIndex.getBrowseIndices(); BrowseInfo binfo = (BrowseInfo) request.getAttribute("browse.info"); String browseCurrent = ""; if (binfo != null) { BrowseIndex bix = binfo.getBrowseIndex(); // Only highlight the current browse, only if it is a metadata index, // or the selected sort option is the default for the index if (bix.isMetadataIndex() || bix.getSortOption() == binfo.getSortOption()) { if (bix.getName() != null) browseCurrent = bix.getName(); } } %> <%-- Search Box --%>
<%-- HACK: width, border, cellspacing, cellpadding: for non-CSS compliant Netscape, Mozilla browsers --%>