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
preview scope data defined in
/var/web/js/ui/default/staff/admin/workstation/app.js and what is actually
available during printing.

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

http://help.georgialibraries.org | h...@georgialibraries.org

<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 11:14 AM Dan Briem via Evergreen-general <
evergreen-general@list.evergreen-ils.org> wrote:

> Something like this might work:
>
> <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>
>
> 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).
>
> On Fri, Jul 29, 2022 at 10:32 AM Frasur, Ruth via Evergreen-general <
> evergreen-general@list.evergreen-ils.org> 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
>> Evergreen-general@list.evergreen-ils.org
>> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general
>>
>
>
> --
> Dan Briem
> Harrison Public Library
> 2 Bruce Ave. Harrison, NY 10528
> (914) 835-0324
> harrisonpl.org <https://www.harrisonpl.org>
> _______________________________________________
> Evergreen-general mailing list
> Evergreen-general@list.evergreen-ils.org
> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general
>
_______________________________________________
Evergreen-general mailing list
Evergreen-general@list.evergreen-ils.org
http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general

Reply via email to