Bug 18092

Summary: Serial Enumeration (enumchron) truncated to 2 characters in by label creator
Product: Koha Reporter: Barton Chittenden <barton>
Component: Label/patron card printingAssignee: Chris Nighswonger <cnighswonger>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: courtenay.johnson, marjorie.barry-vila
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21504
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: example bib with 2 items.
exported csv (enumchron is not truncated)
Exported pdf (enumchron is truncated)
screenshot of the layout page.

Description Barton Chittenden 2017-02-09 22:21:44 UTC
Created attachment 60095 [details]
example bib with 2 items.

When printing a spine label where the layout includes 'enumchron' in the fields to print, that field is truncated to a width of two characters in the PDF export. The field shows in its entirety in the CSV export.

For example the serial enumeration 'Discs 17 & 18' is truncated to 'Di'.

To replicate:

Set up Layout koha-spine

Layout name        : koha-spine
barcode type       : Code 39
layout type        : Biblio
Data fields        : 952a, itemcallnumber, enumchron
Draw guide boxes   : True
Split call numbers : True
Text justification : Left
Font               : Times-Roman
Font size          : 10
Oblique title      : True

Set template Avery 5460 spine labels

Template code       : Avery 5460 spine labels
Units               : Si Centimeters
Page height         : 28
Page width          : 21.5
Label width         : 2.1
Label height        : 3
Top page margin     : 1.2
Left page margin    : 0.8
Top text margin     : 0.52
Left text margin    : 0.52
Number of columns   : 8
Number of rows      : 8
Gap between columns : 0.44
Gap between rows    : 0.2
Profile             : none

Set up batch using item that has enumchron wider than 2 characters (I've attached a sample marc record)

Export using the layout and template above.

See that the serial enumeration is truncated.
Comment 1 Barton Chittenden 2017-02-09 22:22:42 UTC
Created attachment 60096 [details]
exported csv (enumchron is not truncated)
Comment 2 Barton Chittenden 2017-02-09 22:23:15 UTC
Created attachment 60097 [details]
Exported pdf (enumchron is truncated)
Comment 3 Courtenay Johnson 2020-01-08 21:10:04 UTC
Created attachment 97057 [details]
screenshot of the layout page.
Comment 4 Courtenay Johnson 2020-01-08 21:15:03 UTC
I found that many fields, all that I tried except for the callnumber are truncated to 2 characters in version 18.11 and I export the PDF. Therefore I consider spine label printing to be broken for my purpose of printing 3 lines in total on the label, with two of those lines split, (which does work).
I have attacwehed a screenshot of my layour. This is a test case where I picked many fileds to print and all but one are truncated.