<%-- 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/ --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="java.util.List" %> <%@ page import="org.dspace.core.ConfigurationManager" %> <%@ page import="org.dspace.core.Context" %> <%@ page import="org.dspace.app.webui.servlet.SubmissionController" %> <%@ page import="org.dspace.authorize.ResourcePolicy" %> <%@ page import="org.dspace.submit.AbstractProcessingStep" %> <%@ page import="org.dspace.submit.step.UploadStep" %> <%@ page import="org.dspace.app.util.DCInputSet" %> <%@ page import="org.dspace.app.util.DCInputsReader" %> <%@ page import="org.dspace.app.util.SubmissionInfo" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.content.service.ItemService" %> <%@ page import="org.dspace.content.factory.ContentServiceFactory" %> <% request.setAttribute("LanguageSwitch", "hide"); // Obtain DSpace context Context context = UIUtil.obtainContext(request); //get submission information object SubmissionInfo subInfo = SubmissionController.getSubmissionInfo(context, request); request.setAttribute("submission.info", subInfo); boolean withEmbargo = ((Boolean)request.getAttribute("with_embargo")).booleanValue(); // Determine whether a file is REQUIRED to be uploaded (default to true) boolean fileRequired = ConfigurationManager.getBooleanProperty("webui.submit.upload.required", true); boolean ajaxProgress = ConfigurationManager.getBooleanProperty("webui.submit.upload.ajax", true); boolean html5Upload = ConfigurationManager.getBooleanProperty("webui.submit.upload.html5", true); Boolean sherpa = (Boolean) request.getAttribute("sherpa"); boolean bSherpa = sherpa != null?sherpa:false; %> <% if (ajaxProgress || bSherpa || html5Upload) { %> <% if (bSherpa) { %> <% } %> <% if (ajaxProgress) { %> <% } %> <% if (html5Upload) { %> <% } %> <% } %> <% if (ajaxProgress) { %> <% } %>
method="post" action="<%= request.getContextPath() %>/submit" enctype="multipart/form-data" onkeydown="return disableEnterKey(event);"> <%-- Hidden fields needed for SubmissionController servlet to know which step is next--%> <%= SubmissionController.getSubmissionParameters(context, request) %> <%--

Submit: Upload a File

--%>

">

<%--

Please enter the name of <%= (si.submission.hasMultipleFiles() ? "one of the files" : "the file" ) %> on your local hard drive corresponding to your item. If you click "Browse...", a new window will appear in which you can locate and select the file on your local hard drive.

--%>

<%-- FIXME: Collection-specific stuff should go here? --%> <%--

Please also note that the DSpace system is able to preserve the content of certain types of files better than other types. ">Information about file types and levels of support for each are available.

--%>
">

<%-- Document File: --%>

<% if (html5Upload) {%>
Files To Upload
# Name Status Description
<% } %> <% if (ajaxProgress) { %>


<% } %> <% if (subInfo.getSubmissionItem().hasMultipleFiles()) { %> <%-- Please give a brief description of the contents of this file, for example "Main article", or "Experiment data readings." --%>
<%-- File Description: --%>
row">
<% } %> <% if (withEmbargo) { %>

<%-- Hidden fields needed for SubmissionController servlet to know which step is next--%> <%= SubmissionController.getSubmissionParameters(context, request) %> <% ItemService itemService = ContentServiceFactory.getInstance().getItemService(); int col = 0; if(!SubmissionController.isFirstStep(request, subInfo)) { col++; } if (!fileRequired || itemService.hasUploadedFiles(subInfo.getSubmissionItem().getItem())) { col++; } %>
<% //if not first step, show "Previous" button if(!SubmissionController.isFirstStep(request, subInfo)) { %> " /> <% } %> " /> <% //if upload is set to optional, or user returned to this page after pressing "Add Another File" button if (!fileRequired || itemService.hasUploadedFiles(subInfo.getSubmissionItem().getItem())) { %> " /> <% } %> " />
<% if (bSherpa) { %>
<% } %>