[OPEN-ILS-GENERAL] Preferred Name on Notices

Terran McCanna tmccanna at georgialibraries.org
Tue Oct 1 10:51:00 EDT 2019


I haven't actually tested this, but I *think* something like this should
work:


<span ng-if="patron.alias; else elseBlock">{{patron.alias}}</span>

<ng-template #elseBlock>
   (your other code to show preferred name or legal name here)
</ng-template>



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 | tmccanna at georgialibraries.org

http://help.georgialibraries.org | help at help.georgialibraries.org

<https://www.facebook.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 Tue, Oct 1, 2019 at 10:32 AM Lindsay Stratton <lstratton at pls-net.org>
wrote:

> Has anybody configured their hold slips to print a hold alias if one is
> present, or else a preferred name if present, or the primary name if that's
> the only name present?
>
> I have managed preferred or primary, and can get an alias to print in
> addition to preferred or primary names, but I'm stuck trying to get  alias
> or preferred/primary.
>
> Lindsay
>
>
> Lindsay Stratton
> Library Automation Services Manager
> Pioneer Library System
> 2557 State Rte 21
> Canandaigua, NY 14424
>
>
> ------------------------------
>
> *From: *"Benjamin Kalish" <bkalish at forbeslibrary.org>
> *To: *"Evergreen Discussion Group" <
> open-ils-general at list.georgialibraries.org>
> *Sent: *Saturday, September 21, 2019 10:46:32 AM
> *Subject: *Re: [OPEN-ILS-GENERAL] Preferred Name on Notices
>
> I have found it helpful to add something like {{patronName =
> (patron.pref_family_name || patron.family_name) + ", " +
> (patron.pref_first_given_name || patron.first_given_name); "";}} to the top
> of my print templates. Then I can just use {{patronName}} to get the comma
> inverted name, taking preferred names into account, wherever I need it in
> my template.
>
> Benjamin Kalish
> Forbes Library / 413-587-1012 / bkalish at forbeslibrary.org
>
> Support Forbes Library:
>
>    - Consider giving a gift <http://www.forbeslibrary.org/giving> to
>    Forbes Library
>    - Vote for the Friends of Forbes in the Florence Bank Community Grant
>    Program <https://www.florencebank.com/vote>.
>    -
>    - Join the Friends the Forbes today
>    <https://forbeslibrary.org/friends/>!
>
>
> Currently reading: *The Indian Clerk* by David Leavitt
> Just Finished:* The Tombs of Atuan* by Ursula K. Le Guin
>
> For information about accessibility at the library, please see:
> http://forbeslibrary.org/accessibility/
>
>
>
> On Mon, Sep 9, 2019 at 2:24 PM Terran McCanna <
> tmccanna at georgialibraries.org> wrote:
>
>> This is what we're using in PINES (we moved the name to the top in a
>> large font):
>>
>> <h1><span
>> ng-if="patron.pref_family_name">{{patron.pref_family_name}}</span><span
>> ng-if="!patron.pref_family_name">{{patron.family_name}}</span>,
>>   <span
>> ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}</span><span
>> ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}</span>
>>   <span
>> ng-if="patron.pref_second_given_name">{{patron.pref_second_given_name}}</span><span
>> ng-if="!patron.pref_second_given_name">{{patron.second_given_name}}</span></h1>
>>
>>
>>
>>
>>
>> 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 | tmccanna at georgialibraries.org
>>
>> http://help.georgialibraries.org | help at help.georgialibraries.org
>>
>> <https://www.facebook.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 Thu, Aug 29, 2019 at 12:58 PM Kean XL <keanxl at ivpl.org> wrote:
>>
>>> I think I finally got this. Please correct if I'm wrong...
>>> Here's our full current hold slip template
>>>
>>> -->
>>> <p style="padding-top:30px">
>>> <b>
>>> <font size="7">
>>> {{hold.shelf_expire_time | date:'M/d'}}
>>> <div>
>>> <div ng-if="patron.pref_family_name == 'f'">{{patron.family_name}} </div>
>>> <div>{{patron.pref_family_name}}
>>> </font>
>>> </div>
>>> <font size="5">
>>> <div ng-if="patron.pref_first_given_name ==
>>> 'f'">{{patron.first_given_name}} </div>
>>> <div>{{patron.pref_first_given_name}}</div>
>>> </p>
>>> <div ng-if="hold.email_notify == 'f'" && "hold.sms_notify">Notify by
>>> Phone: {{hold.phone_notify}} </div>
>>> <div ng-if="hold.email_notify == 'f'" && "hold.sms_notify" &&
>>> "hold.phone_notify">Daytime Phone: {{patron.day_phone}} </div>
>>> <p style=;padding-bottom:40px>
>>> </div>
>>> </font>
>>> </b>
>>> </p>
>>>
>>>
>>>
>>>
>>> <div>
>>>   <div ng-switch on="hold.behind_desk">
>>>     <div ng-switch-when="t">
>>>       Route to the <strong>Private Hold Shelf</strong>.
>>>     </div>
>>>     <div ng-switch-when="f">
>>>       Route to the <strong>Hold Shelf</strong>.
>>>     </div>
>>>   </div>
>>>   <br/>
>>> Hold Shelf Expire Date: {{hold.shelf_expire_time | date:'M/d/yyyy'}}<div>
>>>   Item Barcode: {{copy.barcode}}</div>
>>>   Title: {{title}}</div>
>>>
>>>   Call Number: {{call_number.prefix}} {{call_number.label}}
>>> {{call_number.suffix}}</div>
>>>
>>>
>>>
>>>
>>>   <br/>
>>>
>>>
>>>
>>>
>>> <div>
>>>   <div>Hold for patron: {{patron.family_name}},
>>> {{patron.first_given_name}}</div>
>>>   <div ng-if="hold.phone_notify">Notify by phone:
>>> {{hold.phone_notify}}</div>
>>>   <div ng-if="hold.sms_notify">Notify by text: {{hold.sms_notify}}</div>
>>>   <div ng-if="hold.email_notify == 't'">Notify by email:
>>> {{patron.email}}</div>
>>>   <div ng-if="hold.email_notify == 'f'" && "hold.sms_notify">Daytime
>>> Phone: {{patron.day_phone}} </div>
>>> <div ng-if="hold_notes">
>>>       <ul>Notes:
>>>         <li ng-repeat="note in hold_notes | filter: {slip :
>>> 't'}"><strong>{{note.title}}</strong> - {{note.body}}</li>
>>>       </ul>
>>>     </div>
>>>   <br/>
>>>
>>>
>>>
>>>
>>>   <div>Request Date: {{hold.request_time |
>>> date:$root.egDateAndTimeFormat}}</div>
>>>
>>>
>>>
>>>
>>>   <div>Printed: {{today | date:$root.egDateAndTimeFormat}} at
>>> {{current_location.shortname}}</div>
>>> <p style="padding-bottom:160px">
>>> </p>
>>> <
>>> </div>
>>>
>>> On Thu, Aug 29, 2019 at 12:22 PM Elizabeth Davis <edavis at albright.org>
>>> wrote:
>>>
>>>> Hello
>>>>
>>>>
>>>>
>>>> I am using {{patron.pref_first_given_name}} in the print templates for
>>>> receipts.  I am curious if user.pref_first_give_name work?  Can I have it
>>>> print the preferred if it’s there and the first_given_name if there isn’t
>>>> one?
>>>>
>>>>
>>>>
>>>> Elizabeth
>>>>
>>>>
>>>>
>>>> *From:* Open-ils-general [mailto:
>>>> open-ils-general-bounces at list.georgialibraries.org] *On Behalf Of *Kean
>>>> XL
>>>> *Sent:* Thursday, August 29, 2019 12:18 PM
>>>> *To:* Evergreen Discussion Group <
>>>> open-ils-general at list.georgialibraries.org>
>>>> *Subject:* Re: [OPEN-ILS-GENERAL] Preferred Name on Notices
>>>>
>>>>
>>>>
>>>> What was the marker you were using for the preferred name? Is there a
>>>> list of referable string names for the print templates?
>>>>
>>>>
>>>>
>>>> On Thu, Aug 29, 2019 at 11:49 AM Elizabeth Davis <edavis at albright.org>
>>>> wrote:
>>>>
>>>> Hello Everyone,
>>>>
>>>>
>>>>
>>>> We just upgraded to 3.3 and I added the angular code in the print
>>>> templates for preferred name and was curious if anyone uses preferred name
>>>> in their trigger notifications.  I would like to be consistent.
>>>>
>>>>
>>>>
>>>> Thank you,
>>>>
>>>>
>>>>
>>>> Elizabeth Davis
>>>>
>>>> Head of Digital Services
>>>>
>>>> Scranton Public Library
>>>>
>>>> 500 Vine Street
>>>>
>>>> Scranton, PA 18509
>>>>
>>>> 570-348-3000 ext. 3050
>>>>
>>>> edavis at albright.org
>>>>
>>>> pronouns: she/her/hers
>>>>
>>>>
>>>>
>>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20191001/768a5113/attachment-0001.html>


More information about the Open-ils-general mailing list