Re: [OPEN-ILS-GENERAL] Preferred Name on Notices

2019-10-01 Thread John Amundson
Hi,

I recently set this up for a library.

The following code prints Holds Alias if it exists, if it doesn't, it
prints preferred name(s), and if those don't exist, it prints primary
name(s):

{{patron.alias}}

{{patron.pref_family_name}},
{{patron.family_name}},
{{patron.pref_first_given_name}}
{{patron.first_given_name}}
{{patron.pref_second_given_name}}
{{patron.second_given_name}}




John Amundson | Library Applications Supervisor | CW MARS

jamund...@cwmars.org | 508-755-3323 x322 <%28508%29%20755-3323>

https://www.cwmars.org


On Tue, Oct 1, 2019 at 10:52 AM Terran McCanna <
tmcca...@georgialibraries.org> wrote:

> I haven't actually tested this, but I *think* something like this should
> work:
>
>
> {{patron.alias}}
>
> 
>(your other code to show preferred name or legal name here)
> 
>
>
>
> 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...@help.georgialibraries.org
>
> 
> 
>
> Join our email list  for stories of Georgia
> libraries making an impact in our communities.
>
>
>
> On Tue, Oct 1, 2019 at 10:32 AM Lindsay Stratton 
> 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" 
>> *To: *"Evergreen Discussion Group" <
>> open-ils-general@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 / bkal...@forbeslibrary.org
>>
>> Support Forbes Library:
>>
>>- Consider giving a gift  to
>>Forbes Library
>>- Vote for the Friends of Forbes in the Florence Bank Community Grant
>>Program .
>>-
>>- Join the Friends the Forbes today
>>!
>>
>>
>> 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 <
>> tmcca...@georgialibraries.org> wrote:
>>
>>> This is what we're using in PINES (we moved the name to the top in a
>>> large font):
>>>
>>> >> ng-if="patron.pref_family_name">{{patron.pref_family_name}}>> ng-if="!patron.pref_family_name">{{patron.family_name}},
>>>   >> ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}>> ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}
>>>   >> ng-if="patron.pref_second_given_name">{{patron.pref_second_given_name}}>> ng-if="!patron.pref_second_given_name">{{patron.second_given_name}}
>>>
>>>
>>>
>>>
>>>
>>> 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...@help.georgialibraries.org
>>>
>>> 
>>> 
>>>
>>> Join our email list  for stories of
>>> Georgia libraries making an impact in our communities.
>>>
>>>
>>>
>>> On Thu, Aug 29, 2019 at 12:58 PM Kean XL  wrote:
>>>
 I think I finally got this. Please correct if I'm wrong...
 Here's our full current hold slip template

 -->
 
 
 
 {{hold.shelf_expire_time | date:'M/d'}}
 
 {{patron.family_name}}
 
 {{patron.pref_family_name}}
 
 
 
 {{patron.first_given_name}} 
 {{patron.pref_first_given_name}}
 
 Notify by
 Phone: 

Re: [OPEN-ILS-GENERAL] Preferred Name on Notices

2019-10-01 Thread Terran McCanna
I haven't actually tested this, but I *think* something like this should
work:


{{patron.alias}}


   (your other code to show preferred name or legal name here)




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...@help.georgialibraries.org




Join our email list  for stories of Georgia
libraries making an impact in our communities.



On Tue, Oct 1, 2019 at 10:32 AM Lindsay Stratton 
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" 
> *To: *"Evergreen Discussion Group" <
> open-ils-general@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 / bkal...@forbeslibrary.org
>
> Support Forbes Library:
>
>- Consider giving a gift  to
>Forbes Library
>- Vote for the Friends of Forbes in the Florence Bank Community Grant
>Program .
>-
>- Join the Friends the Forbes today
>!
>
>
> 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 <
> tmcca...@georgialibraries.org> wrote:
>
>> This is what we're using in PINES (we moved the name to the top in a
>> large font):
>>
>> > ng-if="patron.pref_family_name">{{patron.pref_family_name}}> ng-if="!patron.pref_family_name">{{patron.family_name}},
>>   > ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}> ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}
>>   > ng-if="patron.pref_second_given_name">{{patron.pref_second_given_name}}> ng-if="!patron.pref_second_given_name">{{patron.second_given_name}}
>>
>>
>>
>>
>>
>> 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...@help.georgialibraries.org
>>
>> 
>> 
>>
>> Join our email list  for stories of Georgia
>> libraries making an impact in our communities.
>>
>>
>>
>> On Thu, Aug 29, 2019 at 12:58 PM Kean XL  wrote:
>>
>>> I think I finally got this. Please correct if I'm wrong...
>>> Here's our full current hold slip template
>>>
>>> -->
>>> 
>>> 
>>> 
>>> {{hold.shelf_expire_time | date:'M/d'}}
>>> 
>>> {{patron.family_name}} 
>>> {{patron.pref_family_name}}
>>> 
>>> 
>>> 
>>> {{patron.first_given_name}} 
>>> {{patron.pref_first_given_name}}
>>> 
>>> Notify by
>>> Phone: {{hold.phone_notify}} 
>>> >> "hold.phone_notify">Daytime Phone: {{patron.day_phone}} 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>>
>>> 
>>>   
>>> 
>>>   Route to the Private Hold Shelf.
>>> 
>>> 
>>>   Route to the Hold Shelf.
>>> 
>>>   
>>>   
>>> Hold Shelf Expire Date: {{hold.shelf_expire_time | date:'M/d/'}}
>>>   Item Barcode: {{copy.barcode}}
>>>   Title: {{title}}
>>>
>>>   Call Number: {{call_number.prefix}} {{call_number.label}}
>>> {{call_number.suffix}}
>>>
>>>
>>>
>>>
>>>   
>>>
>>>
>>>
>>>
>>> 
>>>   Hold for patron: {{patron.family_name}},
>>> {{patron.first_given_name}}
>>>   Notify by phone:
>>> {{hold.phone_notify}}
>>>   Notify by text: {{hold.sms_notify}}
>>>   Notify by email:
>>> {{patron.email}}
>>>   Daytime
>>> Phone: {{patron.day_phone}} 
>>> 
>>>   Notes:
>>> {{note.title}} - {{note.body}}
>>>   
>>> 
>>>   
>>>
>>>

Re: [OPEN-ILS-GENERAL] Preferred Name on Notices

2019-10-01 Thread Lindsay Stratton
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" 
> To: "Evergreen Discussion Group" 
> 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 / [ mailto:bkal...@forbeslibrary.org |
> bkal...@forbeslibrary.org ]

> Support Forbes Library:

>* Consider [ http://www.forbeslibrary.org/giving | giving a gift ] to 
> Forbes
> Library
>* Vote for the Friends of Forbes in the [ 
> https://www.florencebank.com/vote |
> Florence Bank Community Grant Program ] .
> *
> * [ https://forbeslibrary.org/friends/ | Join the Friends the Forbes 
> today ] !

> 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/ |
> http://forbeslibrary.org/accessibility/ ]

> On Mon, Sep 9, 2019 at 2:24 PM Terran McCanna < [
> mailto:tmcca...@georgialibraries.org | tmcca...@georgialibraries.org ] > 
> wrote:

>> This is what we're using in PINES (we moved the name to the top in a large
>> font):

>> > ng-if="patron.pref_family_name">{{patron.pref_family_name}}> ng-if="!patron.pref_family_name">{{patron.family_name}},
>> > ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}> ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}
>> > ng-if="patron.pref_second_given_name">{{patron.pref_second_given_name}}> ng-if="!patron.pref_second_given_name">{{patron.second_given_name}}



>> 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 | [ mailto:tmcca...@georgialibraries.org |
>> tmcca...@georgialibraries.org ]

>> [ http://help.georgialibraries.org/ | http://help.georgialibraries.org ] | [
>> mailto:h...@help.georgialibraries.org | h...@help.georgialibraries.org ]

>> [ https://www.facebook.com/georgialibraries ] [
>> https://www.twitter.com/georgialibs ]

>> [ http://georgialibraries.org/ | Join our email list ] for stories of Georgia
>> libraries making an impact in our communities.

>> On Thu, Aug 29, 2019 at 12:58 PM Kean XL < [ mailto:kea...@ivpl.org |
>> kea...@ivpl.org ] > wrote:

>>> I think I finally got this. Please correct if I'm wrong...
>>> Here's our full current hold slip template

>>> -->
>>> 
>>> 
>>> 
>>> {{hold.shelf_expire_time | date:'M/d'}}
>>> 
>>> {{patron.family_name}} 
>>> {{patron.pref_family_name}}
>>> 
>>> 
>>> 
>>> {{patron.first_given_name}}
>>> 
>>> {{patron.pref_first_given_name}}
>>> 
>>> Notify by Phone:
>>> {{hold.phone_notify}} 
>>> >> "hold.phone_notify">Daytime Phone: {{patron.day_phone}} 
>>> 
>>> 
>>> 
>>> 
>>> 

>>> 
>>> 
>>> 
>>> Route to the Private Hold Shelf.
>>> 
>>> 
>>> Route to the Hold Shelf.
>>> 
>>> 
>>> 
>>> Hold Shelf Expire Date: {{hold.shelf_expire_time | date:'M/d/'}}
>>> Item Barcode: {{copy.barcode}}
>>> Title: {{title}}

>>> Call Number: {{call_number.prefix}} {{call_number.label}}
>>> {{call_number.suffix}}

>>> 

>>> 
>>> Hold for patron: {{patron.family_name}}, 
>>> {{patron.first_given_name}}
>>> Notify by phone: {{hold.phone_notify}}
>>> Notify by text: {{hold.sms_notify}}
>>> Notify by email: 
>>> {{patron.email}}
>>> Daytime Phone:
>>> {{patron.day_phone}} 
>>> 
>>> Notes:
>>> {{note.title}} - {{note.body}}
>>> 
>>> 
>>> 

>>> Request Date: {{hold.request_time | 
>>> date:$root.egDateAndTimeFormat}}

>>> Printed: {{today | date:$root.egDateAndTimeFormat}} at
>>> {{current_location.shortname}}
>>> 
>>> 
>>> <
>>> 

>>> On Thu, Aug 29, 2019 at 12:22 PM Elizabeth Davis < [ 
>>> mailto:eda...@albright.org
>>> | eda...@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: [
 mailto:open-ils-general-boun...@list.georgialibraries.org |