Edit C:\apache-tomcat-7.0.69\webapps\jspui\workspace\ws-main.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/ --%> <%-- - Workspace Options page, so the user may edit, view, add notes to or remove - the workspace item - - Attributes: - wsItem - WorkspaceItem containing the current item to be worked on --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ page import="org.dspace.app.webui.servlet.MyDSpaceServlet" %> <%@ page import="org.dspace.content.Item" %> <%@ page import="org.dspace.content.WorkspaceItem" %> <%@ page import="org.dspace.eperson.EPerson" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.core.Utils" %> <%@ page import="org.dspace.content.MetadataValue" %> <%@ page import="java.util.List" %> <%@ page import="org.dspace.content.factory.ContentServiceFactory" %> <% // get the workspace item from the request WorkspaceItem workspaceItem = (WorkspaceItem) request.getAttribute("wsItem"); // get the title and submitter of the item List<MetadataValue> titleArray = ContentServiceFactory.getInstance().getItemService().getMetadata(workspaceItem.getItem(), "dc", "title", null, Item.ANY); // String title = (titleArray.length > 0 ? titleArray[0].value : "Untitled"); EPerson submitter = workspaceItem.getItem().getSubmitter(); %> <dspace:layout locbar="link" parentlink="/mydspace" parenttitlekey="jsp.mydspace" titlekey="jsp.workspace.ws-main.title"> <div class="container"> <h2> <% if (titleArray.size() > 0) { %> <%= titleArray.get(0).getValue() %> <% } else { %> <fmt:message key="jsp.general.untitled"/> <% } %> <small><fmt:message key="jsp.workspace.ws-main.wsitem"/></small> <dspace:popup page="<%= LocaleSupport.getLocalizedMessage(pageContext, \"help.index\") + \"#mydspace\"%>"><fmt:message key="jsp.help"/></dspace:popup> </h2> <p><a href="mailto:<%= submitter.getEmail() %>"><%= Utils.addEntities(submitter.getFullName()) %></a></p> <p><fmt:message key="jsp.workspace.ws-main.submitmsg"/> <%= workspaceItem.getCollection().getName() %></p> <table class="table"> <tr> <th class="oddRowOddCol"><fmt:message key="jsp.workspace.ws-main.optionheading"/></th> <th class="oddRowEvenCol"><fmt:message key="jsp.workspace.ws-main.descheading"/></th> </tr> <tr> <td class="evenRowOddCol" align="center"> <form action="<%= request.getContextPath() %>/mydspace" method="post"> <input type="hidden" name="step" value="<%= MyDSpaceServlet.MAIN_PAGE %>"/> <input type="hidden" name="workspace_id" value="<%= workspaceItem.getID() %>"/> <input type="hidden" name="resume" value="<%= workspaceItem.getID() %>"/> <input class="col-md-2 btn btn-primary btn-group-justified" type="submit" name="submit_resume" value="<fmt:message key="jsp.workspace.ws-main.button.edit"/>"/> </form> </td> <td class="evenRowEvenCol"> <fmt:message key="jsp.workspace.ws-main.editmsg"/> </td> </tr> <tr> <td class="oddRowOddCol" align="center"> <form action="<%= request.getContextPath() %>/view-workspaceitem" method="post"> <input type="hidden" name="workspace_id" value="<%= workspaceItem.getID() %>"/> <input class="col-md-2 btn btn-default btn-group-justified" type="submit" name="submit_view" value="<fmt:message key="jsp.workspace.ws-main.button.view"/>"/> </form> </td> <td class="oddRowEvenCol"> <fmt:message key="jsp.workspace.ws-main.viewmsg"/> </td> </tr> <tr> <td class="evenRowOddCol" align="center"> <form action="<%= request.getContextPath() %>/mydspace" method="post"> <input type="hidden" name="step" value="<%= MyDSpaceServlet.MAIN_PAGE %>"/> <input type="hidden" name="workspace_id" value="<%= workspaceItem.getID() %>"/> <input class="col-md-2 btn btn-danger btn-group-justified" type="submit" name="submit_delete" value="<fmt:message key="jsp.workspace.ws-main.button.remove"/>"/> </form> </td> <td class="evenRowEvenCol"> <fmt:message key="jsp.workspace.ws-main.removemsg"/> </td> </tr> </table> <p><a href="<%= request.getContextPath() %>/mydspace"><fmt:message key="jsp.mydspace.general.returnto-mydspace"/></a></p> </div> </dspace:layout>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de