Re: [Koha] [Koha-devel] Barcode Don't Found
How do you create the filter? Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" -----Original Message----- From: Michael Hafen [mailto:mdhafen@tech.washk12.org] Sent: Friday, March 27, 2009 11:29 AM To: Roche III, Edward Cc: koha-devel@lists.koha.org Subject: Re: [Koha-devel] [Koha] Barcode Don't Found I have in my libraries several copies with a "T " before the number part of the barcode. Koha works with it fine. I find the trick is to make sure what's in the Koha database and what's encoded in the barcode are the same. It is possible with itemInputBarcodeFilter processing. I've used that sys. pref. to strip leading spaces ( which I put in ) from some barcodes. If what you want is to be able to enter just the number, or the "T " and the number ( like from a barcode scanner ), then I think making a custom itemInputBarcodeFilter ( like I did to trim leading spaces ) would be a good solution. On Fri, 2009-03-27 at 10:00 -0400, Roche III, Edward wrote:
That is an idea but I would think there was a way to have Koha except the T+space.
Thanks! Ed
Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437
"At the End of the Day, Did You Play to Win or Not to Lose?"
-----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Owen Leonard Sent: Friday, March 27, 2009 9:52 AM To: koha@lists.katipo.co.nz Subject: Re: [Koha] [Koha-devel] Barcode Don't Found
Currently doing it by hand but have tried with the scanner with no luck.
I asked because sometimes scanners are configured to add characters where you might not expect them. I did a quick test in my 3.0 installation and didn't have any problem typing in the barcode.. I don't have any prefix options specified.
What I wonder is if you couldn't store just the numeric portion of the barcode (if it's the T+space causing the problem) and configure your scanners to strip off the "T "? Of course you'd have to consult the documentation for your scanners to know if that was possible. We've done something similar in the past.
-- Owen
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://koha-dev.washk12.org or git://koha-dev.washk12.org/koha
I'll attach a modified patch to do it. You'll still have to update the sys. pref. options to enable this feature. Look at the changes to installer/data/mysql/en/mandatory/sysprefs.sql for an idea of what to set the sys. pref. to. Good luck. On Fri, 2009-03-27 at 11:42 -0400, Roche III, Edward wrote:
How do you create the filter?
Thanks! Ed
Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437
"At the End of the Day, Did You Play to Win or Not to Lose?"
-----Original Message----- From: Michael Hafen [mailto:mdhafen@tech.washk12.org] Sent: Friday, March 27, 2009 11:29 AM To: Roche III, Edward Cc: koha-devel@lists.koha.org Subject: Re: [Koha-devel] [Koha] Barcode Don't Found
I have in my libraries several copies with a "T " before the number part of the barcode. Koha works with it fine. I find the trick is to make sure what's in the Koha database and what's encoded in the barcode are the same. It is possible with itemInputBarcodeFilter processing. I've used that sys. pref. to strip leading spaces ( which I put in ) from some barcodes.
If what you want is to be able to enter just the number, or the "T " and the number ( like from a barcode scanner ), then I think making a custom itemInputBarcodeFilter ( like I did to trim leading spaces ) would be a good solution.
On Fri, 2009-03-27 at 10:00 -0400, Roche III, Edward wrote:
That is an idea but I would think there was a way to have Koha except the T+space.
Thanks! Ed
Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437
"At the End of the Day, Did You Play to Win or Not to Lose?"
-----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Owen Leonard Sent: Friday, March 27, 2009 9:52 AM To: koha@lists.katipo.co.nz Subject: Re: [Koha] [Koha-devel] Barcode Don't Found
Currently doing it by hand but have tried with the scanner with no luck.
I asked because sometimes scanners are configured to add characters where you might not expect them. I did a quick test in my 3.0 installation and didn't have any problem typing in the barcode.. I don't have any prefix options specified.
What I wonder is if you couldn't store just the numeric portion of the barcode (if it's the T+space causing the problem) and configure your scanners to strip off the "T "? Of course you'd have to consult the documentation for your scanners to know if that was possible. We've done something similar in the past.
-- Owen
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA
for Koha checkout http://koha-dev.washk12.org or git://koha-dev.washk12.org/koha
I missed replying to the groups..... I am being dumb but where does this patch go? I found what I need to do for the sys.pref but not sure where to put the patch. Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" -----Original Message----- From: Michael Hafen [mailto:mdhafen@tech.washk12.org] Sent: Friday, March 27, 2009 12:00 PM To: Roche III, Edward Cc: koha-devel@lists.koha.org; koha@lists.katipo.co.nz Subject: {Possible SPAM} RE: [Koha-devel] [Koha] Barcode Don't Found Importance: Low I'll attach a modified patch to do it. You'll still have to update the sys. pref. options to enable this feature. Look at the changes to installer/data/mysql/en/mandatory/sysprefs.sql for an idea of what to set the sys. pref. to. Good luck. On Fri, 2009-03-27 at 11:42 -0400, Roche III, Edward wrote:
How do you create the filter?
Thanks! Ed
Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437
"At the End of the Day, Did You Play to Win or Not to Lose?"
-----Original Message----- From: Michael Hafen [mailto:mdhafen@tech.washk12.org] Sent: Friday, March 27, 2009 11:29 AM To: Roche III, Edward Cc: koha-devel@lists.koha.org Subject: Re: [Koha-devel] [Koha] Barcode Don't Found
I have in my libraries several copies with a "T " before the number part of the barcode. Koha works with it fine. I find the trick is to make sure what's in the Koha database and what's encoded in the barcode are the same. It is possible with itemInputBarcodeFilter processing. I've used that sys. pref. to strip leading spaces ( which I put in ) from some barcodes.
If what you want is to be able to enter just the number, or the "T " and the number ( like from a barcode scanner ), then I think making a custom itemInputBarcodeFilter ( like I did to trim leading spaces ) would be a good solution.
On Fri, 2009-03-27 at 10:00 -0400, Roche III, Edward wrote:
That is an idea but I would think there was a way to have Koha except the T+space.
Thanks! Ed
Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437
"At the End of the Day, Did You Play to Win or Not to Lose?"
-----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Owen Leonard Sent: Friday, March 27, 2009 9:52 AM To: koha@lists.katipo.co.nz Subject: Re: [Koha] [Koha-devel] Barcode Don't Found
Currently doing it by hand but have tried with the scanner with no luck.
I asked because sometimes scanners are configured to add characters where you might not expect them. I did a quick test in my 3.0 installation and didn't have any problem typing in the barcode.. I don't have any prefix options specified.
What I wonder is if you couldn't store just the numeric portion of the barcode (if it's the T+space causing the problem) and configure your scanners to strip off the "T "? Of course you'd have to consult the documentation for your scanners to know if that was possible. We've done something similar in the past.
-- Owen
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA
for Koha checkout http://koha-dev.washk12.org or git://koha-dev.washk12.org/koha
On 2009/03/29, at 1:41 AM, Roche III, Edward wrote:
I missed replying to the groups.....
I am being dumb but where does this patch go? I found what I need to do for the sys.pref but not sure where to put the patch.
you apply patches in git, using... $ git-apply ./my.patch
Thanks...will try it and see if I can figure it out. Edward Roche Technology Support/Network Admin Solanco School District edward_roche@solanco.k12.pa.us 717.786.2151 The greatest mistake you can make in life is to continually be afraid you will make one. Elbert Hubbard ________________________________ From: Mason James [mailto:mason.loves.sushi@gmail.com] Sent: Sun 3/29/2009 7:18 PM To: Roche III, Edward Cc: koha-devel@lists.koha.org; koha@lists.katipo.co.nz Subject: Re: [Koha] {Possible SPAM} RE: [Koha-devel] Barcode Don't Found On 2009/03/29, at 1:41 AM, Roche III, Edward wrote:
I missed replying to the groups.....
I am being dumb but where does this patch go? I found what I need to do for the sys.pref but not sure where to put the patch.
you apply patches in git, using... $ git-apply ./my.patch
When I apply the pacth with the following command: git-apply ./home/sysadmin/Desktop/0001-Add-less-aggressive-whitespace-removal-to-itemBarcod.patch I get the following results: ./home/sysadmin/Desktop/0001-Add-less-aggressive-whitespace-removal-to-itemBarcod.patch:22: trailing whitespace. } elsif ($filter eq 'trim-Tprefix') { ./home/sysadmin/Desktop/0001-Add-less-aggressive-whitespace-removal-to-itemBarcod.patch:23: trailing whitespace. $barcode =~ s/^[tT\s]*//; ./home/sysadmin/Desktop/0001-Add-less-aggressive-whitespace-removal-to-itemBarcod.patch:38: trailing whitespace. INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','none|whitespace|trim-Tprefix|T-prefix|cuecat','Choice'); error: C4/Circulation.pm: No such file or directory error: installer/data/mysql/en/mandatory/sysprefs.sql: No such file or directory I don't something is right? Especially the 2 errors at the end. What am I doing wrong? Edward Roche Technology Support/Network Admin Solanco School District edward_roche@solanco.k12.pa.us 717.786.2151 The greatest mistake you can make in life is to continually be afraid you will make one. Elbert Hubbard -----Original Message----- From: Mason James [mailto:mason.loves.sushi@gmail.com] Sent: Sun 3/29/2009 7:18 PM To: Roche III, Edward Cc: koha-devel@lists.koha.org; koha@lists.katipo.co.nz Subject: Re: [Koha] {Possible SPAM} RE: [Koha-devel] Barcode Don't Found On 2009/03/29, at 1:41 AM, Roche III, Edward wrote:
I missed replying to the groups.....
I am being dumb but where does this patch go? I found what I need to do for the sys.pref but not sure where to put the patch.
you apply patches in git, using... $ git-apply ./my.patch
On 2009/03/30, at 3:59 PM, Roche III, Edward wrote:
When I apply the pacth with the following command:
git-apply ./home/sysadmin/Desktop/0001-Add-less-aggressive- whitespace-removal-to-itemBarcod.patch
error: C4/Circulation.pm: No such file or directory
error: installer/data/mysql/en/mandatory/sysprefs.sql: No such file or directory
I don't something is right? Especially the 2 errors at the end. What am I doing wrong?
run git-apply from any dir *within* your koha3 repo thats how git-apply works out where to apply the patch ;)
Ok...tried to run it from with the installation directory and the build directory. Linux/Ubuntu is new to me so I am not totally familiar with the names of things and locations. Can you just treat me like a I know nothing and just tell me exact locations? Sorry, I guess I am just being dense. Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" -----Original Message----- From: Mason James [mailto:mason.loves.sushi@gmail.com] Sent: Sunday, March 29, 2009 11:12 PM To: Roche III, Edward Cc: koha-devel@lists.koha.org; koha@lists.katipo.co.nz Subject: Re: [Koha] {Possible SPAM} RE: [Koha-devel] Barcode Don't Found On 2009/03/30, at 3:59 PM, Roche III, Edward wrote:
When I apply the pacth with the following command:
git-apply ./home/sysadmin/Desktop/0001-Add-less-aggressive- whitespace-removal-to-itemBarcod.patch
error: C4/Circulation.pm: No such file or directory
error: installer/data/mysql/en/mandatory/sysprefs.sql: No such file or directory
I don't something is right? Especially the 2 errors at the end. What am I doing wrong?
run git-apply from any dir *within* your koha3 repo thats how git-apply works out where to apply the patch ;)
On Mon, Mar 30, 2009 at 7:51 AM, Roche III, Edward < edward_roche@solanco.k12.pa.us> wrote:
Ok...tried to run it from with the installation directory and the build directory. Linux/Ubuntu is new to me so I am not totally familiar with the names of things and locations. Can you just treat me like a I know nothing and just tell me exact locations?
No, because we need you to know some things to be able to help. Like in this case, we can't know where you installed Koha since we don't have access to your system. --Joe
I used all defaults when installed: My build directory is /build/koha-3.00.00 My Installation Directory is /usr/share/koha Folder Stucture - Koha o bin o doc o intranet o lib o man o misc o opac Hope that helps. Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" From: Joe Atzberger [mailto:ohiocore@gmail.com] Sent: Monday, March 30, 2009 10:24 AM To: Roche III, Edward Cc: Mason James; koha@lists.katipo.co.nz; koha-devel@lists.koha.org Subject: Re: [Koha-devel] [Koha] {Possible SPAM} RE: Barcode Don't Found On Mon, Mar 30, 2009 at 7:51 AM, Roche III, Edward <edward_roche@solanco.k12.pa.us> wrote: Ok...tried to run it from with the installation directory and the build directory. Linux/Ubuntu is new to me so I am not totally familiar with the names of things and locations. Can you just treat me like a I know nothing and just tell me exact locations? No, because we need you to know some things to be able to help. Like in this case, we can't know where you installed Koha since we don't have access to your system. --Joe
The difficulty might be between the printed barcode labels and the barcode scanner. You should verify with the scanner what the labels actually return: modern barcode types (like Code 128 symbology) will let you print labels which have spaces in the human-readable text, but no spaces might be encoded in the barcode. This lets barcode labels show a human-readable number that is divided up, even though the actual data encoded doesn't include the space. In other words, the human-readable barcode on your book labels might "show" a space where none exists in the scanned barcode data. So if your MARC record has a barcode data field with a space in the middle, then your scans won't match if the scanner is stripping them out. Maybe you'll find your barcode labels show the text as "T 01234" but if the scan returns "T01234" and the MARC record has "T 01234" then no match happens. Hope this helps. Darryl Zurn Ed Roche wrote:
That is an idea but I would think there was a way to have Koha [ac]cept the T+space.
Hi Darryl I currently am not using a barcode reader, I am typing manually. I have tested with a barcode reader and the output is the same as the barcode label. Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" -----Original Message----- From: Darryl Zurn [mailto:dzurn@flunn.pair.com] Sent: Monday, March 30, 2009 11:38 AM To: Roche III, Edward Cc: koha@lists.katipo.co.nz; koha-devel@lists.koha.org Subject: RE: Barcode Don't Found The difficulty might be between the printed barcode labels and the barcode scanner. You should verify with the scanner what the labels actually return: modern barcode types (like Code 128 symbology) will let you print labels which have spaces in the human-readable text, but no spaces might be encoded in the barcode. This lets barcode labels show a human-readable number that is divided up, even though the actual data encoded doesn't include the space. In other words, the human-readable barcode on your book labels might "show" a space where none exists in the scanned barcode data. So if your MARC record has a barcode data field with a space in the middle, then your scans won't match if the scanner is stripping them out. Maybe you'll find your barcode labels show the text as "T 01234" but if the scan returns "T01234" and the MARC record has "T 01234" then no match happens. Hope this helps. Darryl Zurn Ed Roche wrote:
That is an idea but I would think there was a way to have Koha [ac]cept the T+space.
participants (5)
-
Darryl Zurn -
Joe Atzberger -
Mason James -
Michael Hafen -
Roche III, Edward