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>
<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 %]