[Dspace-general] Adding submitter name to e-mail (Was Re: Item Mapping Authorization Problem)
Scott Yeadon
scott.yeadon at anu.edu.au
Tue Dec 19 17:27:49 EST 2006
Hi Bill,
All you need to do is add an additional argument to the e-mail and
modify the mail template as follows.
In WorkflowManager.java modify the notifyOfArchive method:
...
...
email.addArgument(title);
email.addArgument(coll.getMetadata("name"));
email.addArgument(HandleManager.getCanonicalForm(handle));
// Add the following line to include the submitter's full name as a
parameter to the e-mail handler class
email.addArgument(ep.getFullName());
...
...
In your submit_archive mail template, this parameter can then be
referenced using the {3} placeholder, for example:
...
...
You submitted: {0}
To collection: {1}
Submitter Name: {3}
Your submission...
...
...
Obviously you also need to rebuild you DSpace war and restart tomcat.
Note that these types of requests should be posted to the dspace-tech
list rather than the general list.
Scott.
=================================
Message: 2
Date: Mon, 18 Dec 2006 13:00:32 -0500
From: "wroldfie" <wroldfie at library.uwaterloo.ca>
Subject: Re: [Dspace-general] Item Mapping Authorization Problem
To: <dspace-general at mit.edu>
Message-ID: <000a01c722ce$6cc585c0$2b3a6181 at wroldfie>
Content-Type: text/plain; charset="us-ascii"
I have a requested to add the submitter's full name to the acknowledgement
email once an item has been accepted into the archive. I have looked at the
submit_archive email form (See below) and the relevant portion of the
WorkflowManager.java (See below). I know nothing about java programming.
Could someone show me the changes in these files required to add the
submitter's full name or any easier way to make this happen?
Thanking you in advance.
Bill
More information about the Dspace-general
mailing list