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.
Created attachment 35094 [details] [review] 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
Created attachment 35095 [details] [review] 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
Created attachment 35103 [details] [review] 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
Created attachment 35128 [details] [review] 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>
Created attachment 35325 [details] [review] 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>
It could be great to have a small POD, to know the codes it's possible to use. And maybe should we catch potential errors raised by the last line of the script?
Created attachment 35806 [details] [review] Bug 13545: (followup) POD and error handling This patch adds POD to the new /svc/barcode service, and also implements some error handling. Sponsored-by: Universidad Nacional de Cordoba
I'm failing this one, even though I attached a followup so the author checks both the followup and the POD I added. It should be clear which barcode 'types' we support, and they should be added to the dependencies if needed. For instance, I'm not sure we might add GD::Barcode to the dependencies. I tried with GD::Barcode:::QRcode and GD::Barcode::UPCE, and it works fine. I tested using an empty barcode number to generate an error. Please revisit and sign if it is ok, but at least the POD should be ammended.
(In reply to Tomás Cohen Arazi from comment #8) > I'm failing this one, even though I attached a followup so the author checks > both the followup and the POD I added. > > It should be clear which barcode 'types' we support, and they should be > added to the dependencies if needed. For instance, I'm not sure we might add > GD::Barcode to the dependencies. > > I tried with GD::Barcode:::QRcode and GD::Barcode::UPCE, and it works fine. > > I tested using an empty barcode number to generate an error. > > Please revisit and sign if it is ok, but at least the POD should be ammended. All the barcode types are part of the GD::Barcode module with the exception of Code93 which is used by the Canadian postal server. As such, I've left it out of the list for simplicity.
Created attachment 35912 [details] [review] 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>
Created attachment 35913 [details] [review] Bug 13545: (followup) POD and error handling This patch adds POD to the new /svc/barcode service, and also implements some error handling. Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Created attachment 35914 [details] [review] Bug 13545 [QA Followup] - Complete POD documentation
Created attachment 35915 [details] [review] Bug 13545 [QA Followup] - Complete POD documentation
Patches pushed to master. Thanks Kyle!
How to change library code in koha 3.20 because we seven branches each sch we have taken 3 letter before accession no. as barcode two of our sch name Prabhadevi and Sayani we started with PRAB and SAYA. I want to change PRA and SAY instead of that please suggest me.
I think this is not possible with configuration in 3.20 - maybe it will be possible once notices templates are using template toolkit. This feature is in development for 17.05. If you want help for a customization, it's better to ask on the mailing list.
Maybe I missed it, but I think this would be great to have in the manual as it makes it possible to add scannable information to slips
I was trying to set this to 'needs documenting' but I can't reach the status it seems :(
CLOSED FIXED > Needs Documenting doesn't work, but: RESOLVED FIXED > Needs Documenting does :)
Katrin, I documented bug 29821 which is the staff interface version of this tool. Do you need it documented elsewhere?
(In reply to Caroline Cyr La Rose from comment #20) > Katrin, I documented bug 29821 which is the staff interface version of this > tool. Do you need it documented elsewhere? No, that sounds great :) I think I asked for this bevor the tool was added that made the feature more visible.