initial-questions.jsp

Date HTML Created

25 Jan 2008

<%-- - initial-questions.jsp - - Version: $Revision: 1.13 $ - - Date: $Date: 2006/03/27 05:24:02 $ - - 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.core.Context" %> <%@ page import="org.dspace.app.webui.servlet.SubmissionController" %> <%@ page import="org.dspace.submit.step.SubmissionStep" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.app.webui.util.DCInputSet" %> <%@ page import="org.dspace.app.webui.util.SubmissionInfo" %> <%@ page import="org.dspace.core.ConfigurationManager" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <% DCInputSet inputSet = (DCInputSet) request.getAttribute("submission.inputs"); // Obtain DSpace context Context context = UIUtil.obtainContext(request); //get submission information object SubmissionInfo subInfo = SubmissionController.getSubmissionInfo(context, request); %> <dspace:layout locbar="off" navbar="off" titlekey="jsp.submit.initial-questions.title" nocache="true"> <form action="<%= request.getContextPath() %>/submit" method="post" onkeydown="return disableEnterKey(event);"> <jsp:include page="/submit/progressbar.jsp" /> <%-- <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" <%= (subInfo.getSubmissionItem().hasMultipleTitles() ? "checked='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" <%= (subInfo.getSubmissionItem().isPublishedBefore() ? "checked='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 (!subInfo.isInWorkflow()) { %> <tr class="oddRowOddCol"> <td class="oddRowOddCol" align="left"> <table border="0"> <tr> <td valign="top"><input type="checkbox" name="multiple_files" value="true" <%= (subInfo.getSubmissionItem().hasMultipleFiles() ? "checked='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 SubmissionController servlet to know which step is next--%> <%= SubmissionController.getSubmissionParameters(context, request) %> <center> <table border="0" width="80%"> <tr> <td width="100%">&nbsp;</td> <% //if not first step, show "Previous" button if(!SubmissionController.isFirstStep(request, subInfo)) { %> <td> <input type="submit" name="<%=SubmissionStep.PREVIOUS_BUTTON%>" value="<fmt:message key="jsp.submit.general.previous"/>" /> </td> <% } %> <td> <input type="submit" name="<%=SubmissionStep.NEXT_BUTTON%>" value="<fmt:message key="jsp.submit.general.next"/>" /> </td> <td>&nbsp;&nbsp;&nbsp;</td> <td align="right"> <input type="submit" name="<%=SubmissionStep.CANCEL_BUTTON%>" value="<fmt:message key="jsp.submit.general.cancel-or-save.button"/>" /> </td> </tr> </table> </center> </form> </dspace:layout>