mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
[DS-388] Item importer - new option to enable workflow notification emails
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4563 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -100,6 +100,8 @@ public class ItemImport
|
|||||||
{
|
{
|
||||||
static boolean useWorkflow = false;
|
static boolean useWorkflow = false;
|
||||||
|
|
||||||
|
static boolean useWorkflowSendEmail = false;
|
||||||
|
|
||||||
static boolean isTest = false;
|
static boolean isTest = false;
|
||||||
|
|
||||||
static boolean isResume = false;
|
static boolean isResume = false;
|
||||||
@@ -148,6 +150,8 @@ public class ItemImport
|
|||||||
"email of eperson doing importing");
|
"email of eperson doing importing");
|
||||||
options.addOption("w", "workflow", false,
|
options.addOption("w", "workflow", false,
|
||||||
"send submission through collection's workflow");
|
"send submission through collection's workflow");
|
||||||
|
options.addOption("n", "notification", false,
|
||||||
|
"if sending submissions through the workflow, send notification emails");
|
||||||
options.addOption("t", "test", false,
|
options.addOption("t", "test", false,
|
||||||
"test run - do not actually import items");
|
"test run - do not actually import items");
|
||||||
options.addOption("p", "template", false, "apply template");
|
options.addOption("p", "template", false, "apply template");
|
||||||
@@ -201,6 +205,10 @@ public class ItemImport
|
|||||||
if (line.hasOption('w'))
|
if (line.hasOption('w'))
|
||||||
{
|
{
|
||||||
useWorkflow = true;
|
useWorkflow = true;
|
||||||
|
if (line.hasOption('n'))
|
||||||
|
{
|
||||||
|
useWorkflowSendEmail = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.hasOption('t'))
|
if (line.hasOption('t'))
|
||||||
@@ -740,7 +748,15 @@ public class ItemImport
|
|||||||
// start up a workflow
|
// start up a workflow
|
||||||
if (!isTest)
|
if (!isTest)
|
||||||
{
|
{
|
||||||
WorkflowManager.startWithoutNotify(c, wi);
|
// Should we send a workflow alert email or not?
|
||||||
|
if (useWorkflowSendEmail)
|
||||||
|
{
|
||||||
|
WorkflowManager.start(c, wi);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WorkflowManager.startWithoutNotify(c, wi);
|
||||||
|
}
|
||||||
|
|
||||||
// send ID to the mapfile
|
// send ID to the mapfile
|
||||||
mapOutput = itemname + " " + myitem.getID();
|
mapOutput = itemname + " " + myitem.getID();
|
||||||
|
@@ -61,6 +61,7 @@
|
|||||||
- [DS-328] SWORD service documents do not include atom:generator element
|
- [DS-328] SWORD service documents do not include atom:generator element
|
||||||
- [DS-333] Adjust SWORD ingest crosswalk to store bibliographic citation
|
- [DS-333] Adjust SWORD ingest crosswalk to store bibliographic citation
|
||||||
- [DS-372] New verbose option for [dspace]/bin/dspace cleanup script
|
- [DS-372] New verbose option for [dspace]/bin/dspace cleanup script
|
||||||
|
- [DS-388] Item importer - new option to enable workflow notification emails
|
||||||
|
|
||||||
(Larry Stone)
|
(Larry Stone)
|
||||||
- [DS-373] Fix "Letter" link URLs in 2nd-stage Browse
|
- [DS-373] Fix "Letter" link URLs in 2nd-stage Browse
|
||||||
|
Reference in New Issue
Block a user