From e46916de0d859881ec98fb7a94d33c09ff38d984 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Fri, 2 Oct 2015 14:54:39 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/record/email.tt2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/record/email.tt2 b/Open-ILS/src/templates/opac/record/email.tt2 index d41226c4f8..63520fd2b0 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 [_1]', ctx.user.email ) %]

+ [% ELSE %] +

+ [% here_link_text = ""; + here_link_text = here_link_text _ l("here"); + here_link_text = here_link_text _ ""; + l('Your account does not currently have an email address set. Set your email address [_1]', here_link_text) %] +

+ [% END %]

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

-- 2.11.0