From c84c6141468ffcaf8a13a1f4655b4c6b906d4f99 Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Thu, 24 Mar 2022 12:33:43 +0100 Subject: [PATCH] Bug 30349: Use double dash for multi character option names Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- misc/migration_tools/bulkmarcimport.pl | 58 +++++++++++++------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index c6039cb30e..7bb9ee86c3 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -82,12 +82,12 @@ GetOptions( 'file:s' => \$input_marc_file, 'n:f' => \$number, 'o|offset:f' => \$offset, - 'h' => \$version, - 'd' => \$delete, + 'h|help' => \$version, + 'd|delete' => \$delete, 't|test' => \$test_parameter, 's' => \$skip_marc8_conversion, 'c:s' => \$char_encoding, - 'v:+' => \$verbose, + 'v|verbose:+' => \$verbose, 'fk' => \$fk_off, 'm:s' => \$format, 'l:s' => \$logfile, @@ -844,27 +844,27 @@ will get invalid data. =over -=item B<-h> +=item B<-h, --help> This version/help screen -=item B<-b, -biblios> +=item B<-b, --biblios> Type of import: bibliographic records -=item B<-a, -authorities> +=item B<-a, --authorities> Type of import: authority records -=item B<-file>=I +=item B<--file>=I The I to import -=item B<-v> +=item B<-v, --verbose> Verbose mode. 1 means "some infos", 2 means "MARC dumping" -=item B<-fk> +=item B<--fk> Turn off foreign key checks during import. @@ -872,11 +872,11 @@ Turn off foreign key checks during import. The I of records to import. If missing, all the file is imported -=item B<-o, -offset>=I +=item B<-o, --offset>=I File offset before importing, ie I of records to skip. -=item B<-commit>=I +=item B<--commit>=I The I of records to wait before performing a 'commit' operation @@ -884,11 +884,11 @@ The I of records to wait before performing a 'commit' operation File logs actions done for each record and their status into file -=item B<-append> +=item B<--append> If specified, data will be appended to the logfile. If not, the logfile will be erased for each execution. -=item B<-t, -test> +=item B<-t, --test> Test mode: parses the file, saying what it would do, but doing nothing. @@ -911,50 +911,50 @@ biblioitems, items Input file I: I or I (defaults to ISO2709) -=item B<-authtypes> +=item B<--authtypes> file yamlfile with authoritiesTypes and distinguishable record field in order to store the correct authtype -=item B<-yaml> +=item B<--yaml> yaml file format a yaml file with ids -=item B<-filter> +=item B<--filter> list of fields that will not be imported. Can be any from 000 to 999 or field, subfield and subfield's matching value such as 200avalue -=item B<-insert> +=item B<--insert> if set, only insert when possible -=item B<-update> +=item B<--update> if set, only updates (any biblio should have a matching record) -=item B<-all> +=item B<--all> if set, do whatever is required -=item B<-k, -keepids>= +=item B<-k, --keepids>= Field store ids in I (useful for authorities, where 001 contains the authid for Koha, that can contain a very valuable info for authorities coming from LOC or BNF. useless for biblios probably) -=item B<-match>= +=item B<--match>= I matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch can be either 001 to 999 or field and list of subfields as such 100abcde -=item B<-i,-isbn> +=item B<-i, --isbn> If set, a search will be done on isbn, and, if the same isbn is found, the biblio is not added. It's another method to deduplicate. B<-match> & B<-isbn> can be both set. -=item B<-cleanisbn> +=item B<--cleanisbn> Clean ISBN fields from entering biblio records, ie removes hyphens. By default, ISBN are cleaned. --nocleanisbn will keep ISBN unchanged. @@ -967,30 +967,30 @@ Source bib I for reporting the source bib number Source I for reporting the source bib number -=item B<-idmap>=I +=item B<--idmap>=I I for the koha bib and source id -=item B<-keepids> +=item B<--keepids> Store ids in 009 (useful for authorities, where 001 contains the authid for Koha, that can contain a very valuable info for authorities coming from LOC or BNF. useless for biblios probably) -=item B<-dedupbarcode> +=item B<--dedupbarcode> If set, whenever a duplicate barcode is detected, it is removed and the attempt to add the record is retried, thereby giving the record a blank barcode. This is useful when something has set barcodes to be a biblio ID, or similar (usually other software.) -=item B<-framework> +=item B<--framework> This is the code for the framework that the requested records will have attached to them when they are created. If not specified, then the default framework will be used. -=item B<-custom>=I +=item B<--custom>=I This parameter allows you to use a local module with a customize subroutine that is called for each MARC record. @@ -998,7 +998,7 @@ If no filename is passed, LocalChanges.pm is assumed to be in the migration_tools subdirectory. You may pass an absolute file name or a file name from the migration_tools directory. -=item B<-marcmodtemplate>=I