[Evergreen-general] Conditional Statement in Receipt Template
Chauncey Montgomery
chauncey at yourcl.org
Thu Nov 21 10:58:12 EST 2024
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 <evergreen-general at list.evergreen-ils.org <mailto:evergreen-general at list.evergreen-ils.org>> 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
> Evergreen-general at list.evergreen-ils.org <mailto:Evergreen-general at list.evergreen-ils.org>
> 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.
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> icon_bfrench at cwmars.org <mailto:bfrench at cwmars.org>_| iconwww.cwmars.org <https://www.cwmars.org/>
>
> icon508-755-3323 x 1
>
>
> _______________________________________________
> Evergreen-general mailing list
> Evergreen-general at list.evergreen-ils.org
> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general
More information about the Evergreen-general
mailing list