Receipt Template Editor ----------------------- indexterm:[receipt template editor] indexterm:[receipt template editor, macros] indexterm:[receipt template editor, checkout] There are many default receipt templates included with the Evergreen staff client. These templates are saved on individual workstations. Customization can be done workstation by workstation or by exporting the templates to import to other workstations. All receipts in Evergreen follow a basic format of a _Header_, _Line item_ and _Footer_. The receipt templates follow full W3C html. http://w3schools.com/html/default.asp. The Receipt Template Editor can be found at: *Admin -> Workstation Administration -> Receipt Template Editor* The Editor can also be found on the default home page of the staff client. Receipts come in various types: Bills, checkout, items, holds, transits and Payments. To edit a Receipt: . Select *Admin -> Workstation Administration -> Receipt Template Editor*. . Choose the Receipt in the drop down list. + image::media/receipt-2.png[select checkout] + . Make edits to the Receipt on the right hand side. + image::media/receipt-3.jpg[receipt-3] + . Click out of the section you are editing to see what your changes will look right on the Left hand side. + image::media/receipt-3.jpg[receipt-3] + . Click ''Save Locally'' in the Upper right hand corner. + image::media/receipt-15.jpg[receipt-15] Receipt templates use macros for various pieces of information coming from the Evergreen database. Macros deal with everything from the Library name to the due date of an item. See list <>. You can also click on MACROS on the screen to see the macros that are available for a given receipt. IMPORTANT: *Remember:* Not all Macros listed on the pop up screen will work. The listing of macros are drawn from the table that the receipt pulls information from. Some of the tables will not have any data in some of the fields. Example is the %mbts_xact_finish% on the Bills Current Slip, as this is a list of current bills, they would not have a finish date. Exporting and importing Customized Receipts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Once you have your receipts set up on one machine you can export your receipts, and then load them on to another machine. Just remember to ''Save Locally'' once you import the receipts on the new machine. Exporting templates ^^^^^^^^^^^^^^^^^^^ As you can only save a template on to the computer you are working on you will need to export the template if you have more than one computer that prints out receipts (i.e., more than one computer on the circulation desk, or another computer in the workroom that you use to checkin items or capture holds with) . Export. . Select the location to save the template to, name the template, and click Save. . Click OK. + image::media/receipt-17.jpg[receipt-17] Importing Templates ^^^^^^^^^^^^^^^^^^^ . Click Import. + image::media/receipt-20.jpg[receipt-20] + . Navigate to and select the template that you want to import. Click Open. + image::media/receipt-21.jpg[receipt-21] + . Click OK. . Click Save Locally. . Click OK. + image::media/receipt-23.jpg[receipts-23] Receipt Customizations ~~~~~~~~~~~~~~~~~~~~~~ Customizing the receipts is fairly simple once you realize what can be placed in each of the sections of the receipts. One thing to remember when customizing receipts to always ''Save Locally''. Checkouts, Hold Slip, Hold Transit Slip are customized below. TIP: Always remember to ''Save Locally''. Print Holds Slip with Landscape Layout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ indexterm:[receipt template editor, holds receipt, layout] This feature enables you to use Mozilla-specific CSS to print holds with a landscape layout. To use the landscape layout: . Click *Admin* -> *Workstation Administration* -> *Receipt Template Editor*. . Select *hold transit slip* from the *Template Name* drop down menu. . Enter
before and after the block of text that you wish to rotate. . Enter the stylesheet text in the
bracket that appears before the block of text that you wish to rotate: + [source, html] ------------------------
------------------------ . When you click out of this box, notice that the text in the *Preview* box on the left side of the screen has rotated 90 degrees. . You can further customize the look of the text by adjusting its height and width. The height and width that you specify will be unique to your printer. + For example, you could add the following height and width to your rotated text: + [source, html] ------------------------
------------------------ + image::media/Print_Holds_Slip1.jpg[Print_Holds_Slip1] + . The holds slip will print with the configured text in a landscape layout: + image::media/Print_Holds_Slip2.jpg[Print_Holds_Slip2] Checkout ^^^^^^^^ This is the receipt that prints when items are checked out to individuals. Item you can customize are adding the library logo, adding information about renewals on the bottom of the receipt. If you notice at the end of the Footer the
.
, the allows an auto cut printer a little extra room so it will not cut the phone number off. The period is needed so the extra lines are added. Header [source,html] ----------------------------------------------------------------------------------
Welcome to %LIBRARY%!
You checked out the following items:
    ---------------------------------------------------------------------------------- Line Item [source,html] ----------------------------------------------------------------------------------
  1. %title%
    By: %author%
    Barcode: %barcode%
    Due: %due_date% ---------------------------------------------------------------------------------- Footer [source,html] ----------------------------------------------------------------------------------

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

If you want to renew your materials please visit
www.library.org
or call us at ###-###-####


.
---------------------------------------------------------------------------------- Hold_Slip #1 ^^^^^^^^^^^^^ This is the slip that prints when a hold is fulfilled. Things to customize are the patrons name at the top of the slip, Bold the %hold_for_msg%, among others. Header [source,html] ---------------------------------------------------------------------------------- %PATRON_LASTNAME%, %PATRON_FIRSTNAME%



This item needs to be routed to %route_to%:
Barcode: %item_barcode%
Title: %item_title%

%hold_for_msg%
Barcode: %PATRON_BARCODE%
Notify by phone: %notify_by_phone%
Notify by email: %notify_by_email%
---------------------------------------------------------------------------------- Line Item [source,html] ---------------------------------------------------------------------------------- %formatted_note%
---------------------------------------------------------------------------------- Footer [source,html] ---------------------------------------------------------------------------------- Request date: %request_date%

Slip Date: %TODAY_D% %TODAY_I%:%TODAY_M%
Printed by %STAFF_FIRSTNAME% at %SHORTNAME%
.
---------------------------------------------------------------------------------- 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 [source,html] ----------------------------------------------------------------------------------

%SUBSTR(0,4)%%PATRON_LASTNAME%%SUBSTR_END%  %SUBSTR(-5)%%PATRON_BARCODE%%SUBSTR_END%





This item needs to be routed to %route_to%:
Barcode: %item_barcode%
Title: %item_title%

Notify by phone: %notify_by_phone%
---------------------------------------------------------------------------------- Line Item [source,html] ---------------------------------------------------------------------------------- %formatted_note%
---------------------------------------------------------------------------------- Footer [source,html] ---------------------------------------------------------------------------------- Request date: %request_date%


Slip Date: %TODAY_TRIM%
Printed by %STAFF_FIRSTNAME% at %SHORTNAME%
.
---------------------------------------------------------------------------------- Hold_transit_slip ^^^^^^^^^^^^^^^^^^ This is the slip that is printed when an Item is needed at another library for a hold. In this customization, the address of the library is removed, The library's shortname size is increased, and made a little more notable at top, and the patron's phone number and email address is removed from the slip. Header [source,html] ---------------------------------------------------------------------------------- Route to %route_to%


This item needs to be routed to %route_to%:
%route_to_org_fullname%

Barcode: %item_barcode%
Title: %item_title%
Author: %item_author%

%hold_for_msg%
Barcode: %PATRON_BARCODE%
---------------------------------------------------------------------------------- Line Item [source,html] ---------------------------------------------------------------------------------- %formatted_note%
---------------------------------------------------------------------------------- Footer [source,html] ----------------------------------------------------------------------------------
Request date: %request_date%
Slip Date: %TODAY_TRIM%
Printed at %SHORTNAME%


.
---------------------------------------------------------------------------------- Receipt Templates ~~~~~~~~~~~~~~~~~ This is a complete list of all the receipts currently in use in Evergreen. [horizontal] *item_status*:: type::: items description::: Listing of items inputted in to Item Status. default format::: header:::: The following items have been examined:
    line_item::::
  1. %title%
    Barcode: %barcode% footer::::

%SHORTNAME% %TODAY_TRIM%

*transit_list*:: type::: transits description::: List of items in transit. default format::: header:::: Transits:
    line_item::::
  1. From: %transit_source% To: %transit_dest_lib%
    When: %transit_source_send_time%
    Barcode: %transit_item_barcode% Title: %transit_item_title%
    footer::::

%SHORTNAME% %TODAY_TRIM%

*items_out*:: type::: items description::: List of items a patron has checked out. default format::: header:::: Welcome to %LIBRARY%!
You have the following items:
    line_item::::
  1. %title%
    Barcode: %barcode% Due: %due_date% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*renew*:: type::: items description::: List of items that have been renewed using the renew item screen default format::: header:::: Welcome to %LIBRARY%!
You have renewed the following items::
    line_item::::
  1. %title%
    Barcode: %barcode% Due: %due_date% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*checkout*:: type::: items description::: List of items currently checked out to the patron during this transaction. default format::: header:::: Welcome to %LIBRARY%!
You checked out the following items::
    line_item::::
  1. %title%
    Barcode: %barcode% Due: %due_date% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*offline_checkout*:: type::: offline_checkout description::: List of items checked out via the Standalone interface. Remember that Standalone interface does not have access to the database. default format::: header:::: Patron %patron_barcode%
You checked out the following items::
    line_item::::
  1. Barcode: %barcode%
    Due: %due_date% footer::::

%TODAY_TRIM%

*checkin*:: type::: items description::: List of items that have just been entered in to the check-in screens. default format::: header:::: You checked in the following items:
    line_item::::
  1. %title%
    Barcode: %barcode% Call Number: %call_number% footer::::

%SHORTNAME% %TODAY_TRIM%

*bill_payment*:: type::: payment description::: Patron payment receipt default format::: header:::: Welcome to %LIBRARY%!
A receipt of your transaction:
Original Balance: $%original_balance%
Payment Method: %payment_type%
Payment Received: $%payment_received%
Payment Applied: $%payment_applied%
Billings Voided: %voided_balance%
Change Given: $%change_given%
New Balance: $%new_balance%

Note: %note%

Specific bills:

line_item:::: Bill #%bill_id% %last_billing_type% Received: $%payment%
%barcode% %title%

footer::::


%SHORTNAME% %TODAY_TRIM%

*bills_historical*:: type::: bills description::: Listing of bills that have had payments made on them. This is used on the Bill History Transaction screen. default format::: header:::: Welcome to %LIBRARY%!
You had the following bills:
    line_item::::
    Bill #%mbts_id% %title%
    Date::%mbts_xact_start%
    Type:%xact_type%
    Last Billing:%last_billing_type%
    %last_billing_note%
    Total Billed::$%total_owed%
    Last Payment::%last_payment_type%
    %last_payment_note%
    Total Paid::$%total_paid%
    Balance::$%balance_owed%

    footer:::

%SHORTNAME% %TODAY_TRIM%

*bills_current*:: type::: bills description::: Listing of current bills for a patron. default format::: header:::: Welcome to %LIBRARY%!
You have the following bills:
    line_item::::
    Bill #%mbts_id%
    Date:%mbts_xact_start%
    Type:%xact_type%
    Last Billing:%last_billing_type%
    %last_billing_note%
    Total Billed:$%total_owed%
    Last Payment:%last_payment_type%
    %last_payment_note%
    Total Paid:$%total_paid%
    Balance:$%balance_owed%

    footer::::

%SHORTNAME% %TODAY_TRIM%

*offline_checkin*:: type::: offline_checkin description::: List of item checked in via Standalone interface. Remember that Standalone interface does not have access to the database. default format::: header:::: You checked in the following items:
    line_item::::
  1. Barcode: %barcode% footer::::

%TODAY_TRIM%

*offline_renew*:: type::: offline_renew description::: List of items renewed via Standalone interface. Remember that Standalone interface does not have access to the database. default format::: header:::: You renewed the following items:
    line_item::::
  1. Barcode: %barcode% footer::::

%TODAY_TRIM%

*offline_inhouse_use*:: type::: offline_inhouse_use description::: List of item marked in-house use via Standalone interface. Remember that Standalone interface does not have access to the database. default format::: header:::: You marked the following in-house items used:
    line_item::::
  1. Barcode: %barcode%Uses: %count% footer::::

%TODAY_TRIM%

*in_house_use*:: type::: items description::: List of items inputted in to the In-house use. default format::: header:::: You marked the following in-house items used:
    line_item::::
  1. Barcode: %barcode%Uses: %uses%
    %alert_message% footer::::

%TODAY_TRIM%

*holds*:: type::: holds description::: List of items on hold for a patron. default format::: header:::: Welcome to %LIBRARY%!
You have the following titles on hold:
    line_item::::
  1. %title% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*holds_on_bib*:: type::: holds description::: This list is used to print the holds on a title record. default format::: header:::: Welcome to %LIBRARY%!
You have the following titles on hold:
    line_item::::
  1. %title% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*holds_for_patron*:: description::: This list is used to print the holds on a patron record. type::: holds default format::: header:::: Welcome to %LIBRARY%!
You have the following titles on hold:
    line_item::::
  1. %title% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*holds_shelf*:: type::: holds description::: This list is used to print the holds on the holds shelf. default format::: header:::: Welcome to %LIBRARY%!
You have the following titles on hold:
    line_item::::
  1. %title% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*holds_pull_list*:: type::: holds description::: This list is used to print the holds on the holds pull list. default format::: header:::: Welcome to %LIBRARY%!
You have the following titles on hold:
    line_item::::
  1. %title% footer::::

%SHORTNAME% %TODAY_TRIM%
You were helped by %STAFF_FIRSTNAME%

*hold_slip*:: type::: holds description::: This is printed when a hold is fulfilled. default format::: header:::: This item needs to be routed to %route_to%:
Barcode: %item_barcode%
Title: %item_title%

%hold_for_msg%
Barcode: %PATRON_BARCODE%
Notify by phone: %notify_by_phone%
Notified by text: %notify_by_text%
Notified by email: %notify_by_email%
line_item:::: %formatted_note%
footer::::
Request date: %request_date%
Slip Date: %TODAY_TRIM%
Printed by %STAFF_FIRSTNAME% at %SHORTNAME%

*transit_slip*:: type::: transits description::: This is printed when a item goes into transit. default format::: header:::: This item needs to be routed to %route_to%:
%route_to_org_fullname%
%street1%
%street2%
%city_state_zip%

Barcode: %item_barcode%
Title: %item_title%
Author: %item_author%

line_item:::: (Intentionally left blank) footer:::: Slip Date: %TODAY_TRIM%
Printed by %STAFF_FIRSTNAME% at %SHORTNAME%

*hold_transit_slip*:: type::: transits description::: This is printed when a hold goes in-transit to another library. default format::: header:::: This item needs to be routed to %route_to%:
%route_to_org_fullname%
%street1%
%street2%
%city_state_zip%

Barcode: %item_barcode%
Title: %item_title%
Author: %item_author%

%hold_for_msg%
Barcode: %PATRON_BARCODE%
Notify by phone: %notify_by_phone%
Notified by text: %notify_by_text%
Notified by email: %notify_by_email%
line_item:::: %formatted_note%
footer::::
Request date: %request_date%
Slip Date: %TODAY_TRIM%
Printed by %STAFF_FIRSTNAME% at %SHORTNAME%

*holdings_maintenance*:: type::: items description::: This is printed from holding maintenance. default format::: header:::: Title: %title%
Author: %author%
ISBN: %isbn% Edition: %edition% PubDate: %pubdate%
TCN: %tcn_value% Record ID: %mvr_doc_id%
Creator: %creator% Create Date: %create_date%
Editor: %editor% Edit Date: %edit_date%
line_item:::: %prefix% %tree_location% %suffix% %parts% %acp_status%
footer::::
%SHORTNAME% %TODAY_TRIM%

[[macros]] Receipt Template Editor Macros ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here is a list of the Receipt Template Macros that are in use on the receipts. There are two types of macros General and type specific. General Macros can be used on any of the receipts. Type specific macros are available depending on the type of the receipt. General Macros ^^^^^^^^^^^^^^ indexterm:[receipt template editor, macros] [horizontal] %LIBRARY%:: Library full name %SHORTNAME%:: Library Policy Name %STAFF_FIRSTNAME%:: First name of Staff login account %STAFF_LASTNAME%:: Last name of Staff login account %STAFF_BARCODE%:: Barcode of Staff login account %STAFF_PROFILE%:: Profile of Staff login account %PATRON_FIRSTNAME%:: First name of Patron %PATRON_LASTNAME%:: Last name of Patron %PATRON_BARCODE% or %patron_barcode%:: Patron Barcode %TODAY%:: Full Date and time in the format: Wed Sep 21 2011 13:20:44 GMT-0400 (Eastern Daylight Time) %TODAY_TRIM%:: Date and time in a shorted format: 2011-09-21 13:21 %TODAY_m%:: Two digit Month: 09 %TODAY_d%:: Two digit Day: 21 %TODAY_Y%:: Year: 2011 %TODAY_H%:: Hour in 24 hour day: 13 %TODAY_I%:: Hour in 12 hour format: 1 %TODAY_M%:: Minutes of the Hour: 24 %TODAY_D%:: date in standard US format: 09/21/11 %TODAY_F%:: date in International Standard: 2011-09-21 %-TRIM%:: Trims white space before the macro %TRIM-%:: Trims white space after the macro %SUBSTR(#)%...%SUBSTR_END%:: Take substring starting at position # to end of string. If # is negative count backwards from end of string. %SUBSTR(#,#)%...%SUBSTR_END%:: Same as %SUBSTR(#)%, but limit to second provided number characters after start point. If second number is negative, count backwards instead of forwards. There are several macros that can carry pre-built contents specific to individual libraries. The contents can be set up in local administration. For details see <<_library_settings_editor, Library Settings>>. Though text can be hard-coded in receipt templates, the pre-built contents will be automatically applied to receipts printed from all workstations without editing each template. indexterm:[receipt template editor, includes] * %INCLUDE(notice_text)% * %INCLUDE(alert_text)% * %INCLUDE(event_text)% * %INCLUDE(footer_text)%% * %INCLUDE(header_text)% Additional Macros for various slip types ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ *Holds* [horizontal] %ROUTE_TO%:: It should say Hold Shelf if it is a hold being fulfilled %item_barcode%:: Item Barcode %item_title%:: Item Title %hold_for_msg%:: Hold for Message: this gives the patron's Name %PATRON_BARCODE%:: Patron's Barcode %notify_by_phone%:: Phone number listed in the Hold Database. This may not be the same as what is in the Patron's record, as they can list another number when placing the hold. %notify_by_email%:: Email listed in Hold Database. Same as phone number %request_date%:: The date that the Request was originally placed. %formatted_note%:: Hold Notes (new to 2.1) %notify_by_text%:: SMS contact number (new to 2.2) *Check out* [horizontal] %title%:: Title %author%:: Author %barcode%:: Item Barcode %due_date%:: Due Date: formated by the date field in the library settings editor *Payment* [horizontal] %original_balance%:: The original balance the patron owes %payment_received%:: How much was received from the patron %payment_applied%:: How much of the payment was applied %payment_type%:: What type of payment was applied: IE Cash %voided_balance%:: Any Voided balance %change_given%:: How much change was given %new_balance%:: The new balance on the account %note%:: Any notes on the annotated payment %bill_id% or %mbts_id%:: The id for the bill in the bill database %payment%:: How much of the payment that was applied was applied to this title %title%:: Title that the payment was applied to. %last_billing_type%:: The type of bill that was last charged to the patron for this title %last_billing_note%:: Notes on the last bill %last_payment_type%:: The type of payment that was last used to pay the bill %mbts_xact_start%:: The date that the bill was started %last_payment_note%:: Notes on last payment %xact_type%:: Type of Biil %barcode%:: Item barcode %title%:: title of item *Bills* [horizontal] %mbts_id%:: The id for the bill in the bill database %title%:: Title that the payment was applied to. %last_billing_type%:: The type of bill that was last charged to the patron for this bill %last_billing_note%:: Notes on the last bill %last_billing_ts%:: The time stamp for the last billing %last_payment_type%:: The type of payment that was last used to pay the bill %last_payment_note%:: Notes on last payment %last_payment_ts%:: The time stamp for the last payment %mbts_xact_start%:: The date that the bill was started (currently not working) %xact_type%:: Type of Biil %title%:: title of item *Transit* Transit receipts come into two types, general Transit receipts and Transit slips. Transit receipts are listings of item that are in transits. Transit slips are Slips telling the staff that this item is in transit to another location. .*General Transits* [horizontal] %transit_item_author%:: Item author %transit_item_barcode%:: Barcode of item in transit %transit_item_callnumber%:: Call number of item in transit %transit_item_title%:: Title of Item intransit %transit_dest_lib%:: Destination Library %transit_source_send_time%:: Time item was sent intransit %transit_source%:: Library that placed the item intransit. .*Transit Slip* [horizontal] %route_to%:: Library Policy Name that the item is in transit to %route_to_org_fullname%:: Library Full Name that the item is in transit to %street1%:: Library Street address Line 1 that the item is in transit to. %street2%:: Library Street address Line 2 that the item is in transit to. %city_state_zip%:: City, State, Zip of Library the Item is in transit to. %item_barcode%:: Item barcode %item_title%:: Item title %item_author%:: Item Author %hold_for_msg%:: Hold for Message: this gives the patron's name %PATRON_BARCODE%:: Patron's Barcode %notify_by_phone%:: Phone number listed in the Hold Database. This may not be the same as what is in the Patron's record, as they can list another number when placing the hold. %notify_by_email%:: Email listed in Hold Database. Same as phone number %notify_by_text%:: SMS contact number (new to 2.2) %request_date%:: Date that the Request was originally placed