Files
DSpace/dspace/jsp/submit/choose-file.jsp
Robert Tansley 16c8dc047b Cleaned-up submission UI
git-svn-id: http://scm.dspace.org/svn/repo/trunk@232 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-07-22 17:38:21 +00:00

147 lines
5.7 KiB
Plaintext

<%--
- choose-file.jsp
-
- Version: $Revision$
-
- Date: $Date$
-
- Copyright (c) 2001, Hewlett-Packard Company and Massachusetts
- Institute of Technology. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- - Neither the name of the Hewlett-Packard Company nor the name of the
- Massachusetts Institute of Technology nor the names of their
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
- DAMAGE.
--%>
<%--
- Select file to upload
-
- Attributes to pass in to this page:
- submission.info - the SubmissionInfo object
--%>
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
<%
SubmissionInfo si =
(SubmissionInfo) request.getAttribute("submission.info");
%>
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
title="Upload a File">
<form method=post action="<%= request.getContextPath() %>/submit" enctype="multipart/form-data">
<jsp:include page="/submit/progressbar.jsp">
<jsp:param name="step" value="<%= SubmitServlet.UPLOAD_FILES %>"/>
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
</jsp:include>
<H1>Submit: Upload a File</H1>
<P>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. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#upload">(More Help...)</A></P>
<P class="submitFormHelp"><strong>Netscape users please note:</strong> By
default, the window brought up by clicking "Browse..." will only display
files of type HTML. If the file you are uploading isn't an HTML file,
you will need to select the option to display files of other types.
<a TARGET="dspace.help" href="<%= request.getContextPath() %>/help/index.html#netscapeupload">Instructions for Netscape users</A> are available.</P>
<%-- FIXME: Collection-specific stuff should go here? --%>
<P class="submitFormHelp">Please also note that the DSpace system is
able to preserve the content of certain types of files better than other
types. <A TARGET="dspace.help" href="<%= request.getContextPath() %>/help/submit_guide.html#formats">Information about file types</A> and levels of
support for each are available.</P>
<table border=0 align=center>
<tr>
<td class="submitFormLabel">
Document File:
</td>
<td>
<input type=file size=40 name="file">
</td>
</tr>
<%
if (si.submission.hasMultipleFiles())
{
%>
<tr>
<td colspan=2>&nbsp;</td>
</tr>
<tr>
<td class="submitFormHelp" colspan=2>
Please give a brief description of the contents of this file, for
example "Main article", or "Experiment data readings."
</td>
</tr>
<tr>
<td class="submitFormLabel">File Description:</td>
<td><input type=text name="description" size=40></td>
</tr>
<%
}
%>
</table>
<%= SubmitServlet.getSubmissionParameters(si) %>
<input type=hidden name=step value="<%= SubmitServlet.CHOOSE_FILE %>">
<P>&nbsp;</P>
<center>
<table border=0 width=80%>
<tr>
<td width="100%">&nbsp;</td>
<td align>
<input type=submit name=submit_prev value="&lt; Previous">
</td>
<td>
<input type=submit name=submit_next value="Next &gt;">
</td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td align=right>
<input type=submit name=submit_cancel value="Cancel/Save">
</td>
</tr>
</table>
</center>
</form>
</dspace:layout>