[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Marc Véron changed: What|Removed |Added CC||vfernan...@keep.pt --- Comment #19 from Marc Véron --- *** Bug 9480 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Marc Véron 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. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #18 from Tomás Cohen Arazi --- Patch pushed to master. Thanks Marc! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Tomás Cohen Arazi changed: What|Removed |Added Status|Passed QA |Pushed to Master CC||tomasco...@gmail.com --- Comment #17 from Tomás Cohen Arazi --- Patch pushed to master. Thanks Marc! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Jonathan Druart changed: What|Removed |Added Attachment #38848|0 |1 is obsolete|| --- Comment #16 from Jonathan Druart --- Created attachment 40764 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40764&action=edit Bug 14107: Patron cards: Make barcode width and height scaling editable The size of the barcode in patron card creator was hardcoded to 1% of the card height and 80% of the card width. This patch exposes both values in the layout editor. If no values are given, the previousely hard coded values (0.01 / 0.8) are used in order to work with existing card definitions. To test: - Go to Home > Tools > Patron card creator - Export a patron card (PDF) from en existing definition - Apply patch - Export patron card again, compare results (should be the same) - Go to Home > Tools > Patron card creator > Manage card layouts - Edit the layout you use for testing and set barcode scaling values e.g. to 0.03 for height and 0.4 for widht - Export patron card again, verify that barcode size changed Signed-off-by: Chris Nighswonger Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Jonathan Druart changed: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #15 from Chris Nighswonger --- The problem with this is that PDF::Barcode does some internal scaling on the image depending on the length of the number, etc. So one ends up chasing ones tail so to speak. The currently proposed solution avoids this effect for the most part. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #14 from Heinrich Hartl --- I have done a little bit black box analysis: how does the bar code behave under different sized labels/cards. The analysis is done with 3.18.5, hence without this patch or any other modification. 1. The bar code position defines the position of the lower left corner of the bar code string (as designed). The bar code includes a little bit of white lead space, approximately half a code character.Therefore the first black bar of the bar code is found that amount to the right of the defined start position. 2.The length of the bar code string including white lead and trailing space is approximately 75% of the label width. if this observed length is associated with a value 0.8 some extra space is included in the calculation. 3. The lower left position defined is the baseline of the human readable string. If that string is not printed the height reserved for the human readable string is left blank. 4. the height of human readable string + the bar code is about 27% of the label/card height. The bar code alone is 20% of the label/card height. If these values are associated with an internal scale 0.01 I do not know to which basis this scale is chosen. 14 digits + start char + stop char were measured 49 mm long 7mm high on a template with label/cards 70*36mm close to credit card size 85*54mm. Aspect ratio of bar code letters h/w hence was 7/3 w~0.5*h. Unfortunately the bar code is the only element of the layout that reacts to the size of the label/card. All text and pictures remain same size and position (with respect to lower left corner) with disregard to the size of the label/card I think it is desirable to have a consistent and foreseeable behaviour. May I suggest to think about giving the barcode a height in chosen units and define its (estimated) length from the number of characters in string * character width (derived from height * aspect factor 0,5). It is then the users responsibility to choose a barcode height in the layout which results an acceptable string length not exceeding the available space on the label/card. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Chris Nighswonger changed: What|Removed |Added See Also||http://bugs.koha-community. ||org/bugzilla3/show_bug.cgi? ||id=14149 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #13 from Marc Véron --- (In reply to Chris Nighswonger from comment #11) > Marc, would it be possible for you to add this to the label tool as well? Chris, I think so. Can you open a separate Bug for the label tool and put me on the cc? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Chris Nighswonger changed: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Chris Nighswonger changed: What|Removed |Added Attachment #38764|0 |1 is obsolete|| --- Comment #12 from Chris Nighswonger --- Created attachment 38848 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38848&action=edit [SIGNED OFF] Bug 14107: Patron cards: Make barcode width and height scaling editable The size of the barcode in patron card creator was hardcoded to 1% of the card height and 80% of the card width. This patch exposes both values in the layout editor. If no values are given, the previousely hard coded values (0.01 / 0.8) are used in order to work with existing card definitions. To test: - Go to Home > Tools > Patron card creator - Export a patron card (PDF) from en existing definition - Apply patch - Export patron card again, compare results (should be the same) - Go to Home > Tools > Patron card creator > Manage card layouts - Edit the layout you use for testing and set barcode scaling values e.g. to 0.03 for height and 0.4 for widht - Export patron card again, verify that barcode size changed Signed-off-by: Chris Nighswonger -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #11 from Chris Nighswonger --- Marc, would it be possible for you to add this to the label tool as well? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #10 from Heinrich Hartl --- koha manual chapter 3.1.6 on patron card creator needs to be adapted to include the new barcode scaling options -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Heinrich Hartl changed: What|Removed |Added CC||heinrich.ha...@email.de --- Comment #9 from Heinrich Hartl --- Created attachment 38829 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38829&action=edit new barcode scaling options in patron card creator menue The enhancement provided by mveron allows scaling the barcode both in horizontal and vertical direction. The scaling values in the menue are preset with the values that produce the same result as before the the enhancement. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #8 from Marc Véron --- (In reply to M. Tompsett from comment #6) > C4/Patroncards/Patroncard.pm is modified. Is there a way to add tests? Changing the values has a visual impact on the PDF, I do not know how this could be tested. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #7 from Chris Nighswonger --- Looks good to me. If it's not done before Monday, I'll be glad to sign-off on it. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 M. Tompsett changed: What|Removed |Added CC||mtomp...@hotmail.com --- Comment #6 from M. Tompsett --- C4/Patroncards/Patroncard.pm is modified. Is there a way to add tests? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #5 from Marc Véron --- Created attachment 38769 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38769&action=edit OutputPDF with patch After applying the patch and adjusting the value for barcode width scaling. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #4 from Marc Véron --- Created attachment 38768 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38768&action=edit Output PDF without patch Butterfly card without patch. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #3 from Marc Véron --- Created attachment 38767 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38767&action=edit Use case "Butterfly" Card Usecase "Butterfly" card. This type of card has a self adhesive part on a sheet of paper (e.g. an invoice) that can be detached and folded. See follwong attachments (Cards created without and with patch). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Chris Nighswonger changed: What|Removed |Added CC||cnighswon...@foundations.ed ||u --- Comment #2 from Chris Nighswonger --- This needs to be tested with barcodes of less than 4 digits. The original problem with exposing scaling was that barcode shorter than ability about 5 digits behaved badly. At the time some libraries were starting numbering at 1. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Marc Véron changed: What|Removed |Added Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Marc Véron changed: What|Removed |Added See Also||http://bugs.koha-community. ||org/bugzilla3/show_bug.cgi? ||id=14108 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Marc Véron changed: What|Removed |Added See Also||http://bugs.koha-community. ||org/bugzilla3/show_bug.cgi? ||id=9480 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 Marc Véron changed: What|Removed |Added Assignee|cnighswon...@foundations.ed |ve...@veron.ch |u | -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 14107] Patron cards: Make barcode width and height scaling editable
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14107 --- Comment #1 from Marc Véron --- Created attachment 38764 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38764&action=edit Bug 14107 - Patron cards: Make barcode width and height scaling editable The size of the barcode in patron card creator was hardcoded to 1% of the card height and 80% of the card width. This patch exposes both values in the layout editor. If no values are given, the previousely hard coded values (0.01 / 0.8) are used in order to work with existing card definitions. To test: - Go to Home > Tools > Patron card creator - Export a patron card (PDF) from en existing definition - Apply patch - Export patron card again, compare results (should be the same) - Go to Home > Tools > Patron card creator > Manage card layouts - Edit the layout you use for testing and set barcode scaling values e.g. to 0.03 for height and 0.4 for widht - Export patron card again, verify that barcode size changed -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/