[OPEN-ILS-GENERAL] receipt templates

Jennifer Bruch jbruch at bapl.org
Tue Apr 24 12:16:10 EDT 2018


Formatting Overview:
https://pines.georgialibraries.org/dokuwiki/doku.php?id=circ:workstations:receipts

Substrings

To print just a substring of a variable, you can use a *limitTo* function:
{{variable | limitTo:limit}} where limit is the number of characters you
want.
Original Code Result
The Sisterhood of the Traveling Pants {{checkout.title | limitTo:10}} The
Sisterhood of th
123456789 {{patron.card.barcode | limitTo:-5}} 56789


*Jennifer Bruch*
Bethlehem Area Public Library
11 W. Church Street
Bethlehem, PA 18018
610-867-3761 x232

On Tue, Apr 24, 2018 at 12:09 PM, Diane Disbro <ddisbro at scenicregional.org>
wrote:

> Thank you!
>
> Something like this* http://docs.evergreen-ils.org/3.0/_receipt_template_editor.html
> <http://docs.evergreen-ils.org/3.0/_receipt_template_editor.html>* for
> Webby is what those of us who aren't programmer need. My most pressing need
> is language for Hold_Slip #2.
>
> Hold_Slip #2
>
> This is the slip that prints when a hold is fulfilled. This slip uses the
> SUBSTR macro to truncate the Patrons Last name to the first 4 characters
> and the patron’s barcode to the last 5 digits. This slip is designed for
> libraries that use self-serve holds. So, you will notice a lot of
> information about the hold is left off of the receipt.
>
> Header
>
> <p style="padding-top:80px; padding-bottom:80px">
> <font size="6"><b>
> %SUBSTR(0,4)%%PATRON_LASTNAME%%SUBSTR_END%
>  %SUBSTR(-5)%%PATRON_BARCODE%%SUBSTR_END%
> </b></font></p>
> </font><br/><br/><br/><br/>
> This item needs to be routed to <b>%route_to%</b>:<br/>
> Barcode: %item_barcode%<br/>
> Title: %item_title%<br/>
> <br/>
> Notify by phone: %notify_by_phone%<br/>
>
> Notify by email: %notify_by_email%<br/>
>
> Notify by text: %notify_by_text%<br/>
>
> Line Item
>
> <em>%formatted_note%</em><br/>
>
> Footer
>
> Request date: %request_date%<br/>
> <hr style="border: 1px dotted"/><br/>
> Slip Date: %TODAY_TRIM%<br/>
>
>
>
> Diane Disbro
> Branch Manager/Circulation Coordinator
> Union Branch
> Scenic Regional Library
> 308 Hawthorne Drive
> <https://maps.google.com/?q=308+Hawthorne+Drive+Union,+MO+%C2%A0+%C2%A0+63084&entry=gmail&source=g>
> Union, MO     63084
> <https://maps.google.com/?q=308+Hawthorne+Drive+Union,+MO+%C2%A0+%C2%A0+63084&entry=gmail&source=g>
> (636) 583-3224
> ddisbro at scenicregional.org
>
> On Tue, Apr 24, 2018 at 10:47 AM, Jennifer Bruch <jbruch at bapl.org> wrote:
>
>> One thing I have not gotten down yet is sorting, I was able to sort the
>> Holds Pull List by Shelving Location Etc and items in a Check Out slip by
>> Due Date. However, I have not got it working in Webby yet.
>>
>> *Jennifer Bruch*
>> Bethlehem Area Public Library
>> 11 W. Church Street
>> <https://maps.google.com/?q=11+W.+Church+Street+%C2%A0+Bethlehem,+PA+18018+%C2%A0+610&entry=gmail&source=g>
>> Bethlehem, PA 18018
>> <https://maps.google.com/?q=11+W.+Church+Street+%C2%A0+Bethlehem,+PA+18018+%C2%A0+610&entry=gmail&source=g>
>> 610
>> <https://maps.google.com/?q=11+W.+Church+Street+%C2%A0+Bethlehem,+PA+18018+%C2%A0+610&entry=gmail&source=g>-867-3761
>> x232
>>
>> On Tue, Apr 24, 2018 at 11:46 AM, Jennifer Bruch <jbruch at bapl.org> wrote:
>>
>>> Here is where to start, PINES documentation. Then after that it is html
>>> and a lot of tinkering.
>>>
>>> https://pines.georgialibraries.org/dokuwiki/doku.php?id=circ
>>> :workstations:receipt-content
>>>
>>> *Jennifer Bruch*
>>> Bethlehem Area Public Library
>>> 11 W. Church Street
>>> <https://maps.google.com/?q=11+W.+Church+Street+%C2%A0+Bethlehem,+PA+18018+%C2%A0+610&entry=gmail&source=g>
>>> Bethlehem, PA 18018
>>> <https://maps.google.com/?q=11+W.+Church+Street+%C2%A0+Bethlehem,+PA+18018+%C2%A0+610&entry=gmail&source=g>
>>> 610
>>> <https://maps.google.com/?q=11+W.+Church+Street+%C2%A0+Bethlehem,+PA+18018+%C2%A0+610&entry=gmail&source=g>-867-3761
>>> x232
>>>
>>> On Tue, Apr 24, 2018 at 11:43 AM, Diane Disbro <
>>> ddisbro at scenicregional.org> wrote:
>>>
>>>> *Good morning -*
>>>>
>>>> *When we migrate to Webby, we will need to set up our receipt templates
>>>> again. I couldn't find instructions for doing that in the official
>>>> documentation. All I can see is that XUL template language (hold transit
>>>> slip below)*
>>>>
>>>>
>>>>
>>>> * doesn't look like the Webby template language.*
>>>>
>>>>
>>>>
>>>>
>>>> *There are a LOT of differences between the two templates. Where can I
>>>> find instructions for this?*
>>>>
>>>> Thank you.
>>>> Diane Disbro
>>>> Branch Manager/Circulation Coordinator
>>>> Union Branch
>>>> Scenic Regional Library
>>>> 308 Hawthorne Drive
>>>> <https://maps.google.com/?q=308+Hawthorne+Drive+Union,+MO+%C2%A0+%C2%A0+63084&entry=gmail&source=g>
>>>> Union, MO     63084
>>>> <https://maps.google.com/?q=308+Hawthorne+Drive+Union,+MO+%C2%A0+%C2%A0+63084&entry=gmail&source=g>
>>>> (636) 583-3224
>>>> ddisbro at scenicregional.org
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20180424/e88982bf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9478 bytes
Desc: not available
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20180424/e88982bf/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 15252 bytes
Desc: not available
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20180424/e88982bf/attachment-0003.png>


More information about the Open-ils-general mailing list