<%-- 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/ --%> <%-- - Form to upload a metadata files --%> <%@ 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.UUID" %> <%@ page import="java.util.ArrayList" %> <%@ page import="org.dspace.content.Collection" %> <% List inputTypes = (List)request.getAttribute("input-types"); List collections = (List)request.getAttribute("collections"); String hasErrorS = (String)request.getAttribute("has-error"); boolean hasError = (hasErrorS==null) ? false : (Boolean.parseBoolean((String)request.getAttribute("has-error"))); String uploadId = (String)request.getAttribute("uploadId"); String message = (String)request.getAttribute("message"); List otherCollections = new ArrayList(); if (request.getAttribute("otherCollections")!=null) { otherCollections = (List)request.getAttribute("otherCollections"); } UUID owningCollectionID = null; if (request.getAttribute("owningCollection")!=null){ owningCollectionID = (UUID)request.getAttribute("owningCollection"); } String selectedInputType = null; if (request.getAttribute("inputType")!=null){ selectedInputType = (String)request.getAttribute("inputType"); } %>

<% if (uploadId != null) { %>
-- --

<% } %> <% if (hasErrorS == null){ } else if (hasError && message!=null){ %>
<%= message %>
<% } else if (hasError && message==null){ %>
<% } else { %>
<%= request.getContextPath() %>/mydspace
<% } %>
<% if (uploadId != null) { %> <% } %>
<% String displayValue = owningCollectionID != null ? "display:block" : "display:none"; %>
" />