Lines 58-69
GetOptions(
Link Here
|
58 |
'file:s' => \$input_marc_file, |
58 |
'file:s' => \$input_marc_file, |
59 |
'n:f' => \$number, |
59 |
'n:f' => \$number, |
60 |
'o|offset:f' => \$offset, |
60 |
'o|offset:f' => \$offset, |
61 |
'h' => \$version, |
61 |
'h|help' => \$version, |
62 |
'd' => \$delete, |
62 |
'd|delete' => \$delete, |
63 |
't|test' => \$test_parameter, |
63 |
't|test' => \$test_parameter, |
64 |
's' => \$skip_marc8_conversion, |
64 |
's' => \$skip_marc8_conversion, |
65 |
'c:s' => \$char_encoding, |
65 |
'c:s' => \$char_encoding, |
66 |
'v:+' => \$verbose, |
66 |
'v|verbose:+' => \$verbose, |
67 |
'fk' => \$fk_off, |
67 |
'fk' => \$fk_off, |
68 |
'm:s' => \$format, |
68 |
'm:s' => \$format, |
69 |
'l:s' => \$logfile, |
69 |
'l:s' => \$logfile, |
Lines 662-688
will get invalid data.
Link Here
|
662 |
|
662 |
|
663 |
=over |
663 |
=over |
664 |
|
664 |
|
665 |
=item B<-h> |
665 |
=item B<-h, --help> |
666 |
|
666 |
|
667 |
This version/help screen |
667 |
This version/help screen |
668 |
|
668 |
|
669 |
=item B<-b, -biblios> |
669 |
=item B<-b, --biblios> |
670 |
|
670 |
|
671 |
Type of import: bibliographic records |
671 |
Type of import: bibliographic records |
672 |
|
672 |
|
673 |
=item B<-a, -authorities> |
673 |
=item B<-a, --authorities> |
674 |
|
674 |
|
675 |
Type of import: authority records |
675 |
Type of import: authority records |
676 |
|
676 |
|
677 |
=item B<-file>=I<FILE> |
677 |
=item B<--file>=I<FILE> |
678 |
|
678 |
|
679 |
The I<FILE> to import |
679 |
The I<FILE> to import |
680 |
|
680 |
|
681 |
=item B<-v> |
681 |
=item B<-v, --verbose> |
682 |
|
682 |
|
683 |
Verbose mode. 1 means "some infos", 2 means "MARC dumping" |
683 |
Verbose mode. 1 means "some infos", 2 means "MARC dumping" |
684 |
|
684 |
|
685 |
=item B<-fk> |
685 |
=item B<--fk> |
686 |
|
686 |
|
687 |
Turn off foreign key checks during import. |
687 |
Turn off foreign key checks during import. |
688 |
|
688 |
|
Lines 690-700
Turn off foreign key checks during import.
Link Here
|
690 |
|
690 |
|
691 |
The I<NUMBER> of records to import. If missing, all the file is imported |
691 |
The I<NUMBER> of records to import. If missing, all the file is imported |
692 |
|
692 |
|
693 |
=item B<-o, -offset>=I<NUMBER> |
693 |
=item B<-o, --offset>=I<NUMBER> |
694 |
|
694 |
|
695 |
File offset before importing, ie I<NUMBER> of records to skip. |
695 |
File offset before importing, ie I<NUMBER> of records to skip. |
696 |
|
696 |
|
697 |
=item B<-commit>=I<NUMBER> |
697 |
=item B<--commit>=I<NUMBER> |
698 |
|
698 |
|
699 |
The I<NUMBER> of records to wait before performing a 'commit' operation |
699 |
The I<NUMBER> of records to wait before performing a 'commit' operation |
700 |
|
700 |
|
Lines 702-712
The I<NUMBER> of records to wait before performing a 'commit' operation
Link Here
|
702 |
|
702 |
|
703 |
File logs actions done for each record and their status into file |
703 |
File logs actions done for each record and their status into file |
704 |
|
704 |
|
705 |
=item B<-append> |
705 |
=item B<--append> |
706 |
|
706 |
|
707 |
If specified, data will be appended to the logfile. If not, the logfile will be erased for each execution. |
707 |
If specified, data will be appended to the logfile. If not, the logfile will be erased for each execution. |
708 |
|
708 |
|
709 |
=item B<-t, -test> |
709 |
=item B<-t, --test> |
710 |
|
710 |
|
711 |
Test mode: parses the file, saying what it would do, but doing nothing. |
711 |
Test mode: parses the file, saying what it would do, but doing nothing. |
712 |
|
712 |
|
Lines 729-735
biblioitems, items
Link Here
|
729 |
|
729 |
|
730 |
Input file I<FORMAT>: I<MARCXML> or I<ISO2709> (defaults to ISO2709) |
730 |
Input file I<FORMAT>: I<MARCXML> or I<ISO2709> (defaults to ISO2709) |
731 |
|
731 |
|
732 |
=item B<-authtypes> |
732 |
=item B<--authtypes> |
733 |
|
733 |
|
734 |
file yamlfile with authoritiesTypes and distinguishable record field in order |
734 |
file yamlfile with authoritiesTypes and distinguishable record field in order |
735 |
to store the correct authtype |
735 |
to store the correct authtype |
Lines 738-778
to store the correct authtype
Link Here
|
738 |
|
738 |
|
739 |
yaml file format a yaml file with ids |
739 |
yaml file format a yaml file with ids |
740 |
|
740 |
|
741 |
=item B<-filter> |
741 |
=item B<--filter> |
742 |
|
742 |
|
743 |
list of fields that will not be imported. Can be any from 000 to 999 or field, |
743 |
list of fields that will not be imported. Can be any from 000 to 999 or field, |
744 |
subfield and subfield's matching value such as 200avalue |
744 |
subfield and subfield's matching value such as 200avalue |
745 |
|
745 |
|
746 |
=item B<-insert> |
746 |
=item B<--insert> |
747 |
|
747 |
|
748 |
if set, only insert when possible |
748 |
if set, only insert when possible |
749 |
|
749 |
|
750 |
=item B<-update> |
750 |
=item B<--update> |
751 |
|
751 |
|
752 |
if set, only updates (any biblio should have a matching record) |
752 |
if set, only updates (any biblio should have a matching record) |
753 |
|
753 |
|
754 |
=item B<-all> |
754 |
=item B<--all> |
755 |
|
755 |
|
756 |
if set, do whatever is required |
756 |
if set, do whatever is required |
757 |
|
757 |
|
758 |
=item B<-k, -keepids>=<FIELD> |
758 |
=item B<-k, --keepids>=<FIELD> |
759 |
|
759 |
|
760 |
Field store ids in I<FIELD> (useful for authorities, where 001 contains the |
760 |
Field store ids in I<FIELD> (useful for authorities, where 001 contains the |
761 |
authid for Koha, that can contain a very valuable info for authorities coming |
761 |
authid for Koha, that can contain a very valuable info for authorities coming |
762 |
from LOC or BNF. useless for biblios probably) |
762 |
from LOC or BNF. useless for biblios probably) |
763 |
|
763 |
|
764 |
=item B<-match>=<FIELD> |
764 |
=item B<--match>=<FIELD> |
765 |
|
765 |
|
766 |
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch |
766 |
I<FIELD> matchindex,fieldtomatch matchpoint to use to deduplicate fieldtomatch |
767 |
can be either 001 to 999 or field and list of subfields as such 100abcde |
767 |
can be either 001 to 999 or field and list of subfields as such 100abcde |
768 |
|
768 |
|
769 |
=item B<-i,-isbn> |
769 |
=item B<-i,--isbn> |
770 |
|
770 |
|
771 |
If set, a search will be done on isbn, and, if the same isbn is found, the |
771 |
If set, a search will be done on isbn, and, if the same isbn is found, the |
772 |
biblio is not added. It's another method to deduplicate. B<-match> & B<-isbn> |
772 |
biblio is not added. It's another method to deduplicate. B<-match> & B<-isbn> |
773 |
can be both set. |
773 |
can be both set. |
774 |
|
774 |
|
775 |
=item B<-cleanisbn> |
775 |
=item B<--cleanisbn> |
776 |
|
776 |
|
777 |
Clean ISBN fields from entering biblio records, ie removes hyphens. By default, |
777 |
Clean ISBN fields from entering biblio records, ie removes hyphens. By default, |
778 |
ISBN are cleaned. --nocleanisbn will keep ISBN unchanged. |
778 |
ISBN are cleaned. --nocleanisbn will keep ISBN unchanged. |
Lines 785-814
Source bib I<TAG> for reporting the source bib number
Link Here
|
785 |
|
785 |
|
786 |
Source I<SUBFIELD> for reporting the source bib number |
786 |
Source I<SUBFIELD> for reporting the source bib number |
787 |
|
787 |
|
788 |
=item B<-idmap>=I<FILE> |
788 |
=item B<--idmap>=I<FILE> |
789 |
|
789 |
|
790 |
I<FILE> for the koha bib and source id |
790 |
I<FILE> for the koha bib and source id |
791 |
|
791 |
|
792 |
=item B<-keepids> |
792 |
=item B<--keepids> |
793 |
|
793 |
|
794 |
Store ids in 009 (useful for authorities, where 001 contains the authid for |
794 |
Store ids in 009 (useful for authorities, where 001 contains the authid for |
795 |
Koha, that can contain a very valuable info for authorities coming from LOC or |
795 |
Koha, that can contain a very valuable info for authorities coming from LOC or |
796 |
BNF. useless for biblios probably) |
796 |
BNF. useless for biblios probably) |
797 |
|
797 |
|
798 |
=item B<-dedupbarcode> |
798 |
=item B<--dedupbarcode> |
799 |
|
799 |
|
800 |
If set, whenever a duplicate barcode is detected, it is removed and the attempt |
800 |
If set, whenever a duplicate barcode is detected, it is removed and the attempt |
801 |
to add the record is retried, thereby giving the record a blank barcode. This |
801 |
to add the record is retried, thereby giving the record a blank barcode. This |
802 |
is useful when something has set barcodes to be a biblio ID, or similar |
802 |
is useful when something has set barcodes to be a biblio ID, or similar |
803 |
(usually other software.) |
803 |
(usually other software.) |
804 |
|
804 |
|
805 |
=item B<-framework> |
805 |
=item B<--framework> |
806 |
|
806 |
|
807 |
This is the code for the framework that the requested records will have attached |
807 |
This is the code for the framework that the requested records will have attached |
808 |
to them when they are created. If not specified, then the default framework |
808 |
to them when they are created. If not specified, then the default framework |
809 |
will be used. |
809 |
will be used. |
810 |
|
810 |
|
811 |
=item B<-custom>=I<MODULE> |
811 |
=item B<--custom>=I<MODULE> |
812 |
|
812 |
|
813 |
This parameter allows you to use a local module with a customize subroutine |
813 |
This parameter allows you to use a local module with a customize subroutine |
814 |
that is called for each MARC record. |
814 |
that is called for each MARC record. |
Lines 816-822
If no filename is passed, LocalChanges.pm is assumed to be in the
Link Here
|
816 |
migration_tools subdirectory. You may pass an absolute file name or a file name |
816 |
migration_tools subdirectory. You may pass an absolute file name or a file name |
817 |
from the migration_tools directory. |
817 |
from the migration_tools directory. |
818 |
|
818 |
|
819 |
=item B<-marcmodtemplate>=I<TEMPLATE> |
819 |
=item B<--marcmodtemplate>=I<TEMPLATE> |
820 |
|
820 |
|
821 |
This parameter allows you to specify the name of an existing MARC |
821 |
This parameter allows you to specify the name of an existing MARC |
822 |
modification template to apply as the MARC records are imported (these |
822 |
modification template to apply as the MARC records are imported (these |
823 |
- |
|
|