RE: [Koha] Library card numbers, branch entry
# From the spreadsheet I created a while back. It's a 7 digit number and the last "number" may be an X Let's refer to it as ABCDEFG Calculate= (4xA) + (6xB) + (3xC) + (5xD) + (2xE) + F G is the remainder when divided by 11, if it's 10 use X (Mutters about younger generation not understanding check digits) -----Original Message----- From: Craig [mailto:haakon@themadship.dhs.org] Sent: Tuesday, 26 March 2002 12:15 To: koha Subject: Re: [Koha] Library card numbers, branch entry When I looked at the perl code I think it had to be a ten digit number. Craig
"Williams, Olwen - SAL" wrote:
From the spreadsheet I created a while back.
It's a 7 digit number and the last "number" may be an X
Let's refer to it as
ABCDEFG
Calculate= (4xA) + (6xB) + (3xC) + (5xD) + (2xE) + F G is the remainder when divided by 11, if it's 10 use X
(Mutters about younger generation not understanding check digits)
OK - I think I understand what check digits are for: Check digits are numbers that are based on a mathematical formula devised to help detect typical data entry errors... or something like that :^) When Using Check Digits with koha: Q0: What is the easiest way to allocate new koha library card numbers? Q1: Is there a Check Digit "standard" that is generally used for library card numbers? Q2: Is there a list of card numbers suitable for use with Koha? Q3: Is there a script that can be used with koha to generate a new number on the fly when creating new members Q4: Anything more that we need to know about using library card numbers with koha? Thanks, R.
On Mon, Apr 01, 2002 at 08:10:36PM +1000, Roger Buck said:
OK - I think I understand what check digits are for:
Check digits are numbers that are based on a mathematical formula devised to help detect typical data entry errors... or something like that :^)
When Using Check Digits with koha:
Brief history of cardnumbers and koha Horowhenua Libraries get their cards with a barcode and a number on them. The number conforms to the checkdigit routine. So koha didnt need to generate cardnumbers. It just needed to check that the number entered conformed to the checkdigit routine.
Q0: What is the easiest way to allocate new koha library card numbers?
Probably make a little routine that generates numbers that fits that checkdigit. But what is more pertinent I guess is how to change the checkdigit routine so it fits your existing numbering scheme. At the momment the there is no easy way. Apart from hacking at the perl.
Q1: Is there a Check Digit "standard" that is generally used for library card numbers?
I dont know, ill leave this for someone more knowledgable to answer.
Q2: Is there a list of card numbers suitable for use with Koha?
Nope, but i guess i could write something that would generate a list. As i said the checkdigit routine should be abstracted out though i think.
Q3: Is there a script that can be used with koha to generate a new number on the fly when creating new members
There could be Chris -- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
Hi all Further to my reply Olwen has sent through a spreadsheet that has the routine in it. Its in excel and as available for download from http://developer.koha.org/HLT2.xls Chris -- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
4/2/02 10:13:26 AM, Chris Cormack <chris@katipo.co.nz> wrote: You will find that this spreadsheet will not work. its not taking in account the 8 place multiplier, I think. Anyway, Koha has its own routine inside newmember.pl i think.. or is it member.pl. Anyway.. go to your admin page, and set AutoMemberNum to 1. that will get koha making its own card numbers.
Hi all
Further to my reply Olwen has sent through a spreadsheet that has the routine in it. Its in excel and as available for download from http://developer.koha.org/HLT2.xls
Chris -- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Waylon Robertson wrote:
4/2/02 10:13:26 AM, Chris Cormack <chris@katipo.co.nz> wrote: You will find that this spreadsheet will not work. its not taking in account the 8 place multiplier, I think. Anyway, Koha has its own routine inside newmember.pl i think.. or is it member.pl. Anyway.. go to your admin page, and set AutoMemberNum to 1. that will get koha making its own card numbers.
Maybe the "Hints" section in /admin/systempreferences.pl could be updated to show that - as well as "acquisitions" and "autoBarcode" options. I assume that turning on "autoBarcode" will automagically generate a new barcode for new acquisitions... maybe the same hooks could be used to replace current (shonky) barcode generation method in addbook*.pl? R.
participants (4)
-
Chris Cormack -
Roger Buck -
Waylon Robertson -
Williams, Olwen - SAL