[% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Import Patrons [% IF ( uploadborrowers ) %]› Results[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %]

Import Patrons

[% IF ( uploadborrowers ) %]
Import results :
  • [% imported %] imported records [% IF ( lastimported ) %](last was [% lastimported %])[% END %]
  • [% overwritten %] overwritten [% IF ( lastoverwritten ) %](last was [% lastoverwritten %])[% END %]
  • [% alreadyindb %] not imported because already in borrowers table and overwrite disabled [% IF ( lastalreadyindb ) %](last was [% lastalreadyindb %])[% END %]
  • [% invalid %] not imported because they are not in the expected format [% IF ( lastinvalid ) %](last was [% lastinvalid %])[% END %]
  • [% total %] records parsed
  • Back to Tools
[% IF ( FEEDBACK ) %]

Feedback:
[% END %] [% IF ( ERRORS ) %]

Error analysis:
    [% FOREACH ERROR IN ERRORS %] [% IF ( ERROR.badheader ) %]
  • Header row could not be parsed
  • [% END %] [% FOREACH missing_critical IN ERROR.missing_criticals %]
  • Line [% missing_critical.line %] [% IF ( missing_critical.badparse ) %] could not be parsed! [% ELSIF ( missing_critical.bad_date ) %] has "[% missing_critical.key %]" in unrecognized format: "[% missing_critical.value %]" [% ELSE %] Critical field "[% missing_critical.key %]" [% IF ( missing_critical.branch_map ) %]has unrecognized value "[% missing_critical.value %]" [% ELSIF ( missing_critical.category_map ) %]has unrecognized value "[% missing_critical.value %]" [% ELSE %]missing [% END %] (borrowernumber: [% missing_critical.borrowernumber %]; surname: [% missing_critical.surname %]). [% END %]
    [% missing_critical.lineraw %]
  • [% END %] [% END %]
[% END %] [% ELSE %]
  • Select a file to import into the borrowers table
  • If a cardnumber exists in the table, you can choose whether to ignore the new one or overwrite the old one.
Import into the borrowers table
Field to use for record matching
Default values
    [% FOREACH columnkey IN columnkeys %]
  1. [% END %]
If matching record is already in the borrowers table:
[% IF ( ExtendedPatronAttributes ) %]
Patron Attributes
[% END %]
[% END %]

Notes:

  • The first line in the file must be a header row defining which columns you are supplying in the import file.
  • Download a starter CSV file with all the columns here. Values are comma-separated.
  • OR choose which fields you want to supply from the following list:
    • [% FOREACH columnkey IN columnkeys %]'[% columnkey.key %]', [% END %]
  • [% IF ( ExtendedPatronAttributes ) %]
  • If loading patron attributes, the 'patron_attributes' field should contain a comma-separated list of attribute types and values. The attribute type code and a colon should precede each value. For example: INSTID:12345,LANG:fr or STARTDATE:January 1 2010,TRACK:Day. If an input record has more than one attribute, the fields should either be entered as an unquoted string (previous examples), or with each field wrapped in separate double quotes and delimited by a comma: "STARTDATE:January 1, 2010","TRACK:Day". The second syntax would be required if the data might have a comma in it, like a date string.
  • [% END %]
  • The fields 'branchcode' and 'categorycode' are required and must match valid entries in your database.
  • 'password' should be stored in plaintext, and will be converted to a MD5 hash (if your passwords are already encrypted, talk to your system administrator about options).
  • Date formats should match your system preference, and must be zero-padded, e.g. '01/02/2008'. Alternatively, you can supply dates in ISO format (e.g., '2010-10-28').
[% INCLUDE 'tools-menu.inc' %]
[% INCLUDE 'intranet-bottom.inc' %]