Skip to content

Commit

Permalink
Merge pull request #1081 from mlibrary/BLUEDOC-1230-update-verbage-on…
Browse files Browse the repository at this point in the history
…-submit-work-email-to-user

BLUEDOC-1230 - Update verbage on submit work email to user
  • Loading branch information
blancoj authored Sep 23, 2021
2 parents b690af5 + 49e18c4 commit cb91d23
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/concerns/deepblue/email_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def email_event_create_user( current_user:, event_note: '', was_draft: false )
"cc_url=#{cc_url}",
"cc_depositor=#{cc_depositor}",
"" ] if email_behavior_debug_verbose
body = EmailHelper.t( email_template_key( cc_type: cc_type, event: 'created' ),
body = EmailHelper.t( email_template_key( cc_type: cc_type, event: 'created', was_draft: was_draft ),
title: EmailHelper.escape_html( cc_title ),
url: cc_url,
depositor: cc_depositor,
Expand Down Expand Up @@ -287,9 +287,11 @@ def email_subject_work_created( cc_type:, was_draft: )
return subject
end

def email_template_key( cc_type:, event: )
def email_template_key( cc_type:, event:, was_draft: )
key = if ( cc_type.eql? 'work' ) && ::Deepblue::DraftAdminSetService.has_draft_admin_set?( self )
"hyrax.email.notify_user_draft_#{cc_type}_#{event}_html"
elsif was_draft && event == 'created'
"hyrax.email.notify_user_#{cc_type}_submit_for_review_html"
else
"hyrax.email.notify_user_#{cc_type}_#{event}_html"
end
Expand Down
37 changes: 37 additions & 0 deletions config/locales/hyrax.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,43 @@ en:
Sincerely,<br/>
<br/>
The Deep Blue Data team<br/>
notify_user_work_submit_for_review_html: >
Dear %{depositor},
<p>
Thank you for depositing with Deep Blue Data. The record for
&quot;<a href='%{url}'>%{title}</a>&quot; has been submitted for review and publication.
We will begin reviewing your data and documentation in the next few days.
You will receive a separate email confirming any file uploads.
</p>
<p>
We review every deposit before publication it to ensure that the data is as easy as possible for others to
understand and use. We generally publish datasets following our full review, which can take up to a week or
two, but if you are working under a tight deadline please let us know. Our process entails:
</p>
<ul>
<li>Review of your data and documentation:</li>
<ul>
<li>If you would like more information or resources on creating appropriate documentation for your data, see our
<a href='https://deepblue.lib.umich.edu/data/dbd-documentation-guide'>Documentation Guide</a> and
<a href='https://deepblue.lib.umich.edu/data/Deep_Blue_Data_Example_Readme.txt'>example readme</a>.</li>
<li>We may work with the <a href='https://datacurationnetwork.org/'>Data Curation Network</a> (DCN) to
review your data set. The DCN is a consortium through which we have access to a broad
range of subject and format expertise for curation.</li>
</ul>
<li>Creation of a permanent, unique identifier for your deposit - once you have uploaded your data and
documentation, you can generate a DOI for your work using the "Mint DOI" button in the record. Otherwise,
we will generate a DOI for you upon publication.</li>
<li>Recommendations for your deposit - we may request additional information or revisions so that we can best
represent your work.</li>
</ul>
<p>
Please feel free to contact us at <a href='mailto:%{contact_us_at}'>%{contact_us_at}</a> if you have any
questions in the meantime, or if there is anything else we can do to be of help.
</p>
<br/>
Sincerely,<br/>
<br/>
The Deep Blue Data team<br/>
notify_user_work_published_html: >
Dear %{depositor},
<p>
Expand Down

0 comments on commit cb91d23

Please sign in to comment.