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
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
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.
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.
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
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:
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
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
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
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 <
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
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
12 matches
Mail list logo