Patron Extended Attribute reload, revision 0.7
Small script to import patron attributes into Koha from a flat file. Unwanted patron attribute values must be deleted from the borrower_attributes table prior to running this script in order to avoid duplicates.
Parameters:
f|file /path/to/file: the file to import
h|help this screen
t|test test mode; does not commit change to the db
id specify the unique id used for the patron (borrownumber is default)
This script expects a CSV file, with the unique identifer for the patron as the
first value per row, and attribute:value (separated by :) pairs for each
subsequent value. You may insert as many attributes per patron as your Koha
setup is configured to allow (see Koha manual to define patron attribute types).
Specify \"-id cardnumber\" or \"-id userid\" to use cardnumber or userid to link to
the patron\'s record (instead of borrowernumber).
Example of a row from the CSV file:
35,ATTR1:something,ATTR2:something else
Revision: 0.7
Released on: 2010-01-29
Compatible with: 3.0
Original version