<%-- 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/ --%> <%-- - Advanced policy tool - a bit dangerous, but powerful - - Attributes: - collections - Collection [] all DSpace collections - groups - Group [] all DSpace groups for select box - Returns: - submit_advanced_clear - erase all policies for set of objects - submit_advanced_add - add a policy to a set of objects - collection_id - ID of collection containing objects - resource_type - type, "bitstream" or "item" - group_id - group that policy relates to - action_id - action that policy allows - --%> <%@ 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="java.util.List" %> <%@ page import="java.util.Iterator" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="org.dspace.core.Constants" %> <%@ page import="org.dspace.eperson.Group" %> <% List groups = (List) request.getAttribute("groups" ); 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"; } %>

">

<%--

Allows you to do wildcard additions to and clearing of policies for types of content contained in a collection. Warning, dangerous - removing READ permissions from items will make them not viewable! More help...

--%>
<%-- Collection: --%>
<%-- Content Type: --%> <%-- Group: --%> <%-- Action: --%>

<%-- --%> " /> <%-- (warning: clears all policies for a given set of objects) --%> " />