From: Steven Callender Date: Thu, 12 Dec 2013 19:22:19 +0000 (-0500) Subject: Add more phone numbers to the phone autopopulate box. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=88349029f814906ce204bbb8af212d78f5c0d3d9;p=working%2FEvergreen.git Add more phone numbers to the phone autopopulate box. 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 --- diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index f12cd56b13..2811629f77 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -93,7 +93,9 @@
+ [%- 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 %]/>
[%- END -%] [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]