[Koha] import patrons
Katrin Fischer
katrin.fischer.83 at web.de
Sun Jul 9 00:05:53 NZST 2023
This has been filed, fixed and currently waits for a sign-off, please test!
*Bug 34213*
<https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34213> -
False POD for matchpoint option in import_patrons.pl
On 06.07.23 08:38, Jonathan Druart wrote:
> -c is used for 2 options, it's a bug and you should not use it
> -c|--confirm
> -c|--matchpoint
> Use the long version, --confirm instead.
> Please open a new bug report.
> Regards,
> Jonathan
>
> Le jeu. 6 juil. 2023 à 06:07, Сычев Игорь Алексеевич<ias at tpu.ru> a écrit :
>> Hello!
>>
>> Koha 23.05
>> Importing patrons on the command line. What does the following warning mean?
>>
>> root at koha:/usr/share/koha/bin# perl import_patrons.pl -f /home/ias/patron.csv --matchpoint cardnumber -c -v
>> Use of uninitialized value $borrower{"cardnumber"} in string eq at /usr/share/koha/lib/Koha/Patrons/Import.pm line 146, <$handle> line 500.
>> Use of uninitialized value $borrower{"auth_method"} in string eq at /usr/share/koha/lib/Koha/Patrons/Import.pm line 147, <$handle> line 500.
>>
>> Option "-c" --confirm or --matchpoint?
>>
>> root at koha:/usr/share/koha/bin# perl import_patrons.pl --help
>> Usage:
>> import_patrons.pl --file /path/to/patrons.csv --matchpoint cardnumber
>> --confirm [--default branchcode=MPL] [--overwrite] [--preserve-field
>> <column>] [--preserve-extended-attributes] [--update-expiration]
>> [--expiration-from-today] [--verbose]
>>
>> Options:
>> -h|--help
>> Prints a brief help message and exits
>>
>> -c|--confirm
>> Confirms you really want to import these patrons, otherwise
>> prints this help
>>
>> -f|--file
>> Path to the CSV file of patrons to import
>>
>> -c|--matchpoint
>> Field on which to match incoming patrons to existing patrons
>>
>> -d|--default
>> Set defaults to patron fields, repeatable e.g. --default
>> branchcode=MPL --default categorycode=PT
>>
>> -k|--preserve-field
>> Prevent specified patron fields for existing patrons from being
>> overwritten
>>
>> -o|--overwrite
>> Overwrite existing patrons with new data if a match is found
>>
>> -p|--preserve-extended-attributes
>> Retain extended patron attributes for existing patrons being
>> overwritten
>>
>> -en|--email-new
>> Send the WELCOME notice email to new users
>>
>> -ue|--update-expiration
>> If a matching patron is found, extend the expiration date of
>> their account using the patron's enrollment date as the base
>>
>> -et|--expiration-from-today
>> If a matching patron is found, extend the expiration date of
>> their account using the patron's enrollment date as the base
>>
>> -v|--verbose
>> Be verbose
>>
>> Multiple -v options increase the verbosity
>>
>> 2 repetitions or above will report lines in error
>>
>> 3 repetitions or above will report feedback
>>
>> Good Luck!
>>
>> Igor A. Sychev
>> Tomsk Polytechnic University
>> https://lib.tpu.ru
>> _______________________________________________
>>
>> Koha mailing listhttp://koha-community.org
>> Koha at lists.katipo.co.nz
>> Unsubscribe:https://lists.katipo.co.nz/mailman/listinfo/koha
> _______________________________________________
>
> Koha mailing listhttp://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe:https://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list