[Koha-bugs] [Bug 25384] Label maker font list is not configurable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 7 14:20:47 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25384

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #104390|0                           |1
        is obsolete|                            |

--- Comment #8 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 104505
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104505&action=edit
Bug 25384: Use koha-conf.xml to configure label maker font list

This patch fetches the "ttf" element in koha-conf.xml, and looks
for entries with a "name" attribute. If it's an existing default
font, it will rename that font. If it's a new font, it will add
it to the font list in the label creator pages.

If you don't change anything in koha-conf.xml, then there is no
behaviour change and the existing unit tests will all complete
as normal.

Test plan:
1) Apply patch
2) Edit koha-conf.xml and add a "name" attribute of "Times New Awesome"
next to the font "type" "TR".
3) Edit koha-conf.xml and add the following entry to the "ttf" element:
<font type="A"
name="Arial">/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf</font>
4) Clear memcached (if using memcached)
    a. e.g. echo 'flush_all' | nc -q 1 memcached 11211
5) Restart Plack (if using Plack)
    a. e.g. koha-plack --restart kohadev
6) Create or edit a Label maker layout
    a. e.g. /cgi-bin/koha/labels/label-edit-layout.pl?op=edit&element_id=17
7) Note that "Times-Roman" now says "Times New Awesome" instead
8) Note that there is now an "Arial" option at the bottom of the list
9) Try to export a label batch using a layout using "Arial"
10) Note that the text is output with a font style similar to Arial

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Works as described, no errors

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list