Bug 10762: (follow-up) Update test plan, add kohastructure.sql files

I also change the default value for scale_height to '0.01'

Test plan:

1)Home > Cataloguing > Tools: Label creator > Manage Layout or New Layout
2)Make a new layout or edit an existing one
3)Notice the 2 new fields "Barcode width/Barcode height"
4)Save it like this
5)Create a batch of barcode and export if in PDF
6)Notice the size of barcode
7)Go back to your existing layout
8)Enter some values (Barcode width: 1.6 / Barcode height: 0.02), save
9)Take back your batch of barcode and export it in PDF
10)The barcode should be 2x bigger

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Johanna Miettunen <johanna.miettunen@haaga-helia.fi>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Thibaud Guillot 2023-01-02 15:05:11 +01:00 committed by Tomas Cohen Arazi
parent 2cf45462fe
commit b5986ba8e2
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 3 additions and 1 deletions

View file

@ -80,7 +80,7 @@ sub new {
font => 'TR',
font_size => 3,
scale_width => 0.8,
scale_height => 0.02,
scale_height => 0.01,
callnum_split => 0,
text_justify => 'L',
format_string => join(', ', @{ PRESET_FIELDS() }),

0
installer/data/mysql/atomicupdate/update-BZ_10762.pl Normal file → Executable file
View file

View file

@ -2348,6 +2348,8 @@ CREATE TABLE `creator_layouts` (
`oblique_title` int(1) DEFAULT 1,
`font` char(10) NOT NULL DEFAULT 'TR',
`font_size` int(4) NOT NULL DEFAULT 10,
`scale_width` decimal(28,6) NOT NULL DEFAULT 0.08,
`scale_height` decimal(28,6) NOT NULL DEFAULT 0.01,
`units` char(20) NOT NULL DEFAULT 'POINT',
`callnum_split` int(1) DEFAULT 0,
`text_justify` char(1) NOT NULL DEFAULT 'L',