Edit C:\apache-tomcat-7.0.69\webapps\jspui\dspace-admin\list-formats.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/ --%> <%-- - Display list of bitstream formats - - Attributes: - - formats - the bitstream formats in the system (BitstreamFormat[]) --%> <%@ 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="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.content.BitstreamFormat" %> <%@ page import="org.dspace.core.Context"%> <%@ page import="org.dspace.app.webui.util.UIUtil"%> <%@ page import="java.util.List" %> <%@ page import="java.lang.StringBuilder" %> <%@ page import="org.dspace.content.service.BitstreamFormatService" %> <%@ page import="org.dspace.content.factory.ContentServiceFactory" %> <% BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance().getBitstreamFormatService(); List<BitstreamFormat> formats = (List<BitstreamFormat>) request.getAttribute("formats"); %> <dspace:layout style="submission" titlekey="jsp.dspace-admin.list-formats.title" navbar="admin" locbar="link" parenttitlekey="jsp.administer" parentlink="/dspace-admin"> <h1> <fmt:message key="jsp.dspace-admin.list-formats.title"/> <dspace:popup page='<%= LocaleSupport.getLocalizedMessage(pageContext, "help.site-admin") + "#bitstream"%>'> <fmt:message key="jsp.help"/> </dspace:popup> </h1> <p class="alert alert-info"><fmt:message key="jsp.dspace-admin.list-formats.text1"/></p> <p class="alert alert-info"><fmt:message key="jsp.dspace-admin.list-formats.text2"/></p> <% Context context = UIUtil.obtainContext(request); %> <table class="table" summary="Bitstream Format Registry data table"> <tr> <th class="oddRowOddCol"> <span class="col-md-offset-3"> <strong> <fmt:message key="jsp.general.id" /> / <fmt:message key="jsp.dspace-admin.list-formats.mime"/> / <fmt:message key="jsp.dspace-admin.list-formats.name"/> / <fmt:message key="jsp.dspace-admin.list-formats.description"/> / <fmt:message key="jsp.dspace-admin.list-formats.support"/> / <fmt:message key="jsp.dspace-admin.list-formats.internal"/> / <fmt:message key="jsp.dspace-admin.list-formats.extensions"/> </strong> </span> </th> </tr> <% String row = "even"; for (BitstreamFormat format : formats) { List<String> extensions = format.getExtensions(); StringBuilder extValueBuilder = new StringBuilder(256); if (null != extensions) { for (String extension : extensions) { if (extValueBuilder.length() > 0) { extValueBuilder.append(", "); } extValueBuilder.append(extension); } } String extValue = extValueBuilder.toString(); %> <tr> <td> <form class="form-inline" method="post" action=""> <span class="col-md-1"><%= format.getID() %></span> <div class="form-group"> <label class="sr-only" for="mimetype"> <fmt:message key="jsp.dspace-admin.list-formats.mime"/> </label> <input class="form-control" type="text" name="mimetype" value='<%= format.getMIMEType()!=null?format.getMIMEType():"" %>' size="14" placeholder='<fmt:message key="jsp.dspace-admin.list-formats.mime"/>'/> </div> <div class="form-group"> <label class="sr-only" for="short_description"> <fmt:message key="jsp.dspace-admin.list-formats.name"/> </label> <% if (bitstreamFormatService.findUnknown(context).getID() == format.getID()) { %> <span class="form-control"><i><%= format.getShortDescription() %></i></span> <% } else { %> <input class="form-control" type="text" name="short_description" value='<%= format.getShortDescription()!=null?format.getShortDescription():"" %>' size="10" placeholder='<fmt:message key="jsp.dspace-admin.list-formats.name"/>'/> <% } %> </div> <div class="form-group"> <label class="sr-only" for="description"> <fmt:message key="jsp.dspace-admin.list-formats.description"/> </label> <input class="form-control" type="text" name="description" value='<%= format.getDescription()!=null?format.getDescription():"" %>' size="20" placeholder='<fmt:message key="jsp.dspace-admin.list-formats.description"/>'/> </div> <div class="form-group"> <select class="form-control" name="support_level"> <option value="0" <%= format.getSupportLevel() == 0 ? "selected=\"selected\"" : "" %>> <fmt:message key="jsp.dspace-admin.list-formats.unknown"/> </option> <option value="1" <%= format.getSupportLevel() == 1 ? "selected=\"selected\"" : "" %>> <fmt:message key="jsp.dspace-admin.list-formats.known"/> </option> <option value="2" <%= format.getSupportLevel() == 2 ? "selected=\"selected\"" : "" %>> <fmt:message key="jsp.dspace-admin.list-formats.supported"/> </option> </select> </div> <div class="form-group"> <input class="form-control" type="checkbox" name="internal" value="true" <%= format.isInternal() ? " checked=\"checked\"" : "" %>/> </div> <div class="form-group"> <label class="sr-only" for="extensions"> <fmt:message key="jsp.dspace-admin.list-formats.extensions"/> </label> <input class="form-control" type="text" name="extensions" value="<%= extValue %>" size="10" placeholder='<fmt:message key="jsp.dspace-admin.list-formats.extensions"/>'/> </div> <div class="btn-group pull-right"> <input type="hidden" name="format_id" value="<%= format.getID() %>" /> <input class="btn btn-primary" type="submit" name="submit_update" value='<fmt:message key="jsp.dspace-admin.general.update"/>'/> <% if (bitstreamFormatService.findUnknown(context).getID() != format.getID()) { %> <input class="btn btn-danger" type="submit" name="submit_delete" value='<fmt:message key="jsp.dspace-admin.general.delete-w-confirm"/>' /> <% } %> </div> </form> </td> </tr> <% row = (row.equals("odd") ? "even" : "odd"); } %> </table> <form method="post" action=""> <input class="btn btn-success col-md-offset-5" type="submit" name="submit_add" value='<fmt:message key="jsp.dspace-admin.general.addnew"/>' /> </form> </dspace:layout>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de