One of the things that we have incorporated is a ternary operator for preferred names. If there is a preferred name, it is printed, otherwise the primary name is printed. Following Andrew’s example it would be set up something like this: <h1>{{patron.pref_family_name ? patron.pref_family_name : patron.family_name}}, {{patron.pref_first_given_name ? patron.pref_first_given_name : patron.first_given_name}}</h1> To limit to 4 characters: {{patron.pref_family_name ? patron.pref_family_name : patron.family_name | limitTo:4}} From: Terran McCanna This is what we use for our hold shelf slip: If you don't want to show the entire name, you can use the limitTo filter, like this: {{patron.family_name|limitTo:4}}
On Fri, Oct 2, 2020 at 12:20 PM Terri Moser <[email protected]> wrote:
_______________________________________________ | ||||
_______________________________________________ Evergreen-general mailing list [email protected] http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general
