Re: [Koha] Barcode scanner - keyboard wedge or not
15/05/03 20:17:38, "T & J Kotula" <tjkotula@paradise.net.nz> wrote: Okay. If you have a serial port scanner.. one that plugs into the serial port, you will need to do the following initally: Go into windows control panel (Start menu - Settings -- Control Panel) and go into Accessabilty options and goto the General tap. Toggle the SerialKeys Checkbox so its ticked, then go into options and set its baud rate, et. al. then click okay a number of times until your out of it... and close the control panel. Running: To input a barcode, you will need to put the cursor in the correct location. Depending on your setup, you may need to press enter on the keyboard afterwards. Waylon. Secretary of the Theosophical Society In New Zealand Inc, Palmerston North branch/ Developer of Koha for The Theosophical society in New Zealand. P.S. Would anyone be interested in perl code that creates a form letter for an individual, for overdue books? I.e, the overdue.pl says X borrower has 3 books overdue. You click alongside one, and it pops up with a letter with their current address, city, email, the current date, "You have these books overdue:" and underneath that, has the book name, author and due date for each.. then, at the end says "You will incurr a fine of " <overdue fine> "for each day these books are overdue. Signed ....................................." Ive done this code.. so if anyones interested.. i might analysis the new template system, and see if i can create it.
Thanks for that info. Actually that's exactly what I'm going to do, have a Linux server and Windoze client(s). What do you mean by "accessibility control panel and serial keys"?
Once the scanner is working will I have to place the cursor on the 'book number' or 'member number' fields before I scan the barcode or can the scanner be programmed to input the scanned data into specific form fields, regardless of where the cursor is in the browser's window. It's a bit of a muddled sentence - I hope you know what I mean.
Thanks for you reply tomasz kotula.
----- Original Message ----- From: "Waylon Robertson" <genjimoto@ezysurf.co.nz> To: <koha@lists.katipo.co.nz>; "T & J Kotula" <tjkotula@paradise.net.nz> Sent: Thursday, May 15, 2003 10:13 AM Subject: Re: [Koha] Barcode scanner - keyboard wedge or not
Okay.. the easy solution is to use two computers.. one client, one server. server has linux and koha.. client has win98. Use the accessability control panel.. and enable serial keys. the hard solution is try to get linux to accept serial ports as keyboards.
the easy solution for a linux system is indeed a keyboard wedge. 14/05/03 20:02:10, "T & J Kotula" <tjkotula@paradise.net.nz> wrote:
Excuse my ignorance on the subject, but do I need to use a 'keyboard wedge' scanner or can I just connect one to a serial (or USB) port and somehow expect it to work with Koha - with the help of some software I assume, if so which one. I will appreciate any hints on how to get the scanner working.
I haven't bought one yet, but want to make sure I will get the right one :-)
PS. I intend to use Code39 and a 7-digit book number with a checksum (an excel spreadsheet with a formula was recently posted on this list) PPS. Eagerly awaiting Koha 2.0
Thanks
tomasz kotula
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Waylon Robertson wrote:
P.S. Would anyone be interested in perl code that creates a form letter for an individual, for overdue books? I.e, the overdue.pl says X borrower has 3 books overdue. You click alongside one, and it pops up with a letter with their current address, city, email, the current date, "You have these books overdue:" and underneath that, has the book name, author and due date for each.. then, at the end says "You will incurr a fine of " <overdue fine> "for each day these books are overdue. Signed ....................................." Ive done this code.. so if anyones interested.. i might analysis the new template system, and see if i can create it.
AND YOU PUT THIS IN YOUR PS !!!! I almost missed it ! It's a very interesting script ! Send it to me, and i'll will add it to official Koha release. You're lucky, feature freeze for 2.0 will occur with 1.9.3 that should be released next week, so it can be included Welcome to the Koha-contributor list :-) Note : in cvs, i've just added a "zipcode" field for complete address in most-countries-even-if-kiwis-don't-care-with-zipcode :-) -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
16/05/03 01:54:03, paul POULAIN <paul.poulain@free.fr> wrote: Well.. incidently.. I know nothing about the template system.... and I know only english. Just want it in pre-template perl? Waylon
Waylon Robertson wrote:
P.S. Would anyone be interested in perl code that creates a form letter for an individual, for overdue books? I.e, the overdue.pl says X borrower has 3 books overdue. You click alongside one, and it pops up with a letter with their current address, city, email, the current date, "You have these books overdue:" and underneath that, has the book name, author and due date for each.. then, at the end says "You will incurr a fine of " <overdue fine> "for each day these books are overdue. Signed ....................................." Ive done this code.. so if anyones interested.. i might analysis the new template system, and see if i can create it.
AND YOU PUT THIS IN YOUR PS !!!! I almost missed it ! It's a very interesting script ! Send it to me, and i'll will add it to official Koha release. You're lucky, feature freeze for 2.0 will occur with 1.9.3 that should be released next week, so it can be included Welcome to the Koha-contributor list :-)
Note : in cvs, i've just added a "zipcode" field for complete address in most-countries-even-if-kiwis-don't-care-with-zipcode :-)
-- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
Waylon Robertson wrote:
16/05/03 01:54:03, paul POULAIN <paul.poulain@free.fr> wrote: Well.. incidently.. I know nothing about the template system.... and I know only english. Just want it in pre-template perl?
Fairly simple : the templates are stored in a specific file & path, and looks like : /<HTML> <TMPL_VAR NAME=startmenuissue> <p> Each box needs to be filled in with fine,time to start charging,charging cycle<br> eg 1,7,7 = $1 fine, after 7 days, every 7 days.<p> <table> <tr bgcolor="white"> <TMPL_LOOP NAME=firstrowloop> <td><TMPL_VAR NAME=description></td> </TMPL_LOOP> </tr> <form action=/cgi-bin/koha/updatecharges.pl method=post> <TMPL_LOOP NAME=tablebodyloop> <tr bgcolor="whitw"> <td><TMPL_VAR NAME=description></td> <TMPL_LOOP NAME=rowloop> <td><input type=text name="<TMPL_VAR NAME=name>" value="<TMPL_VAR NAME=value>" size=6></td> </TMPL_LOOP> </tr> </TMPL_LOOP> </table> <input type=submit> </form> <TMPL_VAR NAME=endmenuissue> </body> </HTML>/ It's a mix of true HTML and H::T variables. The H::T are replaced during execution by "true" value. The templates are managed by specific koha-subs, that looks which one to use and check for auth : /use strict; use CGI; use C4::Auth; use C4::Output; use C4::Interface::CGI::Output; use C4::Database; use HTML::Template; my $query = new CGI; my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "parameters/admin-home.tmpl", query => $query, type => "intranet", authnotrequired => 0, flagsrequired => {parameters => 1}, debug => 1, }); output_html_with_http_headers $query, $cookie, $template->output; / Look at : http://html-template.sourceforge.net/html_template.html#tutorial for a tutorial and some explanations. HTH -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
On Fri, 16 May 2003, Waylon Robertson wrote:
P.S. Would anyone be interested in perl code that creates a form letter for an individual, for overdue books? I.e, the overdue.pl says X borrower has 3 books overdue. You click alongside one, and it pops up with a letter with their current address, city, email, the current date, "You have these books overdue:" and underneath that, has the book name, author and due date for each.. then, at the end says "You will incurr a fine of " <overdue fine> "for each day these books are overdue. Signed ....................................." Ive done this code.. so if anyones interested.. i might analysis the new template system, and see if i can create it.
Yes, this kind of code would be very nice to distribute either with Koha (starting in the 2.0.1 world) or as part of a "contributed code" set. If you'd like to email it to me (or one of the other developers), we'll happily drop it into the right place for everyone to be able to get it. As an added bonus, we'll even make sure your name gets into the "Credits" section of the manual (with your library's name too, if you'd like). thanks, -pate
participants (3)
-
Pat Eyler -
paul POULAIN -
Waylon Robertson