Skip to content

Commit

Permalink
sp custom version 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JayanthyChengan committed Feb 9, 2024
1 parent 17b848c commit 99d1efb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import edu.harvard.iq.dataverse.validation.EMailValidator;
import edu.harvard.iq.dataverse.validation.URLValidator;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.validator.routines.UrlValidator;

/**
*
Expand Down
14 changes: 12 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/SendFeedbackDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,15 @@ public void initUserInput(ActionEvent ae) {
op1 = Long.valueOf(random.nextInt(10));
op2 = Long.valueOf(random.nextInt(10));
userSum = null;
String systemEmail = settingsService.getValueForKey(SettingsServiceBean.Key.SystemEmail);
systemAddress = MailUtil.parseSystemAddress(systemEmail);

// to be tested JC - old code
//String systemEmail = settingsService.getValueForKey(SettingsServiceBean.Key.SystemEmail);
//systemAddress = MailUtil.parseSystemAddress(systemEmail);

String supportEmail = JvmSettings.SUPPORT_EMAIL.lookupOptional().orElse(settingsService.getValueForKey(SettingsServiceBean.Key.SystemEmail));
systemAddress = MailUtil.parseSystemAddress(supportEmail);

// JC old code
dataverseUserPage.supportMode() ;
}

Expand Down Expand Up @@ -227,6 +233,10 @@ public String sendMessage() {
String supportTeamName = BrandingUtil.getSupportTeamName(systemAddress);
List<Feedback> feedbacks = FeedbackUtil.gatherFeedback(recipient, dataverseSession, messageAffiliation + " - " + messageSubject , userMessage, systemAddress, userEmail, systemConfig.getDataverseSiteUrl(), installationBrandName, supportTeamName);

// to be tested JC - new code
//Feedback feedback = FeedbackUtil.gatherFeedback(feedbackTarget, dataverseSession, messageSubject, userMessage, systemAddress, userEmail, systemConfig.getDataverseSiteUrl(), installationBrandName, supportTeamName, ccSupport());
//if (feedback==null) {

if (feedbacks.isEmpty()) {
logger.warning("No feedback has been sent!");
return null;
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ metrics.dataset.tip.default=Aggregated metrics for this dataset.
metrics.dataset.makedatacount.title=Make Data Count (MDC) Metrics
metrics.dataset.makedatacount.since=since
metrics.dataset.tip.makedatacount=Metrics collected using <a href="https://makedatacount.org/counter-code-of-practice-for-research-data/" target="_blank" rel="noopener"/>Make Data Count</a> standards.
metrics.dataset.views.tip=Dataset views are combined with both aggregated file views and file downloads.
metrics.dataset.views.tip=Aggregate of views of the dataset landing page, file views, and file downloads.
metrics.dataset.downloads.default.tip.replaced=Total aggregated downloads of files in this dataset.
metrics.dataset.downloads.makedatacount.tip=Each file downloaded is counted as 1, and added to the total download count.
metrics.dataset.downloads.premakedatacount.tip=Downloads prior to enabling MDC. Counts do not have the same filtering and detail as MDC metrics.
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/dataverseuser.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
<a href="#{systemConfig.guidesBaseUrl}/#{systemConfig.guidesVersion}/user/index.html" title="#{dataverseServiceBean.findRootDataverse().name} #{bundle['header.guides.user']}" target="_blank">#{bundle['header.guides.user']}</a>
</o:param>
<o:param>
<a href="https://demodv.scholarsportal.info">#{bundle['notification.demoSite']}</a>
<a href="https://demo.borealisdata.ca/">#{bundle['notification.demoSite']}</a>
</o:param>
</h:outputFormat>
<!--Only show message about an email confirmation link to non-Shib users (Shib users can't edit their accounts)-->
Expand Down

0 comments on commit 99d1efb

Please sign in to comment.