[Bug 9480] New: Set barcode width and height configurable with system preferences in patron card creator
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Bug ID: 9480 Summary: Set barcode width and height configurable with system preferences in patron card creator Classification: Unclassified Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Tools Assignee: gmcharlt@gmail.com Reporter: vfernandes@keep.pt Problem: - barcode width scale is always set to 0.8 of the total width - barcode height scale is always set to 0.01 of total height - happens in 3.8.X, 3.10.X and master code Solution: - create a system preference to control width scale name BarcodeWidthScale (default: 0.8) - create a system preference to control height scale name BarcodeHeightScale (default: 0.01) - change Patroncard.pm to use the variables instead of the default values (if the sysprefs are empty uses the default values). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Vitor Fernandes <vfernandes@keep.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - low |P2 Patch complexity|--- |Trivial patch Change sponsored?|--- |Sponsored Assignee|gmcharlt@gmail.com |vfernandes@keep.pt -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 --- Comment #1 from Vitor Fernandes <vfernandes@keep.pt> --- Created attachment 14812 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14812&action=edit Bug 9480: Set barcode width and height configurable with system preferences in patron card creator Problem: - barcode width scale is always set to 0.8 of the total width - barcode height scale is always set to 0.01 of total height - happens in 3.8.X, 3.10.X and master code Test plan: - Apply patch - Check if your patron cards still prints normally - Change the sysprefs BarcodeWidthScale and BarcodeHeightScale (double values) and see the barcode change - Remove the sysprefs value (empty) and your patron cards should print normally (uses the default values) Sponsored-by: KEEP SOLUTIONS -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Vitor Fernandes <vfernandes@keep.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- I don't know much about the patron card creator, but is there a reason why these values belong in a system preference rather than as part of a layout? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 --- Comment #3 from Vitor Fernandes <vfernandes@keep.pt> --- Hi Owen, They are in a system preference because they are fixed in the code and can't be changed in the layout. So I created tão system preferences for the barcode height and width scale. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- I understand that the values are fixed in the code at the moment. My question is whether these values are something that should be added to the layout configuration form: /cgi-bin/koha/patroncards/edit-layout.pl?op=edit&element_id=20. That form lets you choose font settings, barcode offset, etc. Shouldn't barcode height and width be configured there? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 --- Comment #5 from Vitor Fernandes <vfernandes@keep.pt> --- Hi Owen, The height and width of barcode are automatically calculated by Koha. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com --- Comment #6 from Kyle M Hall <kyle@bywatersolutions.com> --- Vitor, I'm not sure you understood Owen's question correctly. We think that instead of the height and width being set at the system wide level, they should be set in the same place you set font settings, barcode offset, etc. ( that is, in patroncards/edit-layout.pl ). I agree with Owen that this would be a better solution. (In reply to comment #5)
Hi Owen,
The height and width of barcode are automatically calculated by Koha.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Liz Rea <liz@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |liz@catalyst.net.nz --- Comment #7 from Liz Rea <liz@catalyst.net.nz> --- I agree too - these settings should be set within the tool and not as a global preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=14107 --- Comment #8 from Marc Véron <veron@veron.ch> --- Bug 14107 exposes the scaling values in the layout editor. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9480 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |indradg@gmail.com Component|Tools |Label/patron card printing -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org