X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Ftools%2Fimport_borrowers.tt;h=d9f25db0c1bcd96e78fe9a2e704f71ae41182da7;hb=1fcdef312be42c673d4ae017e3abe7722aba6048;hp=756e086e5c3a67eb68d1f3d305a0a2c23a9d8cba;hpb=f12406b076ab7ea7964a75e23c34920d1eed74b5;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt index 756e086e5c..d9f25db0c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt @@ -1,17 +1,29 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Tools › Import Patrons [% IF ( uploadborrowers ) %]› Results[% END %] +Koha › Tools › Import patrons [% IF ( uploadborrowers ) %]› Results[% END %] [% INCLUDE 'doc-head-close.inc' %] + - + [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] +[% INCLUDE 'calendar.inc' %] - +
@@ -19,7 +31,7 @@
-

Import Patrons

+

Import patrons

[% IF ( uploadborrowers ) %]
Import results :
    @@ -72,14 +84,25 @@
    [% missing_critical.lineraw %] [% END %] + [% IF ERROR.invalid_cardnumber %] +
  • + Cardnumber [% ERROR.cardnumber %] is not a valid cardnumber + [% IF ERROR.borrowernumber %] (for patron with borrowernumber [% ERROR.borrowernumber %])[% END %] +
  • + [% END %] + [% IF ERROR.duplicate_userid %] +
  • + Userid [% ERROR.userid %] is already used by another patron. +
  • + [% 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.
  • +
  • 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.
@@ -96,6 +119,7 @@
  • -
  • - [% END %] +[% FOREACH borrower_field IN borrower_fields %] + [% SWITCH borrower_field.field %] + [% CASE 'branchcode' %] +
  • + + [% borrower_field.field %] +
  • + [% CASE 'categorycode' %] +
  • + + [% borrower_field.field %] +
  • + [% CASE %] +
  • + + [% borrower_field.field %] +
  • + [% END %] +[% END %] +[% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %] +
  • + + + patron_attributes +
  • +[% END %]
    If matching record is already in the borrowers table: @@ -123,14 +179,14 @@
    - [% IF ( ExtendedPatronAttributes ) %] + [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
    - Patron Attributes + Patron attributes
    1. - +
    2. - +
    @@ -142,19 +198,29 @@

    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. +
    • Header: The first line in the file must be a header row defining which columns you are supplying in the import file.
    • +
    • Separator: Values are comma-separated.
    • +
    • Starter CSV: Koha provides a starter CSV with all the columns. + +
    • +
    • Field list: Alternatively, you can create your own CSV and choose which fields you want to supply from the following list: +
      • + [% FOREACH columnkey IN borrower_fields %]'[% columnkey.field %]', [% END %] +
    • +[% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %] +
    • Extended patron attributes: 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. +
      • Example 1: INSTID:12345,LANG:fr
      • Example 2: 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: +
      • Example 3: "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'). +
    • Required fields: The fields 'branchcode' and 'categorycode' are required and must match valid entries in your database.
    • +
    • Password: Values for the field 'password' should be stored in plaintext, and will be converted to a Bcrypt hash (if your passwords are already encrypted, talk to your system administrator about options).
    • +
    • Date formats: Date values should match your system preference, and must be zero-padded. +
      • Example: '01/02/2008'
      +Alternatively, you can supply dates in ISO format. +
      • Example: '2010-10-28'