Greater control on the length of strings appearing on receipts

Tags:
2

In the children's room, when a patron checks out a large stack of books, the receipt printer prints some of the titles, cuts the receipt, prints more titles, and cuts again. We followed the instructions that are posted about how to adjust the length of the printed receipt, but it didn' fix the problem. Thank you! 

Category

Status: 
In the attic

Comments

Re: Greater control on the length of strings appearing on ...

This sounds like this might be a problem with the receipt printer configuration rather than with Evergreen itself - perhaps it is set to 8 1/2 x 11 paper instead of to roll paper? We are using roll paper in our receipt printers and don't have problems with receipts cutting mid-receipt.

 

It is also possible to control the length of individual strings in the receipt template editor:

This will cut off a title after the first 13 characters:

%SUBSTR(0,13)%%title%%SUBSTR_END%<br/>

This will show only the last 4 characters of the barcode:

%SUBSTR(-4)%%PATRON_BARCODE%%SUBSTR_END%

Re: Greater control on the length of strings appearing on ...

Adding a note that the syntax for limiting string lengths changes in the web client. The new format is like this:

 

{{checkout.title | limitTo:10}}

 

Where the "10" is the number of characters you wnt to keep.

Re: Greater control on the length of strings appearing on ...

Moderator

I'm moving this one to the attic since it is a configuration issue. If anyone is still having trouble with this record, I recommend reaching out to the help desk at your consortium office.
http://masslnc.org/node/2981
masslnc.org
crawl=CC-MAIN-2017-43
33376
application/http; msgtype=response
sha1:PHFHDQNOEJ3562EB2FEINBOC3T7CYG74
<urn:uuid:16db7f39-087d-46ac-90da-3a73bd8a23c1>
2017-10-23T16:46:00Z
174.37.241.148
application/xhtml+xml
sha1:LMBTLQNW6BFXIS3KTKKDLB6RUGBI26DT
<urn:uuid:395a0b37-de8d-41c2-8303-ed1ee9b100a7>
http://masslnc.org/node/2981
length
response
<urn:uuid:0a8f06b0-7d7d-4919-9f2f-696bf68c689d>
robots: classic
hostname: ip-10-111-221-182.ec2.internal
software: Nutch 1.6 (CC)
isPartOf: CC-MAIN-2017-43
operator: Common Crawl Admin
description: Wide crawl of the web for October 2017
publisher: Common Crawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf