[Dspace-general] import dspace mails

Claudia Jürgen Claudia.Juergen at ub.uni-dortmund.de
Wed Aug 29 08:34:48 EDT 2007


Hello Gay,

in case of submit_archive, this mail allready contains the identifier 
i.e. the handle of an item. This is the Parameter {2}.

In submit_reject you can't add the handle as handles are only assigned 
for items in archive.

As for an Example on how to add a parameter to the email see below, I 
just added the Repository Name to the Submit in Archive Notification.
This example has been done in 1.4.2 for trunk the paths are different.

Index: config/emails/submit_archive
===================================================================
--- C:/Dokumente und 
Einstellungen/ubmit/workspace/142dspace/config/emails/submit_archive 
(revision 2043)
+++ C:/Dokumente und 
Einstellungen/ubmit/workspace/142dspace/config/emails/submit_archive 
(working copy)
@@ -3,12 +3,14 @@
  # {0}  Title of submission
  # {1}  Name of collection
  # {2}  handle
+# {3}  Name of the repository
  #
  Subject: DSpace: Submission Approved and Archived

  You submitted: {0}

  To collection: {1}
+At: {3}

  Your submission has been accepted and archived in DSpace,
  and it has been assigned the following identifier:
Index: src/org/dspace/workflow/WorkflowManager.java
===================================================================
--- C:/Dokumente und 
Einstellungen/ubmit/workspace/142dspace/src/org/dspace/workflow/WorkflowManager.java 
(revision 2043)
+++ C:/Dokumente und 
Einstellungen/ubmit/workspace/142dspace/src/org/dspace/workflow/WorkflowManager.java 
(working copy)
@@ -688,6 +688,7 @@
              email.addArgument(title);
              email.addArgument(coll.getMetadata("name"));
              email.addArgument(HandleManager.getCanonicalForm(handle));
+ 
email.addArgument(ConfigurationManager.getProperty("dspace.name"));

              email.send();
          }


Claudia


Gay schrieb:
> hello
> i use the batch dsrun import dspace  to enter archive in dspace
> 
> I search a simple way to modify the  mail wich is send by dspace in case of 
> reject  or in case of archive is ok
>     the mail are submit_archive and submit_reject
> i want to add a new metadata (dc:identifier) on these mails to identify the 
> source of the archive
> 
> EXEMPLE OF REJECTED MAIL
> 
> I want added {5}  metadata dc:identifier
> 
> # Rejection email message
> #
> # {0}  Title of submission
> # {1}  Name of collection
> # {2}  Name of the rejector
> # {3}  Reason for the rejection
> # {4}  Link to 'My DSpace' page
> #
> Sujet: DSpace: Soumission rejetee
> 
> You submitted: {0}
> 
> To collection: {1}
> 
> Produce by: {5}
> 
> Your submission has been rejected by {2}
> with the following explanation:
> 
> {3}
> Your submission has not been deleted.  You can access it from your
> "My DSpace" page: {4}
> 
> DSpace
> 
> this mail is issue by a source java in  dspace/src/org/dspa/ce/workflow
> may I change it and how??
> 
> thanks
> mireille
> 
> 
> _______________________________________________
> Dspace-general mailing list
> Dspace-general at mit.edu
> http://mailman.mit.edu/mailman/listinfo/dspace-general



More information about the Dspace-general mailing list