<%-- 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/ --%> <%-- - UI page for selection of collection. - - Required attributes: - collections - Array of collection objects to show in the drop-down. --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.core.Context" %> <%@ page import="org.dspace.app.webui.servlet.SubmissionController" %> <%@ page import="org.dspace.submit.AbstractProcessingStep" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="java.util.List" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <% request.setAttribute("LanguageSwitch", "hide"); //get collections to choose from List collections = (List) request.getAttribute("collections"); //check if we need to display the "no collection selected" error Boolean noCollection = (Boolean) request.getAttribute("no.collection"); // Obtain DSpace context Context context = UIUtil.obtainContext(request); %>

">

<% if (collections.size() > 0) { %>

<% //if no collection was selected, display an error if((noCollection != null) && (noCollection.booleanValue()==true)) { %>
<% } %>

<%-- Hidden fields needed for SubmissionController servlet to know which step is next--%> <%= SubmissionController.getSubmissionParameters(context, request) %>
" /> " />
<% } else { %>

<% } %>