[Bug 30819] New: Not able to adjust size of barcode numbers
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Bug ID: 30819 Summary: Not able to adjust size of barcode numbers Change sponsored?: --- Product: Koha Version: 20.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Label/patron card printing Assignee: cnighswonger@foundations.edu Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org Moved from the original bug 10762: (In reply to Jesse Maseto from comment #0)
I created a new layout (section 2.5.3.1 in the manual) that just shows the barcode, and I set the font size big. First I did 14, then 32 just to make sure my eyes weren't deceiving me. The numbers below the barcode didn't change size!
It seems like the font settings only affect the bibliographic data. What I want to change is the barcode number itself.
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=10762 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Thibaud Guillot <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|cnighswonger@foundations.ed |thibaud.guillot@biblibre.co |u |m CC| |thibaud.guillot@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 --- Comment #1 from Thibaud Guillot <thibaud.guillot@biblibre.com> --- Hello all, I'm interested in your advice on this because like this comment https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10762#c3 (related to the original bug) it may - may need to change the way barcodes are generated for this improvement. What do you think about it ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|20.11 |master Summary|Not able to adjust size of |Not able to adjust size of |barcode numbers |the plain text barcode | |below the actual barcode -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #2 from David Cook <dcook@prosentient.com.au> --- I've been looking at C4::Labels::Label and PDF::Reuse::Barcode, and I've added a response on https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10762#c62 Bernardo wasn't quite right there, but yeah... I think the only way to fix this would be to update PDF::Reuse::Barcode to take configurable font-sizes rather than hard-coded sizes. I don't think Chris Nighswonger really works on Koha or Perl anymore, although he's still around sometimes. The code for PDF::Reuse::Barcode is... old. It's a bit difficult to read but not impossible. Someone could either adopt the module, send a PR, or we could potentially subclass it and overwrite the relevant methods in a "Koha::PDF::Reuse::Barcode" module... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Chris Nighswonger <chris.nighswonger@veritassuperaitsolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |chris.nighswonger@veritassu | |peraitsolutions.com --- Comment #3 from Chris Nighswonger <chris.nighswonger@veritassuperaitsolutions.com> --- (In reply to David Cook from comment #2)
I've been looking at C4::Labels::Label and PDF::Reuse::Barcode, and I've added a response on https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10762#c62
Bernardo wasn't quite right there, but yeah... I think the only way to fix this would be to update PDF::Reuse::Barcode to take configurable font-sizes rather than hard-coded sizes.
I don't think Chris Nighswonger really works on Koha or Perl anymore, although he's still around sometimes.
The code for PDF::Reuse::Barcode is... old. It's a bit difficult to read but not impossible.
Someone could either adopt the module, send a PR, or we could potentially subclass it and overwrite the relevant methods in a "Koha::PDF::Reuse::Barcode" module...
I'm on this. I should have a fix upstream shortly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Chris Nighswonger <chris.nighswonger@veritassuperaitsolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|thibaud.guillot@biblibre.co |chris.nighswonger@veritassu |m |peraitsolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 --- Comment #4 from Chris Nighswonger <chris.nighswonger@veritassuperaitsolutions.com> --- The upstream module side of this is done. PDF::Reuse::Barcode 0.10 is on CPAN as of 2026-07-29 and adds a `textsize` parameter, defaulting to 10 so existing callers are unaffected. That removes the blocker described in comment #2: the barcode's human-readable text was drawn at a hard-coded 10 point inside PDF::Reuse::Barcode, so Koha's layout font size could never reach it. The Koha-side change is small -- C4::Labels::Label passes the layout's font_size through as `textsize` when calling PDF::Reuse::Barcode -- but it cannot be pushed yet, because it requires bumping cpanfile to PDF::Reuse::Barcode 0.10 and that version is not installable from any suite in use: stable (trixie) 0.07-2 testing (forky) / sid 0.09-1 trixie-backports 0.09 in the NEW queue Koha community repo 0.09 being packaged (per bug 41717 comment #13) needed here 0.10 Pushing a cpanfile bump ahead of the packaging is what caused bug 41717 to be reverted: Jenkins could not satisfy the dependency, the test suite failed at the installation step, and no patches could be pushed until it was backed out. So this bug should wait on 0.10 reaching the community package repository rather than repeat that. Adding the `dependency` keyword and CC'ing Mason, who handles the Debian packaging for the Koha repository. Happy to write and test the Koha-side patch in the meantime so it is ready to attach the moment 0.10 is installable -- just say the word. (Also, for the record, a correction to comment #2: I do still work on Koha and Perl, and I maintain PDF::Reuse::Barcode -- 0.10 is my release. No criticism intended of the comment; just noting it so nobody scopes this around the assumption that the module is unmaintained.) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30819 Chris Nighswonger <chris.nighswonger@veritassuperaitsolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtj@kohaaloha.com Keywords| |dependency -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org