[OPEN-ILS-GENERAL] Organizational unit address in receipttemplates

Garry Collum gcollum at gmail.com
Wed Jul 31 16:17:42 EDT 2019

Hi Eva,

If you need to be able to use html, you could just add some logic to the templates with the address information.  Of course the number of locations that you have may render this solution impractical.

<div ng-if="current_location.shortname == 'BR1'">
22 Main Street<br>
Big City, TX
<div ng-if="current_location.shortname == 'BR2'">
22 Oak Street<br>
Little City, TX


From: John Amundson
Sent: Wednesday, July 31, 2019 2:30 PM
To: Evergreen Discussion Group
Subject: Re: [OPEN-ILS-GENERAL] Organizational unit address in receipttemplates

I filed a bug a while back regarding the HTML-less nature of these library settings in the web client. It can be found here: https://bugs.launchpad.net/evergreen/+bug/1801143

This is also almost possible in the print templates themselves, but I don't think all the necessary fields are exposed currently. For example,
{{current_location.billing_address}} gets me the ID associated with the workstation library's billing address. However, if I try things like {{current_location.billing_address.street1}} or {{current_location.billing_address.city}}, it does not work. I tested in the Bills, Current template, so I can't say this will be true for all templates.

The library's name can be displayed with {{current_location.name}}.


John Amundson | Library Applications Supervisor | CW MARS
jamundson at cwmars.org | 508-755-3323 x322

On Wed, Jul 31, 2019 at 12:47 PM Terran McCanna <tmccanna at georgialibraries.org> wrote:
Ah, I forgot that HTML didn't work with the web client includes. I've updated my notes.

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

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

On Wed, Jul 31, 2019 at 12:11 PM Lynn Floyd <lfloyd at andersonlibrary.org> wrote:
An include statement is the best way to do this currently.  I would also add an wish list item to LaunchPad to include this information for use in the templates.
Just a note of warning, the includes cannot include any HTML, just your basic text currently.  
Lynn Floyd
Lfloyd at andersonlibrary.org
Anderson County Library
Anderson, SC
From: Open-ils-general <open-ils-general-bounces at list.georgialibraries.org> On Behalf Of Terran McCanna
Sent: Wednesday, July 31, 2019 8:31 AM
To: cerninakova at jabok.cz; Group, Evergreen <open-ils-general at list.georgialibraries.org>
Subject: Re: [OPEN-ILS-GENERAL] Organizational unit address in receipt templates
Hi Eva - you can still use the library settings to add standard text blocks. I have instructions in the PINES docs here: 
On Wed, Jul 31, 2019, 8:03 AM Cerninakova Eva <cernin at jabok.cz> wrote:
I am trying to set up web staff client print templates for our consortium  (in Evergreen 3.3.2).  We would like to use the same print templates for the whole consortium and avoid the necessity to save the templates locally. We need include  "current" library address (i.e., address of the library, where the receipt is printed)  in some receipt. However, I have not found and opportunity to add the library addres data to receipt templates. It is only possible to add library code and name.
In the XUL client, we used the opportunity to set up the receipts header and footer for the particular library in the Library Setting Editor. The setting is present in the web client too, but I suppose  it is obsolete and don't work with the angular print templates. (Or I am wrong?)

Ideally we need to add at least the organizational unit physical (or mailing) address street1, city, zip code, phone number and SAN  to the following templates:
• Bills, Current (t_bills_current.tt2)
• Bills, Historical  (t_bills_historical.tt2)
• Bills, Payment (t_bill_payment.tt2)
• Patron data (t_patron_data.tt2)  - (some of our libraries would like to use this print output for  the "official" patron-library contract, so they need not only the library name, but also the address) 
Is there presently an option to insert automatically the current library address into the print outputs listed above?

Thanks a lot for any help
Mgr. Eva Cerniňáková
cernin at jabok.cz
Tel. +420 211 222 409

Knihovna Jabok
Tel.  +420 211 222 410
Jabok - Vyšší odborná škola sociálně pedagogická a teologická
Salmovská 8, 120 00 Praha 2

Bez virů. www.avast.com 

Lynn Floyd
Head of Information Technology
Anderson County Library
Anderson, SC
lfloyd at andersonlibrary.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20190731/fe013f60/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9A5024EB58BE42FCBBA05833BE86BBED.png
Type: image/png
Size: 131 bytes
Desc: not available
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20190731/fe013f60/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 350 bytes
Desc: not available
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20190731/fe013f60/attachment-0001.jpg>

More information about the Open-ils-general mailing list