[Koha-bugs] [Bug 23654] New: Patron Cards - Bar code and image do not show up

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 20 12:56:06 CEST 2019


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

            Bug ID: 23654
           Summary: Patron Cards - Bar code and image do not show up
 Change sponsored?: ---
           Product: Koha
           Version: 19.05
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Label/patron card printing
          Assignee: cnighswonger at foundations.edu
          Reporter: rick_conrad at sil.org
        QA Contact: testopia at bugs.koha-community.org

Created attachment 92993
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92993&action=edit
The pdf generated

When I generate a pdf of patron cards, I see the text that was specified, but
there's no bar code and there's no image displayed.

Server info from the About Page:
````
Server information
Koha version:   19.05.03.000
OS version ('uname -a'):        Linux koha 4.15.0-64-generic #73-Ubuntu SMP Thu
Sep 12 13:16:13 UTC 2019 x86_64
Perl interpreter:       /usr/bin/perl
Perl version:   5.026001
Perl @INC:      /usr/share/koha/lib 
/usr/share/koha/installer 
/usr/share/koha/lib/installer 
/etc/perl 
/usr/local/lib/x86_64-linux-gnu/perl/5.26.1 
/usr/local/share/perl/5.26.1 
/usr/lib/x86_64-linux-gnu/perl5/5.26 
/usr/share/perl5 
/usr/lib/x86_64-linux-gnu/perl/5.26 
/usr/share/perl/5.26 
/usr/local/lib/site_perl 
/usr/lib/x86_64-linux-gnu/perl-base 
/var/lib/koha/library/plugins 
MySQL version:  mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using
EditLine wrapper
Apache version: Server version: Apache/2.4.29 (Ubuntu)
PSGI:   Plack (deployment)
Memcached:      Servers: localhost:11211 | Namespace: koha | Status: running. |
Config read from: koha-conf.xml
Zebra version:  Zebra 2.0.59 (C) 1994-2014, Index Data Zebra is free software,
covered by the GNU General Public License, and you are welcome to change it
and/or distribute copies of it under certain conditions. SHA1 ID:
c00bfddbf0f3608340d61298acc61dafb167f9b2 Using ICU
Date and time:  20/09/2019 10:43
Time zone:      Used: UTC | Config: Undefined | Environment (TZ): Undefined
````

On the Perl Modules tab, the following module are red - not installed. Don't
know if maybe I need one of them.
````
Text::CSV::Unicode
Selenium::Remote::Driver
Test::DBIx::Class
Net::OAuth2::AuthorizationServer
HTTPD::Bench::ApacheBench
````

Here's the parameters for the layout:
````
mysql> select * from creator_layouts where layout_id=8;
+-----------+--------------+-------------+---------------+-------------+----------+---------------+------+-----------+-------+---------------+--------------+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+
| layout_id | barcode_type | start_label | printing_type | layout_name |
guidebox | oblique_title | font | font_size | units | callnum_split |
text_justify | format_string | layout_xml                                      
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                | creator     |
+-----------+--------------+-------------+---------------+-------------+----------+---------------+------+-----------+-------+---------------+--------------+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+
|         8 | CODE39       |           1 | BAR           | koha2       |       
0 |             1 | TR   |        10 | INCH  |             0 | L            |
barcode       | <opt guide_box="0" guide_grid="0" page_side="F" units="INCH">
  <barcode height_scale="0.5" llx="1.4" lly="0.1" print="1" type="CODE39"
width_scale="0.5" />
  <images name="image_1" Dx="1" Ox="0" Oy="0" Sx="0" Sy="0" Tx="0.1" Ty="0.1">
    <data_source image_name="SIL Logo New" image_source="creator_images" />
  </images>
  <text><surname>, <firstname></text>
  <text enable="1" font="CB" font_size="14" llx="0.1" lly="1.7"
text_alignment="L" />
  <text>Library Card/Carte de Bibliotheque</text>
  <text enable="1" font="C" font_size="10" llx="0.1" lly="1.45"
text_alignment="L" />
  <text>10/09/2020</text>
  <text font="CB" font_size="10" llx="0.1" lly="1.2" text_alignment="L" />
</opt>
 | Patroncards |
+-----------+--------------+-------------+---------------+-------------+----------+---------------+------+-----------+-------+---------------+--------------+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+
1 row in set (0.00 sec)
````

And for the template:
````
mysql> select * from creator_templates where template_id=6;
+-------------+------------+---------------+------------------+------------+-------------+-------------+--------------+-----------------+------------------+------------+-------------+------+------+---------+---------+-------+-------------+
| template_id | profile_id | template_code | template_desc    | page_width |
page_height | label_width | label_height | top_text_margin | left_text_margin |
top_margin | left_margin | cols | rows | col_gap | row_gap | units | creator   
 |
+-------------+------------+---------------+------------------+------------+-------------+-------------+--------------+-----------------+------------------+------------+-------------+------+------+---------+---------+-------+-------------+
|           6 |          0 | Good Template | This one is good |        8.3 |   
    11.7 |         3.5 |            2 |               0 |                0 |   
 0.6785 |         0.5 |    2 |    4 |     0.2 |     0.2 | INCH  | Patroncards |
+-------------+------------+---------------+------------------+------------+-------------+-------------+--------------+-----------------+------------------+------------+-------------+------+------+---------+---------+-------+-------------+
1 row in set (0.00 sec)
````

The resulting pdf is attached.

Thanks in advance for your help!

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


More information about the Koha-bugs mailing list