mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
Create templates mail and renamed name in getEmailFileName
(cherry picked from commit 7a637e6871
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
ead90b6bbf
commit
31020d1d4f
@@ -2234,7 +2234,7 @@ public class ItemImportServiceImpl implements ItemImportService, InitializingBea
|
|||||||
String fileName) throws MessagingException {
|
String fileName) throws MessagingException {
|
||||||
try {
|
try {
|
||||||
Locale supportedLocale = I18nUtil.getEPersonLocale(eperson);
|
Locale supportedLocale = I18nUtil.getEPersonLocale(eperson);
|
||||||
Email email = Email.getEmail(I18nUtil.getEmailFilename(supportedLocale, "bte_batch_import_success"));
|
Email email = Email.getEmail(I18nUtil.getEmailFilename(supportedLocale, "batch_import_success"));
|
||||||
email.addRecipient(eperson.getEmail());
|
email.addRecipient(eperson.getEmail());
|
||||||
email.addArgument(fileName);
|
email.addArgument(fileName);
|
||||||
|
|
||||||
@@ -2250,7 +2250,7 @@ public class ItemImportServiceImpl implements ItemImportService, InitializingBea
|
|||||||
logError("An error occurred during item import, the user will be notified. " + error);
|
logError("An error occurred during item import, the user will be notified. " + error);
|
||||||
try {
|
try {
|
||||||
Locale supportedLocale = I18nUtil.getEPersonLocale(eperson);
|
Locale supportedLocale = I18nUtil.getEPersonLocale(eperson);
|
||||||
Email email = Email.getEmail(I18nUtil.getEmailFilename(supportedLocale, "bte_batch_import_error"));
|
Email email = Email.getEmail(I18nUtil.getEmailFilename(supportedLocale, "batch_import_error"));
|
||||||
email.addRecipient(eperson.getEmail());
|
email.addRecipient(eperson.getEmail());
|
||||||
email.addArgument(error);
|
email.addArgument(error);
|
||||||
email.addArgument(configurationService.getProperty("dspace.ui.url") + "/feedback");
|
email.addArgument(configurationService.getProperty("dspace.ui.url") + "/feedback");
|
||||||
|
19
dspace/config/emails/batch_import_error
Normal file
19
dspace/config/emails/batch_import_error
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
## Email sent to DSpace users when they batch import fails.
|
||||||
|
##
|
||||||
|
## Parameters: {0} the export error
|
||||||
|
## {1} the URL to the feedback page
|
||||||
|
##
|
||||||
|
##
|
||||||
|
## See org.dspace.core.Email for information on the format of this file.
|
||||||
|
##
|
||||||
|
#set($subject = 'DSpace - The batch import was not completed.')
|
||||||
|
The batch import you initiated from the DSpace UI was not completed, due to the following reason:
|
||||||
|
${params[0]}
|
||||||
|
|
||||||
|
For more information you may contact your system administrator:
|
||||||
|
${params[1]}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
The DSpace Team
|
||||||
|
|
16
dspace/config/emails/batch_import_success
Normal file
16
dspace/config/emails/batch_import_success
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
## Email sent to DSpace users when they successfully batch import items.
|
||||||
|
##
|
||||||
|
## Parameters: {0} the filepath to the mapfile created by the batch import
|
||||||
|
##
|
||||||
|
##
|
||||||
|
## See org.dspace.core.Email for information on the format of this file.
|
||||||
|
##
|
||||||
|
#set($subject = 'DSpace - Batch import successfully completed')
|
||||||
|
The batch item import you initiated from the DSpace UI has completed successfully.
|
||||||
|
|
||||||
|
You may find the mapfile for the import in the following path: ${params[0]}
|
||||||
|
|
||||||
|
|
||||||
|
The DSpace Team
|
||||||
|
|
Reference in New Issue
Block a user