<%-- 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/ --%> <%-- - This page provides the form to link groups with workspace items for - supervision. You may also specify default policies for the group to use - - Attributes: - groups - An array of all the epersongroups in the database - wsItems - An array of all the workspace items on the system (using - EULWorkspaceItem --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ page import="org.dspace.content.Item" %> <%@ page import="org.dspace.content.WorkspaceItem" %> <%@ page import="org.dspace.eperson.EPerson" %> <%@ page import="org.dspace.eperson.Group" %> <%@ page import="org.dspace.eperson.SupervisorServiceImpl" %> <%@ page import="org.dspace.core.Utils" %> <%@page import="javax.servlet.jsp.jstl.fmt.LocaleSupport"%> <%@ page import="java.util.List" %> <%@ page import="org.apache.commons.lang.StringUtils" %> <% // get objects from request List groups = (List) request.getAttribute("groups"); List workspaceItems = (List) request.getAttribute("wsItems"); request.setAttribute("LanguageSwitch", "hide"); %>

">

<%-- Select the group to supervise --%> <%-- Select the defaul policy type --%>
<%-- Select the workspace item to be supervised --%>

<% String row = "even"; for (int i = 0; i < workspaceItems.size(); i++) { // get title (or "untitled" if none) and submitter of workspace item String title = workspaceItems.get(i).getItem().getName(); // String title = (titleArray.length > 0 ? titleArray[0].value : "Untitled"); EPerson submitter = workspaceItems.get(i).getItem().getSubmitter(); %> <% row = (row.equals("even") ? "odd" : "even" ); } %>
<%= workspaceItems.get(i).getID() %> <%= Utils.addEntities(submitter.getFullName()) %> <% if (StringUtils.isNotBlank(title)) { %> <%= title %> <% } else { %> <% } %> <%= workspaceItems.get(i).getCollection().getName() %>
"/> "/>