Display the patron preferred name in addition to the primary name in the
route-to-holds-shelf dialog. As with primary name, preferred name is
hidden when an alias is applied.
To test
[1] Add a primary first, middle, and/or last name value to a patron.
[2] Place a hold for the patron with the pickup library matching the
login library.
[2] Capgture the hold via the Checkin interface (instead of the hold
capture interface) and note the preferred name display.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
{{patron.first_given_name}} {{patron.second_given_name}}
[% END %]
</div>
+ <div ng-hide="patron.alias">
+ <div ng-if="patron.pref_family_name || patron.pref_first_given_name || patron.pref_second_given_name">
+ [% l('Preferred name: [_1], [_2] [_3]',
+ '{{patron.pref_family_name || patron.family_name}}',
+ '{{patron.pref_first_given_name || patron.first_given_name}}',
+ '{{patron.pref_second_given_name}}')
+ %]
+ </div>
+ </div>
<div>
<span>[% l('Patron Barcode:') %]</span>
<span>{{patron.card.barcode}}</span>