I appreciate the responses.  The solutions worked perfectly, and we'll have 
happy staff and patrons.
Thanks!
CM

On 11/20/24 03:39 PM, Brett French via Evergreen-general wrote:
Hey Chauncey,

We put something together for this at CW MARS.

<span ng-if="patron.pref_family_name">{{patron.pref_family_name}},</span>
<span ng-if="!patron.pref_family_name">{{patron.family_name}},</span>
<span 
ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}</span>
<span ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}</span>

Hope this helps!

Brett

On Wed, Nov 20, 2024 at 3:28 PM Chauncey Montgomery via Evergreen-general 
<[email protected] 
<mailto:[email protected]>> wrote:

    We are trying to create a conditional statement within the receipt 
templates that will display a user's preferred name, if that condition is true; 
otherwise, the given name will be displayed on the receipt.

    How would I go about creating a conditional statement that checks if there 
is a value in the patron.pref_first_given_name field?

    Many thanks.
    CM
    --
    Chauncey Montgomery
    Community Library
    44 Burrer Dr | Sunbury, OH 43074
    740-965-3901 | https://www.yourcl.org <https://www.yourcl.org>
    _______________________________________________
    Evergreen-general mailing list
    [email protected] 
<mailto:[email protected]>
    http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general 
<http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general>



--

        

Brett French(they/them)
Library Applications Associate II, C/W MARS, Inc.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[email protected] <mailto:[email protected]>_| iconwww.cwmars.org 
<https://www.cwmars.org/>

icon508-755-3323 x 1


_______________________________________________
Evergreen-general mailing list
[email protected]
http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general

_______________________________________________
Evergreen-general mailing list
[email protected]
http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general

Reply via email to