[Bug 43895] New: Bug 42627 improvements and follow-ups
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Bug ID: 43895 Summary: Bug 42627 improvements and follow-ups Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Tools Assignee: koha-bugs@lists.koha-community.org Reporter: lucas@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- RM non-blocking feedback on Bug 42627: Not blockers as this is staged for push, but a few opportunities for follow-ups: 1) Open http://localhost:8081/cgi-bin/koha/labels/label-edit-range.pl 2) Enter 'Starting barcode' 000123 and 'Number of barcodes to print' 3, then click 'Print range' 3) Pick any template and layout, and click 'Export' 4) The legend reads 'Barcodes from 000123 to 125'. The batch already carries 'to' (txt_to), but label-print.tt:132 still computes from + count - 1. Using batche.to there would show 000123 to 000125 - barcode_length is now dead in label-print.tt: the PDF link param (line 136) and the hidden input (line 176) are always empty, and label-create-pdf.pl derives the length from 'from' anyway - Still curious about the 'else' -> 'elsif ($batch_id)' change in label-create-pdf.pl, was that intended? - Nits: the get_barcode_range POD shows positional args but it takes a hashref, and label-print.pl now has two 'use C4::Creators::Lib' lines Filing as a separate bug so this doesn't get lost in shuffle. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |lucas@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #1 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 209279 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209279&action=edit Bug 43895: Fix calucation in the legend on label-print.tt -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #2 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 209280 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209280&action=edit Bug 43895: Remove dead barcode_length code -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #3 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 209281 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209281&action=edit Bug 43895: Remove unnessesary elsif -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #4 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 209282 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209282&action=edit Bug 43895: Fix POD and remove double use_barcode_range call To test: 1) Open http://localhost:8081/cgi-bin/koha/labels/label-edit-range.pl 2) Enter 'Starting barcode' 000123 and 'Number of barcodes to print' 3, then click 'Print range' 3) Pick any template and layout, and click 'Export' 4) The legend reads 'Barcodes from 000123 to 125'. The batch already carries 'to' (txt_to), but label-print.tt:132 still computes from + count - 1. Using batche.to there would show 000123 to 000125 5) APPLY PATCHES, restart_all 6) Try 1 - 3 again. Thim time the legend should read "Barcodes from 000123 to 000125" 7) Follow all the steps from the Bug 42627 to confirm everything still works -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #5 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- @Pedro, I can't think of why I would have added an elsif instead of just else. I reverted it back to just else, tested everything and it seems to work. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |42627 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42627 [Bug 42627] Printing a range of barcodes should be from and quantity instead of from and to -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Keywords| |Sandbox --- Comment #6 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hey Lucas, thank you. Would be nice to have someone volunteer to SO this and then we'd be in a good place to fast track it! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Gretchen Maxeiner <maxeinergl@gcc.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209279|0 |1 is obsolete| | Attachment #209280|0 |1 is obsolete| | Attachment #209281|0 |1 is obsolete| | Attachment #209282|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=43895 --- Comment #7 from Gretchen Maxeiner <maxeinergl@gcc.edu> --- Created attachment 209727 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209727&action=edit Bug 43895: Fix calucation in the legend on label-print.tt Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #8 from Gretchen Maxeiner <maxeinergl@gcc.edu> --- Created attachment 209728 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209728&action=edit Bug 43895: Remove dead barcode_length code Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #9 from Gretchen Maxeiner <maxeinergl@gcc.edu> --- Created attachment 209729 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209729&action=edit Bug 43895: Remove unnessesary elsif Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #10 from Gretchen Maxeiner <maxeinergl@gcc.edu> --- Created attachment 209730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209730&action=edit Bug 43895: Fix POD and remove double use_barcode_range call To test: 1) Open http://localhost:8081/cgi-bin/koha/labels/label-edit-range.pl 2) Enter 'Starting barcode' 000123 and 'Number of barcodes to print' 3, then click 'Print range' 3) Pick any template and layout, and click 'Export' 4) The legend reads 'Barcodes from 000123 to 125'. The batch already carries 'to' (txt_to), but label-print.tt:132 still computes from + count - 1. Using batche.to there would show 000123 to 000125 5) APPLY PATCHES, restart_all 6) Try 1 - 3 again. Thim time the legend should read "Barcodes from 000123 to 000125" 7) Follow all the steps from the Bug 42627 to confirm everything still works Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Gretchen Maxeiner <maxeinergl@gcc.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #11 from Gretchen Maxeiner <maxeinergl@gcc.edu> --- Signed off using a sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Gretchen Maxeiner <maxeinergl@gcc.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maxeinergl@gcc.edu --- Comment #12 from Gretchen Maxeiner <maxeinergl@gcc.edu> --- Per the test plan barcodes with lead zeros now show correctly in the legend (and also print correctly). I also revisited the test plan from original bug 42627 and those steps still work correctly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> 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=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #209727|0 |1 is obsolete| | Attachment #209728|0 |1 is obsolete| | Attachment #209729|0 |1 is obsolete| | Attachment #209730|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=43895 --- Comment #13 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 209731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209731&action=edit Bug 43895: Fix calucation in the legend on label-print.tt Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #14 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 209732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209732&action=edit Bug 43895: Remove dead barcode_length code Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #15 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 209733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209733&action=edit Bug 43895: Remove unnessesary elsif Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #16 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 209734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209734&action=edit Bug 43895: Fix POD and remove double use_barcode_range call To test: 1) Open http://localhost:8081/cgi-bin/koha/labels/label-edit-range.pl 2) Enter 'Starting barcode' 000123 and 'Number of barcodes to print' 3, then click 'Print range' 3) Pick any template and layout, and click 'Export' 4) The legend reads 'Barcodes from 000123 to 125'. The batch already carries 'to' (txt_to), but label-print.tt:132 still computes from + count - 1. Using batche.to there would show 000123 to 000125 5) APPLY PATCHES, restart_all 6) Try 1 - 3 again. Thim time the legend should read "Barcodes from 000123 to 000125" 7) Follow all the steps from the Bug 42627 to confirm everything still works Signed-off-by: Gretchen Maxeiner <maxeinergl@gcc.edu> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |pedro.amorim@openfifth.co.u |y.org |k -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |26.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 --- Comment #17 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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43895 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |RESOLVED Resolution|--- |FIXED --- Comment #18 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Missing dependencies, no backport. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org