Cleaned-up submission UI
git-svn-id: http://scm.dspace.org/svn/repo/trunk@232 9c30dcfa-912a-0410-8fc2-9e0234be79fd
@@ -94,3 +94,8 @@ webui.site.authenticator = edu.mit.dspace.MITAuthenticator
|
||||
# omitted, SFX support is switched off.
|
||||
sfx.server.url = http://owens.mit.edu:8888/sfx_local?
|
||||
|
||||
|
||||
##### Ingest settings #####
|
||||
|
||||
# Default language for content of submissions
|
||||
default.language = en_US
|
||||
|
@@ -64,6 +64,18 @@ CREATE TABLE BitstreamFormatRegistry
|
||||
internal BOOL
|
||||
);
|
||||
|
||||
-------------------------------------------------------
|
||||
-- FormatIdentifier table
|
||||
-------------------------------------------------------
|
||||
DROP TABLE FormatIdentifier;
|
||||
|
||||
CREATE TABLE FormatIdentifier
|
||||
(
|
||||
id INTEGER PRIMARY KEY,
|
||||
bitstream_format_id INTEGER REFERENCES BitstreamFormatRegistry(bitstream_format_id),
|
||||
extension VARCHAR(16)
|
||||
);
|
||||
|
||||
-------------------------------------------------------
|
||||
-- Bitstream table
|
||||
-------------------------------------------------------
|
||||
|
@@ -54,11 +54,6 @@
|
||||
<uri>http://www.dspace.org/dspace-tags.tld</uri>
|
||||
<info>DSpace JSP tags</info>
|
||||
|
||||
<!--
|
||||
- dspace:config tag for retrieving DSpace configuration values.
|
||||
- e.g.: <dspace:config property="url.base" />
|
||||
-->
|
||||
|
||||
<!--
|
||||
- dspace:page tag - main tag for laying out pages. If you specify a
|
||||
- that you want a "link" or "nolink" location bar, you can specify a
|
||||
|
@@ -49,8 +49,6 @@
|
||||
|
||||
<display-name>DSpace</display-name>
|
||||
|
||||
<description>@@dspace.name@@ running at @@dspace.hostname@@</description>
|
||||
|
||||
|
||||
<!-- Filters -->
|
||||
|
||||
@@ -134,6 +132,10 @@
|
||||
<servlet-class>org.dspace.app.webui.servlet.SimpleSearchServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>submit</servlet-name>
|
||||
<servlet-class>org.dspace.app.webui.servlet.SubmitServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
|
||||
<!-- Servlet Mappings -->
|
||||
@@ -193,6 +195,11 @@
|
||||
<url-pattern>/simple-search</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>submit</servlet-name>
|
||||
<url-pattern>/submit</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!-- DSpace JSP Tag Library -->
|
||||
<taglib>
|
64
dspace/jsp/error/authorize.jsp
Normal file
@@ -0,0 +1,64 @@
|
||||
<%--
|
||||
- authorize.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Page representing an authorization error
|
||||
--%>
|
||||
|
||||
<%@ page isErrorPage="true" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout title="Authorization Required">
|
||||
|
||||
<h1>Authorization Required</h1>
|
||||
|
||||
<P>You do not have permission to perform the action you just attempted.</P>
|
||||
|
||||
<P>If you think you should have authorization, please feel free to
|
||||
contact the DSpace administrators:</P>
|
||||
|
||||
<%@ include file="/components/contact-info.jsp" %>
|
||||
|
||||
<P align=center>
|
||||
<A HREF="<%= request.getContextPath() %>/">Go to the DSpace home page</A>
|
||||
</P>
|
||||
|
||||
</dspace:layout>
|
82
dspace/jsp/error/integrity.jsp
Normal file
@@ -0,0 +1,82 @@
|
||||
<%--
|
||||
- internal.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Page representing an integrity error - an inconsistency or error in the
|
||||
- data received from the browser
|
||||
--%>
|
||||
|
||||
<%@ page isErrorPage="true" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout title="Malformed Request">
|
||||
<h1>System Error: Malformed Request</h1>
|
||||
|
||||
<P>There was an inconsistency in the data received from your browser.
|
||||
This may be due to one of several things:</P>
|
||||
|
||||
<UL>
|
||||
<LI>Sometimes, if you used your browser's "back" button during an operation like a
|
||||
submission, clicking on a button may try and do something that's already
|
||||
been done, such as commit the submission to the archive.
|
||||
Clicking your browsers "reload" or "refresh" button may have similar
|
||||
results.</LI>
|
||||
<LI>If you got here by following a link or bookmark provided by someone
|
||||
else, the link may be incorrect or you mistyped the link. Please check
|
||||
the link and try again.</LI>
|
||||
<LI>If you have more than one browser window open with DSpace, this can cause
|
||||
a similar problem whereby a button clicked in one window may make a button
|
||||
click in the other window invalid.</LI>
|
||||
<LI>Of course, you may have uncovered a problem with the system! All of
|
||||
these errors are logged, and we'll be checking them regularly to see
|
||||
if there is a problem.</LI>
|
||||
</UL>
|
||||
|
||||
<P>If the problem persists, please contact the DSpace site administrators:</P>
|
||||
|
||||
<%@ include file="/components/contact-info.jsp" %>
|
||||
|
||||
<P align=center>
|
||||
<A HREF="<%= request.getContextPath() %>/">Go to the DSpace home page</A>
|
||||
</P>
|
||||
|
||||
|
||||
</dspace:layout>
|
BIN
dspace/jsp/image/submit/complete-current.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dspace/jsp/image/submit/complete-done.gif
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
dspace/jsp/image/submit/complete-notdone.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/describe-current.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dspace/jsp/image/submit/describe-done.gif
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
dspace/jsp/image/submit/describe-notdone.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/license-current.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/license-done.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
dspace/jsp/image/submit/license-notdone.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/upload-current.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/upload-done.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
dspace/jsp/image/submit/upload-notdone.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/verify-current.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dspace/jsp/image/submit/verify-done.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
dspace/jsp/image/submit/verify-notdone.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |
@@ -1,9 +1,16 @@
|
||||
<%
|
||||
String sidebar = (String) request.getAttribute("dspace.layout.sidebar");
|
||||
int overallColSpan = 3;
|
||||
String navbar = (String) request.getAttribute("dspace.layout.navbar");
|
||||
int overallColSpan = 1;
|
||||
|
||||
if (sidebar == null)
|
||||
{
|
||||
overallColSpan = 2;
|
||||
overallColSpan++;
|
||||
}
|
||||
|
||||
if (!navbar.equals("off"))
|
||||
{
|
||||
overallColSpan++;
|
||||
}
|
||||
%>
|
||||
<%-- End of page content --%>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<%--
|
||||
- home.jsp
|
||||
- header-default.jsp
|
||||
-
|
||||
- Version: $Revision$
|
||||
-
|
||||
@@ -103,10 +103,16 @@
|
||||
<tr valign=top>
|
||||
|
||||
<%-- Navigation bar --%>
|
||||
<%
|
||||
if (!navbar.equals("off"))
|
||||
{
|
||||
%>
|
||||
<td class="navigationBar">
|
||||
<jsp:include page="<%= navbar %>" flush="true" />
|
||||
</td>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<%-- Page Content --%>
|
||||
|
||||
<%-- HACK: width specified here for non-CSS compliant Netscape 4.x --%>
|
||||
|
108
dspace/jsp/submit/cancel.jsp
Normal file
@@ -0,0 +1,108 @@
|
||||
<%--
|
||||
- cancel.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Cancel or save submission page
|
||||
-
|
||||
- This page is displayed whenever the user clicks "cancel" during a
|
||||
- submission. It asks them whether they want to delete the incomplete
|
||||
- item or leave it so they can continue later.
|
||||
-
|
||||
- Attributes to pass in:
|
||||
- submission.info - the SubmissionInfo object
|
||||
- step - the step the user was at when the cancelled
|
||||
- (as a String)
|
||||
- display.step - - this is the step to display in the progress bar
|
||||
- (i.e. the step from the user's perspective, rather
|
||||
- than the exact JSP the user clicked cancel on)
|
||||
--%>
|
||||
|
||||
<%@ 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");
|
||||
|
||||
String step = (String) request.getAttribute("step");
|
||||
String displayStep = (String) request.getAttribute("display.step");
|
||||
|
||||
if (displayStep==null) displayStep = step;
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Cancel or Save Submission">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= displayStep %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Cancel or Save Submission</H1>
|
||||
|
||||
<P>Do you want the half-finished submission removed, or do you want to keep
|
||||
it so you can carry on working on it later? You can also return to where
|
||||
you where during the submission process if you clicked Cancel by accident.</P>
|
||||
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=previous_step value=<%= step %>>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.SUBMISSION_CANCELLED %>>
|
||||
|
||||
<table align=center border=0 width=90%>
|
||||
<tr>
|
||||
<td align=left>
|
||||
<input type=submit name="submit_back" value="Oops, continue submission">
|
||||
</td>
|
||||
<td align=center>
|
||||
<input type=submit name="submit_remove" value="Remove the submission">
|
||||
</td>
|
||||
<td align=right>
|
||||
<input type=submit name="submit_keep" value="Save it, I'll work on it later">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
57
dspace/jsp/submit/cancelled-removed.jsp
Normal file
@@ -0,0 +1,57 @@
|
||||
<%--
|
||||
- cancelled-removed.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Submission cancelled and removed page - displayed whenever the user has
|
||||
- clicked "cancel/save" during a submission and elected to remove the item.
|
||||
--%>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout locbar="nolink" parenttitle="Submit" title="Submission Cancelled">
|
||||
|
||||
<H1>Submission Cancelled</H1>
|
||||
|
||||
<P>Your submission has been cancelled, and the incomplete item removed
|
||||
from the system.</P>
|
||||
|
||||
<P><A HREF="<%= request.getContextPath() %>/mydspace">Go to My DSpace</A></P>
|
||||
|
||||
</dspace:layout>
|
112
dspace/jsp/submit/change-file-description.jsp
Normal file
@@ -0,0 +1,112 @@
|
||||
<%--
|
||||
- change-file-description.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Change file description form
|
||||
-
|
||||
- Attributes to pass in:
|
||||
- submission.info - the SubmissionInfo object - bitstream field must be set
|
||||
--%>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
|
||||
<%@ page import="org.dspace.content.Bitstream" %>
|
||||
<%@ page import="org.dspace.content.BitstreamFormat" %>
|
||||
|
||||
<%@ 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="Change File Description">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<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: Change File Description</H1>
|
||||
|
||||
<P>Here are the details of the file. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#filedescription">(More Help...)</A></P>
|
||||
|
||||
<table class="miscTable" align=center>
|
||||
<tr>
|
||||
<th class="oddRowOddCol">File</th>
|
||||
<th class="oddRowEvenCol">Size</th>
|
||||
<th class="oddRowOddCol">File Format</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="evenRowOddCol"><%= si.bitstream.getName() %></td>
|
||||
<td class="evenRowEvenCol"><%= si.bitstream.getSize() %> bytes</td>
|
||||
<td class="evenRowOddCol"><%= si.bitstream.getFormatDescription() %></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<P>Enter the correct description of the file in the box below:</P>
|
||||
|
||||
<%
|
||||
String currentDesc = si.bitstream.getDescription();
|
||||
if (currentDesc == null)
|
||||
{
|
||||
currentDesc="";
|
||||
}
|
||||
%>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="submitFormLabel">File Description:</td>
|
||||
<td><input type=text name=description size=50 value="<%= currentDesc %>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.CHANGE_FILE_DESCRIPTION %>>
|
||||
|
||||
<center><P><input type=submit name=submit value="Submit"></P></center>
|
||||
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
146
dspace/jsp/submit/choose-file.jsp
Normal file
@@ -0,0 +1,146 @@
|
||||
<%--
|
||||
- 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> </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> </P>
|
||||
|
||||
<center>
|
||||
<table border=0 width=80%>
|
||||
<tr>
|
||||
<td width="100%"> </td>
|
||||
<td align>
|
||||
<input type=submit name=submit_prev value="< Previous">
|
||||
</td>
|
||||
<td>
|
||||
<input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
65
dspace/jsp/submit/complete.jsp
Normal file
@@ -0,0 +1,65 @@
|
||||
<%--
|
||||
- complete.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Submission complete message
|
||||
--%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Submission Complete!">
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.SUBMISSION_COMPLETE %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.SUBMISSION_COMPLETE %>"/>
|
||||
</jsp:include>
|
||||
|
||||
|
||||
<H1>Submit: Submission Complete!</H1>
|
||||
|
||||
<%-- FIXME Probably should say something specific to workflow --%>
|
||||
<P>Your submission will now go through the workflow process designated for
|
||||
the collection to which you are submitting. You will receive e-mail
|
||||
notification as soon as your submission has become a part of the collection,
|
||||
or if for some reason there is a problem with your submission. You can also
|
||||
check on the status of your submission by going to the My DSpace page.</P>
|
||||
|
||||
<P><A HREF="<%= request.getContextPath() %>/mydspace">Go to My DSpace</A></P>
|
||||
|
||||
</dspace:layout>
|
625
dspace/jsp/submit/edit-metadata-1.jsp
Normal file
@@ -0,0 +1,625 @@
|
||||
<%--
|
||||
- edit-metadata-1.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Edit metadata form, page 1
|
||||
-
|
||||
- Attributes to pass in to this page:
|
||||
- submission.info - the SubmissionInfo object
|
||||
--%>
|
||||
|
||||
<%@ page import="java.util.HashMap" %>
|
||||
<%@ page import="java.util.Iterator" %>
|
||||
<%@ page import="java.util.Map" %>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
|
||||
<%@ page import="org.dspace.content.DCDate" %>
|
||||
<%@ page import="org.dspace.content.DCLanguage" %>
|
||||
<%@ page import="org.dspace.content.DCPersonName" %>
|
||||
<%@ page import="org.dspace.content.DCSeriesNumber" %>
|
||||
<%@ page import="org.dspace.content.DCValue" %>
|
||||
<%@ page import="org.dspace.content.Item" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
SubmissionInfo si =
|
||||
(SubmissionInfo) request.getAttribute("submission.info");
|
||||
|
||||
Item item = si.submission.getItem();
|
||||
|
||||
final int lastNameWidth = 23;
|
||||
final int firstNamesWidth = 23;
|
||||
final int formWidth = 50;
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Describe Your Item">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit#field" method=post>
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.EDIT_METADATA_1 %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Submit: Describe Your Item</H1>
|
||||
|
||||
<P>Please fill in the requested information about your submission below. In
|
||||
most browsers, you can use the tab key to move the cursor to the next input
|
||||
box or button, to save you having to use the mouse each time. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#describe2">(More Help...)</A></P>
|
||||
|
||||
<%-- HACK: a <center> tag seems to be the only way to convince certain --%>
|
||||
<%-- browsers to center the table. --%>
|
||||
<center>
|
||||
<table>
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Contributor.Author --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
<%
|
||||
if (si.jumpToField != null && si.jumpToField.equals("contributor_author"))
|
||||
{
|
||||
%>
|
||||
<a name="field"></a>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
Enter the names of the authors of this item below.
|
||||
</td>
|
||||
</tr>
|
||||
<%-- Width hints used here to affect whole table --%>
|
||||
<tr>
|
||||
<td width="40%"> </td>
|
||||
<td class="submitFormDateLabel" width="5%">Last name<br>e.g. <strong>Smith</strong></td>
|
||||
<td class="submitFormDateLabel" width="5%">First name(s) + "Jr"<br> e.g. <strong>Donald Jr</strong></td>
|
||||
<td width="40%"> </td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] authors = item.getDC("contributor", "author", Item.ANY);
|
||||
int authorFieldCount = authors.length + 1;
|
||||
if (si.moreBoxesFor != null && si.moreBoxesFor.equals("contributor_author"))
|
||||
{
|
||||
authorFieldCount += 2;
|
||||
}
|
||||
|
||||
for (int i = 0; i < authorFieldCount; i++)
|
||||
{
|
||||
DCPersonName dpn =
|
||||
(i < authors.length ? new DCPersonName(authors[i].value)
|
||||
: new DCPersonName() );
|
||||
%>
|
||||
<tr>
|
||||
<%
|
||||
if (i == 0)
|
||||
{
|
||||
%>
|
||||
<td class="submitFormLabel">Authors</td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<td>
|
||||
<input type=text name=contributor_author_last_<%= i %> size=<%= lastNameWidth %>
|
||||
value="<%= dpn.getLastName() %>">
|
||||
</td>
|
||||
<td>
|
||||
<input type=text name=contributor_author_first_<%= i %> size=<%= firstNamesWidth %>
|
||||
value="<%= dpn.getFirstNames() %>">
|
||||
</td>
|
||||
<%
|
||||
if (i < authors.length)
|
||||
{
|
||||
// Put a "remove" button next to all filled-in values
|
||||
%>
|
||||
<td><input type=submit name=submit_contributor_author_remove_<%= i %> value="Remove This Author"></td>
|
||||
<%
|
||||
}
|
||||
else if (i == authorFieldCount - 1)
|
||||
{
|
||||
// Put an "add more" button next to the last space (which is always
|
||||
// initially empty.)
|
||||
%>
|
||||
<td><input type=submit name=submit_contributor_author_more value="Add More"></td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
// An empty space that isn't the last one
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<%-- HACK: Using this line to give the browser hints as to the widths of cells --%>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan=2 width=5%> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Main title --%>
|
||||
<%-- ================================================ --%>
|
||||
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
Enter the main title of the item.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
// FIXME: (Maybe) Assumes a single main title
|
||||
DCValue[] titleArray = item.getDC("title", null, Item.ANY);
|
||||
String title = (titleArray.length > 0 ? titleArray[0].value : "");
|
||||
%>
|
||||
<tr>
|
||||
<td class="submitFormLabel">Title</td>
|
||||
<td colspan=2>
|
||||
<input type=text name=title size=<%= formWidth %> value="<%= title %>">
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=4> </td>
|
||||
</tr>
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Alternative titles --%>
|
||||
<%-- ================================================ --%>
|
||||
|
||||
<%
|
||||
if (si.submission.hasMultipleTitles())
|
||||
{
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
<%
|
||||
if (si.jumpToField != null && si.jumpToField.equals("title_alternative"))
|
||||
{
|
||||
%>
|
||||
<a name="field"></a>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
If the item has any alternative titles, please enter them below.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] altTitles = item.getDC("title", "alternative", Item.ANY);
|
||||
int altTitleFieldCount = altTitles.length + 1;
|
||||
if (si.moreBoxesFor != null && si.moreBoxesFor.equals("title_alternative"))
|
||||
{
|
||||
altTitleFieldCount += 2;
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < altTitleFieldCount; i++)
|
||||
{
|
||||
String val = "";
|
||||
if (i < altTitles.length)
|
||||
{
|
||||
val = altTitles[i].value;
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<%-- HACK: nowrap used since browsers do not act on "white-space" CSS property --%>
|
||||
<%
|
||||
if (i == 0)
|
||||
{
|
||||
%>
|
||||
<td nowrap class="submitFormLabel">Other titles</td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<td colspan=2>
|
||||
<input type=text name=title_alternative_<%= i %> size=<%= formWidth %> value="<%= val %>">
|
||||
</td>
|
||||
<%
|
||||
if (i < altTitles.length)
|
||||
{
|
||||
// Put a "remove" button next to all filled-in values
|
||||
%>
|
||||
<td><input type=submit name=submit_title_alternative_remove_<%= i %> value="Remove This Value"></td>
|
||||
<%
|
||||
}
|
||||
else if(i == altTitleFieldCount - 1)
|
||||
{
|
||||
// Put an "add more" button next to the last space (which is always
|
||||
// initially empty.)
|
||||
%>
|
||||
<td><input type=submit name=submit_title_alternative_more value="Add More"></td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
// An empty space that isn't the last one
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=4> </td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- date.issued --%>
|
||||
<%-- ================================================ --%>
|
||||
<%
|
||||
if (si.submission.isPublishedBefore())
|
||||
{
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
Please give the date of previous publication or public distribution
|
||||
below. You can leave out the day and/or month if they aren't
|
||||
applicable.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] dateIssuedArray = item.getDC("date", "issued", Item.ANY);
|
||||
DCDate dateIssued = new DCDate(
|
||||
(dateIssuedArray.length > 0 ? dateIssuedArray[0].value : ""));
|
||||
%>
|
||||
<tr>
|
||||
<%-- HACK: nowrap used since browsers do not act on "white-space" CSS property --%>
|
||||
<td nowrap class="submitFormLabel">Date of Issue</td>
|
||||
<td colspan=2 nowrap class="submitFormDateLabel">
|
||||
Month:<select name="date_issued_month">
|
||||
<option value="-1"<%= (dateIssued.getMonth() == -1 ? " SELECTED" : "") %>>(No month)</option>
|
||||
<%
|
||||
for (int i = 1; i < 13; i++)
|
||||
{
|
||||
%>
|
||||
<option value=<%= i %><%= (dateIssued.getMonth() == i ? " SELECTED" : "" ) %>><%= DCDate.getMonthName(i) %></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
Day:<input type=text name=date_issued_day size=2 maxlength=2 value="<%= (dateIssued.getDay() > 0 ? String.valueOf(dateIssued.getDay()) : "" ) %>">
|
||||
Year:<input type=text name=date_issued_year size=4 maxlength=4 value="<%= (dateIssued.getYear() > 0 ? String.valueOf(dateIssued.getYear()) : "" ) %>">
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=4> </td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- relation.ispartofseries --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
<%
|
||||
if (si.jumpToField != null && si.jumpToField.equals("relation_ispartofseries"))
|
||||
{
|
||||
%>
|
||||
<a name="field"></a>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
Enter the series and number assigned to this item by your community.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="submitFormDateLabel">Series Name</td>
|
||||
<td class="submitFormDateLabel">Report or Paper No.</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] seriesNumbers = item.getDC("relation", "ispartofseries", Item.ANY);
|
||||
int seriesNumberFieldCount = seriesNumbers.length + 1;
|
||||
|
||||
if (si.moreBoxesFor != null && si.moreBoxesFor.equals("relation_ispartofseries"))
|
||||
{
|
||||
seriesNumberFieldCount += 2;
|
||||
}
|
||||
|
||||
for (int i = 0; i < seriesNumberFieldCount; i++)
|
||||
{
|
||||
DCSeriesNumber sn =
|
||||
(i < seriesNumbers.length ? new DCSeriesNumber(seriesNumbers[i].value)
|
||||
: new DCSeriesNumber());
|
||||
%>
|
||||
<tr>
|
||||
<%
|
||||
if (i == 0)
|
||||
{
|
||||
%>
|
||||
<td class="submitFormLabel">Series/Report No.</td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<td>
|
||||
<input type=text name=relation_ispartofseries_series_<%= i %> size=<%= lastNameWidth %>
|
||||
value="<%= sn.getSeries() %>">
|
||||
</td>
|
||||
<td>
|
||||
<input type=text name=relation_ispartofseries_number_<%= i %> size=<%= firstNamesWidth %>
|
||||
value="<%= sn.getNumber() %>">
|
||||
</td>
|
||||
<%
|
||||
if (i < seriesNumbers.length)
|
||||
{
|
||||
// Put a "remove" button next to all filled-in values
|
||||
%>
|
||||
<td><input type=submit name=submit_relation_ispartofseries_remove_<%= i %> value="Remove This Value"></td>
|
||||
<%
|
||||
}
|
||||
else if(i == seriesNumberFieldCount - 1)
|
||||
{
|
||||
// Put an "add more" button next to the last space (which is always
|
||||
// initially empty.)
|
||||
%>
|
||||
<td><input type=submit name=submit_relation_ispartofseries_more value="Add More"></td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
// An empty space that isn't the last one
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=4> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Identifiers --%>
|
||||
<%-- ================================================ --%>
|
||||
<%
|
||||
// Names of each identifier type
|
||||
// FIXME: Maybe should draw from DC registry?
|
||||
Map identifierQualNames = new HashMap();
|
||||
identifierQualNames.put("govdoc", "Gov't Doc #");
|
||||
identifierQualNames.put("uri", "URI");
|
||||
identifierQualNames.put("isbn", "ISBN");
|
||||
identifierQualNames.put("issn", "ISSN");
|
||||
identifierQualNames.put("ismn", "ISMN");
|
||||
identifierQualNames.put("other", "Other");
|
||||
|
||||
DCValue[] identifiers = item.getDC("identifier", Item.ANY, Item.ANY);
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
<%
|
||||
if (si.jumpToField != null && si.jumpToField.equals("identifier"))
|
||||
{
|
||||
%>
|
||||
<a name="field"></a>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
If the item has any identification numbers or codes associated with
|
||||
it, please enter the types and the actual numbers or codes below.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
int identifierFieldCount = identifiers.length + 1;
|
||||
|
||||
if (si.moreBoxesFor != null && si.moreBoxesFor.equals("identifier"))
|
||||
{
|
||||
identifierFieldCount += 2;
|
||||
}
|
||||
|
||||
for (int i = 0; i < identifierFieldCount; i++)
|
||||
{
|
||||
String currentQual = "";
|
||||
String currentValue = "";
|
||||
|
||||
if (i < identifiers.length)
|
||||
{
|
||||
currentQual = identifiers[i].qualifier;
|
||||
currentValue = identifiers[i].value;
|
||||
}
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
%>
|
||||
<tr>
|
||||
<%-- HACK: nowrap used since browsers do not act on "white-space" CSS property --%>
|
||||
<td nowrap class="submitFormLabel">Identifiers</td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<%-- Qualifier pull-down --%>
|
||||
<td colspan=2>
|
||||
<select name="identifier_qualifier_<%= i %>">
|
||||
<%
|
||||
Iterator quals = identifierQualNames.keySet().iterator();
|
||||
|
||||
while (quals.hasNext())
|
||||
{
|
||||
String q = (String) quals.next();
|
||||
%>
|
||||
<option <%= (q.equals(currentQual) ? "SELECTED ": "" ) %> VALUE="<%= q %>"><%= identifierQualNames.get(q) %></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select> <input type=text name=identifier_value_<%= i %> size=34
|
||||
value="<%= currentValue %>">
|
||||
</td>
|
||||
<%
|
||||
if (i < identifiers.length)
|
||||
{
|
||||
// Remove button next to filled-in values
|
||||
%>
|
||||
<td><input type=submit name=submit_identifier_remove_<%= i %> value="Remove This Value"></td>
|
||||
<%
|
||||
}
|
||||
else if (i == identifierFieldCount - 1)
|
||||
{
|
||||
// "Add more" button on last line
|
||||
%>
|
||||
<td><input type=submit name=submit_identifier_more value="Add More"></td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
// Empty space
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=4> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Language --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=4 class="submitFormHelp">
|
||||
Select the language of the main content of the item. If the language does not appear in the list below, please
|
||||
select "Other". If the content does not really have a language (for example, if it is a dataset or an image)
|
||||
please select "N/A".
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
// FIXME: (Maybe) assume one language
|
||||
String[] defLanguages = {"en_US", "en", "es", "de", "fr", "it", "ja", "zh", "other", ""};
|
||||
DCValue[] langArray = item.getDC("language", "iso", Item.ANY);
|
||||
String lang = (langArray.length > 0 ? langArray[0].value : "");
|
||||
%>
|
||||
<tr>
|
||||
<td class="submitFormLabel">Language</td>
|
||||
<td colspan=2>
|
||||
<select name=language_iso>
|
||||
<%
|
||||
for (int i = 0; i < defLanguages.length; i++)
|
||||
{
|
||||
DCLanguage tempLang = new DCLanguage(defLanguages[i]);
|
||||
%>
|
||||
<option value="<%= defLanguages[i] %>"<%= (lang.equals(defLanguages[i]) ? " SELECTED" : "" ) %>><%= tempLang.getDisplayName() %></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<%-- HACK: Need a space - is there a nicer way to do this than <BR> or a --%>
|
||||
<%-- blank <P>? --%>
|
||||
<P> </P>
|
||||
|
||||
<%-- Hidden fields needed for submit servlet to know which item to deal with --%>
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.EDIT_METADATA_1 %>>
|
||||
<center>
|
||||
<table border=0 width=80%>
|
||||
<tr>
|
||||
<td width="100%"> </td>
|
||||
<td>
|
||||
<input type=submit name=submit_prev value="< Previous">
|
||||
</td>
|
||||
<td>
|
||||
<input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
</dspace:layout>
|
274
dspace/jsp/submit/edit-metadata-2.jsp
Normal file
@@ -0,0 +1,274 @@
|
||||
<%--
|
||||
- edit-metadata-2.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Edit metadata form page 2
|
||||
-
|
||||
- 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" %>
|
||||
<%@ page import="org.dspace.content.DCValue" %>
|
||||
<%@ page import="org.dspace.content.Item" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
SubmissionInfo si =
|
||||
(SubmissionInfo) request.getAttribute("submission.info");
|
||||
|
||||
Item item = si.submission.getItem();
|
||||
|
||||
final int formWidth = 50;
|
||||
final int subjectWidth = 15;
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Describe Your Item">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit#field" method=post>
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.EDIT_METADATA_2 %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Submit: Describe Your Item</H1>
|
||||
|
||||
<P>Please fill further information about your submission below. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#describe3">(More Help...)</A></P>
|
||||
|
||||
<%-- HACK: a <center> tag seems to be the only way to convince certain --%>
|
||||
<%-- browsers to center the table. --%>
|
||||
<center>
|
||||
<table>
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Subject keywords --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=3 class="submitFormHelp">
|
||||
<%
|
||||
if (si.jumpToField != null && si.jumpToField.equals("subject"))
|
||||
{
|
||||
%>
|
||||
<a name="field"></a>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
Enter appropriate subject keywords or phrases below.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] subjects = item.getDC("subject", null, Item.ANY);
|
||||
int subjectFieldCount = subjects.length + 1;
|
||||
|
||||
if (si.moreBoxesFor != null && si.moreBoxesFor.equals("subject"))
|
||||
{
|
||||
subjectFieldCount += 2;
|
||||
}
|
||||
|
||||
for (int i = 0; i < subjectFieldCount; i += 2)
|
||||
{
|
||||
%>
|
||||
<tr>
|
||||
<%-- HACK: nowrap used since browsers do not act on "white-space" CSS property --%>
|
||||
<%
|
||||
if (i == 0)
|
||||
{
|
||||
%>
|
||||
<td nowrap class="submitFormLabel">Subject Keywords</td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<td> </td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<td align="left">
|
||||
<%
|
||||
if (i < subjects.length)
|
||||
{
|
||||
%>
|
||||
<input type=text name="subject_<%= i %>" size="<%= subjectWidth %>"
|
||||
value="<%= subjects[i].value %>"> <input type=submit name="submit_subject_remove_<%= i %>" value="Remove">
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<input type=text name="subject_<%= i %>" size="<%= subjectWidth %>">
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
<td align="left">
|
||||
<%
|
||||
if (i + 1 < subjects.length)
|
||||
{
|
||||
%>
|
||||
<input type=text name="subject_<%= i + 1 %>" size="<%= subjectWidth %>"
|
||||
value="<%= subjects[i + 1].value %>"> <input type=submit name="submit_subject_remove_<%= i + 1 %>" value="Remove">
|
||||
<%
|
||||
}
|
||||
else if (i + 2 >= subjectFieldCount)
|
||||
{
|
||||
%>
|
||||
<input type=text name="subject_<%= i + 1 %>" size="<%= subjectWidth %>"> <input type=submit name=submit_subject_more value="Add More">
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<input type=text name="subject_<%= i + 1 %>" size="<%= subjectWidth %>">
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=3> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Abstract --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=3 class="submitFormHelp">
|
||||
Enter the abstract of the item below.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
// FIXME: (Maybe) assume one abstract
|
||||
DCValue[] abstrArray = item.getDC("description", "abstract", Item.ANY);
|
||||
String abstr = (abstrArray.length > 0 ? abstrArray[0].value : "");
|
||||
%>
|
||||
<tr>
|
||||
<td class="submitFormLabel">Abstract</td>
|
||||
<td colspan=2>
|
||||
<textarea rows=8 cols=<%= formWidth %> name=description_abstract wrap=soft><%= abstr %></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Sponsorship --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=3 class="submitFormHelp">
|
||||
Enter the names of any sponsors and/or funding codes in the box below.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] sponsorArray = item.getDC("description", "sponsorship", Item.ANY);
|
||||
String sponsorship = (sponsorArray.length > 0 ? sponsorArray[0].value : "");
|
||||
%>
|
||||
<tr>
|
||||
<td class="submitFormLabel">Sponsors</td>
|
||||
<td colspan=2>
|
||||
<textarea rows=3 cols=<%= formWidth %> name=description_sponsorship wrap=soft><%= sponsorship %></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<%-- ================================================ --%>
|
||||
<%-- Other Description --%>
|
||||
<%-- ================================================ --%>
|
||||
<tr>
|
||||
<td colspan=3 class="submitFormHelp">
|
||||
Enter any other description or comments relating to the item in this box.
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] descArray = item.getDC("description", null, Item.ANY);
|
||||
String desc = (descArray.length > 0 ? descArray[0].value : "");
|
||||
%>
|
||||
<tr>
|
||||
<td class="submitFormLabel">Description</td>
|
||||
<td colspan=2>
|
||||
<textarea rows=3 cols=<%= formWidth %> name=description wrap=soft><%= desc %></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</center>
|
||||
|
||||
|
||||
<%-- HACK: Need a space - is there a nicer way to do this than <BR> or a --%>
|
||||
<%-- blank <P>? --%>
|
||||
<P> </P>
|
||||
|
||||
<%-- Hidden fields needed for submit servlet to know which item to deal with --%>
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.EDIT_METADATA_2 %>>
|
||||
<center>
|
||||
<table border=0 width=80%>
|
||||
<tr>
|
||||
<td width="100%"> </td>
|
||||
<td>
|
||||
<input type=submit name=submit_prev value="< Previous">
|
||||
</td>
|
||||
<td>
|
||||
<input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
||||
|
168
dspace/jsp/submit/get-file-format.jsp
Normal file
@@ -0,0 +1,168 @@
|
||||
<%--
|
||||
- get-file-format.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 type of uploaded file
|
||||
-
|
||||
- Attributes to pass in to this page:
|
||||
- submission.info - the SubmissionInfo object
|
||||
- guessed.format - the system's guess as to the format - null if it
|
||||
- doesn't know (BitstreamFormat)
|
||||
- bitstream.formats - the (non-internal) formats known by the system
|
||||
- (BitstreamFormat[])
|
||||
--%>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
|
||||
<%@ page import="org.dspace.content.Bitstream" %>
|
||||
<%@ page import="org.dspace.content.BitstreamFormat" %>
|
||||
<%@ page import="org.dspace.content.Bundle" %>
|
||||
<%@ page import="org.dspace.content.Item" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
SubmissionInfo si =
|
||||
(SubmissionInfo) request.getAttribute("submission.info");
|
||||
BitstreamFormat guess =
|
||||
(BitstreamFormat) request.getAttribute("guessed.format");
|
||||
BitstreamFormat[] formats =
|
||||
(BitstreamFormat[]) request.getAttribute("bitstream.formats");
|
||||
|
||||
Item item = si.submission.getItem();
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Select File Format">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<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: Select File Format</H1>
|
||||
|
||||
<P>Uploaded file: <code><%= si.bitstream.getName() %></code> (<%= si.bitstream.getSize() %> bytes)</P>
|
||||
|
||||
<%
|
||||
if (guess == null)
|
||||
{
|
||||
%>
|
||||
<P>DSpace could not identify the format of this file.</P>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<P>DSpace recognized the file format as <%= guess.getShortDescription() %>.
|
||||
<strong>Please be sure before you change this!</strong></P>
|
||||
|
||||
<input type=hidden name=format value="<%= guess.getID() %>">
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value="<%= SubmitServlet.GET_FILE_FORMAT %>" />
|
||||
<P align=center><input type=submit name=submit value="Choose automatically-recognized type"></P>
|
||||
</form>
|
||||
|
||||
<%-- Option list put in a separate form --%>
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<P>Select the format of the file from the list below, for example "Adobe
|
||||
PDF" or "Microsoft Word", <strong>OR</strong> if the format is not in the list, please describe
|
||||
the format file in the input box below the list.
|
||||
<A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#formats">(More Help...)</A></P>
|
||||
|
||||
<center>
|
||||
<select name=format size=8>
|
||||
<option value="-1" <%= si.bitstream.getFormat().getShortDescription().equals("Unknown") ? "SELECTED" : "" %>>
|
||||
Format Not in List
|
||||
</option>
|
||||
<%
|
||||
for (int i = 0; i < formats.length; i++)
|
||||
{
|
||||
%>
|
||||
<option
|
||||
<%= si.bitstream.getFormat().getID() == formats[i].getID() ? "SELECTED" : "" %>
|
||||
value="<%= formats[i].getID() %>">
|
||||
<%= formats[i].getShortDescription() %>
|
||||
<%
|
||||
if (formats[i].getSupportLevel() == 1) { %>(known)<% }
|
||||
if (formats[i].getSupportLevel() == 2) { %>(supported)<% }
|
||||
%>
|
||||
</option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</center>
|
||||
|
||||
<P class=submitFormHelp><strong>If the format is not in the above list</strong>, describe
|
||||
it in the format below. Enter the name of the application you used to create
|
||||
the file, and the version number of the application (for example,
|
||||
"ACMESoft SuperApp version 1.5").</P>
|
||||
|
||||
<table border=0 align=center>
|
||||
<tr>
|
||||
<td class="submitFormLabel">
|
||||
File Format:
|
||||
</td>
|
||||
<td>
|
||||
<%
|
||||
String desc = si.bitstream.getUserFormatDescription();
|
||||
if (desc == null)
|
||||
{
|
||||
desc = "";
|
||||
}
|
||||
%>
|
||||
<input type=text name=format_description size="40" value="<%= desc %>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value="<%= SubmitServlet.GET_FILE_FORMAT %>">
|
||||
|
||||
<center><P><input type=submit name=submit value="Set File Format"></P></center>
|
||||
</form>
|
||||
</dspace:layout>
|
150
dspace/jsp/submit/initial-questions.jsp
Normal file
@@ -0,0 +1,150 @@
|
||||
<%--
|
||||
- initial-questions.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Initial questions for keeping UI as simple as possible.
|
||||
-
|
||||
- Attributes to pass in:
|
||||
- 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="Describe Your Item">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.INITIAL_QUESTIONS %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Submit: Describe Your Item</H1>
|
||||
|
||||
<P>Please check the boxes next to the statements that apply to your
|
||||
submission. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#describe1">(More Help...)</A></P>
|
||||
|
||||
<center>
|
||||
<table class="miscTable">
|
||||
<tr class="oddRowOddCol">
|
||||
<td class="oddRowOddCol" align="left">
|
||||
<table border=0>
|
||||
<tr>
|
||||
<td valign=top><input type=checkbox name="multiple_titles" value="true" <%= (si.submission.hasMultipleTitles() ? "CHECKED" : "") %>></td>
|
||||
<td class="submitFormLabel" nowrap>The item has more than one title, e.g. a translated title</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="evenRowOddCol">
|
||||
<td class="evenRowOddCol" align="left">
|
||||
<table border=0>
|
||||
<tr>
|
||||
<td valign=top><input type=checkbox name="published_before" value="true" <%= (si.submission.isPublishedBefore() ? "CHECKED" : "") %>></td>
|
||||
<td class="submitFormLabel" nowrap>The item has been published or publicly distributed before</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
// Don't display file or thesis questions in workflow mode
|
||||
if (!SubmitServlet.isWorkflow(si))
|
||||
{
|
||||
%>
|
||||
<tr class="oddRowOddCol">
|
||||
<td class="oddRowOddCol" align="left">
|
||||
<table border=0>
|
||||
<tr>
|
||||
<td valign=top><input type=checkbox name="multiple_files" value="true" <%= (si.submission.hasMultipleFiles() ? "CHECKED" : "") %>></td>
|
||||
<td class="submitFormLabel" nowrap>The item consists of <em>more than one</em> file</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- FIXME: MIT-SPECIFIC: Is this a thesis question --%>
|
||||
<tr class="evenRowOddCol">
|
||||
<td class="evenRowOddCol" align="left">
|
||||
<table border=0>
|
||||
<tr>
|
||||
<td valign=top><input type=checkbox name="is_thesis" value="true"></td>
|
||||
<td class="submitFormLabel" nowrap>The item is a thesis</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<P> </P>
|
||||
|
||||
<%-- Hidden fields needed for submit servlet to know which item to deal with --%>
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.INITIAL_QUESTIONS %>>
|
||||
<center>
|
||||
<table border=0 width="80%">
|
||||
<tr>
|
||||
<td width="100%">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
62
dspace/jsp/submit/license-rejected.jsp
Normal file
@@ -0,0 +1,62 @@
|
||||
<%--
|
||||
- license-rejected.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- License rejected page
|
||||
--%>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout title="License Rejected">
|
||||
|
||||
<H1>Submit: License Rejected</H1>
|
||||
|
||||
<P>You have chosen not to grant the license to distribute your submission
|
||||
via the DSpace system. Your submission has not been deleted and can be
|
||||
accessed from the My DSpace page.</P>
|
||||
|
||||
<P>If you wish to contact us to discuss the license, please use one
|
||||
of the methods below:</P>
|
||||
|
||||
<%@ include file="/components/contact-info.jsp" %>
|
||||
|
||||
<P><A HREF="<%= request.getContextPath() %>/mydspace">Go to My DSpace</A></P>
|
||||
|
||||
</dspace:layout>
|
79
dspace/jsp/submit/no-theses.jsp
Normal file
@@ -0,0 +1,79 @@
|
||||
<%--
|
||||
- no-theses.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- "No Theses" message
|
||||
-
|
||||
- This page displays a message informing the user that theses are not
|
||||
- presently accepted in DSpace, and that their submission has been removed.
|
||||
- FIX-ME: MIT-SPECIFIC
|
||||
--%>
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout title="Theses Not Accepted in DSpace">
|
||||
|
||||
<H1>Theses Not Accepted in DSpace</H1>
|
||||
|
||||
<P>DSpace does not currently accept individually-submitted
|
||||
theses, but you are encouraged to use the separate electronic thesis
|
||||
submission site supported by the Libraries and by MIT Information Systems to
|
||||
submit your thesis to the <a href="http://thesis.mit.edu">Digital Library of
|
||||
MIT Theses</a>. To learn how to submit your thesis to that system, see <a
|
||||
href="http://web.mit.edu/etheses/www/etheses-home.html">Submitting
|
||||
an Electronic Thesis at MIT</a>.</P>
|
||||
|
||||
<P>Because DSpace does not accept individually-submitted theses, your
|
||||
submission will not proceed; any files you have uploaded for the current item
|
||||
will not be stored.</P>
|
||||
|
||||
<P>Please note that printed copies of your thesis are still the official
|
||||
requirement for your degree. Due to important legal and record-keeping
|
||||
reasons, it is likely that in the future DSpace will work directly with the
|
||||
electronic thesis system to load groups of theses which have been officially
|
||||
vetted and approved. Thanks for understanding.</P>
|
||||
|
||||
<P>For more information please <strong>contact the DSpace site
|
||||
administrators</strong>:</P>
|
||||
|
||||
<%@ include file="/components/contact-info.jsp" %>
|
||||
|
||||
<P>Thank you for your interest in DSpace!</P>
|
||||
|
||||
</dspace:layout>
|
159
dspace/jsp/submit/progressbar.jsp
Normal file
@@ -0,0 +1,159 @@
|
||||
<%--
|
||||
- progressbar.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Progress bar for submission form. Note this must be included within
|
||||
- the FORM element in the submission form, since it contains navigation
|
||||
- buttons.
|
||||
-
|
||||
- Parameters:
|
||||
- step (int): The current step. One of constants in
|
||||
- org.dspace.app.webui.servlets.SubmitServlet.
|
||||
- stage_reached: The most advanced step the user has reached (i.e. the
|
||||
- most advanced step they can jump to)
|
||||
- One of constants in org.dspace.servlets.SubmitServlet.
|
||||
- It can also be "-1" - in this case, the progress bar
|
||||
- is in "Workflow Item" mode - i.e. the "license" and
|
||||
- "complete" stages aren't shown
|
||||
--%>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
// These are the filename stubs for the images used for each step
|
||||
String[] imageNames =
|
||||
{
|
||||
"select",
|
||||
"describe",
|
||||
"describe",
|
||||
"describe",
|
||||
"upload",
|
||||
"verify",
|
||||
"license",
|
||||
"complete"
|
||||
};
|
||||
|
||||
// Step names for ALT text in images
|
||||
String[] stepNames =
|
||||
{
|
||||
"Select",
|
||||
"Describe",
|
||||
"Describe",
|
||||
"Describe",
|
||||
"Upload",
|
||||
"Verify",
|
||||
"License",
|
||||
"Complete"
|
||||
};
|
||||
|
||||
int step = Integer.parseInt(request.getParameter("step"));
|
||||
int stageReached = Integer.parseInt(request.getParameter("stage_reached"));
|
||||
|
||||
// Are we in workflow mode?
|
||||
boolean workflowMode = false;
|
||||
if (stageReached == -1)
|
||||
{
|
||||
workflowMode = true;
|
||||
stageReached = SubmitServlet.REVIEW_SUBMISSION;
|
||||
}
|
||||
%>
|
||||
<center>
|
||||
<table class=submitProgressTable border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<%
|
||||
// Show previous (done by definition!) steps
|
||||
for (int i = 1; i < step; i++)
|
||||
{
|
||||
// If the step has been done, and we're not on the final step,
|
||||
// the user can jump back
|
||||
if (step != SubmitServlet.SUBMISSION_COMPLETE)
|
||||
{
|
||||
%>
|
||||
<%-- HACK: border=0 for non-CSS compliant Netscape 4.x --%>
|
||||
<td><input class="submitProgressButton" border=0 type=image name="submit_jump_<%= i %>" src="<%= request.getContextPath() %>/image/submit/<%= imageNames[i] %>-done.gif" value=" <%= stepNames[i] %> (Done) - " alt=" <%= stepNames[i] %> (Done) - "></td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
// User has reached final step, cannot jump back
|
||||
%>
|
||||
<td><IMG SRC="<%= request.getContextPath() %>/image/submit/<%= imageNames[i] %>-done.gif" ALT=" <%= stepNames[i] %> (Done) - "></td>
|
||||
<%
|
||||
}
|
||||
}
|
||||
|
||||
// Show current step, but only if it's not the select collection step,
|
||||
// which isn't shown in the progress bar
|
||||
if (step > 0)
|
||||
{
|
||||
%>
|
||||
<td><IMG SRC="<%= request.getContextPath() %>/image/submit/<%= imageNames[step] %>-current.gif" ALT=" <%= stepNames[step] %> (Current) - "></td>
|
||||
<%
|
||||
}
|
||||
|
||||
// We only go up to the "verify" step if we're on a workflow item
|
||||
int lastStep = (workflowMode ? SubmitServlet.REVIEW_SUBMISSION+1
|
||||
: stepNames.length);
|
||||
|
||||
// Show next steps (some of which may have been done)
|
||||
for (int i = step + 1; i < lastStep; i++)
|
||||
{
|
||||
if (i <= stageReached)
|
||||
{
|
||||
// Stage has been previously accessed, so user may jump to it
|
||||
%>
|
||||
<%-- HACK: border=0 for non-CSS compliant Netscape 4.x --%>
|
||||
<td><input class="submitProgressButton" border=0 type=image name="submit_jump_<%= i %>" src="<%= request.getContextPath() %>/image/submit/<%= imageNames[i] %>-done.gif" value=" <%= stepNames[i] %> (Done) - " alt=" <%= stepNames[i] %> (Done) - "></td>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
// Stage hasn't been reached yet (can't be jumped to)
|
||||
%>
|
||||
<td><IMG SRC="<%= request.getContextPath() %>/image/submit/<%= imageNames[i] %>-notdone.gif" ALT=" <%= stepNames[i] %> (Not Done) - "></td>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
445
dspace/jsp/submit/review.jsp
Normal file
@@ -0,0 +1,445 @@
|
||||
<%--
|
||||
- review.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Review submission page
|
||||
-
|
||||
- Attributes to pass in to this page:
|
||||
- submission.info - the SubmissionInfo object
|
||||
--%>
|
||||
|
||||
<%@ page import="java.util.HashMap" %>
|
||||
<%@ page import="java.util.Map" %>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
|
||||
<%@ page import="org.dspace.content.Bitstream" %>
|
||||
<%@ page import="org.dspace.content.BitstreamFormat" %>
|
||||
<%@ page import="org.dspace.content.DCDate" %>
|
||||
<%@ page import="org.dspace.content.DCLanguage" %>
|
||||
<%@ page import="org.dspace.content.DCValue" %>
|
||||
<%@ page import="org.dspace.content.Item" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
SubmissionInfo si =
|
||||
(SubmissionInfo) request.getAttribute("submission.info");
|
||||
|
||||
Item item = si.submission.getItem();
|
||||
|
||||
// Names of each identifier type
|
||||
Map identifierQualNames = new HashMap();
|
||||
identifierQualNames.put( "govdoc", "Gov't Doc #" );
|
||||
identifierQualNames.put( "uri", "URI" );
|
||||
identifierQualNames.put( "isbn", "ISBN" );
|
||||
identifierQualNames.put( "issn", "ISSN" );
|
||||
identifierQualNames.put( "ismn", "ISMN" );
|
||||
identifierQualNames.put( "other", "Other" );
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Verify Submission">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.REVIEW_SUBMISSION %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Submit: Verify Submission</H1>
|
||||
|
||||
<P><strong>Not quite there yet,</strong> but nearly!</P>
|
||||
|
||||
<P>Please spend a few minutes to examine what you've just submitted below.
|
||||
If anything is wrong, please go back and correct it by using the buttons
|
||||
next to the error, or by clicking on the progress bar at the top of the
|
||||
page. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#verify">(More Help...)</A></P>
|
||||
|
||||
<P><strong>If everything is OK,</strong> please click the "Next" button at the bottom of the page.</P>
|
||||
|
||||
<P>You can safely check the files you've uploaded - a new window will
|
||||
be opened to display them.</P>
|
||||
|
||||
<table align=center class=miscTable width=80%>
|
||||
<%-- ====================================================== --%>
|
||||
<%-- INITIAL QUESTIONS --%>
|
||||
<%-- ====================================================== --%>
|
||||
<tr>
|
||||
<td class="oddRowOddCol">
|
||||
<table>
|
||||
<tr>
|
||||
<td width=100%>
|
||||
<table>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Item has more than one title:</td>
|
||||
<td class=metadataFieldValue><%= (si.submission.hasMultipleTitles() ? "Yes" : "No") %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Previously published item:</td>
|
||||
<td class=metadataFieldValue><%= (si.submission.isPublishedBefore() ? "Yes" : "No") %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Item consists of more than one file:</td>
|
||||
<td class=metadataFieldValue><%= (si.submission.hasMultipleFiles() ? "Yes" : "No") %></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign=middle>
|
||||
<input type=submit name=submit_jump_<%= SubmitServlet.INITIAL_QUESTIONS %> value="Correct one of these">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- ====================================================== --%>
|
||||
<%-- DESCRIBE ITEM PAGE 1 ELEMENTS --%>
|
||||
<%-- ====================================================== --%>
|
||||
<tr>
|
||||
<td class="evenRowOddCol">
|
||||
<table>
|
||||
<tr>
|
||||
<td width=100%>
|
||||
<table>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Authors:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
DCValue[] authors = item.getDC("contributor", "author", Item.ANY);
|
||||
if (authors.length == 0)
|
||||
{
|
||||
%>
|
||||
<em>None</em>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < authors.length; i++)
|
||||
{
|
||||
%>
|
||||
<%= authors[i].value %><br>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] titles = item.getDC("title", null, Item.ANY);
|
||||
String title = "<em>None</em>";
|
||||
if (titles.length > 0)
|
||||
{
|
||||
title = titles[0].value;
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Title:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%= title %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if (si.submission.hasMultipleTitles())
|
||||
{
|
||||
DCValue[] altTitles = item.getDC("title", "alternative", Item.ANY);
|
||||
%>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Alternative Titles:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
if (altTitles.length == 0)
|
||||
{
|
||||
%>
|
||||
<em>None</em>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
for(int i = 0; i < altTitles.length ; i++)
|
||||
{
|
||||
%>
|
||||
<%= altTitles[i].value %><br>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
|
||||
if (si.submission.isPublishedBefore())
|
||||
{
|
||||
DCValue[] dateIssued = item.getDC("date", "issued", Item.ANY);
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Date Issued:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
if (dateIssued.length == 0)
|
||||
{
|
||||
%>
|
||||
<em>None</em>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<dspace:date date="<%= new DCDate(dateIssued[0].value) %>" />
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Series/Report No:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
DCValue[] seriesNumbers = item.getDC("relation","ispartofseries", Item.ANY);
|
||||
if (seriesNumbers.length == 0)
|
||||
{
|
||||
%>
|
||||
<em>None</em>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < seriesNumbers.length ; i++)
|
||||
{
|
||||
%>
|
||||
<%= seriesNumbers[i].value %><br>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Identifiers:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
DCValue[] identifiers = item.getDC("identifier", Item.ANY, Item.ANY);
|
||||
|
||||
for (int i = 0; i < identifiers.length; i++)
|
||||
{
|
||||
%>
|
||||
<%= identifierQualNames.get(identifiers[i].qualifier) %>: <%= identifiers[i].value %><br>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
DCValue[] langArray = item.getDC("language", "iso", null);
|
||||
DCLanguage language = new DCLanguage("");
|
||||
if (langArray.length > 0)
|
||||
{
|
||||
language = new DCLanguage(langArray[0].value);
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Language:</td>
|
||||
<td class=metadataFieldValue><%= language.getDisplayName() %></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign=middle>
|
||||
<input type=submit name=submit_jump_<%= SubmitServlet.EDIT_METADATA_1 %> value="Correct one of these">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- ====================================================== --%>
|
||||
<%-- DESCRIBE ITEM PAGE 2 ELEMENTS --%>
|
||||
<%-- ====================================================== --%>
|
||||
<tr>
|
||||
<td class=oddRowOddCol>
|
||||
<table>
|
||||
<tr>
|
||||
<td width=100%>
|
||||
<table>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Keywords:</td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
DCValue[] keywords = item.getDC("subject", null, Item.ANY);
|
||||
|
||||
if (keywords.length == 0)
|
||||
{
|
||||
%>
|
||||
<em>None</em>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < keywords.length; i++)
|
||||
{
|
||||
%>
|
||||
<%= keywords[i].value %><br>
|
||||
<%
|
||||
}
|
||||
}
|
||||
|
||||
DCValue[] abstr = item.getDC("description", "abstract", Item.ANY);
|
||||
DCValue[] sponsors = item.getDC("description", "sponsorship", Item.ANY);
|
||||
DCValue[] otherDesc = item.getDC("description", null, Item.ANY);
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Abstract:</td>
|
||||
<td class=metadataFieldValue><%= (abstr.length == 0 ? "<em>None</em>" : abstr[0].value) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Sponsors:</td>
|
||||
<td class=metadataFieldValue><%= (sponsors.length == 0 ? "<em>None</em>" : sponsors[0].value) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel>Other Description:</td>
|
||||
<td class=metadataFieldValue><%= (otherDesc.length == 0 ? "<em>None</em>" : otherDesc[0].value) %></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign=middle align=right>
|
||||
<input type=submit name=submit_jump_<%= SubmitServlet.EDIT_METADATA_2 %> value="Correct one of these">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- ====================================================== --%>
|
||||
<%-- UPLOADED_FILES --%>
|
||||
<%-- ====================================================== --%>
|
||||
<tr>
|
||||
<td class=evenRowOddCol>
|
||||
<table>
|
||||
<tr>
|
||||
<td width=100%>
|
||||
<table>
|
||||
<tr>
|
||||
<td class=metadataFieldLabel><%= (si.submission.hasMultipleFiles() ? "Uploaded Files:" : "Uploaded File:") %></td>
|
||||
<td class=metadataFieldValue>
|
||||
<%
|
||||
Bitstream[] bitstreams = item.getNonInternalBitstreams();
|
||||
|
||||
for (int i = 0; i < bitstreams.length ; i++)
|
||||
{
|
||||
BitstreamFormat format = bitstreams[i].getFormat();
|
||||
%>
|
||||
<A HREF="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>" target="_blank"><%= bitstreams[i].getName() %></A> - <%= bitstreams[i].getFormatDescription() %>
|
||||
<%
|
||||
switch (format.getSupportLevel())
|
||||
{
|
||||
case 0:
|
||||
%>(Unknown)<%
|
||||
break;
|
||||
case 1:
|
||||
%>(Unsupported)<%
|
||||
break;
|
||||
case 2:
|
||||
%>(Supported)<%
|
||||
}
|
||||
%>
|
||||
<br>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign=middle align=right>
|
||||
<%
|
||||
// Can't edit files in workflow mode
|
||||
if(!SubmitServlet.isWorkflow(si))
|
||||
{
|
||||
%>
|
||||
<input type=submit name=submit_jump_<%= SubmitServlet.UPLOAD_FILES %>
|
||||
value="<%= (si.submission.hasMultipleFiles() ? "Add or Remove a File" : "Upload a different file") %>">
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<input type=submit name=submit_jump_<%= SubmitServlet.UPLOAD_FILES %>
|
||||
value="Edit File Details">
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.REVIEW_SUBMISSION %>>
|
||||
|
||||
<P> </P>
|
||||
|
||||
<center>
|
||||
<table border=0 width=80%>
|
||||
<tr>
|
||||
<td width="100%"> </td>
|
||||
<td>
|
||||
<input type=submit name=submit_prev value="< Previous">
|
||||
</td>
|
||||
<td>
|
||||
<input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
58
dspace/jsp/submit/saved.jsp
Normal file
@@ -0,0 +1,58 @@
|
||||
<%--
|
||||
- saved.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Submission saved message - displayed whenever the user has clicked
|
||||
- "cancel/save" during a submission and elected to save the item.
|
||||
--%>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout title="Submission Saved">
|
||||
|
||||
<H1>Submission Saved</H1>
|
||||
|
||||
<P>Your submission has been saved for you to finish later. You can continue
|
||||
the submission by going to your "My DSpace" page and clicking on the
|
||||
relevant "Resume" button.</P>
|
||||
|
||||
<P><A HREF="<%= request.getContextPath() %>/mydspace">Go to My DSpace</A></P>
|
||||
|
||||
</dspace:layout>
|
119
dspace/jsp/submit/select-collection.jsp
Normal file
@@ -0,0 +1,119 @@
|
||||
<%--
|
||||
- select-collection.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- UI page for selection of collection.
|
||||
-
|
||||
- Required attributes:
|
||||
- collections - Array of collection objects to show in the drop-down.
|
||||
--%>
|
||||
|
||||
<%@ page import="org.dspace.content.Collection" %>
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
Collection[] collections =
|
||||
(Collection[]) request.getAttribute("collections");
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Select Collection to Submit to">
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.SELECT_COLLECTION %>"/>
|
||||
<jsp:param name="stage_reached" value="0"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Submit: Choose Collection</H1>
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
<%-- HACK: a <center> tag seems to be the only way to convince certain --%>
|
||||
<%-- browsers to center the table. --%>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan=2 class="submitFormHelp">
|
||||
Have you read the <a href="<%= request.getContextPath() %>/help/submit_guide.html" target="dspace.help">Inessential Guide to Submitting to DSpace</a>?
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2 class="submitFormHelp">
|
||||
Select the collection you wish to submit an item to from the list
|
||||
below, then click "Next". <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#choosecollection">More Help...</A>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="submitFormLabel">Collection</td>
|
||||
<td>
|
||||
<select name=collection>
|
||||
<%
|
||||
for (int i = 0; i < collections.length; i++)
|
||||
{
|
||||
%>
|
||||
<option value="<%= collections[i].getID() %>"><%= collections[i].getMetadata("name") %></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=left>
|
||||
<input type="submit" name="submit_cancel" value="Cancel">
|
||||
</td>
|
||||
<td align=right>
|
||||
<%-- Hidden field indicating the step --%>
|
||||
<input type="hidden" name="step" value="<%= SubmitServlet.SELECT_COLLECTION %>">
|
||||
<input type="submit" name="submit_next" value="Next >">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
101
dspace/jsp/submit/show-license.jsp
Normal file
@@ -0,0 +1,101 @@
|
||||
<%--
|
||||
- show-license.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Show the user a license which they may grant or reject
|
||||
-
|
||||
- Attributes to pass in:
|
||||
- submission.info - the SubmissionInfo object
|
||||
- license - the license text to display
|
||||
--%>
|
||||
|
||||
<%@ 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");
|
||||
|
||||
String license = (String) request.getAttribute("license");
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="DSpace Distribution License">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<jsp:include page="/submit/progressbar.jsp">
|
||||
<jsp:param name="step" value="<%= SubmitServlet.GRANT_LICENSE %>"/>
|
||||
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
|
||||
</jsp:include>
|
||||
|
||||
<H1>Submit: Grant DSpace Distribution License</H1>
|
||||
|
||||
<P><strong>There is one last step:</strong> In order for DSpace to reproduce, translate and distribute your
|
||||
submission worldwide, your agreement to the following terms is necessary.
|
||||
Please take a moment to read the terms of this license, and click on one of the
|
||||
buttons at the bottom of the page. By clicking on the "Grant License"
|
||||
button, you indicate that you grant the following terms of the license.
|
||||
<A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#license">(More Help...)</A></P>
|
||||
|
||||
<P><strong>Not granting the license will not delete your submission.</strong>
|
||||
Your item will remain in your "My DSpace" page. You can then either remove
|
||||
the submission from the system, or agree to the license later once any
|
||||
queries you might have are resolved.</P>
|
||||
|
||||
<table class=miscTable align=center>
|
||||
<tr>
|
||||
<td class="oddRowEvenCol">
|
||||
<PRE><%= license %></PRE>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.GRANT_LICENSE %>>
|
||||
|
||||
<center>
|
||||
<P><input type=submit name=submit_grant value="I Grant the License"></P>
|
||||
<P><input type=submit name=submit_reject value="I Do Not Grant the License"></P>
|
||||
</center>
|
||||
</form>
|
||||
</dspace:layout>
|
209
dspace/jsp/submit/show-uploaded-file.jsp
Normal file
@@ -0,0 +1,209 @@
|
||||
<%--
|
||||
- show-uploaded-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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Show uploaded file (single-file submission mode)
|
||||
-
|
||||
- Attributes to pass in
|
||||
- submission.info - the SubmissionInfo object
|
||||
- just.uploaded - Boolean indicating whether the user has just
|
||||
- uploaded a file OK
|
||||
- show.checksums - Boolean indicating whether to show checksums
|
||||
-
|
||||
- FIXME: Merely iterates through bundles, treating all bit-streams as
|
||||
- separate documents. Shouldn't be a problem for early adopters.
|
||||
--%>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
|
||||
<%@ page import="org.dspace.content.Bitstream" %>
|
||||
<%@ page import="org.dspace.content.BitstreamFormat" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<%
|
||||
SubmissionInfo si =
|
||||
(SubmissionInfo) request.getAttribute("submission.info");
|
||||
|
||||
boolean justUploaded = ((Boolean) request.getAttribute("just.uploaded")).booleanValue();
|
||||
boolean showChecksums = ((Boolean) request.getAttribute("show.checksums")).booleanValue();
|
||||
|
||||
// Get the bitstream
|
||||
Bitstream[] all = si.submission.getItem().getNonInternalBitstreams();
|
||||
Bitstream bitstream = all[0];
|
||||
BitstreamFormat format = bitstream.getFormat();
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Uploaded File">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<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>
|
||||
|
||||
<%
|
||||
if (justUploaded)
|
||||
{
|
||||
%>
|
||||
<H1>Submit: File Uploaded Successfully</H1>
|
||||
|
||||
<P><strong>Your file was successfully uploaded.</strong></P>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<H1>Submit: Uploaded File</H1>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<P>Here are the details of the file you have uploaded. Please check the
|
||||
details before going to the next step. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#uploadedfile">(More Help...)</A></P>
|
||||
|
||||
<table class="miscTable" align=center>
|
||||
<tr>
|
||||
<th class="oddRowOddCol">File</th>
|
||||
<th class="oddRowEvenCol">Size</th>
|
||||
<th class="oddRowOddCol">File Format</th>
|
||||
<%
|
||||
if (showChecksums)
|
||||
{
|
||||
%>
|
||||
<th class="oddRowEvenCol">Checksum</th>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="evenRowOddCol"><A HREF="<%= request.getContextPath() %>/retrieve/<%= bitstream.getID() %>" target="_blank"><%= bitstream.getName() %></A></td>
|
||||
<td class="evenRowEvenCol"><%= bitstream.getSize() %> bytes</td>
|
||||
<td class="evenRowOddCol">
|
||||
<%
|
||||
String description = bitstream.getFormatDescription();
|
||||
String supportLevel = "supported";
|
||||
|
||||
if (format.getSupportLevel() == 1)
|
||||
{
|
||||
supportLevel = "known";
|
||||
}
|
||||
|
||||
if (format.getSupportLevel() == 0)
|
||||
{
|
||||
supportLevel = "unsupported";
|
||||
}
|
||||
%>
|
||||
<%= description %> <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/formats.html#<%= supportLevel %>">(<%= supportLevel %>)</A>
|
||||
</td>
|
||||
</td>
|
||||
<%
|
||||
if (showChecksums)
|
||||
{
|
||||
%>
|
||||
<td class="evenRowEvenCol">
|
||||
<code><%= bitstream.getChecksum() %> (<%= bitstream.getChecksumAlgorithm() %>)</code>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<center>
|
||||
<P>
|
||||
<input type=submit name="submit_format_<%= bitstream.getID() %>" value="Click here if this is the wrong format">
|
||||
</P>
|
||||
</center>
|
||||
|
||||
<center>
|
||||
<P>
|
||||
<input type=submit name="submit_remove_<%= bitstream.getID() %>" value="Click here if this is the wrong file">
|
||||
</P>
|
||||
</center>
|
||||
|
||||
<BR>
|
||||
<%-- Show information about how to verify correct upload --%>
|
||||
<P class="uploadHelp">You can verify that the file has been uploaded correctly by:</P>
|
||||
<UL class="uploadHelp">
|
||||
<LI class="uploadHelp">Clicking on the filename above. This will download the file in a
|
||||
new browser window, so that you can check the contents.</LI>
|
||||
<%
|
||||
if (showChecksums)
|
||||
{
|
||||
%>
|
||||
<LI class="uploadHelp">Comparing the checksum displayed above with a checksum worked out on
|
||||
your local computer. They should be exactly the same. <A target="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#checksum">Click
|
||||
here to find out how to do this.</A></LI>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<LI class="uploadHelp">The system can calculate a checksum you can verify. <A target="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#checksum">Click
|
||||
here for more information.</A> <input type=submit name=submit_show_checksums value="Show checksums"></LI>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</UL>
|
||||
<BR>
|
||||
|
||||
<%-- Hidden fields needed for submit servlet to know which item to deal with --%>
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.FILE_LIST %>>
|
||||
|
||||
<%-- HACK: Center used to align table; CSS and align=center ignored by some browsers --%>
|
||||
<center>
|
||||
<table border=0 width=80%>
|
||||
<tr>
|
||||
<td align=left>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_prev value="< Previous"> <input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
||||
|
66
dspace/jsp/submit/thesis-removed-workaround.jsp
Normal file
@@ -0,0 +1,66 @@
|
||||
<%--
|
||||
- thesis-removed-workaround.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Submission removed message - this is displayed when the user has checked
|
||||
- the "This is a thesis" option on the first submission page, had their
|
||||
- submission removed, used the back button to go back to the submission
|
||||
- page, and tried carry on. Normally this would result in an integrity error
|
||||
- since the workspace ID is no longer valid but in this special case we
|
||||
- will display a decent message.
|
||||
-
|
||||
- This page displays a message informing the user that theses are not
|
||||
- presently accepted in DSpace, and that their submission has been removed.
|
||||
- FIXME: MIT-SPECIFIC
|
||||
--%>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
<dspace:layout title="Submission Stopped">
|
||||
|
||||
<H1>Submission Stopped: Theses Not Accepted in DSpace</H1>
|
||||
|
||||
<P>Since DSpace does not accept theses, your submission has been stopped.
|
||||
To start submitting something else click below.</P>
|
||||
|
||||
<P align=center><strong><A HREF="<%= request.getContextPath() %>/submit">
|
||||
Start a new submission</A></P>
|
||||
|
||||
</dspace:layout>
|
85
dspace/jsp/submit/upload-error.jsp
Normal file
@@ -0,0 +1,85 @@
|
||||
<%--
|
||||
- upload-error.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- List of uploaded files
|
||||
-
|
||||
- Attributes to pass in to this page:
|
||||
- submission.info - the SubmissionInfo object
|
||||
-
|
||||
- FIXME: Merely iterates through bundles, treating all bit-streams as
|
||||
- separate documents. Shouldn't be a problem for early adopters.
|
||||
--%>
|
||||
|
||||
<%@ 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="Error Uploading File">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<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: Error Uploading File</H1>
|
||||
|
||||
<P>There was a problem uploading your file. Either the filename you entered
|
||||
was incorrect, or there was a network problem which prevented the file from
|
||||
reaching us correctly. Please try again.</P>
|
||||
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value="<%= SubmitServlet.UPLOAD_ERROR %>">
|
||||
<%-- HACK: <center> tag needed for broken Netscape 4.78 behaviour --%>
|
||||
<center>
|
||||
<P><input type=submit name=submit value="Retry Upload"></P>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
248
dspace/jsp/submit/upload-file-list.jsp
Normal file
@@ -0,0 +1,248 @@
|
||||
<%--
|
||||
- upload-file-list.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- List of uploaded files
|
||||
-
|
||||
- Attributes to pass in to this page:
|
||||
- submission.info - the SubmissionInfo object
|
||||
- just.uploaded - Boolean indicating if a file has just been uploaded
|
||||
- so a nice thank you can be displayed.
|
||||
- show.checksums - Boolean indicating whether to show checksums
|
||||
-
|
||||
- FIXME: Assumes each bitstream in a separate bundle.
|
||||
- Shouldn't be a problem for early adopters.
|
||||
--%>
|
||||
|
||||
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
|
||||
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
|
||||
<%@ page import="org.dspace.content.Bitstream" %>
|
||||
<%@ page import="org.dspace.content.BitstreamFormat" %>
|
||||
|
||||
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
|
||||
|
||||
|
||||
<%
|
||||
SubmissionInfo si =
|
||||
(SubmissionInfo) request.getAttribute("submission.info");
|
||||
|
||||
boolean justUploaded = ((Boolean) request.getAttribute("just.uploaded")).booleanValue();
|
||||
boolean showChecksums = ((Boolean) request.getAttribute("show.checksums")).booleanValue();
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Uploaded Files">
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method=post>
|
||||
|
||||
<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: <%= (justUploaded ? "File Uploaded Successfully" : "Uploaded Files") %></H1>
|
||||
|
||||
<%
|
||||
if (justUploaded)
|
||||
{
|
||||
%>
|
||||
<P><strong>Your file was successfully uploaded.</strong></P>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<P>The table below shows the files you have uploaded for this item. <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#uploadedfile">(More Help...)</A></P>
|
||||
|
||||
<table class="miscTable" align=center>
|
||||
<tr>
|
||||
<th class="oddRowOddCol">File</th>
|
||||
<th class="oddRowEvenCol">Size</th>
|
||||
<th class="oddRowOddCol">Description</th>
|
||||
<th class="oddRowEvenCol">File Format</th>
|
||||
<%
|
||||
if (showChecksums)
|
||||
{
|
||||
%>
|
||||
<th class="oddRowOddCol">Checksum</th>
|
||||
<%
|
||||
}
|
||||
|
||||
// Don't display last column ("Remove") in workflow mode
|
||||
if (!SubmitServlet.isWorkflow(si))
|
||||
{
|
||||
// Whether it's an odd or even column depends on whether we're showing checksums
|
||||
String column = (showChecksums ? "Even" : "Odd");
|
||||
%>
|
||||
<th class="oddRow<%= column %>Col"> </th>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
String row = "even";
|
||||
|
||||
Bitstream[] bitstreams = si.submission.getItem().getNonInternalBitstreams();
|
||||
|
||||
for (int i = 0; i < bitstreams.length; i++)
|
||||
{
|
||||
BitstreamFormat format = bitstreams[i].getFormat();
|
||||
String description = bitstreams[i].getFormatDescription();
|
||||
String supportLevel = "supported";
|
||||
|
||||
if(format.getSupportLevel() == 1)
|
||||
{
|
||||
supportLevel = "known";
|
||||
}
|
||||
|
||||
if(format.getSupportLevel() == 0)
|
||||
{
|
||||
supportLevel = "unsupported";
|
||||
}
|
||||
|
||||
%>
|
||||
<tr>
|
||||
<td class="<%= row %>RowOddCol"><A HREF="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>" target="_blank"><%= bitstreams[i].getName() %></A></td>
|
||||
<td class="<%= row %>RowEvenCol"><%= bitstreams[i].getSize() %> bytes</td>
|
||||
<td class="<%= row %>RowOddCol">
|
||||
<%= (bitstreams[i].getDescription() == null || bitstreams[i].getDescription().equals("")
|
||||
? "<em>None</em>"
|
||||
: bitstreams[i].getDescription()) %>
|
||||
<input type=submit name="submit_describe_<%= bitstreams[i].getID() %>" value="Change">
|
||||
</td>
|
||||
<td class="<%= row %>RowEvenCol">
|
||||
<%= description %> <A TARGET="dspace.help" HREF="<%= request.getContextPath() %>/help/formats.html#<%= supportLevel %>">(<%= supportLevel %>)</A>
|
||||
<input type=submit name="submit_format_<%= bitstreams[i].getID() %>" value="Change">
|
||||
</td>
|
||||
<%
|
||||
// Checksum
|
||||
if (showChecksums)
|
||||
{
|
||||
%>
|
||||
<td class="<%= row %>RowOddCol">
|
||||
<code><%= bitstreams[i].getChecksum() %> (<%= bitstreams[i].getChecksumAlgorithm() %>)</code>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
|
||||
// Don't display "remove" button in workflow mode
|
||||
if (!SubmitServlet.isWorkflow(si))
|
||||
{
|
||||
// Whether it's an odd or even column depends on whether we're showing checksums
|
||||
String column = (showChecksums ? "Even" : "Odd");
|
||||
%>
|
||||
<td class="<%= row %>Row<%= column %>Col">
|
||||
<input type=submit name="submit_remove_<%= bitstreams[i].getID() %>" value="Remove">
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
row = (row.equals("even") ? "odd" : "even");
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
|
||||
<%-- HACK: Need a space - is there a nicer way to do this than <BR> or a --%>
|
||||
<%-- blank <P>? --%>
|
||||
<BR>
|
||||
|
||||
<%-- Show information about how to verify correct upload, but not in workflow
|
||||
mode! --%>
|
||||
<%
|
||||
if (SubmitServlet.isWorkflow(si))
|
||||
{
|
||||
%>
|
||||
<P class="uploadHelp">You can verify that the file(s) have been uploaded correctly by:</P>
|
||||
<UL class="uploadHelp">
|
||||
<LI class="uploadHelp">Clicking on the filenames above. This will download the file in a
|
||||
new browser window, so that you can check the contents.</LI>
|
||||
<%
|
||||
if (showChecksums)
|
||||
{
|
||||
%>
|
||||
<LI class="uploadHelp">Comparing checksums displayed above with checksums worked out on
|
||||
your local computer. They should be exactly the same. <A target="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#checksum">Click
|
||||
here to find out how to do this.</A></LI>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<LI class="uploadHelp">The system can calculate a checksum you can verify. <A target="dspace.help" HREF="<%= request.getContextPath() %>/help/index.html#checksum">Click
|
||||
here for more information.</A> <input type=submit name=submit_show_checksums value="Show checksums"></LI>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</UL>
|
||||
|
||||
<BR>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<%-- Hidden fields needed for submit servlet to know which item to deal with --%>
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
<input type=hidden name=step value=<%= SubmitServlet.FILE_LIST %>>
|
||||
|
||||
<%-- HACK: Center used to align table; CSS and align=center ignored by some browsers --%>
|
||||
<center>
|
||||
<p><input type=submit name=submit_more value="Add Another File"></p>
|
||||
|
||||
<table border=0 width=80%>
|
||||
<tr>
|
||||
<td width="100%"> </td>
|
||||
<td>
|
||||
<input type=submit name=submit_prev value="< Previous">
|
||||
</td>
|
||||
<td>
|
||||
<input type=submit name=submit_next value="Next >">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align=right>
|
||||
<input type=submit name=submit_cancel value="Cancel/Save">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
</form>
|
||||
|
||||
</dspace:layout>
|
147
dspace/jsp/submit/verify-prune.jsp
Normal file
@@ -0,0 +1,147 @@
|
||||
<%--
|
||||
- verify-prune.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.
|
||||
--%>
|
||||
|
||||
<%--
|
||||
- Verify that it's OK to "prune" the item after changing the answer to a
|
||||
- question on the first page
|
||||
-
|
||||
- Attributes to pass in:
|
||||
- submission.info - the SubmissionInfo object
|
||||
- multiple.titles, published.before, multiple.files - Booleans, indicating
|
||||
- the user's choices on the initial questions page
|
||||
- will.remove.titles, will.remove.date, will.remove.files - Booleans,
|
||||
- indicating consequences of new answers to questions
|
||||
--%>
|
||||
|
||||
<%@ 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");
|
||||
|
||||
boolean multipleTitles = ((Boolean) request.getAttribute("multiple.titles")).booleanValue();
|
||||
boolean publishedBefore = ((Boolean) request.getAttribute("published.before")).booleanValue();
|
||||
boolean multipleFiles = ((Boolean) request.getAttribute("multiple.files")).booleanValue();
|
||||
|
||||
boolean willRemoveTitles = ((Boolean) request.getAttribute("will.remove.titles")).booleanValue();
|
||||
boolean willRemoveDate = ((Boolean) request.getAttribute("will.remove.date")).booleanValue();
|
||||
boolean willRemoveFiles = ((Boolean) request.getAttribute("will.remove.files")).booleanValue();
|
||||
|
||||
String buttonPressed = (String) request.getAttribute("button.pressed");
|
||||
%>
|
||||
|
||||
<dspace:layout locbar="nolink" navbar="off" parenttitle="Submit"
|
||||
title="Answers to Initial Questions Changed">
|
||||
|
||||
<H1>Submit: Caution</H1>
|
||||
|
||||
<P><strong>The changes you've made to the first "Describe Your Item" page
|
||||
will affect your submission:</strong></P>
|
||||
|
||||
<%
|
||||
if (willRemoveTitles)
|
||||
{
|
||||
%>
|
||||
<P>You've indicated that your submission does not have alternative titles,
|
||||
but you've already entered some. If you proceed with this change, the
|
||||
alternative titles you've entered will be removed.</P>
|
||||
<%
|
||||
}
|
||||
|
||||
if (willRemoveDate)
|
||||
{
|
||||
%>
|
||||
<P>You've indicated that your submission has not been published or publicly
|
||||
distributed before, but you've already entered a date for this. If you
|
||||
proceed, the date you've entered will be removed, and DSpace will assign
|
||||
a date.</P>
|
||||
<%
|
||||
}
|
||||
|
||||
if (willRemoveFiles)
|
||||
{
|
||||
%>
|
||||
<P>You've indicated that the item you're submitting consists of only a single
|
||||
file, but you've already uploaded more than one file. If you proceed, only
|
||||
the first file you uploaded will be kept, and the rest will be discarded by
|
||||
the system. (The files on your local hard drive will not be affected.)</P>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<P><strong>Are you sure you want to proceed with the changes?</strong></P>
|
||||
|
||||
<P> </P>
|
||||
|
||||
<form action="<%= request.getContextPath() %>/submit" method="POST">
|
||||
|
||||
<%-- Embed necessary information --%>
|
||||
<input type=hidden name="multiple_titles" value="<%= multipleTitles %>">
|
||||
<input type=hidden name="published_before" value="<%= publishedBefore %>">
|
||||
<input type=hidden name="multiple_files" value="<%= multipleFiles %>">
|
||||
<input type=hidden name="will_remove_titles" value="<%= willRemoveTitles %>">
|
||||
<input type=hidden name="will_remove_date" value="<%= willRemoveDate %>">
|
||||
<input type=hidden name="will_remove_files" value="<%= willRemoveFiles %>">
|
||||
|
||||
<%-- Pass through original button press --%>
|
||||
<input type=hidden name="<%= buttonPressed %>" value="true">
|
||||
|
||||
<input type=hidden name=step value="<%= SubmitServlet.VERIFY_PRUNE %>">
|
||||
<%= SubmitServlet.getSubmissionParameters(si) %>
|
||||
|
||||
<%-- Note: These submit buttons' names don't start with "submit", so the
|
||||
-- Previously passed in button will be picked up --%>
|
||||
<center>
|
||||
<table border=0 width=70%>
|
||||
<tr>
|
||||
<td align=left>
|
||||
<input type=submit name="proceed" value="Proceed With Changes">
|
||||
</td>
|
||||
<td align=right>
|
||||
<input type=submit name="do_not_proceed" value="Do Not Make the Changes">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</form>
|
||||
</dspace:layout>
|
2327
dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java
Normal file
75
dspace/src/org/dspace/app/webui/util/SubmissionInfo.java
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* SubmissionInfo.java
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.dspace.app.webui.util;
|
||||
|
||||
import org.dspace.content.Bitstream;
|
||||
import org.dspace.content.Bundle;
|
||||
import org.dspace.content.InProgressSubmission;
|
||||
|
||||
/**
|
||||
* Information about an item being editing with the submission UI
|
||||
*
|
||||
* @author Robert Tansley
|
||||
* @version $Revision$
|
||||
*/
|
||||
public class SubmissionInfo
|
||||
{
|
||||
/** The submission */
|
||||
public InProgressSubmission submission;
|
||||
|
||||
/** The step reached in the submission process (where the user can jump) */
|
||||
public int stepReached;
|
||||
|
||||
/** The element or element_qualifier to show more input boxes for */
|
||||
public String moreBoxesFor;
|
||||
|
||||
/** The element or element_qualifier to scroll to initially using anchor */
|
||||
public String jumpToField;
|
||||
|
||||
/** If true, something on the form is missing */
|
||||
public boolean missing;
|
||||
|
||||
/** Specific bundle we're dealing with */
|
||||
public Bundle bundle;
|
||||
|
||||
/** Specific bitstream we're dealing with */
|
||||
public Bitstream bitstream;
|
||||
}
|
@@ -40,7 +40,9 @@
|
||||
|
||||
package org.dspace.app.webui.util;
|
||||
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Enumeration;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
@@ -60,6 +62,7 @@ import org.dspace.eperson.EPerson;
|
||||
*/
|
||||
public class UIUtil
|
||||
{
|
||||
|
||||
/** log4j category */
|
||||
private static Logger log = Logger.getLogger(UIUtil.class);
|
||||
|
||||
@@ -90,6 +93,7 @@ public class UIUtil
|
||||
if (userID != null)
|
||||
{
|
||||
EPerson e = EPerson.find(c, userID.intValue());
|
||||
|
||||
Authenticate.loggedIn(c, request, e);
|
||||
}
|
||||
|
||||
@@ -103,7 +107,6 @@ public class UIUtil
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the current community location, that is, where the user "is".
|
||||
* This returns <code>null</code> if there is no location, i.e. "all of
|
||||
@@ -118,7 +121,6 @@ public class UIUtil
|
||||
return ((Community) request.getAttribute("dspace.community"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the current collection location, that is, where the user "is".
|
||||
* This returns null if there is no collection location, i.e. the
|
||||
@@ -133,7 +135,6 @@ public class UIUtil
|
||||
return ((Collection) request.getAttribute("dspace.collection"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Put the original request URL into the request object as an attribute
|
||||
* for later use. This is necessary because forwarding a request removes
|
||||
@@ -149,6 +150,7 @@ public class UIUtil
|
||||
if (orig == null)
|
||||
{
|
||||
String fullURL = request.getServletPath();
|
||||
|
||||
if (request.getQueryString() != null)
|
||||
{
|
||||
fullURL = fullURL + "?" + request.getQueryString();
|
||||
@@ -158,7 +160,6 @@ public class UIUtil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the original request URL.
|
||||
*
|
||||
@@ -174,8 +175,6 @@ public class UIUtil
|
||||
return ((String) request.getAttribute("dspace.original.url"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Utility method to convert spaces in a string to HTML non-break space
|
||||
* elements.
|
||||
@@ -191,6 +190,7 @@ public class UIUtil
|
||||
for (int i = 0; i < s.length(); i++)
|
||||
{
|
||||
char ch = s.charAt(i);
|
||||
|
||||
if (ch == ' ')
|
||||
{
|
||||
newString.append(" ");
|
||||
@@ -204,7 +204,6 @@ public class UIUtil
|
||||
return newString.toString();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Write a human-readable version of a DCDate.
|
||||
*
|
||||
@@ -286,4 +285,114 @@ public class UIUtil
|
||||
|
||||
return (sb.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a string for logging, containing useful information about the
|
||||
* current request - the URL, the method and parameters.
|
||||
*
|
||||
* @param request the request object.
|
||||
* @return a multi-line string containing information about
|
||||
* the request.
|
||||
*/
|
||||
public static String getRequestLogInfo(HttpServletRequest request)
|
||||
{
|
||||
String report;
|
||||
|
||||
report = "-- URL Was: " + getOriginalURL(request) + "\n";
|
||||
report = report + "-- Method: " + request.getMethod() + "\n";
|
||||
|
||||
// First write the parameters we had
|
||||
report = report + "-- Parameters were:\n";
|
||||
Enumeration e = request.getParameterNames();
|
||||
|
||||
while (e.hasMoreElements())
|
||||
{
|
||||
String name = (String) e.nextElement();
|
||||
|
||||
if (name.equals("login_password"))
|
||||
{
|
||||
// We don't want to write a clear text password
|
||||
// to the log, even if it's wrong!
|
||||
report = report + "-- " + name + ": *not logged*\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
report = report + "-- " + name + ": \"" + request.getParameter(name) + "\"\n";
|
||||
}
|
||||
}
|
||||
|
||||
return report;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Obtain a parameter from the given request as an int. <code>-1</code>
|
||||
* is returned if the parameter is garbled or does not exist.
|
||||
*
|
||||
* @param request the HTTP request
|
||||
* @param param the name of the parameter
|
||||
*
|
||||
* @return the integer value of the parameter, or -1
|
||||
*/
|
||||
public static int getIntParameter(HttpServletRequest request, String param)
|
||||
{
|
||||
String val = request.getParameter(param);
|
||||
|
||||
try
|
||||
{
|
||||
return Integer.parseInt(val);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Problem with parameter
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Obtain a parameter from the given request as a boolean.
|
||||
* <code>false</code> is returned if the parameter is garbled or does not
|
||||
* exist.
|
||||
*
|
||||
* @param request the HTTP request
|
||||
* @param param the name of the parameter
|
||||
*
|
||||
* @return the integer value of the parameter, or -1
|
||||
*/
|
||||
public static boolean getBoolParameter(HttpServletRequest request,
|
||||
String param)
|
||||
{
|
||||
return (request.getParameter(param) != null &&
|
||||
request.getParameter(param).equals("true"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the button the user pressed on a submitted form. All buttons
|
||||
* should start with the text <code>submit</code> for this to work.
|
||||
* A default should be supplied, since often the browser will submit a form
|
||||
* with no submit button pressed if the user presses enter.
|
||||
*
|
||||
* @param request the HTTP request
|
||||
* @param def the default button
|
||||
*
|
||||
* @return the button pressed
|
||||
*/
|
||||
public static String getSubmitButton(HttpServletRequest request, String def)
|
||||
{
|
||||
Enumeration e = request.getParameterNames();
|
||||
|
||||
while (e.hasMoreElements())
|
||||
{
|
||||
String parameterName = (String) e.nextElement();
|
||||
|
||||
if (parameterName.startsWith("submit"))
|
||||
{
|
||||
return parameterName;
|
||||
}
|
||||
}
|
||||
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
145
dspace/src/org/dspace/content/DCLanguage.java
Normal file
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* DCLanguage.java
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.dspace.content;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
|
||||
/**
|
||||
* Utility class for dealing with languages
|
||||
*
|
||||
* @author Robert Tansley
|
||||
* @version $Revision$
|
||||
*/
|
||||
public class DCLanguage
|
||||
{
|
||||
|
||||
/** The country code */
|
||||
private String country;
|
||||
|
||||
/** The language code. Special values: "" and "other". */
|
||||
private String language;
|
||||
|
||||
/**
|
||||
* Construct a language object from a database entry
|
||||
*
|
||||
* @param l the language text from the database
|
||||
*/
|
||||
public DCLanguage(String l)
|
||||
{
|
||||
setLanguage(l);
|
||||
}
|
||||
|
||||
/**
|
||||
* Write the language out to the database
|
||||
*
|
||||
* @return the language in a form for writing to the DCValue table
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
if (language.equals(""))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else if (country.equals(""))
|
||||
{
|
||||
return language;
|
||||
}
|
||||
else
|
||||
{
|
||||
return country + "_" + language;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the language and country
|
||||
*
|
||||
* @param l The language and country code, e.g. "en_US" or "fr"
|
||||
*/
|
||||
public void setLanguage(String l)
|
||||
{
|
||||
if (l.equals("other"))
|
||||
{
|
||||
language = "other";
|
||||
country = "";
|
||||
}
|
||||
else if (l.length() == 2)
|
||||
{
|
||||
language = l;
|
||||
country = "";
|
||||
}
|
||||
else if (l.length() == 5)
|
||||
{
|
||||
language = l.substring(0, 2);
|
||||
country = l.substring(3);
|
||||
}
|
||||
else
|
||||
{
|
||||
language = "";
|
||||
country = "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the displayable name for this language
|
||||
*
|
||||
* @return the displayable name
|
||||
*/
|
||||
public String getDisplayName()
|
||||
{
|
||||
Locale locale;
|
||||
|
||||
if (language.equals("other"))
|
||||
{
|
||||
return "(Other)";
|
||||
}
|
||||
else if (language.equals(""))
|
||||
{
|
||||
return "N/A";
|
||||
}
|
||||
else
|
||||
{
|
||||
locale = new Locale(language, country);
|
||||
return locale.getDisplayName();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
137
dspace/src/org/dspace/content/DCSeriesNumber.java
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* SeriesNumber.java
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.dspace.content;
|
||||
|
||||
|
||||
/**
|
||||
* Series and report number, as stored in relation.ispartofseries
|
||||
*
|
||||
* @author Robert Tansley
|
||||
* @version $Id$
|
||||
*/
|
||||
public class DCSeriesNumber
|
||||
{
|
||||
/** Series */
|
||||
private String series;
|
||||
|
||||
/** Number */
|
||||
private String number;
|
||||
|
||||
/** Construct clean series number */
|
||||
public DCSeriesNumber()
|
||||
{
|
||||
series = null;
|
||||
number = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct from raw DC value
|
||||
*
|
||||
* @param value value from database
|
||||
*/
|
||||
public DCSeriesNumber(String value)
|
||||
{
|
||||
this();
|
||||
|
||||
int semicolon = -1;
|
||||
|
||||
if (value != null) semicolon = value.indexOf(';');
|
||||
|
||||
if (semicolon >= 0)
|
||||
{
|
||||
series = value.substring(0, semicolon);
|
||||
number = value.substring(semicolon + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
series = value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct from given values
|
||||
*
|
||||
* @param s the series
|
||||
* @param n the number
|
||||
*/
|
||||
public DCSeriesNumber(String s, String n)
|
||||
{
|
||||
series = s;
|
||||
number = n;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write as raw DC value
|
||||
*
|
||||
* @return the series and number as they should be stored in the DB
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
if (series == null)
|
||||
{
|
||||
return (null);
|
||||
}
|
||||
else if (number == null)
|
||||
{
|
||||
return (series);
|
||||
}
|
||||
else
|
||||
{
|
||||
return (series + ";" + number);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the series name - guaranteed non-null
|
||||
*/
|
||||
public String getSeries()
|
||||
{
|
||||
return (series == null ? "" : series);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number - guaranteed non-null
|
||||
*/
|
||||
public String getNumber()
|
||||
{
|
||||
return (number == null ? "" : number);
|
||||
}
|
||||
}
|
122
dspace/src/org/dspace/content/FormatIdentifier.java
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* FormatIdentifier.java
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.dspace.content;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import org.dspace.core.Context;
|
||||
import org.dspace.core.LogManager;
|
||||
import org.dspace.storage.rdbms.DatabaseManager;
|
||||
import org.dspace.storage.rdbms.TableRow;
|
||||
import org.dspace.storage.rdbms.TableRowIterator;
|
||||
|
||||
|
||||
/**
|
||||
* This class handles the recognition of bitstream formats, using the format
|
||||
* registry in the database. For the moment, the format identifier simply
|
||||
* uses file extensions stored in the "BitstreamFormatIdentifier" table.
|
||||
* This probably isn't a particularly satisfactory long-term solution.
|
||||
*
|
||||
* @author Robert Tansley
|
||||
* @version $Revision$
|
||||
*/
|
||||
public class FormatIdentifier
|
||||
{
|
||||
/**
|
||||
* Attempt to identify the format of a particular bitstream. If the format
|
||||
* is unknown, null is returned.
|
||||
*
|
||||
* @param bitstream the bitstream to identify the format of
|
||||
*
|
||||
* @return a format from the bitstream format registry, or null
|
||||
*/
|
||||
public static BitstreamFormat guessFormat(Context context,
|
||||
Bitstream bitstream)
|
||||
throws SQLException
|
||||
{
|
||||
// FIXME: Just setting format to first guess
|
||||
// For now just get the file name
|
||||
String filename = bitstream.getName().toLowerCase();
|
||||
|
||||
// Gracefully handle the null case
|
||||
if (filename == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// This isn't rocket science. We just get the name of the
|
||||
// bitstream, get the extension, and see if we know the type.
|
||||
String extension = filename;
|
||||
int lastDot = filename.lastIndexOf('.');
|
||||
|
||||
if (lastDot != -1)
|
||||
{
|
||||
extension = filename.substring(lastDot + 1);
|
||||
}
|
||||
|
||||
// If the last character was a dot, then extension will now be
|
||||
// an empty string. If this is the case, we don't know what
|
||||
// file type it is.
|
||||
if (extension.equals(""))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// See if the extension is in the BitstreamFormatIdentifier table
|
||||
TableRowIterator tri = DatabaseManager.query(context,
|
||||
"SELECT bitstreamformatregistry.* FROM bitstreamformatregistry, " +
|
||||
"formatidentifier WHERE formatidentifier.extension LIKE '" +
|
||||
extension +"'");
|
||||
|
||||
if (tri.hasNext())
|
||||
{
|
||||
// Return first match
|
||||
return new BitstreamFormat(context, tri.next());
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
@@ -812,7 +812,7 @@ public class Item
|
||||
{
|
||||
Bitstream[] bitstreams = bundles[i].getBitstreams();
|
||||
|
||||
for (int j = 0; j < bundles.length; j++)
|
||||
for (int j = 0; j < bitstreams.length; j++)
|
||||
{
|
||||
if (!bitstreams[j].getFormat().isInternal())
|
||||
{
|
||||
|
@@ -307,7 +307,7 @@ public class ConfigurationManager
|
||||
|
||||
while ((lineIn = br.readLine()) != null)
|
||||
{
|
||||
license = license + lineIn;
|
||||
license = license + lineIn + '\n';
|
||||
}
|
||||
|
||||
is.close();
|
||||
|