Hi Kelvin,
there is no configuration option to disable the email notification for
archived submissions.
You may change it in
dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java
just comment this line out:
notifyOfArchive(c, myitem, mycollection);
Then ran mvn package, ant update and redploy
Or you can make it configurable, see attached patch. The patch (against
1.5.x) defaults to notify for backward compability. Change the
configuration parameter to false if you want to disable notification.
Hope that helps
Claudia Jürgen
Kelvin Yang schrieb:
Hi all,
I was wondering if there is any way to turn off the individual
submission email you get each time you do a submission.
I was looking in dspace.cfg but no luck finding it.
It just gets too repetitive receiving email for every submission someone
does.
Thanks.
_______________________________________________
Dspace-general mailing list
Dspace-general@mit.edu
http://mailman.mit.edu/mailman/listinfo/dspace-general
Index: dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java
===================================================================
--- dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java
(revision 3502)
+++ dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java
(working copy)
@@ -616,7 +616,12 @@
Item myitem = archive(c, wi);
// now email notification
- notifyOfArchive(c, myitem, mycollection);
+ boolean notifyOfArchive =
ConfigurationManager.getBooleanProperty("notify.of-archive", true);
+ if (notifyOfArchive)
+ {
+ notifyOfArchive(c, myitem, mycollection);
+ }
+
archived = true;
}
catch (IOException e)
Index: dspace/config/dspace.cfg
===================================================================
--- dspace/config/dspace.cfg (revision 3503)
+++ dspace/config/dspace.cfg (working copy)
@@ -677,6 +677,9 @@
# are Creative Commons licenses used in submission?
webui.submit.enable-cc = false
+#### Notify of Archive ###
+# Send the notification e-mail to the submitter that the submission has been
archived
+notify.of-archive = true
##### Settings for Thumbnail creation #####
_______________________________________________
Dspace-general mailing list
Dspace-general@mit.edu
http://mailman.mit.edu/mailman/listinfo/dspace-general