You could try using staff.pref_first_given_name and staff.pref_family_name but I haven't actually tested to confirm they are available to a receipt. If they aren't, then it would require a bit of development to flesh out that data.
If they ARE available, you could do IF conditions as such: [image: image.png] (pasting screenshot since I suspect code snippets won't display in an email properly) I can't remember off the top of my head if you can use ternary operators in print templates, but that would be more concise. Terran McCanna, PINES Program Manager ------------------------------ Georgia Public Library Service | University System of Georgia 2872 Woodcock Blvd, Suite 250 l Atlanta, GA 30341 (404) 235-7138 | [email protected] http://help.georgialibraries.org | [email protected] <https://www.facebook.com/georgialibraries> <https://www.twitter.com/georgialibs> <https://www.instagram.com/georgialibraries/> <https://www.twitter.com/georgialibs> Join our email list <http://georgialibraries.org> for stories of Georgia libraries making an impact in our communities. On Fri, Jul 29, 2022 at 10:32 AM Frasur, Ruth via Evergreen-general < [email protected]> wrote: > Hello all, > > > > I come to you again asking for your knowledge. Thank you to everyone who > provided code snippets and links to code snippets for adding “You saved…” > information to receipt templates. Another request has come through that is > a little more complex. An EI member library is asking about any way to > conditionally include, in a receipt template, a preferred staff (user) name > if it exists in lieu of the “proper” staff name. > > > > Ruth Frasur (she/they) > > Coordinator > > *Evergreen Indiana Library Consortium* > > *Evergreen Community Development Initiative* > > Indiana State Library > > 140 N. Senate Ave. > > Indianapolis, IN 46204 > > (317) 232-3691 > > > _______________________________________________ > 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
