<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default">Hi Ruth,</div><div class="gmail_default"><br></div><div class="gmail_default">This description in this bug:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="https://bugs.launchpad.net/evergreen/+bug/1843339" target="_blank">https://bugs.launchpad.net/evergreen/+bug/1843339</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">includes some conditional code for the patron preferred name shared by John Amundson. </div><div class="gmail_default"><br></div><div class="gmail_default">You should be able to handle the staff user's name the same way.</div><div class="gmail_default"><br></div><div class="gmail_default">Hope this helps you, and also brings attention to the bug!</div><div class="gmail_default"><br></div><div class="gmail_default">Michele</div></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:verdana,sans-serif">--</span><br></div><div><font face="verdana, sans-serif">Michele M. Morgan, <span style="font-size:12.8px">Technical Support Analyst<br></span></font></div><div><span style="font-size:12.8px"><font face="verdana, sans-serif">North of Boston Library Exchange, Danvers Massachusetts</font></span></div><div><span style="font-size:12.8px"><a href="mailto:mmorgan@noblenet.org" target="_blank"><font face="verdana, sans-serif">mmorgan@noblenet.org</font></a></span></div><div><br></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 29, 2022 at 11:22 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="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="overflow-wrap: break-word;">
<div class="gmail-m_-2860931626568541602WordSection1">
<p class="MsoNormal">This is really great Dan! Thank you. Experimenting begins.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:rgb(56,86,35)">Ruth Frasur (she/they)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(56,86,35)">Coordinator<u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="color:rgb(56,86,35)">Evergreen Indiana Library Consortium<u></u><u></u></span></i></p>
<p class="MsoNormal"><i><span style="color:rgb(56,86,35)">Evergreen Community Development Initiative<u></u><u></u></span></i></p>
<p class="MsoNormal">Indiana State Library<u></u><u></u></p>
<p class="MsoNormal">140 N. Senate Ave. <u></u><u></u></p>
<p class="MsoNormal">Indianapolis, IN 46204<u></u><u></u></p>
<p class="MsoNormal">(317) 232-3691<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Evergreen-general <<a href="mailto:evergreen-general-bounces@list.evergreen-ils.org" target="_blank">evergreen-general-bounces@list.evergreen-ils.org</a>>
<b>On Behalf Of </b>Shula Link via Evergreen-general<br>
<b>Sent:</b> Friday, July 29, 2022 11:20 AM<br>
<b>To:</b> Evergreen Discussion Group <<a href="mailto:evergreen-general@list.evergreen-ils.org" target="_blank">evergreen-general@list.evergreen-ils.org</a>><br>
<b>Cc:</b> Shula Link <<a href="mailto:slink@gchrl.org" target="_blank">slink@gchrl.org</a>><br>
<b>Subject:</b> Re: [Evergreen-general] One more receipt template question w/ a scoop of gratitude<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">**** This is an EXTERNAL email. Exercise caution. DO NOT open attachments or click links from unknown senders or unexpected email. ****</span>
<u></u><u></u></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<div>
<div>
<p class="MsoNormal">That JSON filter is really useful to know about. Thanks for the tip!
<u></u><u></u></p>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Shula Link (she/her) <u></u><u></u></p>
<div>
<p class="MsoNormal">Systems Services Librarian<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Greater Clarks Hill Regional Library<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:slink@columbiacountyga.gov" target="_blank">slink@columbiacountyga.gov</a> | <a href="mailto:slink@gchrl.org" target="_blank">slink@gchrl.org</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">706-447-6702<u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Jul 29, 2022 at 11:14 AM Dan Briem via Evergreen-general <<a href="mailto:evergreen-general@list.evergreen-ils.org" target="_blank">evergreen-general@list.evergreen-ils.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Something like this might work:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><span ng-show="staff.pref_first_given_name">{{staff.pref_first_given_name}}</span><span ng-hide="staff.pref_first_given_name">{{staff.first_given_name}}</span>
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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 (obviously you want to remember
to remove it when you're done).<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Jul 29, 2022 at 10:32 AM Frasur, Ruth via Evergreen-general <<a href="mailto:evergreen-general@list.evergreen-ils.org" target="_blank">evergreen-general@list.evergreen-ils.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hello all,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="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="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:12pt;color:rgb(56,86,35)">Ruth Frasur (she/they)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(56,86,35)">Coordinator</span><u></u><u></u></p>
<p class="MsoNormal"><i><span style="color:rgb(56,86,35)">Evergreen Indiana Library Consortium</span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span style="color:rgb(56,86,35)">Evergreen Community Development Initiative</span></i><u></u><u></u></p>
<p class="MsoNormal">Indiana State Library<u></u><u></u></p>
<p class="MsoNormal">140 N. Senate Ave.
<u></u><u></u></p>
<p class="MsoNormal">Indianapolis, IN 46204<u></u><u></u></p>
<p class="MsoNormal">(317) 232-3691<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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="https://protect2.fireeye.com/v1/url?k=31323334-50bba2bf-31367a34-4544474f5631-2865476d45623b25&q=1&e=73db7d3b-2cf8-46da-9c86-8685e9e31bf6&u=http%3A%2F%2Flist.evergreen-ils.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fevergreen-general" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Dan Briem<br>
Harrison Public Library<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2 Bruce Ave. Harrison, NY 10528<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">(914) 835-0324<u></u><u></u></p>
<div>
<p class="MsoNormal"><a href="https://protect2.fireeye.com/v1/url?k=31323334-50bba2bf-31367a34-4544474f5631-6fbc72ac970e3074&q=1&e=73db7d3b-2cf8-46da-9c86-8685e9e31bf6&u=https%3A%2F%2Fwww.harrisonpl.org%2F" target="_blank">harrisonpl.org</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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="https://protect2.fireeye.com/v1/url?k=31323334-50bba2bf-31367a34-4544474f5631-2865476d45623b25&q=1&e=73db7d3b-2cf8-46da-9c86-8685e9e31bf6&u=http%3A%2F%2Flist.evergreen-ils.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fevergreen-general" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</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>