<%-- - 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; %>

Submit: Describe Your Item

Please fill further information about your submission below. (More Help...)

<%-- HACK: a
tag seems to be the only way to convince certain --%> <%-- browsers to center the table. --%>
<%-- ================================================ --%> <%-- Subject keywords --%> <%-- ================================================ --%> <% 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) { %> <%-- HACK: nowrap used since browsers do not act on "white-space" CSS property --%> <% if (i == 0) { %> <% } else { %> <% } %> <% } %> <%-- ================================================ --%> <%-- Abstract --%> <%-- ================================================ --%> <% // FIXME: (Maybe) assume one abstract DCValue[] abstrArray = item.getDC("description", "abstract", Item.ANY); String abstr = (abstrArray.length > 0 ? abstrArray[0].value : ""); %> <%-- ================================================ --%> <%-- Sponsorship --%> <%-- ================================================ --%> <% DCValue[] sponsorArray = item.getDC("description", "sponsorship", Item.ANY); String sponsorship = (sponsorArray.length > 0 ? sponsorArray[0].value : ""); %> <%-- ================================================ --%> <%-- Other Description --%> <%-- ================================================ --%> <% DCValue[] descArray = item.getDC("description", null, Item.ANY); String desc = (descArray.length > 0 ? descArray[0].value : ""); %>
<% if (si.jumpToField != null && si.jumpToField.equals("subject")) { %> <% } %> Enter appropriate subject keywords or phrases below.
Subject Keywords  <% if (i < subjects.length) { %>   <% } else { %> <% } %>    <% if (i + 1 < subjects.length) { %>   <% } else if (i + 2 >= subjectFieldCount) { %>   <% } else { %> <% } %>
 
Enter the abstract of the item below.
Abstract
 
Enter the names of any sponsors and/or funding codes in the box below.
Sponsors
 
Enter any other description or comments in this box.
Description
<%-- HACK: Need a space - is there a nicer way to do this than
or a --%> <%-- blank

? --%>

 

<%-- Hidden fields needed for submit servlet to know which item to deal with --%> <%= SubmitServlet.getSubmissionParameters(si) %> >