From 9394b763f2a290cb62422b4aaef21c6598f44e72 Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Thu, 24 Mar 2022 13:02:16 +0100 Subject: [PATCH 3/3] more double dashes --- bulkmarcimport.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bulkmarcimport.pl b/bulkmarcimport.pl index 04ed604..acda641 100644 --- a/bulkmarcimport.pl +++ b/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 -- 2.20.1