Bug 12194: Add option 'Oblique title' in labels
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Fri, 26 Jun 2015 19:13:52 +0000 (16:13 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Oct 2015 12:42:31 +0000 (09:42 -0300)
commit05d4c0e69b13a4d3500300bf027144979af813cd
tree884317ede824a8cc9090c767294770ec8f6b8c19
parentb1b8eaa091828f75991a45740afc66d9b1ffcd50
Bug 12194: Add option 'Oblique title' in labels

This patch adds a checkbox on Label creator
to use or not an oblique variant of main font
for title

Also fix font selection for title in case an
oblique variant is used.

To test:
Before patch
1) Go to Tools > Label creator
2) Create a new layout, default values but select
any 'Oblique' variant for main font and
'Biblio/Barcode' for layout type
3) Go to Manage batches, create a batch, add items,
export PDF, download
4) Check logs, you must find a line with
'ERROR in koha-conf.xml -- missing <font type="COO">'
for example if main font Courier-Oblique

5) Open PDF, title could be right but not using selected font

After patch
6) Apply the patch
7) Run updatedatabase.pl
8) Repeat 1-2, note new checkbox 'Oblique title',
default checked
9) Repeat export, no new warnings on log
10) Create a new layout or edit an existent one,
uncheck 'Oblique title', save, export again
Check PDF has non slanted title

Followed test plan, works as expected. (See comment #11).
Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Creators/Layout.pm
C4/Labels/Label.pm
installer/data/mysql/atomicupdate/bug-12194-add-column-oblique_title.sql [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt
labels/label-create-pdf.pl
labels/label-edit-layout.pl