[% INCLUDE 'help-top.inc' %]

Patron Import

The patron import tool can be used at any time to add patrons in bulk. It is commonly used in universities and schools when a new batch of students registers.

Creating Patron File

Your Koha installation comes with a blank CSV file that you can use as a template for your patron records. If you would like to create the file yourself, make sure that your file has the following fields in this order as the header row:

borrowernumber, cardnumber, surname, firstname, title, othernames, initials, streetnumber, streettype, address, address2, city, zipcode, country, email, phone, mobile, fax, emailpro, phonepro, B_streetnumber, B_streettype, B_address, B_address2, B_city, B_zipcode, B_country, B_email, B_phone, dateofbirth, branchcode, categorycode, dateenrolled, dateexpiry, gonenoaddress, lost, debarred, contactname, contactfirstname, contacttitle, guarantorid, borrowernotes, relationship, ethnicity, ethnotes, sex, password, flags, userid, opacnote, contactnote, sort1, sort2, altcontactfirstname, altcontactsurname, altcontactaddress1, altcontactaddress2, altcontactaddress3, altcontactzipcode, altcontactcountry, altcontactphone, smsalertnumber, patron_attributes

Important: The 'password' value should be stored in plain text, and will be converted to a md5 hash (which is an encrypted version of the password).

Important: Date formats should match your system preference, and must be zero-padded, e.g. '01/02/2008'.

Important: The fields 'branchcode' and 'categorycode' are required and must match valid entries in your database.

Tip: If loading patron attributes, the 'patron_attributes' field should contain a comma-separated list of attribute types and values.

Importing Patrons

Once you have created your file, you can use the Patron Import Tool to bring the data into Koha.

See the full documentation for Patron Import in the manual (online).

[% INCLUDE 'help-bottom.inc' %]