<%-- The contents of this file are subject to the license and copyright detailed in the LICENSE and NOTICE files at the root of the source tree and available online at http://www.dspace.org/license/ --%> <%-- - Select type of uploaded file - - Attributes to pass in to this page: - 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 contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.core.Context" %> <%@ page import="org.dspace.app.webui.servlet.SubmissionController" %> <%@ page import="org.dspace.app.util.SubmissionInfo" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.content.Bitstream" %> <%@ page import="org.dspace.content.BitstreamFormat" %> <%@ page import="org.dspace.content.Bundle" %> <%@ page import="org.dspace.content.Item" %> <%@ page import="java.util.List" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <% request.setAttribute("LanguageSwitch", "hide"); // Obtain DSpace context Context context = UIUtil.obtainContext(request); //get submission information object SubmissionInfo subInfo = SubmissionController.getSubmissionInfo(context, request); //retrieve attributes from request BitstreamFormat guess = (BitstreamFormat) request.getAttribute("guessed.format"); List formats = (List) request.getAttribute("bitstream.formats"); Item item = subInfo.getSubmissionItem().getItem(); %>
<%--

Submit: Select File Format

--%>

">

<%--

Uploaded file: <%= si.bitstream.getName() %> (<%= si.bitstream.getSize() %> bytes)

--%>

<%= subInfo.getBitstream().getName() %> <%= String.valueOf(subInfo.getBitstream().getSize()) %>

<% if (guess == null) { %> <%--

DSpace could not identify the format of this file.

--%>

<% } else { %> <%--

DSpace recognized the file format as <%= guess.getShortDescription() %>. Please be sure before you change this!

--%>

<%= guess.getShortDescription() %>

<%-- Hidden fields needed for SubmissionController servlet to know which step is next--%> <%= SubmissionController.getSubmissionParameters(context, request) %> <%--

--%>

" />

<%-- Option list put in a separate form --%>
<% } %> <%--

Select the format of the file from the list below, for example "Adobe PDF" or "Microsoft Word", OR if the format is not in the list, please describe the format file in the input box below the list.

--%>
<%--

If the format is not in the above list, 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").

--%>

<%-- File Format: --%> <% String desc = subInfo.getBitstream().getUserFormatDescription(); if (desc == null) { desc = ""; } %>

<%-- Hidden fields needed for SubmissionController servlet to know which step is next--%> <%= SubmissionController.getSubmissionParameters(context, request) %> <%--

--%> " />