From b5986ba8e27ead688d5722d077769ffaa5b9c760 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Mon, 2 Jan 2023 15:05:11 +0100 Subject: [PATCH] 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 Signed-off-by: Johanna Miettunen Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- C4/Creators/Layout.pm | 2 +- installer/data/mysql/atomicupdate/update-BZ_10762.pl | 0 installer/data/mysql/kohastructure.sql | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 installer/data/mysql/atomicupdate/update-BZ_10762.pl diff --git a/C4/Creators/Layout.pm b/C4/Creators/Layout.pm index d1c889e550..690cb047d3 100644 --- a/C4/Creators/Layout.pm +++ b/C4/Creators/Layout.pm @@ -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() }), diff --git a/installer/data/mysql/atomicupdate/update-BZ_10762.pl b/installer/data/mysql/atomicupdate/update-BZ_10762.pl old mode 100644 new mode 100755 diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index c5655ec2cf..c4fd812f96 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -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', -- 2.20.1