[Bug 40478] New: Add option to center barcode on labels
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Bug ID: 40478 Summary: Add option to center barcode on labels Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Label/patron card printing Assignee: cnighswonger@foundations.edu Reporter: dcook@prosentient.com.au QA Contact: testopia@bugs.koha-community.org Bug 40473 fixes barcode length calculator of Code39 barcodes in the label creator. When using barcode width of 1 or 100%, the barcode will be centred on the label. But if you use a smaller barcode width, your barcode will be left aligned. Surely it would be good to have the ability to have centred barcodes even when using narrower barcodes? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=40473 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #1 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 191811 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191811&action=edit Bug 40478: Database update to add barcode_justify column to creator_layouts -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #2 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 191812 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191812&action=edit Bug 40478: Add ability to justify CODE39 barcodes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |lucas@bywatersolutions.com Assignee|cnighswonger@foundations.ed |lucas@bywatersolutions.com |u | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #3 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- WIP. So far only handling CODE39 and I have not tested with the different barcode widths that David mentions. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #4 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 192111 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192111&action=edit Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191811|0 |1 is obsolete| | --- Comment #5 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 192112 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192112&action=edit Bug 40478: Database update to add barcode_justify column to creator_layouts -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191812|0 |1 is obsolete| | --- Comment #6 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 192113 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192113&action=edit Bug 40478: Add ability to justify CODE39 barcodes To test: 1. Apply patch, updatedatabase, restart_all 2. Create at least 1 label batch 3. Create or edit an existing layout. 4. You should now see a dropdown labeled "Barcode justification:" with options to align left, right, and center. 5. At this point I like to check "Draw guide boxes" as it makes testing alignment much easier. 6. Now test generating label sets to "Download as PDF". 7. You will want to make sure the barcode properly aligns left, right, and center. 8. Test with all the different "Choose barcode type (encoding):" options. Ensuring the barcodes align correectly left, right, and center. 9. Also test with all the different "Choose layout type:" that will display a barcode. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192111|0 |1 is obsolete| | --- Comment #7 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 192114 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192114&action=edit Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add option to center |Add option to justify |barcode on labels |barcode on labels -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This patchset adds a release notes| |"Barcode justification" | |option to label layouts. | |This allows the user to | |justify CODE39, COOP2of5, | |Industrial2of5 and EAN13 | |barcodes independently of | |any other content in the | |label layout. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192112|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192113|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192114|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #8 from David Nind <david@davidnind.com> --- Created attachment 197826 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197826&action=edit Bug 40478: Database update to add barcode_justify column to creator_layouts Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #9 from David Nind <david@davidnind.com> --- Created attachment 197827 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197827&action=edit Bug 40478: Add ability to justify CODE39 barcodes To test: 1. Apply patch, updatedatabase, restart_all 2. Create at least 1 label batch 3. Create or edit an existing layout. 4. You should now see a dropdown labeled "Barcode justification:" with options to align left, right, and center. 5. At this point I like to check "Draw guide boxes" as it makes testing alignment much easier. 6. Now test generating label sets to "Download as PDF". 7. You will want to make sure the barcode properly aligns left, right, and center. 8. Test with all the different "Choose barcode type (encoding):" options. Ensuring the barcodes align correectly left, right, and center. 9. Also test with all the different "Choose layout type:" that will display a barcode. Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #10 from David Nind <david@davidnind.com> --- Created attachment 197828 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197828&action=edit Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13 Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This patchset adds a |This enhancement adds a release notes|"Barcode justification" |"Barcode justification" |option to label layouts. |option to label layouts. |This allows the user to |This allows you to justify |justify CODE39, COOP2of5, |CODE39, COOP2of5, |Industrial2of5 and EAN13 |Industrial2of5 and EAN13 |barcodes independently of |barcodes independently of |any other content in the |any other content in the |label layout. |label layout. CC| |david@davidnind.com --- Comment #11 from David Nind <david@davidnind.com> --- I couldn't get EAN13 barcodes to print. However, this was the same before these patches - I'm assuming it is related to fonts. Everything else worked as expected with the different options, barcode types, and layouts I tried. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |dcook@prosentient.com.au |y.org | CC| |lisette@bywatersolutions.co | |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197826|0 |1 is obsolete| | Attachment #197827|0 |1 is obsolete| | Attachment #197828|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #12 from David Cook <dcook@prosentient.com.au> --- Created attachment 204199 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204199&action=edit Bug 40478: Database update to add barcode_justify column to creator_layouts Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: David Cook <dcook@prosentient.com.au> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- Created attachment 204200 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204200&action=edit Bug 40478: Add ability to justify CODE39 barcodes To test: 1. Apply patch, updatedatabase, restart_all 2. Create at least 1 label batch 3. Create or edit an existing layout. 4. You should now see a dropdown labeled "Barcode justification:" with options to align left, right, and center. 5. At this point I like to check "Draw guide boxes" as it makes testing alignment much easier. 6. Now test generating label sets to "Download as PDF". 7. You will want to make sure the barcode properly aligns left, right, and center. 8. Test with all the different "Choose barcode type (encoding):" options. Ensuring the barcodes align correectly left, right, and center. 9. Also test with all the different "Choose layout type:" that will display a barcode. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: David Cook <dcook@prosentient.com.au> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #14 from David Cook <dcook@prosentient.com.au> --- Created attachment 204201 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204201&action=edit Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13 Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: David Cook <dcook@prosentient.com.au> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k Status|Passed QA |Failed QA --- Comment #15 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi guys, 1) Missing kohastructure.sql update 2) The following is now failing: prove t/db_dependent/Labels/t_Layout.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #16 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 207122 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207122&action=edit Bug 40478: (follow-up) Adjust tests Patch from commit 1ce5dda -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #17 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 207123 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207123&action=edit Bug 40478: (follow-up) Adjust kohastructure.sql Patch from commit 6a6004b -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #18 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all, barcode justification doesn't apply to EAN13. The commit title and release notes mention it but the EAN13 code isn't touched. 1) Apply the patches, updatedatabase, restart_all 2) Create a layout: http://localhost:8081/cgi-bin/koha/labels/label-edit-layout.pl?op=new - 'Layout name': EAN13 test - 'Choose barcode type (encoding)': EAN13 - 'Choose layout type': 'Only the barcode is printed' - 'Draw guide boxes': ticked - 'Barcode justification': Left Save. 3) Create a batch: http://localhost:8081/cgi-bin/koha/labels/label-edit-batch.pl?op=new Enter 3999900000001 under 'Add by barcode(s) or itemnumbers(s)' and click 'Add item(s)'. 4) Click 'Export full batch', select template 'Avery 5160 | 1 x 2-5/8' and layout 'EAN13 test', click 'Export', then 'Download as PDF'. Note where the barcode sits inside the guide box. 5) Edit 'EAN13 test' (http://localhost:8081/cgi-bin/koha/labels/label-manage.pl?label_element=layo...), set 'Barcode justification' to Right, save, and repeat step 4. The barcode is in exactly the same place. Same with Center. 6) Confirm it works on others: edit 'EAN13 test', set 'Choose barcode type (encoding)' to Code 39, keep Right, and repeat step 4. This time the barcode moves to the right of the guide box. We should either add EAN13 support, or drop EAN13 from the commit title and release notes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #19 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 207833 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207833&action=edit Bug 40478: (follow-up) Add support for EAN13 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.11.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40478 --- Comment #20 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org