<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Ternary operators do work in print templates, so if the variables are available in the template, you could do something like this.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
{staff.pref_family_name ? staff.pref_family_name : staff.family_name}<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
This will print staff.family_name if staff.pref_family_name is not available.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Evergreen-general <evergreen-general-bounces@list.evergreen-ils.org> on behalf of Terran McCanna via Evergreen-general <evergreen-general@list.evergreen-ils.org><br>
<b>Sent:</b> Friday, July 29, 2022 1:21 PM<br>
<b>To:</b> Evergreen Discussion Group <evergreen-general@list.evergreen-ils.org><br>
<b>Cc:</b> Terran McCanna <tmccanna@georgialibraries.org><br>
<b>Subject:</b> Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude</font>
<div> </div>
</div>
<div>
<div dir="ltr">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.<br>
<br>
<div>If they ARE available, you could do IF conditions as such: <br>
</div>
<div><br>
</div>
<div><img alt="image.png" width="520" height="40" data-outlook-trace="F:1|T:1" src="cid:ii_l66qca1s0"><br>
</div>
<div>(pasting screenshot since I suspect code snippets won't display in an email properly)</div>
<div><br>
</div>
<div>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.<br>
</div>
<div><br>
</div>
<div>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><br>
<div dir="ltr" style="margin-left:0pt">
<table style="border:medium none; border-collapse:collapse">
<colgroup><col width="94"><col width="530"></colgroup>
<tbody>
<tr style="height:123pt">
<td style="vertical-align:top; padding:5pt">
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; white-space:pre-wrap"><span style="border:none; display:inline-block; overflow:hidden; width:75px; height:75px"><img width="75" height="75" style="margin-left:0px; margin-top:0px" src="https://lh6.googleusercontent.com/fJoF6o0xl9XByQZmykva1sv2n_cKGUXL_BH4crkpJgSqDu-yU7-5jIypuXBsEuoXCCBAAUQ2jUztJlZDNUVOlwl1bWZIL1W4wmFuEEzCLVMxUyhzdkV7jkcRcdZZni2z8OPz4xJA"></span></span></p>
</td>
<td style="vertical-align:top; padding:5pt">
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; margin-left:9pt">
<span style="font-size:11pt; font-family:Verdana; color:rgb(30,67,155); background-color:transparent; font-weight:700; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">Terran McCanna, PINES Program
 Manager</span></p>
<hr>
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; margin-left:9pt">
<span style="font-size:10pt; font-family:Verdana; color:rgb(0,0,0); background-color:transparent; font-weight:700; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap"></span><span style="font-size:9pt; font-family:Verdana; color:rgb(30,67,155); background-color:transparent; font-weight:700; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">Georgia
 Public Library Service | University System of Georgia</span></p>
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; margin-left:9pt">
<span style="font-size:9pt; font-family:Verdana; color:rgb(30,67,155); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">2872 Woodcock Blvd, Suite 250
 l Atlanta, GA 30341</span></p>
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; margin-left:9pt">
<span style="font-size:9pt; font-family:Verdana; color:rgb(30,67,155); background-color:rgb(255,255,255); font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">(404) 235-7138</span><span style="font-size:9pt; font-family:Verdana; color:rgb(30,67,155); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">
 | <a href="mailto:tmccanna@georgialibraries.org" target="_blank">tmccanna@georgialibraries.org</a>
<br>
</span></p>
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; margin-left:9pt">
<span style="font-size:9pt; font-family:Verdana; color:rgb(30,67,155); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap"><a href="http://help.georgialibraries.org" target="_blank">http://help.georgialibraries.org</a>
 | <a href="mailto:help@georgialibraries.org" target="_blank">help@georgialibraries.org</a><br>
</span></p>
<br>
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; margin-left:9pt">
<a href="https://www.facebook.com/georgialibraries" target="_blank" style="text-decoration:none"><span style="font-size:9pt; font-family:Verdana; color:#1155cc; background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:underline; vertical-align:baseline; white-space:pre; white-space:pre-wrap"><span style="border:none; display:inline-block; overflow:hidden; width:36px; height:36px"><img width="36" height="36" style="margin-left:0px; margin-top:0px" src="https://lh4.googleusercontent.com/77DYzuoZ-zqC0pyQuYNKCrWaPuOANHsYTJze0JxE_iK4yW2sCswywdPCC8hCHOIyhO7KKIO-L6dlN1wIqdHFcyJmTa1fuc5Ok34dR8FQTtZHawpgNmovGxjg9RS0-WI74dFDHw0_"></span></span></a><a href="https://www.twitter.com/georgialibs" target="_blank" style="text-decoration:none"><span style="font-size:10pt; font-family:Verdana; color:#1155cc; background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:underline; vertical-align:baseline; white-space:pre; white-space:pre-wrap"><span style="border:none; display:inline-block; overflow:hidden; width:35px; height:35px"><img width="35" height="35" style="margin-left:0px; margin-top:0px" src="https://lh4.googleusercontent.com/1bKX66xWgHe-v5FD5l-hYX4FrZDXi1Y2aKr0DZLDA_oEHy7s01WVqgVilQcwGBzRQZAg3yOePmZncGwtiYGSgavOkb0T5Tj3c46iUJ7ZE7h-MUEhVwXQs7Oc3cahIYMN2SGlk_6b"></span></span></a><a href="https://www.instagram.com/georgialibraries/" target="_blank" style="text-decoration:none"><span style="font-size:11pt; font-family:Verdana; color:#1155cc; background-color:transparent; font-weight:700; font-style:normal; font-variant:normal; text-decoration:underline; vertical-align:baseline; white-space:pre; white-space:pre-wrap"><span style="border:none; display:inline-block; overflow:hidden; width:34px; height:34px"><img width="34" height="34" style="margin-left:0px; margin-top:0px" src="https://lh3.googleusercontent.com/U7PH5YIQnuRvbeMnGOlJAEPAre7Zqx_I6IDJAtJVwUDCp1-TmjSwP_x21qKx8ApsbcaILIuSpL3Pzau2Rz-phR_4IPcLR4LrIha_JMDHqombNtsfa1uhXcYS02QWTAyYqSf3ES_n"></span></span></a><a href="https://www.twitter.com/georgialibs" target="_blank" style="text-decoration:none"><span style="font-size:10pt; font-family:Verdana; color:rgb(17,85,204); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:underline; vertical-align:baseline; white-space:pre-wrap"></span></a></p>
</td>
</tr>
<tr style="height:21pt">
<td colspan="2" style="vertical-align:top; padding:5pt">
<p dir="ltr" style="line-height:1.2; margin-top:0pt; margin-bottom:0pt; text-align:center">
<a href="http://georgialibraries.org" target="_blank" style="text-decoration:none"><span style="font-size:10pt; font-family:Verdana; color:rgb(17,85,204); background-color:rgb(255,255,255); font-weight:400; font-style:italic; font-variant:normal; text-decoration:underline; vertical-align:baseline; white-space:pre-wrap">Join
 our email list</span></a><span style="font-size:10pt; font-family:Verdana; color:rgb(0,0,0); background-color:rgb(255,255,255); font-weight:400; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">
</span><span style="font-size:10pt; font-family:Verdana; color:rgb(67,67,67); background-color:rgb(255,255,255); font-weight:400; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">for stories of Georgia
 libraries making an impact in our communities.</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jul 29, 2022 at 10:32 AM Frasur, Ruth via Evergreen-general <<a href="mailto:evergreen-general@list.evergreen-ils.org">evergreen-general@list.evergreen-ils.org</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US" style="">
<div class="x_gmail-m_-3030928695512440388WordSection1">
<p class="x_MsoNormal">Hello all,<u></u><u></u></p>
<p class="x_MsoNormal"><u></u> <u></u></p>
<p class="x_MsoNormal">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.<u></u><u></u></p>
<p class="x_MsoNormal"><u></u> <u></u></p>
<p class="x_MsoNormal"><span style="font-size:12pt; color:rgb(56,86,35)">Ruth Frasur (she/they)<u></u><u></u></span></p>
<p class="x_MsoNormal"><span style="color:rgb(56,86,35)">Coordinator<u></u><u></u></span></p>
<p class="x_MsoNormal"><i><span style="color:rgb(56,86,35)">Evergreen Indiana Library Consortium<u></u><u></u></span></i></p>
<p class="x_MsoNormal"><i><span style="color:rgb(56,86,35)">Evergreen Community Development Initiative<u></u><u></u></span></i></p>
<p class="x_MsoNormal">Indiana State Library<u></u><u></u></p>
<p class="x_MsoNormal">140 N. Senate Ave. <u></u><u></u></p>
<p class="x_MsoNormal">Indianapolis, IN 46204<u></u><u></u></p>
<p class="x_MsoNormal">(317) 232-3691<u></u><u></u></p>
<p class="x_MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Evergreen-general mailing list<br>
<a href="mailto:Evergreen-general@list.evergreen-ils.org" target="_blank">Evergreen-general@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><br>
</blockquote>
</div>
</div>
</body>
</html>