Edit C:\apache-tomcat-7.0.69\webapps\jspui\dspace-admin\batchmetadataimport.jsp
<%-- 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/ --%> <%-- - Form to upload a csv metadata file --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="java.util.List" %> <%@ page import="org.dspace.content.Collection" %> <% List<String> inputTypes = (List<String>)request.getAttribute("input-types"); List<Collection> collections = (List<Collection>)request.getAttribute("collections"); String hasErrorS = (String)request.getAttribute("has-error"); boolean hasError = (hasErrorS==null) ? true : (Boolean.parseBoolean((String)request.getAttribute("has-error"))); String message = (String)request.getAttribute("message"); %> <dspace:layout style="submission" titlekey="jsp.dspace-admin.batchmetadataimport.title" navbar="admin" locbar="link" parenttitlekey="jsp.administer" parentlink="/dspace-admin" nocache="true"> <h1><fmt:message key="jsp.dspace-admin.batchmetadataimport.title"/></h1> <% if (hasErrorS == null){ } else if (hasError && message!=null){ %> <%= message %> <% } else if (hasError && message==null){ %> <div class="alert alert-warning"><fmt:message key="jsp.dspace-admin.batchmetadataimport.genericerror"/></div> <% } else { %> <div class="alert alert-info"><fmt:message key="jsp.dspace-admin.batchmetadataimport.success"/></div> <% } %> <form method="post" enctype="multipart/form-data" action=""> <div class="form-group"> <label for="file"><fmt:message key="jsp.dspace-admin.batchmetadataimport.selectfile"/></label> <input class="form-control" type="file" size="40" name="file"/> </div> <div class="form-group"> <label for="inputType"><fmt:message key="jsp.dspace-admin.batchmetadataimport.selectinputfile"/></label> <select class="form-control" name="inputType"> <% for (String inputType : inputTypes){ %> <option value="<%= inputType %>"><%= inputType %></option> <% } %> </select> </div> <div class="form-group"> <label for="collection"><fmt:message key="jsp.dspace-admin.batchmetadataimport.selectcollection"/></label> <select class="form-control" name="collection"> <% for (Collection collection : collections){ %> <option value="<%= collection.getID() %>"><%= collection.getName() %></option> <% } %> </select> </div> <input class="btn btn-success" type="submit" name="submit" value="<fmt:message key="jsp.dspace-admin.general.upload"/>" /> </form> </dspace:layout>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de