Summary: | Set barcode width and height configurable with system preferences in patron card creator | ||
---|---|---|---|
Product: | Koha | Reporter: | Vitor Fernandes <vfernandes> |
Component: | Label/patron card printing | Assignee: | Vitor Fernandes <vfernandes> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | trivial | ||
Priority: | P2 | CC: | indradg, kyle, liz, veron |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: | http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 | ||
Change sponsored?: | Sponsored | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Bug 9480: Set barcode width and height configurable with system preferences in patron card creator |
Description
Vitor Fernandes
2013-01-24 10:48:03 UTC
Created attachment 14812 [details] [review] 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 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? 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. 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? Hi Owen, The height and width of barcode are automatically calculated by Koha. 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. I agree too - these settings should be set within the tool and not as a global preference. Bug 14107 exposes the scaling values in the layout editor. |