Skip to content

Commit

Permalink
The dspace.name.short is not working properly in the email, use `ds…
Browse files Browse the repository at this point in the history
…pace.shortname` instead (#828)
  • Loading branch information
milanmajchrak authored Dec 5, 2024
1 parent 3486d2d commit 3ec13b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public ResponseEntity sendEmail(HttpServletRequest request, HttpServletResponse
String helpDeskEmail = configurationService.getProperty("lr.help.mail", "");
String helpDeskPhoneNum = configurationService.getProperty("lr.help.phone", "");
String dspaceName = configurationService.getProperty("dspace.name", "");
String dspaceNameShort = configurationService.getProperty("dspace.name.short", "");
String dspaceNameShort = configurationService.getProperty("dspace.shortname", "");

if (StringUtils.isEmpty(uiUrl)) {
log.error("Cannot load the `dspace.ui.url` property from the cfg.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private void sendEmailWithDownloadLink(Context context, DSpaceObject dso,
String helpDeskEmail = configurationService.getProperty("lr.help.mail", "");
String helpDeskPhoneNum = configurationService.getProperty("lr.help.phone", "");
String dspaceName = configurationService.getProperty("dspace.name", "");
String dspaceNameShort = configurationService.getProperty("dspace.name.short", "");
String dspaceNameShort = configurationService.getProperty("dspace.shortname", "");

if (StringUtils.isEmpty(uiUrl)) {
log.error("Cannot load the `dspace.ui.url` property from the cfg.");
Expand Down
2 changes: 1 addition & 1 deletion dspace/config/clarin-dspace.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#------------------------------------------------------------------#
#---------------------------DSpace---------------------------------#
#------------------------------------------------------------------#
dspace.name.short = DSpace
dspace.shortname = DSpace
dspace.name = CLARIN DSpace

#------------------------------------------------------------------#
Expand Down
4 changes: 2 additions & 2 deletions dspace/config/emails/clarin_download_link_admin
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
##
## 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)")
#set($subject = "${config.get('dspace.shortname')}: New File Download Request (CC)")

This is an information for administrators and other configured people about a new download request.

Expand All @@ -26,7 +26,7 @@ The file is distributed under specific license:
Extra information filled by the user:
${params[5]}

${config.get('dspace.name.short')} Team
${config.get('dspace.shortname')} Team

_____________________________________
${config.get('dspace.name')},
Expand Down
2 changes: 1 addition & 1 deletion dspace/config/emails/share_submission
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you have trouble please contact
${config.get('lr.help.mail')} or call us at ${config.get('lr.help.phone')}


${config.get('dspace.name.short')} Team
${config.get('dspace.shortname')} Team

_____________________________________
${config.get('dspace.name')},
Expand Down

0 comments on commit 3ec13b2

Please sign in to comment.