[Koha] patron update

Сычев Игорь Алексеевич ias at tpu.ru
Mon Jul 10 00:01:43 NZST 2023


Hello!

I have a csv file with "patron_attributes".
Example:
cardnumber,patron_attributes
23821012345678,"TPUID:12345,""PDivision:Academic Library, Dep IT"""

Imported without problems.

If the string uses "Double quotes" (")? then there is a problem with the import.
Example, need : Other "ABC" SPb
cardnumber,patron_attributes
23821012345678,"PDivision:Other ""ABC"" SPb"

root at koha:/usr/share/koha/bin# perl import_patrons.pl -f /home/ias/patron.csv --matchpoint cardnumber --confirm -v
Use of uninitialized value $borrower{"cardnumber"} in string eq at /usr/share/koha/lib/Koha/Patrons/Import.pm line 146, <$handle> line 2.
Use of uninitialized value $borrower{"auth_method"} in string eq at /usr/share/koha/lib/Koha/Patrons/Import.pm line 147, <$handle> line 2.

Import complete:
Imported:    0
Overwritten: 0
Skipped:     0
Invalid:     1
Total:       1

How do I escape to csv so that the import takes place?

Good Luck!

Igor A. Sychev
Tomsk Polytechnic University
https://lib.tpu.ru/




More information about the Koha mailing list