Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Automatically Printing Alma Loan Receipt Letters to a Thermal Receipt Printer

    Created By: James (Jim) Robinson
    Created on: 5/01/2019



    At Tarrant County College, we use the Epson TM-T88VI receipt printers in our library, but each printer is connected to a PC via USB. This is the same Windows 10 PC used to monitor gate alarms, so the computer must be running during open hours whether we print receipts or not.

    Alma Loan Receipt Letter emails are sent to an account that is received by a Thunderbird email client, then we use the PrintingTools add-on and the FiltaQuilla add-on to automatically print to the receipt printer based on Sender and Subject. This works well for us because if there is a printing error, we have the email in the Thunderbird client and it's a simple process to reprint from Thunderbird if necessary.

    We did revise our Loan Receipt Letters to fit the 80mm thermal printer paper.

    We removed the header from the FulLoanReceiptLetter.xsl and reproduced a minimal header without the logo. Unfortunately, the logo prints anyway.

    Here is the full text of FulLoanReceiptLetter.xsl that we are using:

    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="/">
            <html>
                <head>
                </head>
                <body>
                    <table cellspacing="0" cellpadding="2" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <xsl:value-of select="notification_data/organization_unit/name" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <xsl:value-of select="notification_data/organization_unit/address/line2" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <xsl:value-of select="notification_data/organization_unit/address/city" />, <xsl:value-of select="notification_data/organization_unit/address/state_province" /> <xsl:value-of select="notification_data/organization_unit/address/postal_code" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <xsl:value-of select="notification_data/organization_unit/phone/phone" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    https://library.tccd.edu
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>
                                        <xsl:value-of select="notification_data/user_for_printing/name" />
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <xsl:value-of select="notification_data/general_data/current_date" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>
                                        Loans
                                    </b>
                                </td>
                            </tr>
                            <xsl:for-each select="notification_data/loans_by_library/library_loans_for_display">
                                <xsl:for-each select="item_loans/overdue_and_lost_loan_notification_display/item_loan">
                                    <tr>
                                        <td>
                                            Title: <xsl:value-of select="physical_item/title" />
                                            <xsl:if test="physical_item/author != ''">
                                                by <xsl:value-of select="physical_item/author" />
                                            </xsl:if>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Barcode: <xsl:value-of select="barcode" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <b>
                                                Due: <xsl:value-of select="new_due_date_str" />
                                            </b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <br />
                                        </td>
                                    </tr>
                                </xsl:for-each>
                            </xsl:for-each>
                        </tbody>
                    </table>
                </body>
            </html>
        </xsl:template>
    </xsl:stylesheet>

    Instructions for installing and configuring Epson TM-T88VI printers and Thunderbird email client to automatically print Loan Receipt Letters can be found at https://library.tccd.edu/code/TCC_Li...ublication.pdf