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

(-)a/misc/migration_tools/bulkmarcimport.pl (-30 / +29 lines)
Lines 82-93 GetOptions( Link Here
82
    'file:s'            => \$input_marc_file,
82
    'file:s'            => \$input_marc_file,
83
    'n:f'               => \$number,
83
    'n:f'               => \$number,
84
    'o|offset:f'        => \$offset,
84
    'o|offset:f'        => \$offset,
85
    'h'                 => \$version,
85
    'h|help'            => \$version,
86
    'd'                 => \$delete,
86
    'd|delete'          => \$delete,
87
    't|test'            => \$test_parameter,
87
    't|test'            => \$test_parameter,
88
    's'                 => \$skip_marc8_conversion,
88
    's'                 => \$skip_marc8_conversion,
89
    'c:s'               => \$char_encoding,
89
    'c:s'               => \$char_encoding,
90
    'v:+'               => \$verbose,
90
    'v|verbose:+'       => \$verbose,
91
    'fk'                => \$fk_off,
91
    'fk'                => \$fk_off,
92
    'm:s'               => \$format,
92
    'm:s'               => \$format,
93
    'l:s'               => \$logfile,
93
    'l:s'               => \$logfile,
Lines 844-870 will get invalid data. Link Here
844
844
845
=over
845
=over
846
846
847
=item  B<-h>
847
=item  B<-h, --help>
848
848
849
This version/help screen
849
This version/help screen
850
850
851
=item B<-b, -biblios>
851
=item B<-b, --biblios>
852
852
853
Type of import: bibliographic records
853
Type of import: bibliographic records
854
854
855
=item B<-a, -authorities>
855
=item B<-a, --authorities>
856
856
857
Type of import: authority records
857
Type of import: authority records
858
858
859
=item B<-file>=I<FILE>
859
=item B<--file>=I<FILE>
860
860
861
The I<FILE> to import
861
The I<FILE> to import
862
862
863
=item  B<-v>
863
=item  B<-v, --verbose>
864
864
865
Verbose mode. 1 means "some infos", 2 means "MARC dumping"
865
Verbose mode. 1 means "some infos", 2 means "MARC dumping"
866
866
867
=item B<-fk>
867
=item B<--fk>
868
868
869
Turn off foreign key checks during import.
869
Turn off foreign key checks during import.
870
870
Lines 872-882 Turn off foreign key checks during import. Link Here
872
872
873
The I<NUMBER> of records to import. If missing, all the file is imported
873
The I<NUMBER> of records to import. If missing, all the file is imported
874
874
875
=item B<-o, -offset>=I<NUMBER>
875
=item B<-o, --offset>=I<NUMBER>
876
876
877
File offset before importing, ie I<NUMBER> of records to skip.
877
File offset before importing, ie I<NUMBER> of records to skip.
878
878
879
=item B<-commit>=I<NUMBER>
879
=item B<--commit>=I<NUMBER>
880
880
881
The I<NUMBER> of records to wait before performing a 'commit' operation
881
The I<NUMBER> of records to wait before performing a 'commit' operation
882
882
Lines 884-894 The I<NUMBER> of records to wait before performing a 'commit' operation Link Here
884
884
885
File logs actions done for each record and their status into file
885
File logs actions done for each record and their status into file
886
886
887
=item B<-append>
887
=item B<--append>
888
888
889
If specified, data will be appended to the logfile. If not, the logfile will be erased for each execution.
889
If specified, data will be appended to the logfile. If not, the logfile will be erased for each execution.
890
890
891
=item B<-t, -test>
891
=item B<-t, --test>
892
892
893
Test mode: parses the file, saying what it would do, but doing nothing.
893
Test mode: parses the file, saying what it would do, but doing nothing.
894
894
Lines 911-960 biblioitems, items Link Here
911
911
912
Input file I<FORMAT>: I<MARCXML> or I<ISO2709> (defaults to ISO2709)
912
Input file I<FORMAT>: I<MARCXML> or I<ISO2709> (defaults to ISO2709)
913
913
914
=item B<-authtypes>
914
=item B<--authtypes>
915
915
916
file yamlfile with authoritiesTypes and distinguishable record field in order
916
file yamlfile with authoritiesTypes and distinguishable record field in order
917
to store the correct authtype
917
to store the correct authtype
918
918
919
=item B<-yaml>
919
=item B<--yaml>
920
920
921
yaml file  format a yaml file with ids
921
yaml file  format a yaml file with ids
922
922
923
=item B<-filter>
923
=item B<--filter>
924
924
925
list of fields that will not be imported. Can be any from 000 to 999 or field,
925
list of fields that will not be imported. Can be any from 000 to 999 or field,
926
subfield and subfield's matching value such as 200avalue
926
subfield and subfield's matching value such as 200avalue
927
927
928
=item B<-insert>
928
=item B<--insert>
929
929
930
if set, only insert when possible
930
if set, only insert when possible
931
931
932
=item B<-update>
932
=item B<--update>
933
933
934
if set, only updates (any biblio should have a matching record)
934
if set, only updates (any biblio should have a matching record)
935
935
936
=item B<-all>
936
=item B<--all>
937
937
938
if set, do whatever is required
938
if set, do whatever is required
939
939
940
=item B<-k, -keepids>=<FIELD>
940
=item B<-k, --keepids>=<FIELD>
941
941
942
Field store ids in I<FIELD> (useful for authorities, where 001 contains the
942
Field store ids in I<FIELD> (useful for authorities, where 001 contains the
943
authid for Koha, that can contain a very valuable info for authorities coming
943
authid for Koha, that can contain a very valuable info for authorities coming
944
from LOC or BNF. useless for biblios probably)
944
from LOC or BNF. useless for biblios probably)
945
945
946
=item B<-match>=<FIELD>
946
=item B<--match>=<FIELD>
947
947
948
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch
948
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch
949
can be either 001 to 999 or field and list of subfields as such 100abcde
949
can be either 001 to 999 or field and list of subfields as such 100abcde
950
950
951
=item B<-i,-isbn>
951
=item B<-i, --isbn>
952
952
953
If set, a search will be done on isbn, and, if the same isbn is found, the
953
If set, a search will be done on isbn, and, if the same isbn is found, the
954
biblio is not added. It's another method to deduplicate.  B<-match> & B<-isbn>
954
biblio is not added. It's another method to deduplicate.  B<-match> & B<-isbn>
955
can be both set.
955
can be both set.
956
956
957
=item B<-cleanisbn>
957
=item B<--cleanisbn>
958
958
959
Clean ISBN fields from entering biblio records, ie removes hyphens. By default,
959
Clean ISBN fields from entering biblio records, ie removes hyphens. By default,
960
ISBN are cleaned. --nocleanisbn will keep ISBN unchanged.
960
ISBN are cleaned. --nocleanisbn will keep ISBN unchanged.
Lines 967-996 Source bib I<TAG> for reporting the source bib number Link Here
967
967
968
Source I<SUBFIELD> for reporting the source bib number
968
Source I<SUBFIELD> for reporting the source bib number
969
969
970
=item B<-idmap>=I<FILE>
970
=item B<--idmap>=I<FILE>
971
971
972
I<FILE> for the koha bib and source id
972
I<FILE> for the koha bib and source id
973
973
974
=item B<-keepids>
974
=item B<--keepids>
975
975
976
Store ids in 009 (useful for authorities, where 001 contains the authid for
976
Store ids in 009 (useful for authorities, where 001 contains the authid for
977
Koha, that can contain a very valuable info for authorities coming from LOC or
977
Koha, that can contain a very valuable info for authorities coming from LOC or
978
BNF. useless for biblios probably)
978
BNF. useless for biblios probably)
979
979
980
=item B<-dedupbarcode>
980
=item B<--dedupbarcode>
981
981
982
If set, whenever a duplicate barcode is detected, it is removed and the attempt
982
If set, whenever a duplicate barcode is detected, it is removed and the attempt
983
to add the record is retried, thereby giving the record a blank barcode. This
983
to add the record is retried, thereby giving the record a blank barcode. This
984
is useful when something has set barcodes to be a biblio ID, or similar
984
is useful when something has set barcodes to be a biblio ID, or similar
985
(usually other software.)
985
(usually other software.)
986
986
987
=item B<-framework>
987
=item B<--framework>
988
988
989
This is the code for the framework that the requested records will have attached
989
This is the code for the framework that the requested records will have attached
990
to them when they are created. If not specified, then the default framework
990
to them when they are created. If not specified, then the default framework
991
will be used.
991
will be used.
992
992
993
=item B<-custom>=I<MODULE>
993
=item B<--custom>=I<MODULE>
994
994
995
This parameter allows you to use a local module with a customize subroutine
995
This parameter allows you to use a local module with a customize subroutine
996
that is called for each MARC record.
996
that is called for each MARC record.
Lines 998-1004 If no filename is passed, LocalChanges.pm is assumed to be in the Link Here
998
migration_tools subdirectory. You may pass an absolute file name or a file name
998
migration_tools subdirectory. You may pass an absolute file name or a file name
999
from the migration_tools directory.
999
from the migration_tools directory.
1000
1000
1001
=item B<-marcmodtemplate>=I<TEMPLATE>
1001
=item B<--marcmodtemplate>=I<TEMPLATE>
1002
1002
1003
This parameter allows you to specify the name of an existing MARC
1003
This parameter allows you to specify the name of an existing MARC
1004
modification template to apply as the MARC records are imported (these
1004
modification template to apply as the MARC records are imported (these
1005
- 

Return to bug 30349