Bug 13545 - Add barcode image generator service
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 4 Dec 2014 12:48:35 +0000 (07:48 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 13 Feb 2015 16:48:31 +0000 (13:48 -0300)
commitae592bd25a8b52591494f5a75f2db918c55e8617
tree357c19c8e12e2c6b9fe102a0b8150a524d562bcc
parentb2ccd0f3a208f8920eda0552fb4f5fc773e23901
Bug 13545 - Add barcode image generator service

If we add a script to Koha that can be passed a barcode, we will be able
to easily embed item and patron barcodes into html printable slips and
notices. This can be very helpful for librarians, as it means scanning
an image instead of typing in the barcode manually.

This patch adds a barcode image generator that can be passed a barcode
and an optional type ( defaults to Code39, all GD::Barcode types should
work ). This image can be embedded in html slips and notices.
( e.g. <img src="/cgi-bin/koha/svc/barcode?barcode=<<items.barcode>>"></img> )

Test Plan:
1) Apply this patch
2) Browse to /cgi-bin/koha/svc/barcode?barcode=123456789 on your server
3) Note the barcode image

Signed-off-by: Brandon <brandon_h27@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
svc/barcode [new file with mode: 0755]