<%-- 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/ --%> <%-- - Display list of collections, with continue and cancel buttons - post method invoked with collection_select or collection_select_cancel - (collection_id contains ID of selected collection) - - Attributes: - collections - a Collection [] containing all collections in the system - Returns: - submit set to collection_select, user has selected a collection - submit set to collection_select_cancel, return user to main page - collection_id - set if user has selected one --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="java.util.List" %> <% List collections = (List) request.getAttribute("collections"); request.setAttribute("LanguageSwitch", "hide"); // Is the logged in user an admin or community admin or collection admin Boolean admin = (Boolean)request.getAttribute("is.admin"); boolean isAdmin = (admin == null ? false : admin.booleanValue()); Boolean communityAdmin = (Boolean)request.getAttribute("is.communityAdmin"); boolean isCommunityAdmin = (communityAdmin == null ? false : communityAdmin.booleanValue()); Boolean collectionAdmin = (Boolean)request.getAttribute("is.collectionAdmin"); boolean isCollectionAdmin = (collectionAdmin == null ? false : collectionAdmin.booleanValue()); String naviAdmin = "admin"; String link = "/dspace-admin"; if(!isAdmin && (isCommunityAdmin || isCollectionAdmin)) { naviAdmin = "community-or-collection-admin"; link = "/tools"; } %> <%--

Collections:

--%>


<%-- --%> " /> <%-- --%> " />