Files
DSpace/dspace/jsp/submit/initial-questions.jsp
2006-03-27 05:24:03 +00:00

191 lines
8.0 KiB
Plaintext

<%--
- initial-questions.jsp
-
- Version: $Revision$
-
- Date: $Date$
-
- Copyright (c) 2002, 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
- submission.inputs - the DCInputSet object
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"
prefix="fmt" %>
<%@ page import="org.dspace.app.webui.servlet.SubmitServlet" %>
<%@ page import="org.dspace.app.webui.util.SubmissionInfo" %>
<%@ page import="org.dspace.app.webui.util.DCInputSet" %>
<%@ page import="org.dspace.core.ConfigurationManager" %>
<%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %>
<%
SubmissionInfo si =
(SubmissionInfo) request.getAttribute("submission.info");
DCInputSet inputSet =
(DCInputSet) request.getAttribute("submission.inputs");
%>
<dspace:layout locbar="off"
navbar="off"
titlekey="jsp.submit.initial-questions.title"
nocache="true">
<form action="<%= request.getContextPath() %>/submit" method="post">
<jsp:include page="/submit/progressbar.jsp">
<jsp:param name="current_stage" value="<%= SubmitServlet.INITIAL_QUESTIONS %>"/>
<jsp:param name="stage_reached" value="<%= SubmitServlet.getStepReached(si) %>"/>
<jsp:param name="md_pages" value="<%= si.numMetadataPages %>"/>
</jsp:include>
<%-- <h1>Submit: Describe Your Item</h1> --%>
<h1><fmt:message key="jsp.submit.initial-questions.heading"/></h1>
<%-- <p>Please check the boxes next to the statements that apply to your
submission.
<object><dspace:popup page="/help/index.html#describe1">(More Help...)</dspace:popup></object></p> --%>
<div><fmt:message key="jsp.submit.initial-questions.info" />
<dspace:popup page="/help/index.html#describe1"><fmt:message key="jsp.morehelp"/></dspace:popup></div>
<center>
<table class="miscTable">
<%
// Don't display MultipleTitles if no such form box defined
if (inputSet.isDefinedMultTitles())
{
%>
<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> --%>
<td class="submitFormLabel" nowrap="nowrap"><fmt:message key="jsp.submit.initial-questions.elem1"/></td>
</tr>
</table>
</td>
</tr>
<%
}
// Don't display PublishedBefore if no form boxes defined
if (inputSet.isDefinedPubBefore())
{
%>
<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> --%>
<td class="submitFormLabel" nowrap="nowrap"><fmt:message key="jsp.submit.initial-questions.elem2"/></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> --%>
<td class="submitFormLabel" nowrap="nowrap"><fmt:message key="jsp.submit.initial-questions.elem3"/></td>
</tr>
</table>
</td>
</tr>
<%
if (ConfigurationManager.getBooleanProperty("webui.submit.blocktheses"))
{
%>
<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> --%>
<td class="submitFormLabel" nowrap="nowrap"><fmt:message key="jsp.submit.initial-questions.elem4"/></td>
</tr>
</table>
</td>
</tr>
<%
}
}
%>
</table>
</center>
<p>&nbsp;</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%">&nbsp;
</td>
<td>
<%-- <input type="submit" name="submit_next" value="Next &gt;"> --%>
<input type="submit" name="submit_next" value="<fmt:message key="jsp.submit.general.next"/>" />
</td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td align="right">
<%-- <input type="submit" name="submit_cancel" value="Cancel/Save"> --%>
<input type="submit" name="submit_cancel" value="<fmt:message key="jsp.submit.general.cancel-or-save.button"/>" />
</td>
</tr>
</table>
</center>
</form>
</dspace:layout>