[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. 6707d536768f6cb72da4d974d6f742abf0a4681d

Evergreen Git git at git.evergreen-ils.org
Wed Sep 25 20:17:13 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  6707d536768f6cb72da4d974d6f742abf0a4681d (commit)
      from  798a4ff8f74e063312fa8b7d5078dcad1385849e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6707d536768f6cb72da4d974d6f742abf0a4681d
Author: Steven Callender <stevecallender at esilibrary.com>
Date:   Thu Sep 12 13:30:16 2013 -0400

    Added in warning message when placing hold with no email address.
    
    Previously when an account didn't have an email address associated with it
    when placing a hold, the input box would be greyed out and the display
    would show the Email Address text with no address to go with it.
    
    This change will instead show text warning the user that they have
    no email address configured and they need to go to My Account in order
    to add one to their account.
    
    Signed-off-by: Steven Callender <stevecallender at esilibrary.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2
index 9b410fb..cb6abff 100644
--- a/Open-ILS/src/templates/opac/parts/place_hold.tt2
+++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2
@@ -83,7 +83,8 @@
                     [% IF !ctx.user.email %]disabled="true"[% ELSIF ctx.default_email_notify %]checked="checked"[% END %]/>
                     <label for="email_notify">[% l('Yes, by Email') %]</label><br/>
                 <blockquote>
-                    [% l('Email Address:') %] <span name="email_address">[% ctx.user.email %]</span>
+                    [% IF !ctx.user.email; l('No configured Email address. See "My Account" for setting your Email address.');
+                     ELSE; l('Email Address:') %] <span name="email_address">[% ctx.user.email %]</span>[% END %]
                 </blockquote>
                 [%- IF allow_phone_notifications == 'true' %]
                 <input type="checkbox" id="phone_notify_checkbox" name="phone_notify_checkbox"

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/place_hold.tt2 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list