Bug 21504 - enumchron (volume number) shows as 0 (when set to anything) in pdf in label creator
Summary: enumchron (volume number) shows as 0 (when set to anything) in pdf in label c...
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Chris Nighswonger
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-05 15:55 UTC by Donna
Modified: 2021-06-14 21:29 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
bibrecord for testing enumchron issue (1.76 KB, text/plain)
2018-10-05 15:55 UTC, Donna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Donna 2018-10-05 15:55:33 UTC
Created attachment 80141 [details]
bibrecord for testing enumchron issue

When printing a spine label with itemcallnumber and enumchron, the pdf shows the one or two digit enumchron value as 0, but the CSV and XML formats show the correct enumchron value. Have replicated in 18.05.  Changing item type, bib record, enumchron value, etc all result in same scenario.

To replicate, create a template and layout:
Template:
US inches
Page height 11
Page width 8.5
Label width 1.625
Label height 1
Top page margin .5
Left page margin .25
Top text margin .3
Left text margin 1.25
Number of columns 5
Number of rows 10
Gap col 0
Gap row 0
No profile

Layout:
Biblio
1 itemcallnumber
2 enumchron
Split call numbers
Text: center
Font: Times-Bold
Font size 12

Create a label batch with an enumchron, marc file for the record I was using is attached.

View the pdf and see the enumchron shows 0.  View the CSV and XML and see the correct enumchron shows.
Comment 1 Katrin Fischer 2018-10-28 17:55:39 UTC
hi Donna, it looks like the attached record might not have any items.
Comment 2 Felicia Beaudry 2020-07-28 18:51:09 UTC
I can confirm this behavior in 19.11.  

Layout
Layout type: Biblio
Bib Data to Print: itemcallnumber, enumchron
Split call numbers: yes
Text: Center
Font: Helvetica
Font size: 7

Seeing 0 where enumeration/chronology should be, but only in the PDF.  Properly displayed in CSV and XML formats.
Comment 3 Felicia Beaudry 2020-07-28 19:00:26 UTC
Disregard - I found this occurs because of the label template.  After adjusting print margins, the enumeration appears correctly, as did other fields.


(In reply to Felicia Beaudry from comment #2)
> I can confirm this behavior in 19.11.  
> 
> Layout
> Layout type: Biblio
> Bib Data to Print: itemcallnumber, enumchron
> Split call numbers: yes
> Text: Center
> Font: Helvetica
> Font size: 7
> 
> Seeing 0 where enumeration/chronology should be, but only in the PDF. 
> Properly displayed in CSV and XML formats.
Comment 4 Katrin Fischer 2020-08-30 19:36:47 UTC
(In reply to Felicia Beaudry from comment #3)
> Disregard - I found this occurs because of the label template.  After
> adjusting print margins, the enumeration appears correctly, as did other
> fields.