bikalims / bika.lims

Open Source Web-based Laboratory Information Management System
http://www.bikalims.org
Other
223 stars 168 forks source link

Barcode scanner converts hyphen to inverted comma in spanish Windows OS #334

Closed xispa closed 11 years ago

xispa commented 11 years ago

In spanish version of Windows OS, but not sure if occurs with all barcode scanners. Example: WH-0003-01 is readed as WH'00031

Could be possible to configure which character must be used in codes (samples, ARs, WS, etc)?

xispa commented 11 years ago

More technical info: Tested on Windows XP and Windows 7 Codebar scanner: Honeywell Eclipse MS5145.

leonardorojass commented 11 years ago

I had the same problem when using the barcode scanner with the keyboard language set in Spanish. A local technician from Honeywell told me it is a "language" problem when reading the codes (If you read the same code with the keyboard set in English it reads correctly). Some barcode scanners could be configured to avoid the keyboard language and use the barcode scanner reading configuration.

Is there a character that could be used instead of the hyphen which will not have this problem? The same problem applies to partions as mentioned on issue #335.

xispa commented 11 years ago

Hyphen problem solved with another barcode scanner, but another problem rised: the '/' symbol is not included in the generated code (or not correctly coded), being useless for searching. Testing a barcode image generated by bika with zbarimg (zbar-tools package for debian) gives the same problem. The barcode generated for the same ID (WH-0008/1) using http://barcode.tec-it.com/barcode-generator.aspx?LANG=es works without problems and is read correctly by the scanner.

lemoene commented 11 years ago

Elsewhere (https://github.com/bikalabs/Bika-LIMS/issues/414) because of another issue with partition IDs, we decided to give partitions a full ID which means they end up with similar postfixes to Sample IDs as ARs, and that they should perhaps be post-fixed p## and a## respectively. That should get rid of the post-fix part of the barcoding issue

lemoene commented 11 years ago

many of these floating around, e.g. https://github.com/bikalabs/Bika-LIMS/issues/335, could be consolidated