<%-- 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 start of a submission with lookup on external sources. - - Required attributes: - collections - Array of collection objects to show in the drop-down. collectionID - the collection ID of preference for the user identifiers2providers searchProviders --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="java.lang.Boolean" %> <%@ page import="java.util.*" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <% String contextPath = "/dspace-jspui"; request.setAttribute("LanguageSwitch", "hide"); //get collections to choose from List collections = (List) request.getAttribute("collections"); //get collection id from the collection home Object collection_id_object = request.getAttribute("collection_id"); String collection_id; if(collection_id_object instanceof UUID){ UUID uuid = (UUID) collection_id_object; collection_id = uuid.toString(); } else { collection_id = (String) collection_id_object; } //check if we need to display the "no collection selected" error Boolean noCollection = (Boolean) request.getAttribute("no.collection"); Boolean nosuuid = (Boolean) request.getAttribute("nouuid"); Boolean expired = (Boolean) request.getAttribute("expired"); Map> identifiers2providers = (Map>) request.getAttribute("identifiers2providers"); List searchProviders = (List) request.getAttribute("searchProviders"); List fileLoaders = (List) request.getAttribute("fileLoaders"); List identifiers = (List) request.getAttribute("identifiers"); String uuid = (String) request.getAttribute("s_uuid"); %>

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

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

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

<% } %>

<% } else { %>

<% } %>