@@ -, +, @@ --- bulkmarcimport.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/bulkmarcimport.pl +++ a/bulkmarcimport.pl @@ -104,7 +104,7 @@ if ($version || ($input_marc_file eq '')) { exit; } if( $update && !( $match || $isbn_check ) ) { - warn "Using -update without -match or -isbn seems to be useless.\n"; + warn "Using --update without --match or --isbn seems to be useless.\n"; } if(defined $localcust) { #local customize module @@ -576,7 +576,7 @@ sub GetRecordId{ my $id; if ($tag lt "010"){ return $marcrecord->field($tag)->data() if $marcrecord->field($tag); - } + } elsif ($subfield){ if ($marcrecord->field($tag)){ return $marcrecord->subfield($tag,$subfield); @@ -649,8 +649,8 @@ bulkmarcimport.pl - Import bibliographic/authority records into Koha =head1 USAGE $ export KOHA_CONF=/etc/koha.conf - $ perl misc/migration_tools/bulkmarcimport.pl -d -commit 1000 \\ - -file /home/jmf/koha.mrc -n 3000 + $ perl misc/migration_tools/bulkmarcimport.pl --delete --commit 1000 \\ + --file /home/jmf/koha.mrc -n 3000 =head1 WARNING --