From: Dan Pearl Date: Fri, 2 Oct 2015 18:54:39 +0000 (-0400) Subject: LP#1197636 - Email record detail does not check for email X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a61fb8bb0a40d919457ee5b7a368883fecd23606;p=working%2FEvergreen.git LP#1197636 - Email record detail does not check for email Even though no email was configured, the message shown when requesting bib information to be emailed indicated success. This misleading behavior has been addressed by alerting the patron of the situation and providing a link to the page where the email address is defined, after which the action is automatically retried. The success message has also been altered slightly to provide confirmation of the generated email. Signed-off-by: Dan Pearl --- diff --git a/Open-ILS/src/templates/opac/record/email.tt2 b/Open-ILS/src/templates/opac/record/email.tt2 index d41226c4f8..37e3ceadd1 100644 --- a/Open-ILS/src/templates/opac/record/email.tt2 +++ b/Open-ILS/src/templates/opac/record/email.tt2 @@ -8,7 +8,16 @@

-

[% l('Your email has been queued for Delivery.') %]

+ [% IF ctx.user.email %] +

[% l('Your email has been queued for delivery to ') %][% ctx.user.email %]

+ [% ELSE %] +

+ [% l('Oops! You must set an email address for your account before I can send this information. You can do that ') %] + + [% l("here") %] + +

+ [% END %]

[ [% l("Back to Record") %] ]