mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 06:23:10 +00:00
- Stage reached column now set when rejecting items in My DSpace
- License added to submitted items in Submit servlet git-svn-id: http://scm.dspace.org/svn/repo/trunk@291 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -550,11 +550,16 @@ public class MyDSpaceServlet extends DSpaceServlet
|
|||||||
{
|
{
|
||||||
String reason = request.getParameter("reason");
|
String reason = request.getParameter("reason");
|
||||||
|
|
||||||
WorkflowManager.reject(context,
|
WorkspaceItem wsi = WorkflowManager.reject(context,
|
||||||
workflowItem,
|
workflowItem,
|
||||||
context.getCurrentUser(),
|
context.getCurrentUser(),
|
||||||
reason);
|
reason);
|
||||||
|
|
||||||
|
// Set the "stage_reached" column on the returned workspace item
|
||||||
|
// to the "verify" stage
|
||||||
|
wsi.setStageReached(SubmitServlet.REVIEW_SUBMISSION);
|
||||||
|
wsi.update();
|
||||||
|
|
||||||
JSPManager.showJSP(request, response,
|
JSPManager.showJSP(request, response,
|
||||||
"/mydspace/task-complete.jsp");
|
"/mydspace/task-complete.jsp");
|
||||||
context.complete();
|
context.complete();
|
||||||
|
@@ -77,6 +77,7 @@ import org.dspace.content.WorkspaceItem;
|
|||||||
import org.dspace.core.Constants;
|
import org.dspace.core.Constants;
|
||||||
import org.dspace.core.Context;
|
import org.dspace.core.Context;
|
||||||
import org.dspace.core.LogManager;
|
import org.dspace.core.LogManager;
|
||||||
|
import org.dspace.eperson.EPerson;
|
||||||
import org.dspace.workflow.WorkflowItem;
|
import org.dspace.workflow.WorkflowItem;
|
||||||
import org.dspace.workflow.WorkflowManager;
|
import org.dspace.workflow.WorkflowManager;
|
||||||
|
|
||||||
@@ -1482,6 +1483,16 @@ public class SubmitServlet extends DSpaceServlet
|
|||||||
"accept_license",
|
"accept_license",
|
||||||
getSubmissionLogInfo(subInfo)));
|
getSubmissionLogInfo(subInfo)));
|
||||||
|
|
||||||
|
// Add the license to the item
|
||||||
|
Item item = subInfo.submission.getItem();
|
||||||
|
EPerson submitter = context.getCurrentUser();
|
||||||
|
|
||||||
|
// FIXME: Probably need to take this from the form at some point
|
||||||
|
String license = subInfo.submission.getCollection().getLicense();
|
||||||
|
|
||||||
|
item.licenseGranted(license, submitter);
|
||||||
|
|
||||||
|
// Start the workflow
|
||||||
WorkflowManager.start(context, (WorkspaceItem) subInfo.submission);
|
WorkflowManager.start(context, (WorkspaceItem) subInfo.submission);
|
||||||
|
|
||||||
// FIXME: pass in more information about what happens next?
|
// FIXME: pass in more information about what happens next?
|
||||||
|
Reference in New Issue
Block a user