Add more phone numbers to the phone autopopulate box. collab/Callender/add_phones_place_hold
authorSteven Callender <stevecallender@esilibrary.com>
Thu, 12 Dec 2013 19:22:19 +0000 (14:22 -0500)
committerSteven Callender <stevecallender@esilibrary.com>
Thu, 12 Dec 2013 19:22:19 +0000 (14:22 -0500)
When a patron places a hold, currently the default phone number from
the user settings is used. If that doesn't exist, it falls back on the
day phone. This will also add on the evening phone, and other phone
respectively if there is no default setting or day phone on the account.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Open-ILS/src/templates/opac/parts/place_hold.tt2

index f12cd56..2811629 100644 (file)
@@ -93,7 +93,9 @@
                 <blockquote>
                     <label>[% l('Phone Number:') %]<input type="text" name="phone_notify" [% setting = 'opac.default_phone';
                     IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]'
-                    [%- ELSIF ctx.user.day_phone; %] value='[% ctx.user.day_phone | html %]' [% END %]/></label>
+                    [%- ELSIF ctx.user.day_phone; %] value='[% ctx.user.day_phone | html %]'
+                    [%- ELSIF ctx.user.evening_phone; %] value='[% ctx.user.evening_phone | html %]'
+                    [%- ELSIF ctx.user.other_phone; %] value='[% ctx.user.other_phone | html %]' [% END %]/></label>
                 </blockquote>
                 [%- END -%]
                 [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]