[Koha-bugs] [Bug 12598] New misc/import_borrowers.pl command line tool

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 10 06:10:43 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12598

--- Comment #102 from Florent Mara <florent.mara at gmail.com> ---
This patch has been rebased today. Bug 16426 was backported and fixed.

Test plan:
1) Apply this patch. 
2) Set dateformat to mm/dd/yyyy. (Koha home->Administration->search for
dateformat -> select and save)
3) run 'prove t/db_dependent/Koha/Patrons/Import.t' which should result in 2
file handle warnings and 122 tests passing.
4) Run the online importer ( Koha home->tools->Import patrons) Load
PatronDataCSV1.csv sample file with default import parameters. It should result
in 165 imported records and 835 not imported because they are not in the
expected format.
5) Set dateformat to dd/mm/yyyy.
6) Run the new command line importer 'perl misc/import_patrons.pl -f
~/Downloads/PatronDataCSV1.csv -c -m 'cardnumber' -v'
It should load the remaining 835 entries from the sample file.
Import complete:
Imported:    835
Overwritten: 0
Skipped:     0
Invalid:     165
Total:       1000
7) Optional. Run 'perl misc/import_patrons.pl --help' because you can.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list