Customizing Evergreen’s Receipt Templates Terran McCanna PINES Program Manager Georgia Public Library Service tmccanna@georgialibraries.org
Receipts Windows Printer Settings Evergreen Printer Settings Evergreen Receipt Templates
Receipts Overall Steps for Setting Up Receipts Install Printer Drivers for Laser and Receipt Printers and Set Up Paper Size / Properties Set Windows Default Printer to the Laser Printer Configure Evergreen Printer Settings Default Settings = Laser Printer Receipt Settings = Receipt Printer Offline Settings = Receipt Printer Instructions at: http://pines.georgialibraries.org/printers Customize Receipt Templates
Receipts Receipt Template Editor > Admin > Workstation Administration > Receipt Template Editor
Receipts Macros
Receipts Macros
Receipts Macros
Receipts Macros
Receipts HTML Function Template Result Bold My <b>Library</b> My Library Italic My <i>Library</i> Underlined My <u>Library</u> Bold & Underlined My <b><u>Library</u></b> Line Break My<br/>Library Line My Library<hr/> Center <center>MyLib</center> MyLib
Receipts HTML Function Template Result Center <center>MyLib</center> MyLib <p align=“center”>MyLib</p> Push to the Right <p align=“right”>MyLib</p>
Receipts Numbered List of Items or Bills Header Welcome to %LIBRARY%!<br/>You have the following items checked out:<hr/><ol> Line Item <li>%title%<br/>Due on %due_date%</li> Footer </ol><hr/> Result
Receipts Bulleted List of Items or Bills Header Welcome to %LIBRARY%!<br/>You have the following items checked out:<hr/><ul> Line Item <li>%title%<br/>Due on %due_date%</li> Footer </ul><hr/> Result
Receipts Add an Image Upload an image to your web site and note the URL. Add code to receipt template header or footer: <img src=“my image path” /> Example: <img src="http://pines.georgialibraries.org/sites/default/files/PINESLogo.gif" />
Receipts Add an Image
Receipts Adjust Image Size If image size is too large for the receipt, you can shrink the size it prints at with HTML: <img src="http://pines.georgialibraries.org/sites/default/files/PINESLogo.gif" width="100%" /><br/>
Receipts Tables Header Welcome to %LIBRARY%!<br/>You have the following items checked out:<table border=“1” cellpadding=“5” cellspacing=“0”> Line Item <tr><td>Title:</td><td>%title%</td></tr> <tr><td>Due:</td><td>%due_date%</td></tr> Footer </table> Result
Receipts Font Changes with CSS My text Function Template Result Change Font <p style="font-family:arial,sans-serif;">My text</p> <p style="font-family:times,serif;">My text</p> My text Change Size <p style="font-size:xx-large;">My text</p> <p style="font-size:large;">My text</p> <p style="font-size:small;">My text</p> Both <p style=“font-size:large;font-family:arial,sans-serif;”>My text</p>
Receipts Font Changes with CSS Function Template Result Change Case <p style="text-transform:uppercase;">My text</p> <p style="text-transform:lowercase;">My text</p> <p style="text-transform:capitalize;">My text</p> MY TEXT my text My Text
Receipts Date Format for Due Date Code Result %due_date% 2014-10-06 %DATE_FORMAT(%due_date%, %m/%d/%Y)% 10/06/2014
Receipts Date Format for Today’s Date Code Result %TODAY% Tue Sep 30 2014 17:04:29 GMT-0400 (Eastern Daylight Time) %TODAY_TRIM% 2014-09-30 17:04 %TODAY_F% 2014-09-30 %DATE_FORMAT(%TODAY_F%,%m/%d/%Y)% 09/30/2014
Receipts Trim Strings Function Template Result Print First x Characters Only %SUBSTR(0,11)% %title% %SUBSTR_END% Crime and P Print Last x Characters Only %SUBSTR(-4)% %PATRON_BARCODE% 5648
Receipts Sort List of Items Alphabetically Function Template Result Sort by Title In Line Item: %SORT(title)% <li>%title%<br/> %due_date%</li>
Receipts Example: Large Transit Info Function Template Result Put large transit info at top of slip In header: <p style="font-family:arial; font-size:xx-large;"> %route_to%<br/> %courier_code%</p><hr/>
Receipts Example: Add Balance Owed This only works on checkout, not on items_out. Function Template Result Put balance owed at bottom of slip: In footer: <br/> <b>YOU OWE: $%balance_owed%</b>
Receipts Example: Show Total Value Function Template Result Add up item prices In Line Item: Value: <span sum="price">%price%</span> In Footer: Total Value: <span sumout="price" fixed="2"></span>
Receipts Includes Use Includes to store and update standard text that will be used on multiple receipts and/or workstations. Permissions needed: UPDATE_ORG_UNIT_SETTING.circ.staff_client.receipt.alert_text UPDATE_ORG_UNIT_SETTING.circ.staff_client.receipt.event_text UPDATE_ORG_UNIT_SETTING.circ.staff_client.receipt.footer_text UPDATE_ORG_UNIT_SETTING.circ.staff_client.receipt.header_text UPDATE_ORG_UNIT_SETTING.circ.staff_client.receipt.notice_text
Receipts Includes First, Edit Text in the Library Settings Editor: Go to the Library Settings Editor (Admin > Local Administration > Library Settings Editor). Choose your Context Location (local branch or local system). After the list loads, filter by "include" to display the list of options: alert_text, notice_text, event_text, header_text, footer_text.
Receipts Includes
Receipts Includes
Receipts Includes Next, Update Receipt Template: Go to the Receipt Template Editor Choose a template you'd like to add the Include to (for example, checkout). Add the macro: %INCLUDE(x)%
Receipts Includes Test Results:
Receipts Sharing Receipt Templates Receipt templates must be updated on each workstation individually, but you can export and import to make the job easier.
Receipts Export Customized Receipt Templates Update and save all of the receipt templates you wish to modify on one workstation. In the Receipt Template Editor on that workstation, click the Export button (it does not matter which template you are viewing, as it will export all of them). Save it to a convenient location (flash drive, network drive, etc.)
Receipts Import Customized Receipt Templates Go to a workstation you want to add the receipt templates to - open the Receipt Template Editor. Click the Import button (it does not matter which template you are viewing, as it will import all templates). Navigate to the location of your exported template file and either double-click on the file name or click the Open button on the pop-up window. Click the Save Locally button.
Receipts For Further Information: http://pines.georgialibraries.org/receipt-templates http://pines.georgialibraries.org/receipt-templates