forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mail to notify admin about download of restricted item (#689)
* separate emails and send * formatting * multiple admins * remove redundant and reformat * fixes from PR * comment on old property * separated function * separate function to add arguments to admin email * clarification of using 'anonymous user' twice
- Loading branch information
1 parent
b6cd923
commit 38fe6f1
Showing
3 changed files
with
142 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## E-mail to admin about a download request | ||
## | ||
## Parameters: {0} is expanded to filename | ||
## {1} to a download URL | ||
## {2} to license url | ||
## {3} user name | ||
## {4} user email | ||
## {5} extra metadata provided | ||
## | ||
## See org.dspace.core.Email for information on the format of this file. | ||
## | ||
#set($subject = "${config.get('dspace.name.short')}: New File Download Request (CC)") | ||
|
||
This is an information for administrators and other configured people about a new download request. | ||
|
||
User Details: | ||
Name: ${params[3]} | ||
Email: ${params[4]} | ||
|
||
Link of the requested file (does not contain the download token): | ||
${params[1]} | ||
|
||
The file is distributed under specific license: | ||
${params[2]} | ||
|
||
Extra information filled by the user: | ||
${params[5]} | ||
|
||
${config.get('dspace.name.short')} Team | ||
|
||
_____________________________________ | ||
${config.get('dspace.name')}, | ||
WWW: ${config.get('dspace.url')} | ||
Email: ${config.get('help.mail')} | ||
Tel.: ${config.get('help.phone')} |