View | Details | Raw Unified | Return to bug 29005
Collapse All | Expand All

(-)a/misc/import_patrons.pl (-1 / +7 lines)
Lines 30-35 my $csv_file; Link Here
30
my $matchpoint;
30
my $matchpoint;
31
my $overwrite_cardnumber;
31
my $overwrite_cardnumber;
32
my $overwrite_passwords;
32
my $overwrite_passwords;
33
my $welcome_new = 0;
33
my %defaults;
34
my %defaults;
34
my $ext_preserve = 0;
35
my $ext_preserve = 0;
35
my $confirm;
36
my $confirm;
Lines 44-49 GetOptions( Link Here
44
    'd|default=s'                    => \%defaults,
45
    'd|default=s'                    => \%defaults,
45
    'o|overwrite'                    => \$overwrite_cardnumber,
46
    'o|overwrite'                    => \$overwrite_cardnumber,
46
    'op|overwrite_passwords'         => \$overwrite_passwords,
47
    'op|overwrite_passwords'         => \$overwrite_passwords,
48
    'en|email-new'                   => \$welcome_new,
47
    'p|preserve-extended-attributes' => \$ext_preserve,
49
    'p|preserve-extended-attributes' => \$ext_preserve,
48
    'pf|preserve-field=s'            => \@preserve_fields,
50
    'pf|preserve-field=s'            => \@preserve_fields,
49
    'v|verbose+'                     => \$verbose,
51
    'v|verbose+'                     => \$verbose,
Lines 68-73 my $return = $Import->import_patrons( Link Here
68
        overwrite_passwords          => $overwrite_passwords,
70
        overwrite_passwords          => $overwrite_passwords,
69
        preserve_extended_attributes => $ext_preserve,
71
        preserve_extended_attributes => $ext_preserve,
70
        preserve_fields              => \@preserve_fields,
72
        preserve_fields              => \@preserve_fields,
73
        send_welcome                 => $welcome_new,
71
        dry_run                      => !$confirm,
74
        dry_run                      => !$confirm,
72
    }
75
    }
73
);
76
);
Lines 145-150 Overwrite existing patrons with new data if a match is found Link Here
145
148
146
Retain extended patron attributes for existing patrons being overwritten
149
Retain extended patron attributes for existing patrons being overwritten
147
150
151
=item B<-en|--email-new>
152
153
Send the ACCTDETAILS welcome email to new users
154
148
=item B<-v|--verbose>
155
=item B<-v|--verbose>
149
156
150
Be verbose
157
Be verbose
151
- 

Return to bug 29005