When displaying a patrons preferred name, always show a value for first
and last name, starting with the preferred name and defaulting to the
primary name, but only show values for prefix, middle name, and suffix
when a preferred variant is applied.
This avoids scenarios where patrons use their middle name as their first
name, with no preferred middle name applied, resulting duplicate
first/middle names displaying.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
[% l('[_1], [_2] [_3] (Preferred)',
'{{patron().pref_family_name() || patron().family_name()}}',
'{{patron().pref_first_given_name() || patron().first_given_name()}}',
- '{{patron().pref_second_given_name() || patron().second_given_name()}}')
+ '{{patron().pref_second_given_name()}}')
%]
</div>
</div>