Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Frasur, Ruth via Evergreen-general
Lovely! Thank you Garry. 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 From: Evergreen-general On Behalf Of Terran McCanna via Evergreen-general

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Terran McCanna via Evergreen-general
Thanks, Garry, that's much cleaner! 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 | tmcca...@georgialibraries.org

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Garry Collum via Evergreen-general
Ternary operators do work in print templates, so if the variables are available in the template, you could do something like this. {staff.pref_family_name ? staff.pref_family_name : staff.family_name} This will print staff.family_name if staff.pref_family_name is not available.

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Frasur, Ruth via Evergreen-general
That is something I’m not sure about and need to wait until I’m back in the office (Tuesday) and have access to a printer. *fingers crossed* Ruth Frasur (she/they) Coordinator Evergreen Indiana Library Consortium Evergreen Community Development Initiative Indiana State Library 140 N. Senate Ave.

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Terran McCanna via Evergreen-general
Does the " | json" trick display everything that's actually available at run time, or does it only display the fields that are in the print preview scope data? Or does that depend on whether you're previewing or printing? I've noticed differences here and there between what is available in the

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Terran McCanna via Evergreen-general
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:

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Frasur, Ruth via Evergreen-general
Oooh, even better. 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 From: Morgan, Michele Sent: Friday, July 29, 2022 11:29 AM To: Evergreen

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Morgan, Michele via Evergreen-general
Hi Ruth, This description in this bug: https://bugs.launchpad.net/evergreen/+bug/1843339 includes some conditional code for the patron preferred name shared by John Amundson. You should be able to handle the staff user's name the same way. Hope this helps you, and also brings attention to the

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Frasur, Ruth via Evergreen-general
This is really great Dan! Thank you. Experimenting begins. 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 From: Evergreen-general On Behalf Of

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Shula Link via Evergreen-general
That JSON filter is really useful to know about. Thanks for the tip! Shula Link (she/her) Systems Services Librarian Greater Clarks Hill Regional Library sl...@columbiacountyga.gov | sl...@gchrl.org 706-447-6702 On Fri, Jul 29, 2022 at 11:14 AM Dan Briem via Evergreen-general <

Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Dan Briem via Evergreen-general
Something like this might work: {{staff.pref_first_given_name}}{{staff.first_given_name}} If you were looking for a different staff attribute, you can see what's available by temporarily putting {{staff | json}} into the template somewhere and it should output everything available in the preview

[Evergreen-general] One more receipt template question w/ a scoop of gratitude

2022-07-29 Thread Frasur, Ruth via Evergreen-general
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